Hi tomaugerdotcom,
I tried your solution, however I get the following error at compile time.
1151: A conflict exists with definition timelinePause in namespace internal.
I don't have to use the code as it was from the adobe site.
All I am looking for is a solution for this problem in ActionScript3.
Everywhere I have looked I have found solutions for pausing the timeline, they only take into account wanting to pause the timeline on one frame. They don't allow for pauses across multiple frames.
Main Topics
Browse All Topics





by: tomaugerdotcomPosted on 2009-01-05 at 05:29:44ID: 23295062
Hi there! There are lots of ways to do what you're asking, but to keep it simple here's what I suggest:
oid {
ener(Timer Event.TIME R, timerHandler);
ener(Timer Event.TIME R, timerHandler);
ener(Timer Event.TIME R, timerHandler);
On frame 1 put this code:
function timerHandler(evt:Object):v
this.play();
}
...
Also on frame 1, add this code so you get your 2 second pause:
this.stop();
var timelinePause:Timer = new Timer(2000, 1);
timelinePause.addEventList
timelinePause.start();
...
Then on frame 20, just add the second part of the code again:
this.stop();
var timelinePause:Timer = new Timer(3000, 1);
timelinePause.addEventList
timelinePause.start();
...
And on frame 35, add this code again. Notice that we're not re-defining the function every time.
this.stop();
var timelinePause:Timer = new Timer(2000, 1);
timelinePause.addEventList
timelinePause.start();
There are more elegant ways of doing this, but see if you can get this working first!
T