1 Reply Latest reply on Dec 10, 2006 3:19 PM by Newsgroup_User

    Delay

    what_name_isnt_taken
      i need to have a 5-10 second delay between two actions. this way flash will wait 5-10 seconds before sending information and causeing the page to refresh, any help?
        • 1. Re: Delay
          Level 7
          The runActions function is called in 10 seconds by the setInterval
          function. Put action in the runActions function.

          var delaySeconds:Number = 10;
          interval = setInterval(runActions, delaySeconds * 1000);

          function runActions():Void{
          //action here
          trace("call");

          clear(interval);
          };

          --
          Regards,
          Erick Souza
          www.ericksouza.com