inqy
10-25-2008, 05:13 PM
Soo, I have a pretty simple flash interaction going on. One of my buttons is connected to a function that has a gotoAndStop function for 6 different frames.
What I've been trying to do is loop back to the start frame, when the end frame is reached. I tried gotoAndStop(start frame #), I tried prevFrame(), I tried labeling the start frame and doing a gotoAndStop("frame_label"). I guess I'm missing something, because it won't return to the start frame.
Can anyone help me? My current problem code is below.
color_btn.addEventListener(MouseEvent.CLICK, color8);
function color8 (e:MouseEvent):void{
gotoAndStop("colors");
}
-- new info:
It seems the above script actually works. But when my movie returns to the "colors" frame, it doesn't play the ActionScript on that frame. The AS plays the first time around.
What I've been trying to do is loop back to the start frame, when the end frame is reached. I tried gotoAndStop(start frame #), I tried prevFrame(), I tried labeling the start frame and doing a gotoAndStop("frame_label"). I guess I'm missing something, because it won't return to the start frame.
Can anyone help me? My current problem code is below.
color_btn.addEventListener(MouseEvent.CLICK, color8);
function color8 (e:MouseEvent):void{
gotoAndStop("colors");
}
-- new info:
It seems the above script actually works. But when my movie returns to the "colors" frame, it doesn't play the ActionScript on that frame. The AS plays the first time around.