A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Play FLV mute all other sounds???

  1. #1
    Member
    Join Date
    Dec 2003
    Location
    Yukon, Oklahoma
    Posts
    44

    Play FLV mute all other sounds???

    OK, I thought this was simple but am having problems doing this.

    I have some background music playing on my website and when I click to play one of my FLV on the site I want to background music to mute. Also when the FLV is finish (complete) the background music back on.

    Any idea how to do this, I'm a little rustly on this but know it is easy to do, seen it done many many times?


    Thanks

  2. #2
    Senior Member
    Join Date
    Sep 2007
    Location
    UK
    Posts
    194
    If you have assigned the background audio to an object you can then use the setVolume command to reference it, turning it back up when the FLV hits the onComplete listener object...

    Maybe you can work this this....

    PHP Code:
    stop();
    _root.backgroundAudio.setVolume(_root.minSound);
    mp.onSoundComplete = function() {
        
    _root.backgroundAudio.setVolume(_root.maxSound);
    }; 

  3. #3
    Member
    Join Date
    Dec 2003
    Location
    Yukon, Oklahoma
    Posts
    44
    Sorry this isn't doing what I am needing.

    This is what I am needing. How do you control what the play button does in the FLVPlayback component?

    I know you can do things such as contentPath, but is there some script that will let me customize what the play buttons does, I just want to add to that script a var that will set the volume to all other sound to 0.


    Anyone know what the script is for this, I've tried the following:

    FLVPlayback.play = function(){
    }

    FLVPlayback.play.onRelease = function(){
    }


    Nothing works, any ideas????

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