ActionScript 2.0 :: Mute A Sound That Is Looping And Unmute It Again?

Jan 29, 2009

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!

View 9 Replies


Similar Posts:


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 3.0 :: Mute / Unmute Sound On FLV Player

Mar 18, 2009

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.

var soundVolume:Number = 1;
var muted:Boolean = false;
mute.buttonMode = true;
mute.addEventListener(MouseEvent.MOUSE_OVER, muteoverToggle);
mute.addEventListener(MouseEvent.MOUSE_OUT, muteoutToggle);
mute.addEventListener(MouseEvent.CLICK, mutetoggleClick);
mute.buttonState = "On";
[Code] .....

View 1 Replies

ActionScript 2.0 :: Rollover To Mute/unmute Sound Object?

Mar 15, 2010

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

[code].....

View 3 Replies

Fla That To Add A Mute / Unmute Button

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

ActionScript 3.0 :: Mute And Unmute Button?

Apr 10, 2009

I am wondering how to make a mute and unmute button is actionscript 3.0.  I did it before in actionscript 2.0 but not in 3.0. Here is my actionscript 2.0 code.
  
var sound = 1;
var slashMC = _root.attachMovie("slash","slash01",99);
slash01._visible = false;
slashMC._y = btn._y;
slashMC._x = btn._x;

[Code]...

View 14 Replies

Professional :: Mute/unmute Embedded Flv?

May 25, 2011

I have an flv embedded onto my timeline (it's short, the only video to be played and has an animation synced up to it) but now I need to mute/unmute it. Is this even possible with the video being embedded? If so, how?

View 2 Replies

ActionScript 3.0 :: MUTE On Load And Then UNMUTE?

Sep 3, 2010

I just joined today to look for a solution on how to mute a flash video when it starts/loaded and then unmute it anytime a user wishes. I've tried searching for "mute" but only discussions I see are how to make mute button etc. My mute button works flawlessly but some web ad banners nowadays require the flash video to be muted from the start and an unmute button be available.

[Code]...

View 1 Replies

Professional :: Flash Mute/unmute Button?

Jul 5, 2010

I have just installed Flash Professional CS5. I have set up a short 3 second Flash .swf file and incorporated it into my website using Dreamweaver CS5. The Flash file has a background sound file and the Flash program loops. I see how to set up a mute button and have done that, yet when the file loops the sound begins again. I have looked through the many tutorials and forums and simply cannot find out how to set up the button so that when the "Mute Sound" button is clicked the sound stops even after the file loops. I am guessing it might have something to do with setting up my timelines, yet I have played around with that and did not get anywhere.

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

Media Server :: Mute/unmute - Giving An Error #2044 : Unhandled NetStatusEvent?

Mar 29, 2010

I want to perform mute /unmute For that i am using following code
 
public function audioMuteUnMute(state:String):void{                                            if (state=="Mute"){                    ns.attachAudio(null);                    ns.receiveAudio(false); [code]....

Give errror at ns = new NetStream(nc); firstly i mute then press for unmute then it gives folloeing error.
 
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Seek.Failed    at com.controller::BroadcastPod/connectStream()[C:wampwwwvideoConfern cehostViewsrccomcontrollerBroadcastPod.mxml:35]  [code]....

View 10 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 2.0 :: Looping MP3s Seamlessly Unless Mute Button Clicked?

Apr 24, 2004

I'm using some modified code from a chapter exercise (from a text book) to play four separate MP3s external to the FLA. Here's an example of what happens when a button is clicked:

Code:
BtnOne.onRelease = function():Void {
stopAllSounds();
song1=new Sound();
song1.loadSound("Music/Puffy.mp3", true);
gotoAndPlay("music1");

On the label 'music1', I have this AS:
Code:
stop();
song1.onSoundComplete = function() {
song1.start();
}

The problem is, there's something of a noticeable stutter when the MP3 reaches the end, just before it starts up again. The first MP3 (contrary to the others), is a seamless ambient sound which ought to sound perfect in the FLA, but doesn't, again, because of the slight stutter in starting it up again. Is there a better way to do this? I thought, perhaps, this would be fixed if I removed the "stop();" line and instead had it play the next frame, which would invariably send it back to the previous one, but this changed nothing. Is there a better method to use? Even with the other three MP3s, which aren't seamless, I want to loop, unless and until the user clicks the 'Mute' button.

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

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

ActionScript 3.0 :: Mute/unmuting Internal Sound?

Mar 10, 2009

I need to mute/unmute the volume of an streaming internal

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

ActionScript 3.0 :: Mute The Sound In A Movie Clip?

Mar 10, 2010

assuming my movie clip is named "movie"

View 2 Replies

ActionScript 3.0 :: FlashVars And Sound Mute (soundMixer)

Mar 15, 2011

I need to mute the sound in my flash movie via html (flashVars parameter).My code in timeline is:[code]

View 6 Replies

ActionScript 3.0 :: Sound Control - Bug In Mute Action?

Jan 13, 2012

I am using the following code to mute sound in a flash file - basically turning the volume to 0 or 1.It works fine until I go to a different scene. Once I load a new scene the button no longer works.

[Code]...

View 1 Replies

ActionScript 2.0 :: Mute A Hole Movie (.swf) And Not Just A One Sound?

Feb 2, 2004

Can i mute a hole movie (.swf) and not just a one sound? and how ?

View 14 Replies

ActionScript 3.0 :: Looping Sound / Finishing Last Sound

Jul 23, 2011

What I'm trying to do is loop a sound on a mouse down event and then on mouse up event I want to finish what ever iteration it's on and stop the loop.

View 5 Replies

Mute Sound Across All Loaded Movieclips/layers/scenes?

Jan 19, 2010

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.

View 5 Replies







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