w/e
Boaroceraptorasaurus-Rex
- Reaction score
- 274
Ok, so I have an invisible button with one instance with a name of "btn".
I have a movieclip with an instance name of "anim"
The goal of this is to make a certain frame play when I rollover onto the button. The invisible button is stacked directly ontop of the movieclip. However, If I mouseOn and mouseOff too fast, the script doesn't go into the second part. I just stalls at frame 5.
(Using AS3)
Someone please tell me what I'm doing wrong!
I've uploaded the file where I have all of this, and I will award +rep and major props to whoever can help me out.
I have a movieclip with an instance name of "anim"
The goal of this is to make a certain frame play when I rollover onto the button. The invisible button is stacked directly ontop of the movieclip. However, If I mouseOn and mouseOff too fast, the script doesn't go into the second part. I just stalls at frame 5.
JASS:
btn.addEventListener(
MouseEvent.MOUSE_OVER,
function(evt:MouseEvent):void {
trace("I039;ve been clicked!");
anim.gotoAndPlay(2);
}
);
btn.addEventListener(
MouseEvent.MOUSE_OUT,
function(evt:MouseEvent):void {
trace("I039;ve been abandoned!");
anim.gotoAndPlay(10);
}
);
(Using AS3)
Someone please tell me what I'm doing wrong!
I've uploaded the file where I have all of this, and I will award +rep and major props to whoever can help me out.