PDA

View Full Version : Pause music for a pop-up window


easypony
01-16-2006, 04:01 PM
G,day folks,
I have some thumbnails (as buttons) of animated swf,s that I am going to enlarge and play in a pop-up window. There will be music playing when I press the thumbnail button.
Is there some code that will pause the music while the pop-up is displayed, then resume the music once the pop-up window is closed. I assume it would be added to the button.

Thanks - Easy

mcmcom
01-16-2006, 04:07 PM
how is the music playing? Is it a loaded external .swf file? Or a .flv file? or Streaming Audio. Whatever it is i am sure there is a stop or pause function.

For a site i did recently, i loaded an audio clip into a holder Movie Clip. my Clip's name was audio_mc.

I could then use standard Movie Clip Methods to stop and play the music.
(ie: audio_mc.stop();) But some people here may say its not the proper way to load music and you should stream it...

HTH
MCM

easypony
01-16-2006, 04:21 PM
I have 5 songs contained within a movie clip of an old fashioned record player, so no it is like yours not streaming.

mcmcom
01-16-2006, 04:35 PM
thats good! If they are all in a movie clip you can just reference the movie clip's Stop Method!

Something like :
myRecordPlayerMovieClip.stop();
will pause the song thats playing, then when your done you can just use play() and it will start again!

HTH
MCM