ActionScript 2.0 :: Toggle Button Mutes (not Stop) All Sounds?

Aug 14, 2006

Could someone direct me to a post (or explain) how I might be able to Toggle On/Off the muting of every sound playing in my .Swf?

I have several streaming sounds I don't want to (stop), just (mute).

View 3 Replies


Similar Posts:


Flex :: Stop A Toggle Button From Changing State?

Nov 12, 2010

I'm trying to stop a toggle button from changing state when clicked, based on some conditions, but I'm not sure how to do it.

I don't want to disable the button, because flex 3 styles don't allow me to get the visual effect I need.

EDIT:

I've tried this but it does not work:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="_init()"

[Code]....

View 3 Replies

ActionScript 3.0 :: Toggle Button Revisited - Get It To Stop Playing When Clicked On Again

Jan 10, 2010

I redid my toggle button. I have music playing when its clicked down, I just cant get it to stop playing when clicked on again.

[Code]...

View 2 Replies

ActionScript 3.0 :: Stop All Sounds On Button Release

Jul 11, 2010

Im making a soundboard and I chose AS3 by accident.What I need the code to do is STOP the CURRENT sound from playing if another is pressed. the code that worked for AS1 and AS2 was onMouseDown [code] plays the sound once and messes the sound up after playing for only half a second or not at all.

View 5 Replies

ActionScript 3.0 :: Using A Button To Stop All Sounds From External SWF?

Nov 16, 2009

I did a search here and I am not sure my question was answered exactly, and even if it was, I wouldn't know it. My problem is going above and beyond what the project calls for. So here we go:I have an external swf that I have loading in when you press a "play" button. Now I need to have a button that stops the sound ONLY on the externally loading swf. I assume from what I have Googled to death that this is called "stopping all sounds". I have also come upon a sound mixer dealy-o, but I'm not sure that is what I am trying to do?????I keep reading about SoundMixer.stopAll (); but this looks to mute the sound all together with no use of a button. So I am ASSUMING that there is more code to add to this when it comes to using a button.

So, I would like to know the EXACT code I need to use to get it working...if at all possible. I named my sound button "btn3_btn" and my mute button "btn4_btn" for now. I want a separate button to turn the sound back on once it has been muted.

View 9 Replies

ActionScript 3.0 :: Start / Stop Sounds On Button Not From URL

Sep 2, 2011

im using actionscript 3 with a button to play a sound, the only thing is I dont want to play the sound from a URL i want to play it from a sound imported into the library, im sure its simple I just dont know how.

[Code]...

View 7 Replies

ActionScript 2.0 :: Alternating Sounds On A Single Play/Stop Button?

Jan 6, 2009

When the movie loads, the music begins to play. I have a single Music On/Off button that can stop and restart the first track. However, whenever the user stops and then starts the music again, I'd like to alternate the track that plays.

As it stands now, only the the first track will play when the button is clicked (and when the movie loads, of course).

Code in action layer:

ActionScript Code:
var song = 1;
var my_sound:Sound = new Sound();

[Code].....

View 3 Replies

ActionScript 2.0 :: CS3 Getting Sounds To Start Again After Using Stop All Sounds

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

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 :: SoundChannels Will Not Stop Sounds When Stop() Is Called

Sep 10, 2011

On a recent project I am working on, I created an event-based sound engine. Different components within Flex will be registered, and then the controller will listen to events and handle the information correctly. So, it just takes a custom SoundEvent or ChannelEvent to alter one of the channels, or play a sound.
 
I can not quite figure out what is wrong with my code, and I am finding myself snow-blind to the issue at hand. At first, I was going to rewrite it but I figured it would be better to learn from my mistake. Also, I realize that this is not correct for streaming sounds, but I am working off a local sound library until I get it up and running smoothly.
 
Here is the code for the SoundEvent:

package code.events
{
import flash.events.Event;
public class SoundEvent extends Event

[code]....

View 3 Replies

ActionScript 2.0 :: Modify Stop / Start Toggle

Jan 19, 2010

I am a beginner and have completed my first Flash 8 movie which has an invisible button the size of the image which Stop/starts the movie with AS toggle script below which was kindly given to me and works fine.

[Code]....

modify this script so that the movie fades to alpha zero over a 7 second period after the stop action is triggered, and the re-appears 100%-alpha when the play action is triggered?

View 9 Replies

Javascript :: Toggle Flash / Hide&stop Or Remove?

Apr 21, 2011

I am going to be setting up a control that can hide and show a flash video.I want to either stop it when its hidden, or remove it entirely. I've been able to do both, but which is better for the user.Hide and stop means its already loaded. But the flash object is still there, so I worry about it eating up processing power.Removing it entirely means no, its not there, but adding it again appears to send out a call to re-download the file.

View 2 Replies

ActionScript 3.0 :: Toggle Play/stop On A Movie Clip?

Jan 17, 2009

I'm working on a simple play/pause control for a movie clip.

Is there some property on movieclips that I can query to find if the movieclip is currently playing or stopped?

Otherwise, I figure I could add one myself, and alter it every time I play or stop the movie clip, but I don't want to.

View 1 Replies

ActionScript 2.0 :: FLASH 8 - Toggle Button/released State/pressed Button

May 18, 2007

I have a series of buttons inside an array. I am trying to get the buttons so that once they are pressed, they remain in the over state. Which is a darker color than the up state. So that people know which button they have pressed. Is there an easy way to do this for buttons?

View 1 Replies

Stop All Sounds Permanently

Mar 21, 2012

im using stopAllSounds();command to mute all sounds, and it works fine with sounds that are already loaded (background music), but if there is button which triggers some new sound (after activating mute button ) or any other function to import new sound object you still can hear it despite stopAllSounds();.which command to use to permanently block all sounds already loaded and those which can be triggered by future actions.Now i have stupid situation> background music is muted but you can still hear sounds when cliclking buttons (which is ok but NOT in muted stage).

View 5 Replies

ActionScript 1/2 :: Stop All Sounds?

Oct 31, 2009

i load external swf to the main movie. They all have sound. Have no problem to stop sound of the main movie (by the behaviors), but it doesnt stop the sound of the external one. What AC should be used to stop all sound, external and internal?

View 1 Replies

Actionscript 3 :: Stop All Sounds But One?

Mar 31, 2010

I posted a question earlier about stopping all sounds in a swf. Now, to do that I'm using the following code.

var transform1:SoundTransform=new SoundTransform();
transform1.volume=0;
flash.media.SoundMixer.soundTransform=transform1;

Which solves the problem (mutes all sounds) but now there is an issue, I want to stop all sounds but one.

View 2 Replies

Flex :: How To Stop Sounds

Jul 2, 2010

How to stop this sound ? :MySound.play(0,100,null);

View 2 Replies

Stop All Sounds For A Flash Control?

May 4, 2009

I need to turn off/on all the sound for a flash animation. The flash control contains a layer named sounds that has 5 sounds associated with it in keyframes at different time. How can I simply turn on/off everything using a symbol button.

View 2 Replies

ActionScript 1/2 :: Stop Sounds In Web Site

Dec 30, 2010

I have sound that loads with the web page. Because I want to give the user the ability to mute the sound, I have a flash button to do so which works nicely.
 
However, if the user moves to a different page in the website, they must again mute the sound.

Is there a way to set a global variable for muting the sound that will work across the entire website?

View 1 Replies

ActionScript 1/2 :: How To Stop All Sounds In Root

Jan 26, 2011

I found the following script for a button which let me  stop all mc inside the root but I need to stop all sounds in the root as well.

[Code]...

View 1 Replies

ActionScript 1/2 :: Stop And Start Sounds

Jan 28, 2011

I have a Flash presentation that has some music and various sounds throughout the presentation.I want to have a btn stop all the sounds, but if clicked again it will enable all the sounds again.Is this possible? I can get the btn to stop the sounds, but cannot get the music to enable after.

View 1 Replies

Flash :: Stop All Sounds Permanently In AS3?

Mar 30, 2010

I have a main swf which has sound on/off buttons. It has many SWF's which are loaded into different placeholders at different time. All of them have different sounds in them. In addition to that there is a music loop going on in the background.Now, this perticular swf lets call it Father will be placed in some swf later on. What I'm trying to do right now is when the sound off button is pressed turn off all the sounds permanently so the child swf's and their sounds stop too.I have found a way in AS2 :

global = new Sound( ) //no movie clip target path.

and add the following code to your off button.

on(release){
global.setVolume(0); //mutes all sound
}[code]....

which ofcourse does not work for AS3. So how can I stop all sounds permanently in AS3? Secondly what if I have one sound (my background loop) which I want to keep going on.

View 2 Replies

ActionScript 1/2 :: Stop And Start Sounds?

Oct 1, 2011

I have a Flash presentation that has some music and various sounds throughout the presentation.I want to have a btn stop all the sounds, but if clicked again it will enable all the sounds again

View 1 Replies

Javascript :: SWF Video With Controls (toggle Sound On / Off And Toggle Play / Pause)

Jan 10, 2011

I'm new to flash and just need to do a simple task but I can't manage to get it to work. I'm trying to import a video (flv) into a SWF container and need to AS functions which should be exposed to JS (using liveconnect or anything else). These two function should toggle sound on/off and toggle play/pause. I dont need any user interface or a full featured player, just these two functions.

View 1 Replies

Professional :: Toggle Button Via The Button Component?

Oct 18, 2010

I'd like to learn how to use Components in Flash, and the documentation and tutorials I find are beyond my comprehension. I usually go to FlashKit and just rehash someone's code... but again, I'd love to learn how to use Flash Components.So I did a tutorial on the toggle button, but it was:1. Click button, and a window pops up at different location on canvas2. Click button again, and the same window dissapears.This is for a videogame, and I'd like a button to be click and that same button be populated with a new graphic. What I mean is, the graphic is a skull, and I'd like to have it start as a dark skull (as if a negative value) and when you click it the skull appears... click it again and it's gone (or that negative or dark skull representing it's off).So this differs from the tutorial I did because the pop-up window is the button itself, and the window that pops up would obstruct me from click it again.

View 3 Replies

ActionScript 2.0 :: Using StopAllSounds(); To Stop All Background Sounds?

Mar 11, 2009

I am using stopAllSounds(); to stop all background sounds when i enter specific frame in my main movie and it works fine but how do i get sounds to continue to play when i exit this specific frame?

View 1 Replies

ActionScript 2.0 :: Stop All Sounds In Flash Project?

Aug 13, 2009

I have a question for stopping all sounds in flash project. And i mean all, buttons, effects, etc..The thing is, I have manually placed various sounds on different frames, on different MCs and buttons inside my flash.Is there any function that will just mute my sounds, or I have to create object for each sound?

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







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