jbearclaw84
Technical User
I have a movie clip that acts like a button and inside the movie clip I have 2 frames. The code I have given the mc is:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
That all works fine. The problem comes when I try to add an animation inside this same movie clip (frames 3-20). Then place the code on (release) gotoandplay (3) to start the animation. This movie clip starts to flicker continuously between frames 1-2. I don’t understand why cause I have a stop on frame 2. It seemed after I added the xtra frames that the flickering started to occur. What am I doing wrong? Is there a better way to do this?
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
That all works fine. The problem comes when I try to add an animation inside this same movie clip (frames 3-20). Then place the code on (release) gotoandplay (3) to start the animation. This movie clip starts to flicker continuously between frames 1-2. I don’t understand why cause I have a stop on frame 2. It seemed after I added the xtra frames that the flickering started to occur. What am I doing wrong? Is there a better way to do this?