lobstermittenz
10-08-2008, 02:33 PM
Hi! I just started using Flash and I'm trying to make a button that plays an animation when you roll the mouse off of it.
The way I had it organized was as follows:
The button's Up state has a movie clip with two things in it: a static frame for when the mouse is not over the button, and an animation for when the mouse has just moved off of the button. A gotoAndPlay(1) between the two animations keeps the second one from playing under normal circumstances.
I made a MouseOut function on the main timeline that I would like to execute a gotoAndPlay to that second animation nested within the Up state within the button. Can I do that? I tried the logical thing to my mind, which was buttoninstancename.movieclipinstancename.gotoAndPl ay();, but I get:
1119: Access of possibly undefined property up through a reference with static type flash.display:SimpleButton.
Am I trying to do something I just can't do this way? Or am I missing something elementary?
Thanks for your time. :)
The way I had it organized was as follows:
The button's Up state has a movie clip with two things in it: a static frame for when the mouse is not over the button, and an animation for when the mouse has just moved off of the button. A gotoAndPlay(1) between the two animations keeps the second one from playing under normal circumstances.
I made a MouseOut function on the main timeline that I would like to execute a gotoAndPlay to that second animation nested within the Up state within the button. Can I do that? I tried the logical thing to my mind, which was buttoninstancename.movieclipinstancename.gotoAndPl ay();, but I get:
1119: Access of possibly undefined property up through a reference with static type flash.display:SimpleButton.
Am I trying to do something I just can't do this way? Or am I missing something elementary?
Thanks for your time. :)