A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Sound Problem, Please Help

  1. #1
    Hi i have this streamed voice over that goes on thru out a standalone application, now the voice over starts at a particular interval and im using the normal method of stream that is provided in flash 5.

    I have this intro music that plays and im loading that using the s=new sound() option, and i start the music, now once the user clicks a buttons saying presentation, he goes into the section where the voice over starts, and i reduce the volume of the background intro music, like a fade effect every three frames using the s.setVolume(90)...till i use s.stop(),

    then what happens is my voice over volume also cuts off, now how can i avoid that from happening, please help me out here, cause this product has to be delivered today itself.

    Thanks in advance

  2. #2
    Tim (Super Moderator) Northcode's Avatar
    Join Date
    Dec 2000
    Whitehorse YT

    s = new sound() creates a global sound object so s.stop() will stop all the sounds in your movie. If you attach a sound object from your library to s, then you can stop it without killing everything.

    // this creates a global sound object
    s = new Sound();
    // associate sound from library with sound object
    // stop all sounds in movie
    // just stop the "bgmusic" sound 

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