A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to make sound pause temporarily

Hybrid View

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    18

    How to make sound pause temporarily

    I need to know how to simply pause the music so I can resume it later. How can I make that possible? Please and Thank you.

  2. #2
    Senior Member sharma's Avatar
    Join Date
    Oct 2004
    Location
    Canadia
    Posts
    1,017
    put the music streaming ina movie clip with an instance name of "music"
    have another movie clip onstage called "pause"

    within "pause"

    have a stop action on frame one..
    and on a frame of your choice (the higher the frame.. the longer the pause)
    code:

    _root.music.play();
    _root.pause.gotoAndStop(1);


    create a button to call up the pause MC
    and put this on it
    code:

    on(release){
    _root.music.stop();
    _root.pause.gotoAndPlay(2);
    }

    what the hell's a motion tween?

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