Flash Crash Help

Out of context: Reply #7

  • Started
  • Last post
  • 8 Responses
  • jaybee0

    I have an init() function that sets the initial settings for all movieclips, i've also included ALL clearIntervals too here, coz' when the loop is over it calls this function that reset all settings and the loop() function to animate.

    Like so:

    function init():Void{

    //all mc settings

    clearInterval(intervalId);
    clearInterval(intervalLoop);
    }

    function loop():Void{

    var a0:Number = 1000;

    intervalId0 = setInterval(this, "scene1", a0);
    intervalLoop = setInterval(this, "loop", 10000);
    }

    function scene1():Void{
    //all mc settings
    clearInterval(intervalId);
    }

    i think it should be fine.

View thread