PDA

View Full Version : XML --> Flash


spazmaster
09-23-2002, 10:43 AM
hiya i'm using XML for the first time.

i have this collapsible menu component that gets its info from an XML document.

in the XML doc there are codes like this:


<item name="Business" action="No action">


and


<sub name="Database" action="loadClip"></sub>


these are both navigation buttons, which i would like to trigger different MC's to play. How do i do this?
I tried looking thru the MX reference, some sites on actionscripts but cant find this specific info.
How do i trigger an MC here? i see NO Action and loadClip....i tried doing stuff like _root.gotoAndPlay (2); but that doesnt work...whats the syntax here?

spazmaster
09-24-2002, 03:22 PM
solved :)

stauguste
10-17-2002, 02:15 PM
do you know how to create 3rd level to that xml menu?...using the collapsible menu component. (FMX)

spazmaster
10-18-2002, 12:13 PM
you would need to add a lot of actionscript i would say. there are only primary and secondary buttons listed now, and you would need to add actionscript for tertiare buttons yourself and then it should be able to read em fine in the XML.

tyler_dus
03-28-2006, 06:36 PM
Do you know how to load a .swf?
I can't find what I have to insert in the XML.

<sub name="Database" action="movie.swf"></sub>
???

Could you help me please!

Thx in advance,
;-)

Tyler