ActionScript 1/2 :: Set Sound Volume To 0 On A Mute Button?

Mar 10, 2010

I'm very new to flash and i've made a movie for a website [url]... and i want to set the sound to 0 on my mute button at the moment i've put [code]...

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Sync Mute Button And Volume Bar?

Oct 1, 2010

I'm creating a movie with an FLVPlayback component. I used the standard Play/Pause, Mute and Volume Bar components supplied with CS5.I have had no problem getting the individual components to work by themselves... the play/pause button plays or pauses, the mute button mutes, and the volume slider controls the volume. But how do I set the volume bar to 0 when the mute button is on, restore the original volume when the mute button is turned off, and turn on/off the mute button if the volume bar is dragged?

View 2 Replies

ActionScript 1/2 :: Volume Slider Collides With Mute Button?

Mar 4, 2010

_root.createEmptyMovieClip("vsound",_root.getNextHighestDepth())vSound.attachAudio(ns);[code]....

Before i had the volume slider, the mute button was fine. but now, it doesn't work anymore.

View 1 Replies

ActionScript 3.0 :: Implementing Mute Button To Go With Volume Slider

Dec 11, 2011

I have a volume slider and I want to implement a mute button to mute the sound no matter where the slider is and unmute again when clicked or the slider is moved. I've tried to do it but so far I've managed to mute it and unmute it using the above methods, but whenever I move the slider to another position and go to mute it again, it doesn't work.

View 9 Replies

ActionScript 3.0 :: Add A Mute Button To Container Swf That Controls Volume?

Nov 12, 2007

I have a swf that loads external swfs. I am trying to add a mute button to the container swf that controls the volume, so the user can mute and unmute the sound. However, I cannot figure out how to accomplish this. I cant get setVolume from AS2 to do the job. I have also tried SoundTransform.volume=0 and that didnt work.

View 13 Replies

ActionScript 2.0 :: Creating Volume Mute Button For Audio Player?

May 2, 2008

I'm creating a mute button for an audio player that I pieced together, and it seems to be working alright except when I advance to a new track. If the volume is NOT muted and I click a new track it's fine, but if the volume is muted (i.e. at "0") and click a new track it remains at 0 and won't un-mute when I click the button.. though if I click the button to un-mute it and then select a new track it's fine, so I think there's something in my playSong() function that's interfering, I just can't tell what it is.

Code:
stop();
Player Variables
volume = 100;
current_song = 1;
[Code] .....

View 1 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

ActionScript 2.0 :: Add Mute Sound And Unmute Sound Script In A Single Button?

Sep 21, 2011

how to add mute sound and unmute sound script in a single button?

View 2 Replies

ActionScript 2.0 :: Make A Mute Button For The Video That Can Instantly Make The Volume 0?

Nov 22, 2009

Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:

ActionScript Code:
m.onPress = function() {

[code]........However, it doesn't seem to work.

View 0 Replies

ActionScript 3.0 :: Mute Button For Sound In Timeline?

Sep 27, 2008

I want to add a mute / unmute button for sound that must remain synced to my animation. It sounds like a pretty straightforward task and I'm embarased that THIS is where I've gotten stuck while I've gotten through some stuff I thought would be way harder on my own. The reason this is a problem is because in considering 2 approaches I've run into a wall. I'll gladly accept any advice to circumvent the roadblock either way.

Approach 1 is to add the sound to the library, drop it in the timeline as a stream and build my animation to match. That works just fine, but I can't find an instance name for the sound to run a setVolume function against (not even sure if it would be that simple, but without an instance name, I can't move any further forward; I tried labeling the first frame of the sound layer 'narration' and trying refernces like timeline.narration, timeline, narration, and so on, but no joy).

Approach 2 is to import the sound using URLRequest, instantiating the sound and setting the volume against that instance. Works like a charm but the sound drifts out of sync with the animation (that was synced perfectly when it was in the timeline). This is my less appealing option because I'm using nav buttons taking me to various frames and the sound (which used to pick up at the right frame when it was in the timeline) just plays on without regard to the point in the animation. It's not a surprise to me that this happens, but if I were to do this I'd need to write code into my nav buttons to pick up the right spot in the sound instance and I'm not sure how to do that.

View 5 Replies

ActionScript 3.0 :: Mute Button- Turning Sound Back On?

Dec 30, 2008

I've made a mute button for my embedded FLV sound. I'm usingSoundMixer.stopAll(); as the controlling action. How do I start thesound up again? From what I could tell, there wasn't aSoundMixer.playAll();, which would be the logical choice.The sound is embedded into the FLV, so I don't have direct

View 5 Replies

ActionScript 2.0 :: Mute Toggle Button To Specific Sound Clip

Jun 3, 2011

Creating the necessary code to make a mute/unmute button in ActionScript 2? I would like the "toggle" button to control a specific sound clip only -- not any other sound within my presentation. Basically I have an intro animation of about 20 seconds that has background music to it. I would like to add a mute toggle button that controls only this music clip and not any other sound found within my presentation. Is this possible? I've seen code for "globally" muting or stopping sounds. I need code for just a specific music clip (sound object?).

View 6 Replies

ActionScript 3.0 :: Controlling Sound File With Play Stop And Mute Button

Oct 6, 2010

the method for stopping/playing sound in 2.0 don't work for 3.0. i can stop the sound by going to a different page/frame on the site.but i want the buttons.

1. play button?

2.stop button?

3.mute button?

View 1 Replies

ActionScript 3.0 :: Sprite Button Not Toggling Sound Volume?

Jul 21, 2010

This is a completely AS3 scripted, and dynamic project, meaning I cant use any assets from the library.

1 - This button is a mute. � Currently the loaded sound now fades in with a timer.� I want the button to over-ride any sound elements on the stage: the mp3 and later a flv movie as well.� In the below example the button only interferes with fade, and dosen't actually override it, after the fade - it dont do jack. � SoundMixer.stopAll(); will of course kill everything but I cant toggle this(can I?)


2 - The toggle button itself � I've loaded two png's into a sprite, and created a toggle button from them using an if statement. � Is this best practice? or would you recommend something else?� Perhaps SimpleButton?

ActionScript Code:
var btmUpURL:String = "a_icn-1.png";
var btnDwnURL:String = "a_icn-0.png";
var btnLoader1:Loader = new Loader();
var btnLoader0:Loader = new Loader();

[code].....

View 9 Replies

ActionScript 2.0 :: Creating Volume Box That Appears When Sound Button Pressed?

Oct 27, 2003

Basically I am working on my personal portfolio and am not that good with AS. I have made a volume box that appears once the sound button is pressed. This box includes on and off buttons. The problem is how do I make the box stay, once the user clicks on a different button e.g. home? Its it simply a case of using keyframing or is it AS? and example of what I am trying to create is [URL]. Check the sound options.

View 1 Replies

ActionScript 3.0 :: Flash Sprite Button Not Toggling Sound Volume?

Jul 21, 2010

This is a completely AS3 scripted, and dynamic project, meaning I cant use any assets from the library.

1 - This button is a mute.

� Currently the loaded sound now fades in with a timer.� I want the button to over-ride any sound elements on the stage: the mp3 and later a flv movie as well.� In the below example the button only interferes with fade, and dosen't actually override it, after the fade - it dont do jack. � SoundMixer.stopAll(); will of course kill everything but I cant toggle this(can I?)

2 - The toggle button itself� I've loaded two png's into a sprite, and created a toggle button from them using an if statement. � Is this best practice? or would you recommend something else?� Perhaps SimpleButton?

[code]....

View 1 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

Flash :: Reverse Sound Volume Math For Volume Slider?

Feb 1, 2010

I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :(

Dragging the slider down will make the sound louder, while dragging up lowers it.

Here is my code below dealing with the volume slider.

[Code]....

The (-4) is an offset value so when you drag it all the way to turn it off, it's 0 and not 4. I need to reverse this somehow, so the traces above will swap... going down will make userVolume = 4 and going up will make it 30.

View 4 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 :: Mute The Sound And Still Get Sound Data From SoundMixer.computeSpectrum?

Jun 25, 2011

I wrote something to capture sound from my microphone. I can visualise the sound data with SoundMixer.computeSpectrum.is there a way to mute the sound and still get sound data from SoundMixer.computeSpectrum?Now I have this:

sc=son.play();
var t:SoundTransform = new SoundTransform(0, 0);
sc.soundTransform = t;

but I do not get any data. if I pump up the volume, data comes through again(I need to mute it because it will echo otherwise).

View 1 Replies

ActionScript 3.0 :: Mute Button Toggled To "mute" By Default?

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

IDE :: How To Mute The Sound

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

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

As2 :: Mute Sound In Flash?

Feb 10, 2011

I want to mute the sound not pause....i already using setVolume script on other buttons.

View 1 Replies

ActionScript 3.0 :: Pause And/or Mute A Sound?

Sep 2, 2008

i'm trying to pause and/or mute a sound, with little success.i've found out that something like 'sound.play(pausePosition)' might fail on sound-clips with low sampling-rate.however when i try to mute a sound with a 48000Khz sampling rate it simply won't work.

i've tried both -

soundChannel.SoundTransform.volume = 0
- and -
SoundMixer.SoundTransform.volume = 0

however both won't mute the sound and when traced return 1.

View 1 Replies

ActionScript 3.0 :: Can Mute MICROPHONE Sound

May 30, 2009

can i mute MICROPHONE sound using AS3?

View 1 Replies

ActionScript 3.0 :: Mute Sound On Timeline?

Aug 18, 2011

We have a movie clip containing a set of sound files.  All sound is on the timeline. We have tried the following, but none works. 

[ on the frame where the sound starts]
if (deactivate) {
SoundMixer.stopAll();
}

[Code].....

View 3 Replies

ActionScript 3.0 :: Get Sound Toggle (mute And On)?

Feb 20, 2009

I can get my mc button to mute it once, but never turn on again.The audio is a voice over in streaming in the main timeline.

Code:
var soundOn:Boolean = true;
onoff_btn.addEventListener(MouseEvent.CLICK,toggleSound);
onoff_btn.buttonMode = true;

[code]....

View 6 Replies

ActionScript 3.0 :: Mute Sound From A Specific MC?

Jul 26, 2010

Is it possible to mute sound coming from a MC? as i have a music player inside a MC called musicBar thats on the stage, and just want to mute the sound of the music on a button press, but not any other sounds.What would be the code for this? i'm pretty bad with AS3 so i'd probably need the code pasted...Or i can attach the AS for the music player (the AS is located inside the musicBar MC) and someone call have a look at it? The player has volume control and mute, so the code for it could be used for another button,

View 3 Replies

ActionScript 2.0 :: Mute WITHOUT Sound Objects?

Dec 18, 2003

I have some sounds in movie clips, this is because that is the only way to be able to select SYNC Stream mode (to keep the movie in sync with the narration). Thus I don't want to use Sound Objects because they can get out of sync...

Is there any way to control volume (so I can mute) with out using Sound Objects ?

View 2 Replies







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