A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: pausing an animation

  1. #1
    GugZ
    Join Date
    Nov 2000
    Location
    INDIA
    Posts
    36
    Hi,

    I want to pause an animation for a few seconds.
    I dont want to increase the frames to make the animation to pause.
    can any body tell me how i can do it using actionscript.

    thanks
    GugZ
    India

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    123
    Haven't tried this, but give it a shot...

    Make a function that stores the current frame in a variable, stops the movie, then when told, restarts at that stored frame. Kinda get it? Something like this...

    Code:
    function pause (value) {
        if (value==pause) {
            pause_frame = _currentframe;
            stop;
        } else if (value==play) {
            gotoAndPlay (pause_frame);
        }
    }
    lemme know how that works
    [Edited by spielboy on 05-23-2002 at 05:53 PM]

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