[EXAMPLE] Learning from Books - frameRate
Changing the frame rate is new to ActionScript 3. Here is an example.
http://www.heritagecustomwoodworking...frameRate.html
the movie consisits of 3 key frames with tweens set to 12.
each button changes the frameRate to 6(slow), 24(medium), and 36(fast).
thought I would add this
Code:
btnSlow.addEventListener
(MouseEvent.MOUSE_DOWN, slowPaceHandler);
btnMed.addEventListener
(MouseEvent.MOUSE_DOWN, medPaceHandler);
btnFast.addEventListener
(MouseEvent.MOUSE_DOWN, fastPaceHandler);
function slowPaceHandler(evt:MouseEvent):void{
stage.frameRate = 6;
}
function medPaceHandler(evt:MouseEvent):void{
stage.frameRate = 24;
}
function fastPaceHandler(evt:MouseEvent):void{
stage.frameRate = 36;
}