How are you all going?? I'm having a bit of trouble with muting some sound and unmuting it with the same button.[code]What i'm trying to do is mute the sound when the button is clicked...and then when it's clicked unmute the sound..I was thinking about using an if statement to check if the volume was set to 0 and if so change it to 100 and visa versa.i'm muting the sounds on the root level of my swf...
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).
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.
I have the following code:[code]basically what i need to do is play an internal mp3 from the library that has been exported for the first frame and has the same name as in the array.I have tried the attachSound method but it isn;t working, any ideas?
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.
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,
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 ?
I'm using some loopable tracks in a game I'm making and they are imported mp3 files in the .fla file. I export them for actionscript as different classes and then create them as variables, basic stuff.
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.
I have a small loop of a beat. it automatically loops in flash, i need a button to mute this specific sound (so i can put other different sounds) and another button to unmute it... i've seen how to mute a sound (or set volume to zero) but that only works if the song is beiing played on the timeline, but this sound is looping!
I've built an FLV player using Lee Brimelow's AS3 video basics tutorial. I've pieced together my play/pause buttons, but I haven't been able to figure out how to mute the sound. I've tried using soundTransform a bit, but I'm not sure if that only works for the flvPlayback component. My mute/unmute toggle button is working, but the actual muting functionality not. Here's my current failed attempt.
Situation: I have a project I'm working on where I have buttons which make click sounds on their own, and also take you to other scenes where a sound will immediately play. There are also three movieclips involved, total my base movieclip and two independent ones that load on top of that. Problem: I want to include a Mute button so that you can turn off all sounds, but can't figure out how to do that..As I understand it, stopAllSounds won't work for me, because as soon as someone hits another button, a new sound will play.
Found an old topic, and have the exact same problem!Quote:I have an animation I've created for an average Public Service Announcement banner ad project.I need the user to be able to not be bothered by the sound at first, but if they choose to hear it they can rollover the banner and the sound will play, and once rolled out the sound ceases.I know you can do:
mySound = new Sound(); mySound.attachSound("soundID"); on the root frame and
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
I am developing a flash web site using ACTIONSCRIPT 3. There is a menu of small icons that, when one of them is clicked, the program loads the correspondent SWF into a loader and then presents it in a "virtual screen" ( a rectangular area ) in the web page. The problem is that some of these child SWFs have an embedded background sound and I DO NOT KNOW how to mute them from the main SWF when a user decides to do so by clicking a "mute" button.
Each SWF embedded sound has its own layer in its timeline and is set as Sync: Event, Repeat:1.
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?).
im using this player [URL] for my site and i am also using [URL] i have 2 instances of advanced player in one page and the backround player. I want to pause the other players when one of the 2 advanced players are playing, something like that: if myadvancedmp3player1 is playing (if i press the play button), pause myadvancedmp3player2 and pause backround_music. if myadvancedmp3player2 is playing, pause myadvancedmp3player1 and pause backround_music