Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Turning Sound Off.


I added a button that turn sound off. However, when I click onto another scene, the new sound comes on. How do you make a master sound button that turn sound off throughout a show?

I know this is probably very simple, but bear with me, I'm a newbie.

Thanks.




FlashKit > Flash Help > Flash Newbies
Posted on: 01-29-2003, 02:46 PM


View Complete Forum Thread with Replies

Sponsored Links:

Turning Flash Movie Sound Off If Other Sound Begins?
Hello -

I'm not an expert Flash guy so I appreciate your help.

Currently there is a flash file with a sound file that plays continuously while a visitor is on the site. There have been new additions that add the ability to add sound files to different items.

How can I get the main flash sound turned off whenever one of the items with a new sound file begin to play?

View Replies !    View Related
Turning Off Sound
This might be posted in the wrong place - sorry!

I'm using Flash.ocx and I'd like to know if there's a way to mute all sounds in a movie using something like TSetProperty?

Many thanks,

peetm

View Replies !    View Related
Turning One Sound Off, But Not The Other
Hi there, I read you can only have one sound object. I have a demo that has a voiceover sound, and background music. I did:

voicey = new Sound();
voicey.attachSound("chapterone");
voicey.start();

And I then I threw the bgmusic in a MC and stop it with the button. SO I can get the background music to stop and the voiceover keeps going. But when I click the off button for the voiceover it stops all the sounds. Make sense? I want to have control over both sounds.

Thanks!

View Replies !    View Related
Turning Off Sound...HELP
Hi there!
I have an mp3 player that plays mp3's randomly in the background. It uses xml file for playlist. Now-I want to turn the sound off when you click on a link to a video page so that you can watch videos with the sound of the video playing. I used stopallsounds command and that turn off the sound but how do I turn it on again.
There are buttons on the player and the playbutton have this code attached to it:
if (playing == true)
{
gotoAndPlay(2);
}
else
{
gotoAndStop(1);
} // end if

Can I somehow call this function and that would start it again? Help would be highly appreciated....

Niklas

Here is the code of the mp3 player.
1st frame:
function scrollTitle()
{
songtitel = tracks.firstChild.childNodes[nodeNum].attributes.title;
songname_mc.songname_txt.text = songtitel + " " + songtitel;
songname_mc.songname_txt._x + songname_mc.songname_txt._width / 2 + 4 < songname_mc.songmask_mc._x ? (songname_mc.songname_txt._x = songname_mc.songmask_mc._x, songname_mc.songname_txt._x = songname_mc.songmask_mc._x) : (songname_mc.songname_txt._x--);
} // End of the function
firstLoad = true;
nodeNum = 0;
if (pause != true)
{
time = "00:00:00";
} // end if
stop();
playMusic = function ()
{
bar_mc.marker_mc._x = 0 + bar_mc.marker_mc._width / 2;
music = new Sound(this);
music.loadSound(tracks.firstChild.childNodes[nodeNum].attributes.path, true);
music.onSoundComplete = function ()
{
if (nodeNum < tracks.firstChild.childNodes.length - 1)
{
nodeNum++;
}
else
{
nodeNum = 0;
} // end if
playMusic();
};
songname_mc.songname_txt.text = tracks.firstChild.childNodes[nodeNum].attributes.title;
trace(tracks.firstChild.childNodes[nodeNum].attributes.title);
if (pause == true)
{
pausePos = Math.floor(bar_mc.marker_mc._x / barbg_mc * music.duration);
trace(pausePos);
music.start(pausePos, 0);
pause = false;
}
else
{
music.start(0, 0);
} // end if
playing = true;
gotoAndPlay(2);
volume_mc.volumefill_mc._width = music.getVolume() / volume_mc.volume_btn._width * volume_mc.volume_btn._width;
};
songname_mc.songname_txt.autoSize = true;
setInterval(scrollTitle, 70);


2nd frame

pos = new Date();
pos.setSeconds(music.position / 1000);
pos.setMinutes(music.position / 1000 / 60);
pos.setHours(music.position / 1000 / 120);
seconds = pos.getSeconds();
minutes = pos.getMinutes();
hours = pos.getHours();
if (seconds < 10)
{
seconds = 0 + seconds.toString();
} // end if
if (minutes < 10)
{
minutes = 0 + minutes.toString();
} // end if
if (hours < 10)
{
hours = 0 + hours.toString();
} // end if
time_txt.text = minutes + ":" + seconds;


3rd frame
if (playing == true)
{
gotoAndPlay(2);
}
else
{
gotoAndStop(1);
} // end if

View Replies !    View Related
Turning Synch Sound Off And On
Hello everyone.
Can someone please assist me.
In my flash movie I have a narration(audio) that is synched with the main time line of the movie. I have a single button which I want users to press and have the narration or sound turn off but not stop the movie from playing. If they hit the same button again the sound will resuem where the current playhead of the movie is.

Any suggestions.
I'm not sure if this is even possible with synchronized sound.

Thanks in advance.

View Replies !    View Related
Turning Sound On/off Using 1 Button
Good day flash gurus,

I have background music when my site loads up. How can I create one button that will turn off the sound and on. Keep in mind i want the music playing when the site starts, so when the user clicks the button, the sound will turn off.

thanks for any help.

View Replies !    View Related
Sound Comes Back On After Turning It Off...
I have 2 frames that are looping infinitely. When you click on the speaker to turn off the sound, it works, however when it loops back to the first frame, the sound comes back on. Anyone have a solution for this?

Here's my FLA for those of you who want to be really nice and fix it for me

http://www.benefitsinacard.com/dev/test_header2.fla

View Replies !    View Related
Turning Sound Completely Off.
I have a site I'm doing for a client the link is:

http://www.johncliffordtaylor.com/cav/

I have a turn off ambient wave sound button that comes up. But the client wants it to be a turn all sound off button. I'm having a hard time making that happen.

I currently have a:

on (release) {
stopAllSounds();
}

action on the turn off ambient wave button down at the bottom of the flash portion of the site. Any ideas or links on how to make all sound completely turn off when this button is pressed would be great. THX for the help!

View Replies !    View Related
Turning Sound Completely Off.
Turning sound completely off.

--------------------------------------------------------------------------

I have a site I'm doing for a client the link is:

http://www.johncliffordtaylor.com/cav/

I have a turn off ambient wave sound button that comes up. But the client wants it to be a turn all sound off button. I'm having a hard time making that happen.

I currently have a:

on (release) {
stopAllSounds();
}

action on the turn off ambient wave button down at the bottom of the flash portion of the site. Any ideas or links on how to make all sound completely turn off when this button is pressed would be great. THX for the help!

View Replies !    View Related
Turning Sound Completely Off.
I have a site I'm doing for a client the link is:

http://www.johncliffordtaylor.com/cav/

I have a turn off ambient wave sound button that comes up. But the client wants it to be a turn all sound off button. I'm having a hard time making that happen.

I currently have a:

on (release) {
stopAllSounds();
}

action on the turn off ambient wave button down at the bottom of the flash portion of the site. Any ideas or links on how to make all sound completely turn off when this button is pressed would be great. THX for the help!

View Replies !    View Related
Turning Sound Completely Off.
Turning sound completely off.

--------------------------------------------------------------------------

I have a site I'm doing for a client the link is:

http://www.johncliffordtaylor.com/cav/

I have a turn off ambient wave sound button that comes up. But the client wants it to be a turn all sound off button. I'm having a hard time making that happen.

I currently have a:

on (release) {
stopAllSounds();
}

action on the turn off ambient wave button down at the bottom of the flash portion of the site. Any ideas or links on how to make all sound completely turn off when this button is pressed would be great. THX for the help!

View Replies !    View Related
Turning Sound Completely Off.
Turning sound completely off.

--------------------------------------------------------------------------

I have a site I'm doing for a client the link is:

http://www.johncliffordtaylor.com/cav/

I have a turn off ambient wave sound button that comes up. But the client wants it to be a turn all sound off button. I'm having a hard time making that happen.

I currently have a:

on (release) {
stopAllSounds();
}

action on the turn off ambient wave button down at the bottom of the flash portion of the site. Any ideas or links on how to make all sound completely turn off when this button is pressed would be great. THX for the help!

View Replies !    View Related
Turning Sound Completely Off.
Turning sound completely off.

--------------------------------------------------------------------------

I have a site I'm doing for a client the link is:

http://www.johncliffordtaylor.com/cav/

I have a turn off ambient wave sound button that comes up. But the client wants it to be a turn all sound off button. I'm having a hard time making that happen.

I currently have a:

on (release) {
stopAllSounds();
}

action on the turn off ambient wave button down at the bottom of the flash portion of the site. Any ideas or links on how to make all sound completely turn off when this button is pressed would be great. THX for the help!

View Replies !    View Related
Turning A Sound Off Using Actionscript
Hey

I need to be able to control a sound in my application using a button.
The sound is called tennisBallSound. When the button is clicked it turns all sounds off including the background music. does anyone know why and can you help please??

Here is the code I have used:

//Tennis Ball sound
tennisBallsound = new Sound();
tennisBallsound.attachSound("tennisBall");

to create the sound

_root.start_btn.onRollOver = function() {
_root.tennisBallsound.start();

this is where its used^

_root.btnSoundoff.onRelease = function(){
_root.btnSoundoff._alpha=100;
_root.btnSoundon._alpha=50;
tennisBallsound.setVolume(0)
}

View Replies !    View Related
Turning Off Sound In This Scenario
Hello, I need help.

I need to load in an external .swf file into my new movie and stop the sound/music that is playing from the external swf file. I need the sound/music to stop immediately on frame one. I don't have the fla to the external swf file as it is years old. Can someone help me with this? I know there is "stopallsounds();" but I don't think I'm using it right because it won't stop the sound when I play the new exported swf.

So to recap - I've loaded in a .swf on frame one (into a blank movie clip) - and on another layer tried to add the "stopallsounds();" action - music still plays - HELP!

View Replies !    View Related
Turning Off Flash Sound Un Vb
i combined vb with flash. my problem is when i close the flash using vb command button the streaming sound inside the flash movie won't stop! what should i do to stop the sound when the shockwaveflash control in vb is being unloaded?

View Replies !    View Related
Turning Sound On And Off - Button
I have sound playing in my flash site i want to place a button, like the one attached when u click it i want the sound to turn off and the button state to have a cross though it, and when the button witht the crss is preesed again i want the original button to replace it and sound to play, how can i do this? thanx

View Replies !    View Related
Turning Sound Object On/off With 1 Button
Could I use a single button to toggle a sound object on and off, by using an if/else statement that combined these two bits of code? and if so, what would it look like (syntax)?

on (press) {if (playing!=true) { _root.firstSound.start(0,25); playing=true;}

on (press) { _root.firstSound.stop("firstSound01"); playing=false;
}
Thanks for any advice.

View Replies !    View Related
[F8] Turning Off All Sound When Button Is Pressed?
I have a site I'm doing for a client the link is:

http://www.johncliffordtaylor.com/cav/

I have a turn off ambient wave sound button that comes up. But the client wants it to be a turn all sound off button. I'm having a hard time making that happen.

I currently have a:

on (release) {
stopAllSounds();
}

action on the turn off ambient wave button down at the bottom of the flash portion of the site. Any ideas or links on how to make all sound completely turn off when this button is pressed would be great. THX for the help!

View Replies !    View Related
Turning Sound Off When Use Not Focused On Component
I have a flash movie on a page with other content. I want the sound in the flash to play when the user is "using" the flash movie but if the focus is elsewhere I want it to stop as it could conflict with a movie playing elsewhere on the page. Is that doable?

Jennifer

View Replies !    View Related
Turning Sound Off And On In A Movie Clip
Hi all,
really need help with this one! I have created an animation with an audio track in a seperate movie clip. I have been told for various reasons that if I want to put it on a certain site I have to have a button that will turn the dialogue off. Is there a simple bit of ActionScript that I could attach to a button to switch it off and on a bit like the visible = 0; command?
This would be saving me a lot of stress, thanks in advance!

View Replies !    View Related
How Do You Create A Toggle Button For Turning Sound On And Off
Hi,

I'm trying to create buttons for turning music off and on. I'd like it to work like toggle so when you turn off the music, you now have the option to turn it back on. Does anyone have a scripts they could share with me? I would really appreciate any help!

Thank You!

Kim

View Replies !    View Related
Turning Off Sound Accross Linked Swf Files
Hi,

I have just finished a site built completely in Flash (MX on a a mac running OS 10.3). The site has a main swf file that uses the 'loadMovie' command to load up various pages / areas. Some of the pages that load use sound on button 'over states'.

My question is: Is there a way I can build a sound on/off button into the main swf. file that will disable sound accross the site - including any files that are loaded into the site once the 'off' option has been selected.

The only way I can think of is to use a sound on/off button in each swf file - whicj I obviously dont want to do as the user will have to turn of sound on each page that loads.

Any help / suggestions would be helpful.

Thanks in advance.

J

View Replies !    View Related
Turning Off Sound Accross Linked Swf Files
Hi,

I have just finished a site built completely in Flash (MX on a a mac running OS 10.3). The site has a main swf file that uses the 'loadMovie' command to load up various pages / areas. Some of the pages that load use sound on button 'over states'.

My question is: Is there a way I can build a sound on/off button into the main swf. file that will disable sound accross the site - including any files that are loaded into the site once the 'off' option has been selected.

The only way I can think of is to use a sound on/off button in each swf file - whicj I obviously dont want to do as the user will have to turn of sound on each page that loads.

Any help / suggestions would be helpful.

Thanks in advance.

J

View Replies !    View Related
Sound Effects - Page Fliping/turning
Does anyone know of anygood sites for sounds effects? I am specificaly looking for page fliping sound effect...if anyone knows that would be great!

View Replies !    View Related
[CS3] Turning Off A Sound In A Mc From A Button In The Main Timeline
Hi. I have a movie clip that has a looping background sound in it. From a button on the main timeline, I want to stop that bgsound from playing. Is this possible?

Here is my code on the movie clip:

PHP Code:



bgSound = new Sound();
bgSound.attachSound("bgmusic");
bgSound.start(0,20);





and in the button I have:

PHP Code:



on (release) {
stopAllSounds();
gotoAndStop(32);
}




I don't want to use the stopAllSounds command because then it kills my sound on the button when clicked.

Thanks for any help you can give.

View Replies !    View Related
Mute Button- Turning Sound Back On
I've made a mute button for my embedded FLV sound. I'm using SoundMixer.stopAll(); as the controlling action. How do I start the sound up again? From what I could tell, there wasn't a SoundMixer.playAll();, which would be the logical choice.
The sound is embedded into the FLV, so I don't have direct control over it.

Thank you.

View Replies !    View Related
Turning Dial With Sound Clicks As It Turns ?
Hey Guys,

I'm having trouble with this turing dial. I want to have a clicking noise as the user drags the dials around. I've been trying to figure this out for a long time, does anyone know how to do this?

See it here: http://veronicahufana.com/Untitled-1.htm
Download the .fla file here: http://veronicahufana.com/testdial.zip

I really appriciate all your help,
AFTERBURNER

View Replies !    View Related
Turning Around
im trying to get my one attached mc "zombie", to flip over or turn around when the oter MC "guy", is on the other side of it.i had this code on the zombie when i didn't attach it.

Code:
onClipEvent (enterFrame) {
if (_root.guy._x < _x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = -Math.abs(_xscale);
}
}
but when i use this code after i attached it,

Code:
_root.zombie.onEnterFrame = function() {
if (_root.guy._x < _x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = -Math.abs(_xscale);
}
};
it doesn't work....can anyone help?

View Replies !    View Related
Turning SWF's Into FLA's
Anyone one know where I can get the programme that does this? I know it's about as I used to have one, before I reformated my harddrive and lost it!

View Replies !    View Related
Turning Off An .mp3
I have a secondary .swf loading into a master .swf. I am loading an .mp3 into the secondary .swf dynamically by creating a new sound and a new sound channel (here's my vars):


ActionScript Code:
var musicPiece:Sound = new Sound(new URLRequest("mp3s/intro.mp3"));
var mySoundChannel:SoundChannel;
var isPlaying:Boolean = false;
var pos:Number = 0;

I just have a pause button in the secondary .swf and everything works fine, the problem is that I have 3 more secondary .swfs that will load when called from buttons on the master .swf. I'm unloading the new loaders that carry the .swf childern on the main timeline of the master .swf, but the sound, of course, doesn't stop. I tried just addressing the sound channel var I made:


ActionScript Code:
this.swfIntroLoader.mySoundChannel.stop();

swfIntroLoader is the loader that I created in the master .swf that loads the child .swf (secondary .swf) with the mp3 player in it.

I've also tried to cast "swfIntroLoader" as a MovieClip and that didn't work either.

Any suggestions?

View Replies !    View Related
Turning
How can i turn an object around with motion tween?

View Replies !    View Related
Turning
How can i turn an object around with motion tween?

View Replies !    View Related
Turning Something ...
Howdy flash people.

I can't work out how to do this, I have a MC called "dial" and I have centered it in the MC.

Now when I press on it I want it to turn with the cursor like a real dial so if I press it and turn it left it will turn left and it will turn to whereever my cursor it on the stage.

Any help would be great :D

View Replies !    View Related
Turning MC's Into Buttons?
Hello and thank you for coming! I have a question. I am dynamically loading Movieclips depending on what button a user clicks. Once these MC's are loaded, when a user rolls over this clip it is supposed to load the same MC but a larger display of it into another Movieclip. I am pretty sure I am suppose to turn these dynamic MC's into buttons. But how do I do this not knowing exactly what Movie clips will be loaded since it is based on what button the user clicks? (By the way if this helps, the SWF files are being loaded into the dynamic duplicated Movie clips.)

View Replies !    View Related
Turning Off Music
would i be using action script to turn off music in my flash movie? ie do if i have a button to turn off music, how would i code it to turn off the music.

thanks

View Replies !    View Related
Turning Hittest Off And On...
i have a little game i'm making (just a shooty one) and when a baddie movie clip gets hit, he goes into an explosion. when the baddie is moving down the screen he is on frame 1 of his own movie clip and the hittest sends him to frame 2 and plays for 4 frames which is the graphic of him exploding.... i want the hit detect to be turned off on frame 2 of his movie so if he is exploding and hits your ship that you don't lose energy and also because as a laser hits the baddies, they goto and play frame 2 as well, but if you shoot them while they are exploding, they keep going back to and playing frame 2 which means you can keep shooting the same enemy and getting points as long as you are quick...

here is the script for the hit detection:
(spaceship is the goodie, enemy is the baddie, laser is the goodie shots at the baddie)

on the enemy:
onClipEvent (enterFrame) {
if (this.hitTest(_root.spaceship)) {
_root.hits--;
gotoAndPlay (2);
if (_root.hits==0) {
_root.gotoAndStop("gameOver");
}
}
}

on the laser:
onClipEvent (enterFrame) {
for (i=1; i<=_root.numEnemy; i++) {
if (this.hitTest(_root["enemy"+i])) {
_root.score += 100;
_root["enemy"+i].gotoAndPlay(2);
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
}
}

please help cos its got me stumped... if i wasn't very clear up there, basicaly i want frame 2 of an enemy movie to take off the hittest that the onclipevent of that movie turned on...

ask me if you want to know anything that will help you help me

thanks in advance...

View Replies !    View Related
Turning A Scene Into Its Own .fla
I have a .FLA file that has about 40 scenes in it. I need to break each scene up into an individual movie so I can set a preloader up for it.

Whats the easiest way to take a scene and make it into its own .fla file? I tried highlighting all the layer names and timelines then copy and pasting and that didn't work.

Can someone help me out?

Thanks a lot!

View Replies !    View Related
Turning Var On Main TL To
Hi,

I have been succesful in sending var values from HTML to flash the "myMovie.swf?myVar=myValue" way

These vars exist on the main timeline.

Now I converted the stuf on the main timeline to a MC.
Hence, the variables are not set on that level.

So I tried two ways to convert these to:

1.) global vars:

Code:
var myVar;
Object.prototype.myVar;
2.) MC- specific vars:
('a' is the name of the MC instance)

Code:
var myVar;
a.myVar=myVar;
But when I trace() the values, nothing is there.

What am I doing wrong?

View Replies !    View Related
Turning Gif Into Button?
I am trying to make an animated gif into a button. When that image is clicked, I want it to go to a certain url. When I try to make it a button, the animation doesnt play, it just shows the first frame. It does link however. How do I make it animate, and do I need to make it into a movie clip?

View Replies !    View Related
Turning MC's To Buttons
Hi,

i have a movie clip that uses actionscript to randomly change its opacity (thanks sinfiniti). how would i alter this to use as a button?

thanks

View Replies !    View Related
Turning Problems
Alright I am trying to make a ship that can "turn". My current coding is this

onClipEvent (load) {
movespeed=10
}
onClipEvent (enterframe) {
if (Key.isDown(Key.RIGHT)) {
this._rotation += movespeed;
}
if (Key.isDown(Key.LEFT)) {
this._rotation -= movespeed;
}
if (Key.isDown(Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y -= moveSpeed;
}
}

but all this does is rotate the ship and make it go up and down, I want to make its so the ship can turn and change direction.

For example: If the ship is facing north I want to be able to use up arrow key to make the ship go north. But If I rotate the ship so it faces east I want the up arrow key to make it go east.

View Replies !    View Related
Turning Off A Button
Anyone know a way of turning off a Button?

The only thing i can thing of is putting something Hidden above it. I think that will work, havn't tried it yet.

View Replies !    View Related
Turning Sounds Off And On
Hello all..I have a problem. I made a button..like a speaker and want the sound on the page to go off..which is fine.. but how do you turn it back on... and off again? It's a character talking..dialog..so if it can stream and be turned off...would be good. I have the dialog in a layer..and the button. What do I do? Thx.

View Replies !    View Related
Turning A Key On His Spine
i have a mc. not a shape.
how can i rotate the key on his spine?
i cant add shape hints couse its not a shape
the FreeTransform tool didnt gave me any results

attach please find a screen shot

tnx a lot
me

View Replies !    View Related
Page Turning
I have this flash movie that I'm using, but am having problems with!!
http://www.actionscript.org/showMovie.php?id=459
Whenever I add new pages, even with maxPages set to 10 (i want 10 pages), they don't show up. If someone could tell me how to get it working, it would be greatly appreciated!!

View Replies !    View Related
Pages Turning?
hey,

does anyone know how this could be accomplished??

http://www.ae.com/aestyle/

it looks like it could be pretty complex, i mean with all the shadows and stuff. plus, the turning pages and all that crap. thanks to anyone who could help me out. ive seen this done a couple times, but this was the fastest loading. thanks.

-jake

View Replies !    View Related
Turning Logo
Is it possible to create a turning logo, but only turning horizontally, so the edges of my logo won't make a greater circle then the actual logo??? Is this understandable? Pleez help!!!

View Replies !    View Related
Music - Turning On/Off
Hi

Ok i'll try not to confuse anyone with what im gonna ask so here goes.

Ive got a button called 'toogle' on a layer called 'toggle' that allows me to turn some music on and off - the music is in a sepearte movieclip called 'soundtrack' on a layer called 'soundtrack - and it works fine.

However if i turn it off, it begins to play again after one of the movieclips called 'background' within the site loops??

Below is the ActionScript im using on the button to control the music:

on (release) {
if (music == true) {
music = false;
stopAllSounds();
} else if (music == false) {
music = true;
Soundtrack.gotoAndPlay(1);
}
}

I cant understand why it begins to play again after i've turned it off? any help with this would be greatly appreciated!!

also i have a layer named actions that initialises the load sequence to the whole flash movie that includes the script:

music = true

again if anyone can help its appreciated

THANX

Ben.

View Replies !    View Related
Turning Pages
Anyone know of a good tute on turning pages of a book forward AND backward??????

View Replies !    View Related
Turning Layers Off And On
Can you user actionscript to turn layers off and on or turn the visibitly off and on?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved