Ultrashock Forums > Flash > ActionScript
AS3 - Changing delay of each frame problem

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS3 - Changing delay of each frame problem
Old 2009-07-03

Hello,

I'm using the following code in the first frame to delay my swf a set time for each frame:

Code:
stop();
var myTimer: Timer = new Timer(8000);
myTimer.addEventListener(TimerEvent.TIMER, timerF);
myTimer.start();

function timerF(e:TimerEvent):void {
    nextFrame();
}
This works fine but I want to be able to change the length of the delay for each frame after the first. Can anyone help me with the script that I need to use for each following frame that I want to change the delay setting for? I've tried alsorts but my as3 knowledge is limited so any help would be greatly appreciated.

Thanks
postbit arrow Be the first to comment! | 119 views postbit arrow Reply: with Quote   
Registered User
tom121 is offline
seperator
Posts: 2
2009-07-03
tom121 lives in United Kingdom
seperator
Thread Tools
Display Modes Rate This Thread
Rate This Thread: