Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, Is there anyone out there wh 1

Status
Not open for further replies.

vexer007

IS-IT--Management
Aug 8, 2003
10
GB
Hi,

Is there anyone out there who can help PLEASE! I have a menu created with XML and imported into flash Movie. Now Because the Menu is created in XML I want to use the XML coding to link to a particular Scene in my flash movie and a particular Label. Can you HELP PLEASE!!! I am a member of the TEK-TIPS WEBSITE. PLEASE...

THANX
 
You can embed links to actionscript functions in the xml file like this:

Code:
<link><![CDATA[<a href='asfunction:_root.doMenuLink,item1'>Click here...</a>]]><link>

Which will call the a function called 'doMenuLink' on the main timeline of the Flash movie and pass it the value 'item1':

Code:
doMenuLink=function(frame){
_root.gotoAndStop(frame);
}
 
Hi, PLEASE LOOK AT THE CODE BELOW. WHERE THE URL ARE, I WANT TO LINK IT TO A FLASH SCENE & FRAME. THE MENU IS DONE IN XML. wangbar or anybody out there pls.

THANX



<?xml version=&quot;1.0&quot;?>
<NAV main_onColor=&quot;#FFCCFF&quot; main_offColor=&quot;#ff0000&quot; sub_onColor=&quot;#0066FF&quot; sub_offColor=&quot;#CCFF33&quot; navWidth=&quot;150&quot; fadeTime=&quot;0&quot; lineWidth=&quot;150&quot; main_y_padding=&quot;4&quot; sub_y_padding=&quot;2&quot; sub_indent=&quot;10&quot;>
<MAIN text=&quot;SELECT POEM&quot; expand=&quot;false&quot;>
<SUB text=&quot;Angel in Disguise&quot; URL=&quot;Poems pt 2&quot; target=&quot;_blank&quot;></SUB>
<SUB text=&quot;Appreciate Me&quot; URL=&quot; target=&quot;_blank&quot;></SUB>
<SUB text=&quot;I wanted to tell you that&quot; URL=&quot; target=&quot;_blank&quot;></SUB>

</MAIN>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top