Pity the noobie. In my project, I’m loading swfs that I want to pause for a second or two at various frames on their timeline. I thought I should write one package that can serve the different swfs. I’m trying to pass the “pause time” to the package. Then in the package, stop() the timeline. After the delay specified in the “pause time,” start() the movie clip again from where it was stopped.
I apparently lack the neural networks to figure this out. Here is the package code so far. It isn’t working for reasons I’m sure you will know.
package
{
import flash.utils.*;
public class insightTimer extends Timer
{
public var pauseDelay:Number = 0
var pauseTimer:Timer = new Timer(pauseDelay*1000, 1);
public function pauseHere(pauseDelay):void
{
this.stop();
pauseTimer.addEventListener(Timer:TimerEvent, startPlay);
pauseTimer.start();
}
public function startPlay(evt:Timer):void
{
this.play();
}
}//end class
}//end package