ActionScript 2.0 :: Adding Mute Button - Passing Variable In SWFs

Feb 10, 2008

I have a client who wants to add something to a flash presentation that is almost done. There is a root swf that is pulling in a nav screen swf, which in turn is pulling in the text screen swf of that corresponding nav swf. So at the start, the root swf automatically loads nav1.swf, and nav1.swf automatically loads text1.swf. Once that plays, the next button loads nav2.swf into the root swf, and in turn, nav2.swf automatically loads text2.swf onto it. I hope that makes sense. So all the text is going to be on the screen with pix, etc, and we are going to have a VO speak the text. The VO will be on the text swf files since there is fading of pix, text, etc and we need it to match. With it almost done, the client wants a mute button added to the thing.

The question is, if the mute button is on every text swf file, is there some variable that I can pass that would keep the next text swf file from playing it's VO? The client doesn't want people to have to keep clicking the mute button with every page. I know, I know, if I knew they wanted a mute button, I never would have built it this way. It's going on the web, and I figured for loading purposes, this was the best way. Now I think Im screwed... Or rather, they are. They approved this. But can it be done? Can I pass a variable from either the root swf or the navs swf files that tells the incoming text swf files to stay muted?

View 5 Replies


Similar Posts:


Professional :: Adding Mute Button To Timeline

Jan 1, 2011

I currently have several photos that rotate in an out and i also have a music clip which plays when i test the movie. i want to add a mute button from the components tab onto a timeline. Not sure how difficult this is for a novice, but I would like to try and figure it out. Most of the tutorial i've looked at tell you how to create the button and link it to the music. I haven't come across anything that tells you how to embed it into a timeline.

View 4 Replies

ActionScript 2.0 :: Adding Button To Mute All Sounds

Jan 26, 2010

I've produced an instructional animation for a client who now wants to add a mute button. There are several sound clips throughout the movie. How do I achieve this?

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

ActionScript 3.0 :: Mute All Sounds In A Swfs Except One?

Mar 31, 2010

To stop all sounds in a swf, I'm using the following [code]...

This mutes all sounds. Now there is an issue, I want to stop all sounds but one (i.e. "music.mp3").

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

ActionScript 2.0 :: Passing A Variable To A Button Inside A Movieclip?

Dec 23, 2009

I have list that is generated from a database that when click it calls a seperate movieclip in the library called comments and loads data from the database in it. I the movieclip i have buttons that I am trying to pass the data to but it doesnt seem to be working.

here is my actionscript:

getReleaseInfo_Result = function (releasesID,track1url,track2url,track3url,track4ur l) {
_root.container.attachMovie("comments", "comments", 100);
_root.container.comments._x = 325;

[code]....

View 4 Replies

ActionScript 3.0 :: External Swfs Load - Remove The Swfs And Sound After A New Button Is Clicked

Nov 13, 2010

I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.

[Code]...

View 5 Replies

ActionScript 3.0 :: Parameter Passing Between Two SWFs?

Jan 27, 2009

The problem I am currently having right now is the inability to send variables loaded from the LoaderSWF to the SWF that has been loaded.

Concretely speaking, I have an embed script on an HTML page that contains several variables in the FlashVars line. The embed script loads a file called loader.swf. Loader.swf's main responsibility is basically take those variables from the flashvar, load the game URL and pass along the rest of the necessary parameters to the game that the loader is loading. However, I've been working out several solutions and none of them worked the way I wanted to.

The embed script is as follows:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="450" id="game-player">
<param name="movie" value="/shockwaves/loader.swf" />

[Code]....

how can I load the game SWF file and send along additional parameters with that request? Is there someway I can punch in variables into the myLoader object?

The code I came up with sends along the authenticity token just fine, however, it is not sending score_url correctly. I'm not sure if that is the correct behavior, but please enlighten me with any insights you may have.

I have also considered trying LocalConnection, but the problem is that I do not have the necessary source code for the games to set up LocalConnection on the receiving end.

Also, the game files are using AS2, while the loader is using AS3. The game files read variables by utilizing _root.score_url, etc.

View 1 Replies

ActionScript 3.0 :: Passing Variables Between SWFs?

Sep 14, 2009

I have one swf where I modify parameters of a circle using tweenlite and variables input by the user and I want to load that swf into another swf which has a boarder that I want to change according to the circle color. I got the circleChange swf to load using a uiLoader component but passing the variables for the color has become difficult and I'm a bit lost.

I tried using shared objects and kept getting the "cannot create shared object" error. I can either pass a variable or pass the inputTxtBox of the user defined color but don't know how to do either.

View 2 Replies

ActionScript 2.0 :: Passing Xml Files To Swfs?

Feb 2, 2004

I have a main movie with a dynamically created menu (uses data gathered from an XML file). Each menu item has an Action and Variables associated with this action.

Code:
<?xml version="1.0"?>
<menu name="mainmenu">

[Code]...

Now as you can see from my XML file above one of my menu options is a photo gallery. What I would like to to is have one swf, i.e. photoGallery.swf, and load this into an empty movie clip called content_mc and pass it different XML files (same format, but different content). (see my loadSlideShow() function)

View 14 Replies

Create A Mute Button?

Feb 1, 2002

How to create a mute button in flash so that when its clicked all sounds are muted, however, when clicked again all sounds resume but without starting again from the beginning.

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

Mute Button Not Working?

Aug 9, 2009

This is a simple mute toggle button for an mp3 player.
 
I first var sound: Sound 
Then I have the function 
//mute the current sound
function muteSound ()

[Code]...

View 3 Replies

IDE :: Mp3 Fading Mute Button?

Aug 2, 2009

i have an mp3 that plays as background music to my website with a mute button that fades the music in or out. This works using the code below that i found on another site.My problem is i would like to have this music added to an external swf that i could load into my main site in order to decrease the main site file size. When i load swf however, the music doesnt play. the button appears (which is also in the external swf) so i know that the movie is loading but no sound plays.

some_sound = new Sound();
some_sound.attachSound("Kevin Spacey 16bit.mp3");
some_sound.start();

[code].....

View 1 Replies

ActionScript 2.0 :: Passing Variables From Loaded SWFs

Jun 26, 2007

I'm working in a modular app and I'm having trouble passing variables between a Parent and it's loaded Child SWF file. The Child SWF has a single object called hotSpot_mc. The Parent has a frame called frame_mc to load the Child. I'm trying to pass the value of bHotSpot, which is turned on and off when the user mouses over the MovieClip. Testing shows that the value is being set in the Child but not in the Parent, where it remains undefined. Should I be using shared objects or do I just have to use better targeting?

Here is the parent SWF

Code:
// Load the child SWF into frame_mc
loadBackground("Room_1.swf");
function loadBackground(backgroundName:String):Void {

[Code].....

View 1 Replies

ActionScript 2.0 :: Passing Variables Between Seperate Swfs?

Oct 16, 2002

I am having trouble passing information from a loaded movie sitting on level1 back to the main movie.

View 3 Replies

ActionScript 3.0 :: Mute Button For Embedded FLV?

Dec 19, 2008

I need to create a mute button for an embedded FLV file.There is no separate sound file for me to control, so I'm unsure

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

ActionScript 1/2 :: Mute Button Is Not Working?

Oct 9, 2010

I tried using a form of "volume = 0" kind of code but one thing it doesn't mute is the sounds I have in buttons (or symbols). Those seem to continue playing even when the mute is active.So whats a form of code I could use to shut off all volume?If there isn't a solution then what can I do to mute symbol sounds?

View 1 Replies

ActionScript 2.0 :: Mute The Music With A Button?

Mar 9, 2011

I have some songs in the same folder as i have my .fla file. I call the .mp3 file on the first frame and i want to be able to pause it or stop it when i click on a button. I would appreciate the code for that. Or maybe any other suggestion on how i should add music to my .fla file.

View 9 Replies

ActionScript 2.0 :: Mute Button Not Working In Embedded SWF

May 19, 2010

The mute button code I have works perfect when the SWF is played itself, but when it is embedded in a wrapper SWF it no longer works. I know that it is the code that references _loc1. I have the root locked in the first frame of the embedded swf with this:

Code:
this._lockroot = true;

Here is the code in question. I just need to know how to change this code to make it work when this SWF is embedded in another SWF:

Code:
btn.onPress = function () {
var _loc1 = _root.snd.getVolume();
_root.snd.setVolume(Math.abs(_loc1 - 100));

[Code].....

View 1 Replies

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 3.0 :: Create A Mute Button For Video In It?

May 11, 2009

I would like to create my own mute button in as3. I have created a video object which plays my video fine. I'm having trouble finding information on how to create a mute button that mutes the audio but the video continues to play. All documentation that I've read relates to controlling sound from an loaded .mp3 file.

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

Dynamic Mute Button Movie Clip?

Oct 22, 2009

The image is the little speaker, which has been converted to a Button symbol. When you click the button to mute, the sound mutes and a red "X" appears over the speaker icon. The red "X" was created as a Movie Clip so that it appears and disappears as you mute and unmute....after you click the button and mute, the red "X" does appear, however 1.) When the master movie recycles so does that X (it disappears). The muting stays off, though. Of course, then, if I want to unmute, I have to reclick the speaker icon to make the "X" reappear and then quickly click it again to turn the muting off (and I have to catch it before it recycles and disappears again).it is anyway. I'm using AS2:

var sound = 1;var offMC = _root.attachMovie("off","off01",99);off01._visible = false;off01._x = btn._x;off01._y = btn._y;var s:Sound = new Sound();s.attachSound("WildWestSaloon2");s.start;btn.onPress = function(){ if(sound==1){ 

[code]....

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

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 2.0 :: Disappearing Mute Button On Click?

Jul 20, 2010

I am very very new to action script, most of the flash I use is for banner animation etc. I am doing a video that I need to start playing automatically, but it has to start playing muted. For this part I am using the following code

Code:
vid.playPauseButton = playpauseVid;
vid.volume = 0;
vid._uiMgr._isMuted = true;
vid.muteButton = mute;
vid is my video instance name.

This works great so far. But now the client wants to ad a big button over the video that says PLAY WITH SOUND. And that button has to serve the same function as the unmute button but it has to disappear once it is clicked.

View 9 Replies

ActionScript 2.0 :: Swap Symbol For Mute Button?

Aug 5, 2008

I've created a mute button which works fine for my flv and all other button sounds, but i want to swap the symbol for the volume so that when its off it will come up as off but when the user clicks on it to be on it will show that it is on etc...

View 4 Replies







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