A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: pause actionscript

Hybrid View

  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    11

    pause actionscript

    I need to pause my flash auto presentation using button file. Rightnow I’m using

    on (release) {
    stop();
    }

    & for play

    on (release) {
    play();
    }

    But if I press pause button, movie clip animations are not stopping. How to pause all movie clip animation? If I press pause button I want to pause everything (movieclip animation, sound and others)

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    what is that "movieclip animation"? another movieclip?
    When you use stop() or play() you stop the current timeline.
    otherClip.stop() whould stop the instance "otherClip" timeline.
    If the sound is streamed, again, mute it with musicInstance.stop()
    If you use attachSound use soundObject.stop() or else if it's an event send it to an empty keyframe that has a stopAllSounds() on it.

    My suggestion: make a function tp stop all timelines.

    For further info, I think you should give more details on your problem. Right now it is so vague that we need to make a lot of assumptions.

    gparis

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