Can anyone help me in AS2(XML)

Discussion in 'Graphics & Multimedia' started by luckmann, Jun 20, 2011.

  1. #1
    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):
     
    luckmann, Jun 20, 2011 IP
  2. PatratzelMov

    PatratzelMov Member

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #2
    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.
     
    PatratzelMov, Jun 20, 2011 IP