My flash project uses XML file to load buttons and their links, how can i link xml to gotoAndplay frame "X" just like as if i will do it in ActionScript? here is my xml buttons <!-- MENU STRUCTURE --> <menu_structure> <item> <item text = "home" url = "" url_self = "1"> </item> <item text = "profile" url = "" url_self = "1" > <item ..... and so on Code (markup):
Hi maybe you could put the number of the frame in the xml file like <item text = "home" url = "" url_self = "1" numb = "1..."> and in the acionscript you can define the variable a "uint" like this : var xml_number:uint and in the function you will write : gotoAndPlay(...xml_number); Hope you understand something i'm not good with as2 i work only in as3 good luck.