4 Replies Latest reply on Aug 31, 2011 8:18 AM by SFichter42

    Action Script Delays In Timeline Deactivated on Second Loop By Movie

    SFichter42

      Guys,


      This has been driving me nuts now for 3 days.  I can not wrap my head around why this is happening.  Below summarizes the problem

       

      WHATS BEING USED

       

      Flash CS4 10.0.2

      Actionscript 2.0

       

       

      WHATS GOING ON IN THE TIMELINE

       

      I have a embedded movie in the timeline.  Also in this timeline is a actionscript delay.  When the animation starts, the timeline reaches the embedded movie and plays then it reaches the end frame with the following actionscript delay.

       

      stop();
      var interval:Number = setInterval(
        function():Void {
          play();
          clearInterval(interval);
        },
        10000
      );

       

      The delay works perfectly.  What's killing me is that when the timline loops a second time the delay fails to work.  So the animation works pefectly one time and falls every time the animation loops. The werid part is if I remove the embeded movie layer the delay works perfectly on the following loops.  So it appears that this delay is deactivated by the embedded movie!!!

       

      Why would my movie layer kill the actionscript delay in the timeline?

       

      Thanks for your help!