A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Stopping a movie for 5 seconds and then let it start again.

Hybrid View

  1. #1
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    Something like this:
    PHP Code:
    import flash.utils.Timer;
    import flash.events.TimerEvent;

    function 
    waitAS3(mc:MovieClips:Number 10):void
    {
        
    mc.stop();
       
        var 
    timer:Timer = new Timer(s*10001);
       
        
    timer.addEventListener(TimerEvent.TIMER_COMPLETE, function()
        {
            
    mc.play();
        }
        );

        
    timer.start();
    }

    // example:
    waitAS3(this5); // stop this timeline, 5 seconds 

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    3
    Exactly like that. Work very nicely.
    Thanks alot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center