Question
Dynamic XML menu with links that perform functions...getting desperate
I'm trying to create a simple dynamic menu generated from a
XML file. I have my XML file set up correctly, I can load the XML
successfully and read the data in Flash, I can even generate the
buttons successfully. The part I'm really struggling with is having
the buttons perform different functions within Flash when clicked.
Basically what I want to do is create a simple portfolio viewer. When a button is clicked, the corresponding image and caption text will load (also defined in the XML file). The closest thing I've found is the tutorial here...
http://www.flashdev.ca/article/building-a-basic-menu-in-actionscript-30-tutorial-part-2-xml/
Its simple and basically does what I want it to do. But at the end, when a button is clicked, I'm not sure how to get that function to read the XML data associated with the button clicked, and then load that data. That way I can use the data to load the image and fill the dynamic text box with the caption text. Thanks for any help, and I don't even need specific code, just a little push. I like to try and figure these things out on my own, but this has me stalled for a few days.
code from tutorial link...
Basically what I want to do is create a simple portfolio viewer. When a button is clicked, the corresponding image and caption text will load (also defined in the XML file). The closest thing I've found is the tutorial here...
http://www.flashdev.ca/article/building-a-basic-menu-in-actionscript-30-tutorial-part-2-xml/
Its simple and basically does what I want it to do. But at the end, when a button is clicked, I'm not sure how to get that function to read the XML data associated with the button clicked, and then load that data. That way I can use the data to load the image and fill the dynamic text box with the caption text. Thanks for any help, and I don't even need specific code, just a little push. I like to try and figure these things out on my own, but this has me stalled for a few days.
code from tutorial link...
