I know you guys get millions of XML menu questions everyday. I searched and read all sorts of tutorials/threads on this site.
- I checked out the senocular’s XML porfolio to learn about the rollover caption appearing a text field.
- I read the multilevel menu tutorial (this is what I based my flash off of)
- I read almost all of the xml menu threads
however, I still cant figure out how to make the caption to appear in the dynamic text field I have created in my flash.
my xml reads as follows
<menu>
<item name="Home" action="gotoURL" variables="index.htm" message="This takes you to
our main page"/>
<item name="Programs" action="gotoURL" variables="programs.htm" message="Programs
section explains what we have to offer"/>
<item name="Checklists" action="gotoURL" variables="checklists.htm" message="Here we
have an indepth step by step checklist for enrolling to our program"/>
<item name="Media" action="gotoURL" variables="media.htm" message="media message
blahblah"/>
<item name="Events" action="gotoURL" variables="events.htm" message="events message
blahblah"/>
<item name="Resources" action="gotoURL" variables="resources.htm" message="resources
message blahblah"/>
<item name="Contacts" action="gotoURL" variables="contacts.htm" message="contacts
message blahblah"/>
<item name="Database" action="gotoURL" variables="database.htm" message="database
message blahblah" />
</menu>
so I want what is in “message” to be displayed when I roll over the buttons.
[AS]
curr_item.onRollOver = curr_item.onDragOver = function(){
var col = new Color(this.background);
col.setRGB(0xFCB841);
info_txt.text = this.message;
};
curr_item.onRollOut = curr_item.onDragOut = function(){
// restore color
var col = new Color(this.background);
col.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});
info_txt.text = "";
};
[/AS]
Am I doing in this script wrong? the only way I got for the message to appear is when I switched from “this.message” to “curr_node.attributes.message”. However, that only displayed the very last message of “database stuff blah blah blah” no matter what button it was.
I have attatched the zip file here. I would appreciate any insite on what Im doing wrong.
thanks!