I'm newer to ActionScript 3, so I'm not totally sure as to what I'm doing. Hopefully someone can help!
For scene 1 (Which is 40 frames long) I have this code for 4 buttons up to frame 39 -
import flash.events.MouseEvent;
button1.addEventListener(MouseEvent.CLICK, goNormal);
function goNormal(event:MouseEvent):void {
stage.frameRate = 20
}
button2.addEventListener(MouseEvent.CLICK, goMedium);
function goMedium(event:MouseEvent):void {
stage.frameRate = 38
}
button3.addEventListener(MouseEvent.CLICK, goFast);
function goFast(event:MouseEvent):void {
stage.frameRate = 60
}
button4.addEventListener(MouseEvent.CLICK, goEnd);
function goEnd(e:MouseEvent):void {
gotoAndStop("Scene 2", 1);
}
On the last frame (40), I have "stop();"
On scene 2, I have "play();", so that it plays, then on the last frame of that, "stop();"
I'm pretty confused.
Basically, I want to make it to where I can have the first 3 buttons change the FPS of the first scene, but I want it to loop back (and not go to scene 2). I then want button 4 to go to Scene 2 and end the file, but with a repeat button where it repeats to scene 1.
Thanks in advance!