This content has been marked as final. Show 4 replies
Try "this". You are getting confused on what "this" is. Within the onRollOver/RollOut functions, "this" refers to the button. Be careful with two things. MC buttons and button buttons behave differently. In an MC button, "this" is the MC. In a button button, "this" is the timeline containing the button.
Also be aware that "Menu" is reserved word. Renaming might be a good plan.
Thanks for the quick response!
What you say makes sense. I think I made the changes you suggested, but still no animation? I am attaching the new code after changing "Menu" to "MainNav". The Trace text still appears in the output window for all three states, just no animation?. I went ahead and removed the "Stop" actions from the animation MC (WorksWord) and did a quick movie test and the animation looped perfectly so it really seems like a targeting issue? I am really stumped.
and find out what "this" really is. Then you will see better how to target its children.
How quickly one forgets if you do not do this all the time!. Thanks for the tip - that led me to the solution. It came back with _level0.MainNav.WorksButton as "this". So I changed to the attached code and it appears to be working now.
Thanks for the help!