I am really new to coding flash and xml...I have a question about the tree menu found here @
http://www.flash-db.com/Tutorials/treemenu/index.php?I am struggling to configure the links and would like to ask for some help...
I downloaded the tutorial files and was able to change the text on the menu in the XML file. My problem I think is how to link the buttons to certain frames in my swf movie. I do not understand the verbiage found below the tutorial:
"To set menu callbacks, you set a link property in the node passing an arbitrary string as the info, then you add a callback on the timeline to take the appropriate action. Here's an example:
var listener = new Object();
listener.onClickSection = function(evt:Object) {
//evt.valu is the content of the link node property
trace(evt.value)
};
this.menu.addEventListener("onClickSection",listener); "
That is the code I have put in my flash movie, but when exporting it out and viewing in html the buttons display properly but no links work....Please help! What do I need to change the XML code to link the buttons to a certain frame in the SWF and is there any AS changes needed in the swf
My XML code is below.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<menu>
<item title="Home" font_color="0xFFFFFF">
</item>
<item title="Photos" font_color="0xFFFFFF">
<item title="2010" link="2010">
</item>
<item title="2009" link="2009">
</item>
</item>
<item title="Videos" font_color="0xFFFFFF">
<item title="Kaylee" link="services">
</item>
<item title="Joshua" link="contact">
</item>
</item>
<item title="Books" font_color="0xFFFFFF">
<item title="Kaylee Birthlog">
</item>
<item title="Joshua Birthlog">
</item>
<item title="Blog">
</item>
</item>
</menu>
Any help would be much appreciated.
Thanks in advance