okay, this is my first post here, so have patience, please…
i have been working on creating a button movie clip so i can controll all the aspects of the button, specifically to create a drop down menu that appears beside the button when moused over… i am using dynamic text fields so i can use the button MC over and over and just tell it what i want it to say…
It does display the text in the initial text field (visitor_mc.text_txt.text), but not in the sub-menu text field (visitor_mc.sub1_txt.text)… by the way the sub-menu is just later in the timeline at a label i called “rollover”… confused yet? here’s the code i was using…
It is abit hard to say without seeing what you have, but here we go…
I think your code, visitor_mc.sub1_txt.text = “Classes”;, is not working because visitor_mc does not exist when that command is executed… Why don’t you move that line right under the frame where ‘rollover’ label is and see if it does the trick for you…
that would work except that visitor_mc is the instance name of the MC button that i created and i think you are right that it doesn’t work cos it is not loaded at that time, so… how does one go about sending that info down the visitor_mc’s time line to the “rollover” frame?:-\
thanks for any help y’all can offer!!!
Howdy… You can call me dumb, but I am not really able to imagine what you have in your file and what you are exactly trying to… Would you create a little sample that show what the problem is and what you are trying to???
Okay… Whole lot easier to answer the question with the file… =)
This is the script from the frame 1 of the main timeline…
visitor_mc.trackAsMenu;
visitor_mc.text_txt.text = "zap";
//this is the part that doesn't work...
//sub1_txt is the dynamic text field in frame 15 "rollover"
//visitor_mc.sub1_txt.text = "pop";
subText1 = "pop";
visitor_mc.sub1_txt.text = “pop”; is not working as you would expect, because that sub1_text does not exists on the frame 1 of that movieclip timeline… It exists from frame 15 to 25…
So, I have added another variable and assigned the value to it…
I use that variable from the movieclip itself… Frame 15 of the mc_navbtn_up