ActionScript 2.0 :: Stopping Loaded Audio?

Feb 20, 2004

I have scene that loops over and over if the user clicks on the wrong button. The audio is loaded at about half way through the scene.when the scene loops around again, and the user clicks the right button I want the audio to stop. BUT it doesn't and I'm using the same code as I've used before (it works normally)Is it becuase the second time round, at the time the user clicks the button the audio hasn't actually loaded and started playing. All you're listening to is what's left playing from the first loop?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Stopping UILoader Loaded Audio Of A .swf Video?

Jan 21, 2010

I have 3 buttons (and 3 .swf videos).Each button makes the main timeline go to a specific frame and stop.Each Frame tells the UILoader to load a different assigned .swf video (source parameter).

Problem: when playing the project's .swf in the Flash Player, "VISUALLY" the videos properly switch,but the Audio continues, so the Audio for all 3 videos are playing simultaneously.How do I get the current video's Audio to stop when the new video is loaded ?I experimented with enabled = false;"(and other methods) between the changing videos .

switch(eventMLR.target.name) ...
case "myVideo1MLR_btn":
for (k= 0; k < sndArrayMLR.length; k++){[code]..........

View 1 Replies

ActionScript 3.0 :: Stopping Audio On A FLV?

Nov 26, 2010

Im currently making a website but ive run into a problem. i imported a flv onto the stage, all was fine. i tested it and when i navigate onto the page it starts automatically. when i navigate away from the page the audio keeps playing. is there anyway i can stop it playing automatically and have it halt after i navigate away from the page.

View 1 Replies

ActionScript 2.0 :: One Swf Is Stopping Another Sfw's Audio

Nov 14, 2007

I have a game that has sounds for specific user actions. The second that the first sound is activated, sounds in all other flash movies stops. For example, mp3 streaming swf's or video streaming swf's from youtube, will halt, the very second the user clicks in my game. What's going on and how can I patch this?

View 2 Replies

Professional :: Stopping Audio On A New Scene?

Apr 8, 2011

I was wondering how do I stop my audio when I enter a new scene?

View 3 Replies

ActionScript 3.0 :: Stopping Audio In An External Swf File?

Nov 18, 2008

I managed to use a loader to load an swf that has a video/audio track encapsulated within it. It starts and plays fine. Because of property rights considerations, I must use the provided swf with the video within it rather than converting it to an FLV.

And using the unload command I get the video portion to stop, but not the audio.

I know that I need some kind of audio stop to stop the audio, but haven't been able to figure out exactly how.

The parent swf is pretty simple, no buttons, it just plays 6 external swfs under control of another program that starts it and stops it with no other interaction.

View 6 Replies

ActionScript 2.0 :: Starting And Stopping Audio Files?

Jan 10, 2007

I have 4 sets of 2 buttons (on and off):

Each set of buttons I want to trigger and stop a different audio file. (4 audio files in total)

I would like for the sound files to be saved within the .fla file.

I have done lots of searching but I still haven't been able to get this to work.

View 1 Replies

ActionScript 3.0 :: Stopping Audio Streaming Inside A Layer?

Oct 8, 2009

Sometimes I get ahead of myself and have to stop and say how the hell did I do this before?'m referring to a simple stop button I need to put in a flash animation. I know how to code calling a sound from the library, starting and stopping. But how do I stop audio that is streaming inside a layer from a button ?

d(new URLRequest("yoursoundfile.mp3"));var my_channel:SoundChannel = new SoundChannel();//2.play_btn.addEventListener(MouseEvent.CLICK, playSound);stop_btn.addEventListener(MouseEvent.CLICK, stopSound);//3.function

[code].....

View 3 Replies

Professional :: Playing - Pausing - Stopping Audio In A Timeline

Feb 23, 2010

I don't use Flash that much so the question may sound simple, but how do I pause audio in a timeline? I have added the audio, play and stop button. When I test it works fine, but I can't figure out how to add the pause button, or the play/pause button.

View 2 Replies

ActionScript 2.0 :: Stopping Flash Audio When Link Is Clicked?

Aug 20, 2010

This is really confusing (the title of this thread probably doesn't make any sense at this point), and I'm not actually quite sure what I'm trying to do is possible, but I figured I'd throw it out there.

Basically, I have created a speaker-looking button (speakerON_btn) that plays the audio in Flash. It works fine -- starts automatically and stops when it's at the end or when somebody clicks on it.

Then, I put this Flash file into an HTML... works good. However, on this HTML page, I also have a PDF link (that links to what the audio is discussing). I have been asked to stop the audio when the user clicks on the PDF to open it. I don't want the PDF to open in the same window, so I can't use that as a method to stop the audio.

Is there any ActionScript I can add to the Audio Flash file that will tell it to stop when a user clicks on a link outside of Flash?

Also, if the above is impossible, would it be possible to add ActionScript to stop the audio if I were to build the entire HTML page as a Flash file? If that's a possibility, what ActionScript would need to be added to the my speakerON_btn?

View 1 Replies

ActionScript 2.0 :: Stopping The Audio Loop Without Stop The Entire Animation

Mar 21, 2009

I have a problem with an animation because I want to stop the loop sound without stop the entire animation what can I do to make correctly this action please? I tried to make a movieclip to control individually of the center time line but i dont get good results.

View 4 Replies

ActionScript 3.0 :: Back Button Stopping Audio On A Video Component

May 16, 2010

I am putting together a basic video portfolio and have everything working except when I click the back button to get back to the thumbnail page (contained on frame 1) the audio from the video continues to play.[code]

View 4 Replies

Actionscript 3 :: Stopping An Externally Loaded Swf From "playing" When Another External Swf Is Loaded?

Nov 8, 2011

I have a homepage with five "links" to each swf. Now the first swf I have a custom cursor that hides the mouse. When I click on that link it plays and when I quickly go to the homepage again it hides the mouse there when it's not supposed to do it.

Same with every other link. When I was busy with the first swf and want to go to the last swf of the five, my mouse just disappears! It is almost as if it keeps on "playing" without seeing the swf...

Here is the code that I have so far!

var currentpage:uint = 0;
//one loader object per project:
var loadingobject1:Loader = new Loader();
loadingobject1.x = 445;

[Code]....

View 1 Replies

ActionScript 3.0 :: Stopping A Loaded Swf?

Oct 2, 2009

I really need help on this. I have an As3 swf that loads an AS2 swf but when user clicks and button it should the AS3 movies should unload the as2 movie and stop all the sounds and scripts running in AS2 movie.

I am loading the AS2 swf in a loader and then simply removing the loader from the display list to stop AS2 actions and sound. BUt this is not working and even after removing the AS2 movie from display list it still keeps playing in the background.

View 2 Replies

ActionScript 3.0 :: Stopping A Sound In A Loaded Swf?

Jan 4, 2010

Is this possible? I've loaded an external swf into my movie - the swf stays on stage but loses focus throughout a users interaction.When it loses focus, I need the sounds within it to stop.It was mentioned that I should cast my swf as a movie clip but when I try I get errors.

View 4 Replies

ActionScript 3.0 :: Loaded Custom SWF Not Stopping?

Feb 9, 2010

I have created a SWF file using a class I created as the main class for the swf. this swf is a movieclip with a frame labeld "open" and a stop action at the last frame

the main class of the SWF (PageSwf):

ActionScript Code:
package {
import flash.display.MovieClip;
public class PageSwf extends MovieClip {

[Code]....

View 5 Replies

Professional :: Loaded Custom SWF Not Stopping At Stop

Feb 10, 2010

I have created a SWF file using a class I created as the main class for the swf. this swf is a movieclip with a frame labeld "open" and a stop action at the last frame the main class of the SWF:[code]the problem is when I run the open function, after loading the swf it doesn't stop at the last frame. in fact it does not stop in any of theframes that have stop action in them. So far what i figured out is that if don't convert the content to PageSwf, and put it in a genereal variable and the run the open function it works just fine.[code]

View 1 Replies

Actionscript 3 :: Stopping Timeline Sound On A Loaded Swf

Nov 18, 2011

I'm working on a as3 player which loads swf like videos/chapters, inside them I have images and a level where a sound starts to play at frame 1.I'm trying to stopping the sound of the loaded swf when I change it with a previous or later loaded file but nothing seem to work.[code]the timeline sound works without notice the SoundMixer method.

View 2 Replies

ActionScript 2.0 :: Stopping A Function From A Dynamically Loaded Mc?

Jul 22, 2003

I'm using a timer on a keyframe to auto refresh mcs every 10 secs. This is working correctly but when I click on a button from a dynamically loaded mc I want it to stop the function from running.

[AS]
function movieDelay() {
choice = Math.round(Math.random()*2);
switch (choice) {

[Code].....

View 9 Replies

ActionScript 2.0 :: Stopping And Starting A Dynamically Loaded Movieclip

Jul 28, 2010

Im having trouble stopping or starting loaded swf files. I need to dynamically load the swf file but make sure it doesn�t play until the user requests it. The trouble is I wont know anything about the loading swf file (for example frame labels, if it has a 'stop' script in the first frame etc.) Ive attached a simplified version which I think illustrates the problem but the code is:

[Code]...

View 2 Replies

ActionScript 2.0 :: Random Pictures Loaded On Stage - Stopping Blur Tween

Dec 27, 2010

In this game I dynamically load 9 random pictures onto the stage. They all start off with maximum blur. The idea is that when the user hears a sentence the pictures gradually lose their blur. The sooner the correct picture is clicked on, the higher the score. My problem is, I can't stop the tween when the user clicks on a picture. I've tried it successfully on a much simpler fla, where the images are already on the stage and not loaded from an external source.

Here's my extracted code - the source fla is way too long to attach.
Actionscript Code:
import mx.transitions.Tween;
import mx.transitions.easing.Strong;
import flash.filters.*;
import mx.controls.Loader;
var totalBlur:Number = 100;//100 is maximum blur,
[Code] .....

View 1 Replies

ActionScript 3.0 :: Controlling Audio In Loaded SWF

Jan 23, 2009

I have several flash swf's that are about 10 - 20 min. each. I load these in a player that I have created as the user selects them from a menu in the main swf (a swf player basically). I can pause start and stop the swf's with no problem, but I can't seem to get a handle on controlling the audio. I have the audio in the loaded swf's timelines because I need to sync the audio with the animation taking place in those swfs. I could, take the audio out of the timeline (after syncing it), and then load it separately, but it would be much cleaner for me to just have it in the timeline.

I've resorted to the SoundMixer of the main swf to mute and change the volume, but I can't get hold of the Sound(), soundTransforms etc. of the loaded swf. To assign a play location for the soundChannel I need to access the loaded swf's Sound().Play() function, but I can't seem to do that. I have exported the timeline audio in it's actionscript, supplied a name (same as it's class name), and then tried to access it, but I can't seem to do it (yes I wrap the loaded.content variable in a MovieClip cast--that's how I can control the pause and play of the animation). Tutorials I have found only seem to work with sounds loaded into variables, and none refer accessing timeline sounds in a loaded swf.

View 5 Replies

ActionScript 3.0 :: Audio For Externally Loaded SWF?

Jul 21, 2010

I have navigation panel that basically controls which swf to play on my stage. Every swf file that I have has audio in it. As soon as I have jumped to the second swf (or 3rd,4th, 5th....) , the audio from the previous overlaps the next.

var Xpos:Number = 200;
var Ypos:Number = 0;
var swf:MovieClip;
var loader:Loader = new Loader();

[code]....

View 1 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

ActionScript 3.0 :: Fadeout Dynamically Loaded Audio?

Jul 3, 2010

I am loading mp3 files from php into Flash based on when a user clicks a link of audio files to listen too. I would like for the audio to start fading out 10 seconds before it finishes.how I can determine when a song will end and create a timer around this.

View 3 Replies

ActionScript 3.0 :: Sync Audio Loaded With MovieClip?

Jun 30, 2011

I have a voice over that I am trying to load, and sync with on screen animations. So when the narrator says something the animations back it up. However, when I embed the audio clip in the timeline, it makes my whole flash movie slow to a crawl, and everything gets out of sync anyway. When I load it externally using AS3 like this:

ActionScript Code:
var my_sound:VoiceOver = new VoiceOver();
var channel:SoundChannel = my_sound.play();

Everthing works great, but I don't know how to sync it with my movieClip that contains my animations. Is there a way to have the external audio sync with a movieClip on the timeline?

View 7 Replies

ActionScript 3.0 :: SoundMixer.stopAll(); - Kill Audio In Loaded SWF?

Aug 25, 2010

I've currently got a flash site written in AS3, into which i'm loading an AS2 SWF that plays audio.The AS2 SWF is loaded into a container movieclip at Frame 10, when a specific navigation button is pressed, the playhead advances to this frame, and calls the SWF. When the user navigates away from this frame, SoundMixer.stopAll(); is called to kill the audio from the loaded AS2 SWF.

This works fine inside of Flash however, when deployed to the browser, the audio playing in the loaded AS2 SWF carries on playing.I've tried loading a new blank SWF in it's place to kill the audio, as well as a blank SWF with stopAll(), all of these solutions work within the Flash IDE (CS4) however the audio always persists in the browser.

Code:
var swfLoader:Loader = new Loader();
holderMC.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("ytPlayer.swf");

[code]....

View 1 Replies

ActionScript 3.0 :: Pause/Resume Audio From External SWF Loaded

Jun 20, 2011

loaded an external swf (with audio) in a conteiner swf.
 
From the cointeiner I want to controll audio pause/resume.
 
I know the procedure to do this with a mp3 file, but I can't  intercept the sound channel of my child swf...
 
this should be the code to obtain the sound position:
 
var soundChannel:SoundChannel = new SoundChannel();
var sound:Sound = new Sound(new URLRequest("SOUND.mp3"));
soundChannel = sound.play();
pausePoint = soundChannel.position;
  
But I haven't the mp3 path.... My mp3 is embedded into swf child. And I can't put actionscript function in child, because is haven't source fla.

View 5 Replies

ActionScript 3.0 :: Accessing A Loaded Video's Audio Tracks?

Mar 14, 2012

Is it possible to access a video's audio tracks when playing an flv, mp4, m4v, etc? I am trying to build a player where I can switch between different language tracks but can't find how to access this property.I am using the FLVPlayback component:

ActionScript Code:
mPlayer = new FLVPlayback();
mPlayer.width = 957;

[code]....

View 0 Replies

ActionScript 2.0 :: Audio Of One Loaded Clip Continuously Starts?

Apr 11, 2008

I have a custom player that loads several swf files and plays them one at a time (like a slideshow). It uses a preloader class that loads these external clips into an array, then begins to play the first one. The user may navigate forward or back, or pause.The problem: one swf, meant to play toward the end of the show, has audio that starts automatically a few seconds after any slide startscontainer clip is used to hold and play each loaded clip in the array, one after the other - however, to restate, the problem slide has audio that starts for no apparent reason when any clip is played. The audio for the problem slide starts at the beginning of that slide, but, when playing other slides, it starts a few seconds after they begin.

View 1 Replies







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