ActionScript 3.0 :: Mute Only Sounds / Music?

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


Similar Posts:


ActionScript 3.0 :: Mute Only Sounds Or Music

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

ActionScript 2.0 :: Use With Music Is Affecting All Other Sounds - Button Sounds And Background Sound

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

ActionScript 3.0 :: Mute All Sounds?

Sep 16, 2008

anybody knows the AS to mute all sounds?

View 2 Replies

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

ActionScript 2.0 :: Play FLV Mute All Other Sounds?

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

ActionScript 3.0 :: Mute All Sounds In A Swfs Except One?

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

Actionscript3 :: Flash - How To Mute Different Sounds

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

ActionScript 2.0 :: Adding Button To Mute All Sounds

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

ActionScript 2.0 :: Captivate 4 Widget To Mute Sounds?

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

Actionscript 3.0 :: Simple Method To Mute All Sounds

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

ActionScript 2.0 :: Control - Mute All Sounds In A Whole Scene?

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

ActionScript 2.0 :: Mute The Music With A Button?

Mar 9, 2011

I have some songs in the same folder as i have my .fla file. I call the .mp3 file on the first frame and i want to be able to pause it or stop it when i click on a button. I would appreciate the code for that. Or maybe any other suggestion on how i should add music to my .fla file.

View 9 Replies

ActionScript 2.0 :: Way To Mute Music Forever

Dec 1, 2011

I got flash player, integrated in website.When I go to my site, backround music start to play automatically But if I stop the music and go to other page of my site, music starts again.[code]...

View 4 Replies

ActionScript 2.0 :: Can't Get It To Just Pause/mute The Music?

Sep 2, 2007

i have a problem with my music palyer i can't get it to just pause/mute the music. here's the code.

Code:
bgSound = new Sound();
bgSound.loadSound("ChrisBrow-RunIt.mp3",true);
playIt.enabled = false;

[Code]...

View 1 Replies

Actionscript 3 :: CS5 Flash App Has Sounds When Run Locally But It's Mute When Run In A Server?

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

ActionScript 3.0 :: Start A Music With Animation In Mute

Nov 1, 2010

I'd like to start a music with my animation in mute (volume 0), and then, use a "ON/OFF" button to hear the sound (volume 1 or 0).

View 6 Replies

ActionScript 2.0 :: Flash - Sounds MUTE On Page Navigate HTML?

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

ActionScript 3.0 :: Music Embeded Or It Should Be! Mute-volume Control?

Dec 7, 2009

I have an .mp3 file which is supposed to be embedded in the timeline. Since it is 6 minutes long, it not practical to run it streaming  on to the 7,200 frame. Consequently, in order to get it to run I have set the property to Event rather than sound. Also I have set it to repeat 99 times. How can I put in a volune control, or mute button. Can anyone help as I am quite new to this.

View 1 Replies

ActionScript 3.0 :: Audio Toggle - Mute / Play Music Again In SWF?

Dec 30, 2011

I call it a hiccup because the code works; but it's backwards. When I hit the audio button it plays the music and when I hit it again it stops the music. I wish for the music to play automatically when you enter the SWF and then you hit the button to mute the music if you wish; and then hit the button again to play the music again.

Here is the code I have:
toggleButton.addEventListener(MouseEvent.MOUSE_OVER, rolloverToggle);
toggleButton.addEventListener(MouseEvent.MOUSE_OUT, rolloutToggle);
toggleButton.addEventListener(MouseEvent.CLICK, toggleClick);
toggleButton.buttonState = "On";
var song:Sound = new TitleMusic();
[Code] .....

View 7 Replies

ActionScript 2.0 :: Mute Background Music To Play The VIDEO

Sep 2, 2008

how to change this on my 'flash template' and how to successfully mute the background music as my VIDEO starts to play.

I have uploaded my FLA file so that you can see what the problem is:

[URL]

The background music is set as per TEMPLATE that I got. I would like to add a quicktime movie to the website, under the page titled "TRAILER" - and have tried to do so myself by adding the QUICKTIME to the project through another SWF that I got elsewhere (a different 'template' so to speak).

The original quicktime file that I wish to add is available here:

[URL]

I'd like to be able to stop the background music when the viewer visits the TRAILER page of the site, as that is when the trailer starts to play. The music can stop abruptly, that is fine.

I'd like for the music to continue to play (either from the start, or where it was stopped) when any other pages are visited after watching of the trailer.

View 9 Replies

ActionScript 3.0 :: Mute The Music When A Person Clicks On The Video?

Nov 25, 2010

[URL]

I have a small problem I want to mute the music when a person clicks on the video page so they dont have to manually click the speaker to shut the sound off to hear the video. As well when they leave the page I want the music to continue playing. The music does not have to start over again, I just want it to mute while on the video page.

I tried using this: SoundMixer.soundTransform = new SoundTransform(0);

But it even mutes the video sound.

And I tried this: SoundMixer.stopAll();

It does kill off the background music, but I dont know how to turn on the music again when you leave the video page.

I prefer to use: SoundMixer.soundTransform = new SoundTransform(0); as it is easier to work with and you can adjust the volume as you like.

The music script and the video script

This is my action script for the music:
// Assign The URL to the mp3 to play
var req:URLRequest = new URLRequest("101-jakatta-

[Code].....

View 14 Replies

ActionScript 3.0 :: Mute/unmute The Volume For An Internal Aif Music File Using A Button?

Mar 9, 2009

I need the code to mute/unmute the volume for an internal aif music file using a button.

View 2 Replies

Flex :: Use Music And Sounds In AS3?

Feb 27, 2010

I participate in a important project right now and I have to implement a class that manages music and sound.The project that I'm making is developed in AS3 using the Flex enviroment.Is there a "best approach" or only different ones?

View 1 Replies

ActionScript 2.0 :: Stop All Sounds Except Background Music?

Feb 20, 2011

I have created a simple soundboard, with multiple buttons that play sounds upon release. These sounds are embedded within the 'hit' frames of the buttons. Only one can be played at once, so this has been applied to each button:

on (press){stopAllSounds ();}

This all works as planned so far. However, I would like to have a background music feature that would be exempt from the "stopAllSounds" command and thus able to keep playing regardless of what buttons were pressed (or until a designated stop button was pressed).

View 2 Replies

ActionScript 3.0 :: Stop All Sounds Except Background Music?

Jun 17, 2011

I am working on a website that has 11 sounds in one frame. All of the sounds are external, meaning I have to call each one of them every time I want them to play, which happens when I click on specific MCs in my stage. Each MC I click all sounds stop and the new one starts playing. So far, so good.

But therein lies the problem: I want this to happen but keep background music playing. I have no idea where to start from.

View 1 Replies

ActionScript 2.0 :: "Mute All Sounds" Script And Volume Bar?

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

ActionScript 3.0 :: Random Animation + Random Sounds + Background Music?

Feb 19, 2012

A background music looping in the back, that starts with the opening of the swf and never stops. I think I achieved that with this bit of code :import flash.media.Sound;

import flash.net.URLRequest;
import flash.media.SoundChannel;
bg music[code].....
 
Finally I need to jump from frame to frame randomly to play various animations. For example :Project starts, background music starts playing, we hear random sounds played one after the other, while some animations can be seen on screen, playing in a random order.

View 9 Replies

ActionScript 2.0 :: Make A Music / Sound Control And FX Sounds Control

Mar 21, 2011

im trying to make a music/sound control and FX sounds control,so i have my FX volume level as a variable(FX_vol) and also the Music/sound volume level as a diffrent variable(M_vol),so i set them as sounds that i can use trough coding:

[Code]...

View 2 Replies

Actionscript 2.0 :: Mp3 Player - Keep The Mute State Unchanged When The Songs Are Playing Until The Mute Button Is Pressed Again

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







Copyrights 2005-15 www.BigResource.com, All rights reserved