ActionScript 2.0 :: Sound Toggle On Template File?

Jan 27, 2009

I have a Template file I am editing that plays music in the background. I want to shut it off when a Video is loaded so I added a stopAllSounds to the button. Works fine; however, I cannot figure out how to turn it back on again, as the template designer placed the sound file into a button rather than creating a sound Object. Was hoping someone could help me figure out how to restore sounds (I have tried adding Frame Labels to his sound movie/button but it returns me to the opening on the animation.

I have posted the file here if anyone would like to help. If no time for that, is there a simple way to output what is happening when I hit the toggle button, so I can copy that and try it?

View 1 Replies


Similar Posts:


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

ActionScript 2.0 :: Toggle Sound On And Off?

Apr 28, 2008

I have a button, just one button, that I want to be able to use to toggle sound on and off. On the button I have included the following actionscript:

on (release) {
stopAllSounds();
}

Can I add additional script to turn it back on again? Maybe an if statement? The sound is currently being loaded and I cannot really add additional frames to make this work. I have to be able to include the script in one step if possible. Unless a movie with several buttons is the only way to go.

View 1 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 2.0 :: Sound Toggle Using StopAllSounds()?

Apr 3, 2007

I have created a game where all the main actionscript takes place in one frame.For extra functionality I was going to add a button to toggle on/off sounds, after searching this forums and others Im left confused how to implement this.If i choose to use stopAllSounds() Im aware it only stops the current sounds and will not interfere with sounds about to occur.

Collision detection and random sounds occur within my game on an interval, is there a simple way to turn off all sounds permenantly? The only other id would be a button with a toggle and use multiple IF statements to check status of sound on/off.

View 1 Replies

ActionScript 3.0 :: How To Toggle Sound Off/on Of A Music

May 31, 2011

The user should be able to toggle on or off the sounds button where clicking (on) will turn on the sounds while the button's label will be changed to 'off'Initially the sound is off.

View 4 Replies

ActionScript 3.0 :: Target/pause Mc From Sound Toggle Btn?

Nov 29, 2010

I have a movie clip on the main stage which loops an animation of a gramophone. On a separate mc in the layer above I have a working toggle button which plays and pauses a loaded mp3, but does not yet pause the MC animation beneath it. I need to find a way to target/pause/resume the gramophone MC insync with the sound button which is in another movieclip

View 0 Replies

Sound In A Site Template?

Mar 10, 2010

I downloaded a flash template for a website and it includes a looping .wav soundclip that starts automatically when the page is loaded. There is an ON/OFF button that stops it, then starts it again.What I want to do is change the soundclip to a soundclip of my own. The instructions that came with the template say that to change the music, all I need to do is change the sound_Bar movie clip.

When I double click the sound_Bar movie clip, and select the "music" layer in the timeline, in the properties tab I see the following options:

Name: OLDclip.wav
Effect: -- (blank)
Sync: -- (blank)
Loop

I've imported my custom sound to the library, but when I select it, the values change to this:

Name: NEWclip.wav
Effect: -- (blank)
Sync: Event (<-- I can't change this back to being blank)
Loop

Anyways, what happens when I change the clip is that when I click the OFF button, the sound does not stop. Then if I click the button again to turn it ON, it starts the clip again, but overtop of the one that's already playing.Does anyone know why this is happening and how I can fix it? I don't really know too much about flash, that's why I bought the template pre-made...so far I've been able to edit everything else, and the music seems to be the last step but is giving me the most problems.

View 1 Replies

ActionScript 3.0 :: Edit Code For Sound Toggle Button

Aug 19, 2010

I need it so the music plays at start and then the button will pause/stop it, and  then turn into a play graphic which, when pressed, will play it again. I tried editing the code, but I am horrible at programming and of course nothing I tried worked. Please let me know what I have to change to start with music playing, and then have it stop/pause on first press, and alternate "play" and "stop" on subsequent presses. 

[Code]...

View 9 Replies

ActionScript 3.0 :: Got A Toggle Button That Plays Sound When Clicked?

Jan 3, 2010

So I got a toggle button that plays sound when clicked, now I need it to stop playing sound when clicked again.

[Code]...

View 1 Replies

ActionScript 3.0 :: Edit Code For Sound Toggle Button?

Aug 19, 2010

this is the one code that I could make work, but I need it so the music plays at start and then the button will pause/stop it, and then turn into a play graphic which, when pressed, will play it again. I tried editing the code, but I am horrible at programming and of course nothing I tried worked. Please let me know what I have to change to start with music playing, and then have it stop/pause on first press, and alternate "play" and "stop" on subsequent presses.

[My fla has 2 layers, one for this AS, and one for the buttons... within the symbol section, I have two layers, one for the button common BG, and two frames in the button layer, one for play (triangle) and one for stop (square). They are saved as a movie clip.]

[Code]...

View 5 Replies

Actionscript 3 :: Flash Play/Pause Sound Toggle Button?

Sep 11, 2010

I've googled and googled but got no where or outdated tutorials. Anyone know how to make it so I can toggle audio with buttons using ActionScript 3 on Flash?

View 2 Replies

ActionScript 2.0 :: Mute Toggle Button To Specific Sound Clip

Jun 3, 2011

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?).

View 6 Replies

ActionScript 2.0 :: Sound Toggle Conflict With Music Fade In/out Scripts?

Sep 3, 2007

I have a video and background music in one flash file. I need the background music to fade out when the video is playing, and fade back in when the video is paused. Everything works fine until the Music On/Off button is inserted.If you try out the attached FLA, the background music is able to fade out when the video is played and fade in when the video is paused. But once you toggle the Music On/Off button, the background music fade in/fade out doesn't work anymore.

View 2 Replies

ActionScript 2.0 :: Toggle Any Settings When Importing A Sound Clip Into The Library?

Apr 28, 2008

I embeded an mp3 into a movie clip, and the source mp3 is professional quality, yet the embedded clip sounds horrible.

Is there a way to toggle any settings when importing a sound clip into the library?

View 2 Replies

Insert / Import Swf File Into Open Fla File Template?

Aug 20, 2010

Anyone can show me how to insert or import a swf file into fla template file.I have a temple FLA file open and after import a SWF file , run test and the swf is not working.

View 2 Replies

ActionScript 3.0 :: Play A Sound File And Show The Progress Of The Sound File Being Played

Mar 16, 2009

I have to play a sound file and show the progress of the sound file being played. I am using import flash.media.Sound; import flash.media.SoundChannel; But the PROGRESS event gives theprogress of loading of file. I want to know of much of the song has been played and how much more is left.

View 3 Replies

Make Multiple Flash Files From The Same Template And Then Edit That Template

May 24, 2010

If you make multiple flash files from the same template and then edit that template, will all those files have those same changes? If not, is there a way to make the same change on multiple files at once? Basically the same idea as linking HTML files to a single CSS file...

View 1 Replies

Flash 10 :: SWF File On Top Of Another In XML Template

Jul 14, 2011

I am using a flash template with an xml file. I am trying to replace an image with a .swf file. Is this possible? And what tags do i use to replace the line below with a flash .swf in place of it?
<image url="images/pic3.jpg">
I just want it to be a flash movie on top of a flash movie instead of a pic.

View 0 Replies

ActionScript 2.0 :: Toggle Button To Open External File

Mar 24, 2011

I admit I am WAY in over my head here and its been WAY too long since I've used AS2.0 to remember anything about what I'm doing. I have a dyaminc table on the screen that is holding a movieClip that contains the following code.

Quote:

this.attachMovie("info_btn","NigeriaTrain4_5",this .getNextHighestDepth(),{_x:13, _y:85});//add button to the stage and places it on x & y axis
NigeriaTrain4_5.onRelease = function()
{//give button function

[Code]....

View 9 Replies

Professional :: Template And Some Of The Code Is Do In A XML File?

Mar 10, 2011

I have a flash template and some of the code is do in a XML file. Where can I find the correct color numbers.
I tryed using the color numbers in flash and it didn't. This is the first I am using this method.
 
Example:menubarcolor="60000"menuidlecolor="0xbbbbbb"menuselectcolor="0xffffff"

View 2 Replies

ActionScript 2.0 :: Using A Flash Template With Xml File?

Jan 7, 2010

i am using a flash template with xml file.i have to made a link here

Code:
<image imageUrl="_pic1.png" link="asfunction:_root.more_click_func, termsofuse"/>
<image imageUrl="_pic2.png" link="#"/>
<image imageUrl="_pic3.png" link="#"/>

i would link to link this to an interne part of the flash wich is already linked in the flash menu, but i can't !the xml function is :

Code:
function more_click_func(number) {
tempNumber = number.split(" ");
number=tempNumber.join("");

[code]....

I tried something like :

Code:
function test_link(string) { _root.gotoAndPlay("s1"); }
and
<image imageUrl="_pic1.png" link="asfunction:_root.test_link"/>

but it didn't work !

View 6 Replies

ActionScript 1/2 :: Flash Template On Template Monster?

Mar 29, 2004

Jesus Christ - I thought I was really good in flash.Got this template and I can't see S***.
WTH - is it supposed to be this difficult to manipulate a template or am I stupid???
Go into project explorer and can't see much AS so how the hwll are they getting the images and text into the flash swf. By the html??? I don't think so.

View 5 Replies

Javascript :: Is It The Index.template.html File Per Project Or The HTML File Created Per MXML Application

Sep 26, 2011

I was reading about Flex- JavaScript communication via ExternalInterface.But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MXML application ?

View 3 Replies

IDE :: Create Toggle Button For Full Screen In Flash File

May 10, 2011

I am currently finishing off a flash project that I began using FlashMX (with action script 1).It is a language teaching tool which will be viewed both online, and will be also put on CD.I would really like the swf to fill the user's entire screen.I have tried a few things with javascript in the html file that haven't worked. I would greatly appreciate any tips on how to:

1. Create a toggle button for full screen in my flash file

2. Make the swf take up the entire browser window (width="100%" height="100%" doesn't seem to work)

3. Create a standalone version for CD that fills the user's entire screen

View 2 Replies

ActionScript 3.0 :: Preloader For External File Template?

Sep 29, 2010

I used the CS5 Flash templates>sample files>preloader for external file, to create my preloader.The problem is that when the preloader is done and my SWF is loaded, my SWF has already started playing.It is an animation that builds for 200 frames then buttons appear.By the time the SWF appears it has already gotten to the button frame.Depending on connection speed I have caught the animation building.

Here is the preloader action:
var contentLoader:Loader; loadContent("stage002.swf");   function loadContent(url:String):void {   contentLoader = new Loader();  

[code].....

View 3 Replies

How To Change Text Words Of FLA File From Website Template

Aug 4, 2009

I have a website template in which I am trying to change the header text words and menu text words to customize the template. How do I do this in Flash CS4?

View 4 Replies

ActionScript 3.0 :: Flash Template - Preview SWF File Into Modal Window

Jun 30, 2011

I have a flash template that I am working on, and have customized it via the XML files. It's an AS3 template. I also have a Flash poll script that I am attempting to integrate into the template. This is where it gets a bit tricky...I have decided to use a modal window (which supports swf files) to open the poll that I am using. If it were as simple as to load the swf file, I would be fine, but the poll also includes XML and PHP files, which I don't know what to do with.

The files included are: preview.swf, preview.fla, the xml file, config.php, edit.php, index.php and then "caurina" and documentation files. What I'm thinking I need to do is include the preview.swf file into my modal window, but I'm not sure what to do with the rest of these files, do they go into a new folder in the main template folder or what?

View 1 Replies

ActionScript 3.0 :: Creating A Visual Template Of A MovieClips In A .fla File For The Designer To Adjust And Tweak?

May 1, 2009

I'm thinking of creating a visual template of a movieClips in a .fla file for the designer to adjust and tweak.  Then in flex builder 3 (actionscript project) I load in that .swf file and use the references to the movieClips to adjust location, size and color of objects...  Hope that made sense...
 
Along those lines... is it possible to grab the graphic information of an entire movieClip?  Let's say there's a movieClip with a red 4 pixel line on the top then 2 pixels further down there's a grey rectangle that's 400 pixels high.  These were drawn with vectors in the flash environment.

View 6 Replies

ActionScript 3.0 :: WAV File - New Sound.extract() Function To Get Two Seconds Of A Sound Into A ByteArray

Nov 11, 2009

I'm having some trouble getting the following code to work - trying to use the new Sound.extract() function to get two seconds of a Sound into a ByteArray, and then create a new bytearray with a WAV header, and then output the file. The resulting 'test.wav' file sounds very wrong although slightly recognisable? I think I may have some of the WAV header settings may be wrong but I'm not quite sure what's the matter and after a long time scratching

[Code]...

View 5 Replies







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