ActionScript 3.0 :: Mute All Sounds In A Swf Except For One?
Mar 31, 2010
To stop all sounds in a swf, I'm using the following code.
var transform1:SoundTransform=new SoundTransform();transform1.volume=0;flash.media.SoundMixer.soundTransform=transform1;
This mutes all sounds. Now there is an issue, I want to stop all sounds but one (i.e. "music.mp3").
View 1 Replies
Similar Posts:
Sep 16, 2008
anybody knows the AS to mute all sounds?
View 2 Replies
Jun 8, 2009
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.
how to do this, I'm a little rustly on this but know it is easy to do, seen it done many many times?
View 2 Replies
Mar 31, 2010
To stop all sounds in a swf, I'm using the following [code]...
This mutes all sounds. Now there is an issue, I want to stop all sounds but one (i.e. "music.mp3").
View 3 Replies
May 24, 2011
i want to have the music always playing and the ability to mute different parts. It is for a project where you click on different people and they come to life to play music. a stop and play would not have them in snyc. I have not been using action script long
var my_sound:Sound = new Sound();
my_sound.load(new URLRequest("triumphant.mp3" ) );
function setMute(vol){
var sTransform:SoundTransform = new SoundTransform(0);
[code]....
View 1 Replies
Jan 28, 2010
I am using the Sound class to play both music and sound in my game (.mp3). I am using the:
SoundMixer.soundTransform = new SoundTransform(0);
But, I will need something to mute only sound or only music, this would mute both.
View 1 Replies
Jan 28, 2010
I am using the Sound class to play both music and sound in my game (.mp3). I am using the:
SoundMixer.soundTransform = new SoundTransform(0);
But, I will need something to mute only sound or only music, this would mute both...
View 2 Replies
Jan 26, 2010
I've produced an instructional animation for a client who now wants to add a mute button. There are several sound clips throughout the movie. How do I achieve this?
View 4 Replies
Jun 24, 2010
We do not use the playbar for our projects.. we use independent buttons.I struggled making a widget /button for Captivate 4 that would Mute/Unmute all sounds... In case you are struggling too... here is the code that worked for me:(you will need to know how to make a widget)
var soundOn:Boolean = true;
var globalSound = new Sound(_level0);
muteOffOn_btn.onRelease = function(){[code]....
View 0 Replies
Mar 5, 2009
My flash application plays and streams lots of sounds at different and random times.it also has some loaded swf with sound...is there any simple method to mute all the sounds using as3.
View 2 Replies
Sep 27, 2002
Is there a way to mute all sounds in a whole scene? I want to have a button that turns off all sounds and stops all sounds from playing until i press the button again. The button is done and there's a "set(gallerysound,1) instruction in it when first pressed, and then it changes to zero the second time around. But now I'm stuck. How do i use this var to control the sounds in other keyframes? (preventing the sounds from playing until gallerysound changes again) ?
View 7 Replies
Oct 12, 2010
I'm making this small app in Flash CS5 using AS3. Sounds are being reproduced using flash.media.Sound and flash.media.SoundChannel. Locally , everything sound perfect, but when I run the game from a server it just goes mute.
View 1 Replies
Mar 24, 2012
I have just done couple of banners for Dettol with BG sound, now the client wants the sound to be stopped when he navigates away to a different web pageThe issue is Mouse-over the banner and press alt-tab. The music keeps playing and you can't stop it!Without mouse-over (music is playing at thispoint), press alt-tab and go to another application. Press alt-tab and comeback to the browser and the music starts playing, even though the mouse is not over the animation for reference
View 1 Replies
Mar 25, 2006
getting the script that stops all running sounds in the flash movie?I want to make a button that when pressed all sounds will stop, and when pressed again all sounds play again.Also, I need to know how to make a volume bar to increase or decrease the sound volume. Can any one give me a simple way to do these 2 things?
View 5 Replies
Feb 3, 2009
I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.
View 6 Replies
Aug 5, 2010
So i have a flv playing on a flash load. I need the mute button toggled to "mute" by default.
Code:
my_FLVPlybk.muteButton = mutebtn;
that is the mute button instance i am using.
View 1 Replies
Apr 16, 2010
I followed the mp3player tutorial (part 3) from [URL] and got it working fine. Only problem is that the setVolume I'm trying to use with my music is affecting all my other sounds - button sounds and background sound. I'm aware of the createEmptyMovieClip/attachSound approach and got it working on my other sounds. But Lee's tutorial-mp3player is using a slight different technique, and so my normal approach doesn't quite work.
[Code]....
View 7 Replies
Feb 7, 2011
I want to synchronize sounds perfectly to do a kind of Audio Mixer, using different sounds. [URL] does it perfectly, I've been researching and researching and I just don't know how to do it! How does [URL] synchonize audio so perfectly? you can even change sounds and the new ones will come on time! How do I do that? Is it just Action Script? or something else?
View 1 Replies
Nov 29, 2009
I have a film with 4 scenes in it: Here's a link to the film and as you can see the film does not play the music the second time because of the StopAllSounds function which is probably the wrong code to use. The first scene is just a button with 1 frame, a stop action and a music clip. The second scene is the film. The third scene is the credits fourth scene is a Play again button. I have a Stop all Sounds action on the fourth scene because if I do not use it and I press the Play Again button, the music from the first song keeps playing but also the music from the film starts up again so it starts to play twice. What I want to know is, how do I get the music to stop at the end of the film but start up again once I hit Play Again?
I am using Flash CS3 if that helps and using Actionscript2.
View 2 Replies
Sep 25, 2005
I'm working with the FLVPlayback component but the mute functionality is a bit of a black box to me and it seems Macromedia has forgotten to mention anything about it in the help files.I'm trying to mute a playing movie with actionscript. The closest I got is using myFLVplayback.volume = 0. However volume 0 is not the same as mute and pressing the mute controller will do nothing and leave the volume at 0.I can use the volume slider but I can't stand not knowing how to mute the sound through actionscript.
View 6 Replies
Feb 1, 2002
How to create a mute button in flash so that when its clicked all sounds are muted, however, when clicked again all sounds resume but without starting again from the beginning.
View 4 Replies
Jan 10, 2011
something probably quite simple. fla that I need to add a mute/unmute button to. It would be even better if mute/unmute occured onmouseover, but no doubt this is a more complex question?
View 2 Replies
Aug 9, 2009
This is a simple mute toggle button for an mp3 player.
I first var sound: Sound
Then I have the function
//mute the current sound
function muteSound ()
[Code]...
View 3 Replies
Nov 25, 2010
I load a movieclip in another project. this loop.swf has music in it.[code]...
After some seconds, I want to unload or easier "mute" this clip.
When I unload it, even when I load a new clip in it, the music continues to play.
View 3 Replies
Jan 18, 2011
In the following code how to mute the speakers
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
[code]....
View 1 Replies
Feb 10, 2011
I want to mute the sound not pause....i already using setVolume script on other buttons.
View 1 Replies
Apr 26, 2011
I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work. I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.I tried setting the mx VideoDisplay volume to 0 and that does not work.I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.
View 1 Replies
Jun 15, 2011
I'm trying to work on a AS3 file with a video in it.how to have the flv muted on start up?So far I have this script:
import flash.events.*;
import fl.video.*;
//-----------------
[code]....
View 1 Replies
Jan 6, 2010
i have 5 buttons all that do there thing, they have sound on over and hit.but i need a way to mute and unmute everything (including these buttons sounds) iv tried everything. The button changes state to mute and unmute, but the sound still plays for over and hit. This is where I am now. PLEASE HELP!!! urgent for coursework.
1st Frame of main timeline:
var globalVolume:Sound = new Sound(_root)
vol = true;
Mute movie clip:
on (release) {
if(vol == true) {
globalVolume.setVolume(99);
gotoAndStop(0)
[code]...
View 6 Replies
Sep 23, 2010
I have an flv file that i am loading externally and want to start the video of with no sound and let the user click the mute_btn to turn the sound on. I am having problems with the code. the video starts with sound on and i want it to start silent. what do i have to add to my code to make this happen?
[Code]...
View 0 Replies