ActionScript 3.0 :: Stop A Sound In Loaded External SWF?

Dec 29, 2009

I'm loading an external swf file that has some sounds in it (to the main swf). The swf contents never leave the movie but it does get pushed to the site when it's not in view.

The user can bring it back in view by pressing on a left/right button. So when it's not in view... or tweening out of view I need the sounds to stop.

Since the loaded swf is never unloaded, what should I look at to accomplish this... communicating with the loaded swf, etc?

View 5 Replies


Similar Posts:


Actionscript 3.0 :: Loaded Sound Doesn't Stop / When A New One Is Loaded

May 8, 2009

I have three btns on stage, clicking on each one i want them to load an external mp3.The problem is the previous loaded sound doesn't stop when a new one is loaded so I have all sounds playing at the same time

View 3 Replies

ActionScript 3.0 :: How To Stop Sound Of Loaded Swf

Aug 28, 2010

i have loaded one swf in current file. the loaded swf contains a video with sound. now on clicking another button of current file say "next" I want to load another swf which i did but the sound of previous swf is not stoping

View 2 Replies

ActionScript 3.0 :: Way To Stop Sound From Loaded Swf

Jul 3, 2009

was wondering if is there any way to stop sound (stream sound put on a frame as it have to be sync to an animation) from a loaded swf.I know SoundMixer but I don't want to stop sound from my main swf, that have the possibilities to load external flv.

View 2 Replies

ActionScript 3.0 :: Loaded Swf Won't Stop Sound

Aug 13, 2011

I'm very new to flash codes and I try to develop program that works on CD I made main swf that load external swf . In main swf that is a button in the main list that lead to goto other frame load the external swf in uiload The problem when I go back to main list that external swf sound wont stop I tried this code

[Code]....

View 1 Replies

ActionScript 3.0 :: Stop Sound In A Loaded Swf When It Is Removed?

Jan 24, 2008

I have a loaded swf that contains a sound object, however, when the clip is removed the sound continues, how can i remove the sound?

View 9 Replies

ActionScript 3.0 :: Stop External Sound In External SWF

Jul 19, 2010

I am working on controls for an external swf. The external swf loads an external sound file. The structure at the moment is extswf.swf contains mcSound which loads soundfile.mp3. extswf.swf automatically starts playing when invoked. movieController contains the icons for the play/pause buttons. This is assigned CntlClass. CntlClass loads extswf.swf and controls the play and pause buttons.

So far, the play and pause buttons stop and start and stop the movie but not the sound. I know I need to access the sound channel from the external swf and use the sound transform to change the volume. How to access that channel is unknown. The examples I find have imbedded sound files. Also, the examples seem to use the main class for the external swf. My external swf doesn't have a class file, so I have no idea what the main class would be.

View 5 Replies

Professional :: Sound Does Not Stop If I Exit A Pre-loaded FLV Movie?

Nov 10, 2010

I have an FLV video loaded as an "external video with play back component" in my Flash site. It works pretty well, even loads fast regardless its 15MB size. The video located on its labeled section which has an "X" button which closes this section and brings a user back to the page with all the video sections. However once the labeled section with the video is closed the sound is still playing.Does any one know how to make it stop if the section with the video has been exited?Then go to HOW TO section and click on the link "here" for "The Arrangement" show it will bring you to the section with the video loaded as an "external video with play back component" in my Flash site.

View 4 Replies

ActionScript 1/2 :: Pause, Stop, Play A Sound That Is Loaded From The Other .swf File?

May 6, 2009

Pause and Resume external SWF sound filesI have this code that plays the sound through linkage. It reside in scene1.fla -> scene1.swf.

var mc:MovieClip = this.createEmptyMovieClip("mc",1);var myLoop:Sound = new Sound(mc);myLoop.attachSound("bg_sound");myLoopVolume=0;myLoop.setVolume(myLoopVolume);
mc.onEnterFrame = function () {  if (fadeIn01==1) {  

[code].....

View 1 Replies

ActionScript 3.0 :: Stop Sound In An External Swf?

Feb 1, 2009

I'm using external swf in a project, and I got one swf with startup audio play, I can't stop the sound to play when I load another swf via this code :

Code:
clearButtons();
TweenLite.to(m.target, 0.5, {tint:0xcc0000});
m.target.mouseEnabled = false;

[Code]....

View 4 Replies

ActionScript 2.0 :: Start/stop/pause A Sound In External Swf?

Jan 15, 2010

I'va any troubles in controlling sound in an external swf. I need to stop/play/pause it. I've put the sound file on the timeline of the external swf and I want to control it from tha main movie in wich I've load it. the swfs are made using AS2.0

View 2 Replies

ActionScript 3.0 :: External Swf Wont Stop Playing Sound?

Jun 28, 2011

I have created a form that has some buttons that open external swf files.Problem is when I close the external swf the audio keeps playing.If I turn off sounds the sound starts again when I load a new external swf.Here is the relevant portion of code;

function playMyMovie():void{ myrequest=new URLRequest(myMovie); myloader =new Loader(); myloader.load(myrequest); function movieLoaded(myevent:Event):void {  stage.addChild(myloader);  var mycontent:MovieClip=myevent.target.content;  mycontent.x=100; [code]....

View 15 Replies

Actionscript 3.0 :: Unload Loader Wont Stop Sound From External SWF?

Mar 24, 2010

I have a menu on my main page where i can choose some videos to play, these videos are in external SWFs that are loaded in and displayed using Loader, URLrequest etc.. etc..

I have a close button on my external swf that sends a dispatchEvent to an eventListener on my homepage to close the external SWF however the sound from the video in the external swf is still audible even though the visual is gone

heres the code

main page code
Code: Select all
function playVideo(e:MouseEvent):void{
//stop maipage sound
channel.stop();

[Code]......

View 2 Replies

ActionScript 3.0 :: Controlling The Sound Of The External Loaded SWF?

Aug 18, 2009

I  have a Loader that loads external SWF. The external SWF has sound. I'd like to stop, pause and play the sound.

[Code]...

This only mute the sound only and the sound is still runnung.

View 4 Replies

Actionscript 3 :: Stop External Loaded Youtube Swf?

Mar 1, 2012

I've use AS3 Youtube API to load youtube video into my flash file, let's call it youtube.swf

I've a main.swf and it loaded youtube.swf into it's stage.I try to unload this youtube.swf and load in another new.swf, but the sound of youtube still running.

I've insert the player.destroy() in the main.swf but it's not working too.

Any idea that I can destroy the youtube video with the script in main.swf?

View 1 Replies

ActionScript 2.0 :: Loaded External Sound Control Panel

Oct 12, 2004

I've got a main flash index file (fla_main.swf) which acts as a header/menu that concurrent pulls in external movies (ie, content pages) when sections are selected. There's no problem with that at all, but I do have a soundtrack control panel that is an external mov loaded in (soundctrl01.swf). There's 3 music tracks and options to stop, start, next track etc. All the usual stuff, vars loaded by "loop01.new Sound();" etc and played/stopped with the var instances. Anyway, the mov starts with loop01 playing and then allows the option to skip etc, working fine on publishing but when the fla_main loads it in theres no sound on any loops. Is this an issue with loading sound vars and external movies?

View 5 Replies

ActionScript 2.0 :: Control External Loaded Swf Sound (on Timeline) Properties?

Feb 13, 2009

Is it possible that we can control external loaded swf sound (on timeline) properties.

E.g:
duration
position
onComplete....etc?

View 0 Replies

ActionScript 2.0 :: Controlong Sound In Loaded External FLV-s In Embedded Video?

Mar 12, 2011

In Flash MX 2004 Pro. I have embedded the video in which needs to load several external FLV files. These are the problem: In my main file I have a sound object (music) and then load the video when I reduce the volume of the music of the main file to 0 that the louder the sound from FLV videos. The problem is that when the music died down to 0 to mute the sound with FLV videos to 0.How to separate audio from FLV videos from sound of music and how to separately control the volume loaded FLV file?This is the code that I use:

my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);

[code].....

View 1 Replies

ActionScript 3.0 :: Stop Button Sound But Not Main Background Sound?

Aug 5, 2010

I have a bit of a problem with sound.. I have a main container animation with background sound that's loaded with soundChannel..I also have an externally loaded SWFs with Movie Clip buttons that have a sound ON ROLLOVER on the timeline..after rolling off - I place the:SoundMixer.stopAll();to stop the button from playing the sound once the mouse is rolled off.. However, the problem I'm running into is that it also stops the sound of the main container movie cli

View 1 Replies

ActionScript 2.0 :: Sound - Stop Button To Allow The User To Stop Mid Song

Mar 13, 2007

i have programed a play button using:

[Code]...

now i am trying to program the stop button to allow the user to stop mid song....

View 4 Replies

Sound Stop All Sounds Works / Then Sound Starts Again?

Jan 5, 2010

I am using FLASH CS3.I have gone through many posts, seems to be an issue with many people.Still haven't come across a fix.Website made in FLASH. Flash movie loads and sound works great!I have a button with 'StopAllSounds' action script.[code]When I go back to main page... sound starts up again.Is there a way I can stop all sound regardless of where the visitor goes on the website?

View 2 Replies

Stop Sound From Going Into Next Scene While Keeping Button Sound?

Oct 19, 2010

I'm sure this is a common problem, I tried looking around on the forum for a problem like mine but was unable to find anything. I'm using Flash CS3, Actionscript 2.0, and am making a soundboard. I have two scenes, one that's the title screen, of which has a sound file loaded via the timeline, (I think) set to Event and Loop, and a button which takes you to the next scene and makes a short sound when it's pressed. My second scene has background music as well, also set to Event and Loop.

Problem is that when I press the button, the background music keeps playing into the next scene. I tried using putting stopAllSounds onto the button, but that makes the sound of the button stop as well, and I'd really like to keep it. I've been messing with this for days, and I can't figure it out.

View 3 Replies

ActionScript 2.0 :: Play Sound/stop Sound Button?

Feb 13, 2007

i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.

View 13 Replies

ActionScript 2.0 :: Sound Visualizations - Dynamically Read The Sound Levels Of A Loaded MP3

Jan 14, 2005

Does anyone know of a way to dynamically read the sound levels of a loaded MP3 to help produce dynamic sound visualization in Flash?

View 5 Replies

ActionScript 3.0 :: NetStream Choppy - Make A Character Start To Talk When The Sound Starts And Stop Talk When The Sound Stops

Aug 5, 2010

Need to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:

[Code]...

View 2 Replies

ActionScript 2.0 :: Play Sound Like "stop All Sound" Option In Flash?

May 17, 2003

I want to use a sound loop in my flash movie. The movie has many scenes. And the problem is that when I go to next scene or different scene I hear the sound repeating twice. I mean sound does not stop from first scene and begins from the different scenes.Is there any way to play sound like "stop all sound" option in Flash.

View 6 Replies

ActionScript 3.0 :: Stop .mp3 And .flv In External Swfs When Loading A New External Swf?

Apr 10, 2009

Specifically, I am building a flash page that loads external swf files and inside some of the external swf  files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf

View 1 Replies

ActionScript 3.0 :: External XML Works Loaded Offline Not Loaded Online?

Apr 15, 2009

Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);

[code]....

View 3 Replies

AC2 :: Stop One Sound And Start Another?

Jun 17, 2009

I am creating an animation with very few controls for a presentation and it requires adding sound. I have my intro in the first frame with one sound and then want the user to click anywhere to start the animation and another sound.The problem I am having is sound control.No matter what I try the sounds overlap. I have managed to stop the first sound when going to the next frame - the animation, but the second sound now will not start. The first sound is called in from the library with the below code:

var snd = new Sound();
snd.attachSound("Tune");
and stopped when going on the next frame with:

[code].....

View 1 Replies

Stop A Sound Channe?

May 23, 2009

Need a way to stop a sound channel, then play the sound in the sound channel when a new song is selected. currently the songs just play on top of eachother at the same time.code obviously not working for a number of reasons.

View 1 Replies







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