A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Pause command

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    2
    Well, its the law of the Sod, but I think i've fixed it myself (4 once) about 5 mins after making this post..

    Simple really, just add another clear interval before the code is initialised.. seems to fix it..

    clearInterval(nDelayID);
    stop();
    var nDelayID:Number = setInterval(this, "pause", 6000);
    // where 4000 is 4000 milliseconds
    function pause():Void {
    clearInterval(nDelayID);
    play();
    // or nextFrame();
    }

  2. #2
    ninja army recruiter
    Join Date
    May 2008
    Location
    Austin, TX
    Posts
    6

    pausing

    but how do you pause a movieclip in general. not for a few seconds, but until the user unpauses it. i see that the pause() function was removed when AS2.0 came out for some retarded reason.

    all i want to do is pause a MC on button press, and unpause (resume from current frame) when the button is pressed again. should be the simplest things in the world. im writing AI in sidescrollers with complicated bosses/powerups/levels/animations but i can't pause lol...

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