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


Similar Posts:


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 :: Turn Off Audio When External FLV File Is Closed?

Jul 19, 2011

This is part of my ongoing issue with 6 video files in six Scenes.I have 6 videos there were imported as enbedded, one in each scene. the first four play but the second two do not.whichever order i place the scenes, it is always the last two that pause at the first frame.o try another approach, I linked instead to a video externally. This seems to work, but, when I click a button to go to another scene the audio from the previous scene is still playing when the new video starts.

View 22 Replies

Professional :: Loading External Audio File In Array?

Dec 7, 2011

I have figured out how to load an external video file - and I can play an imported audio file, but I can't seem to use either method to load an external audio file into an array.

Here is my audio code:
var tour_audio:Array = [tour1, tour2];
var my_num:Number= Math.floor(Math.random()*2);
var ChosenSound = tour_audio[my_num];
var playing:Sound = new ChosenSound();
playing.play();

Here is my video code:
var my_videos:Array=new Array ("link1.mp4", " link2.mp4", " link3.mp4", " link4.mp4");
var randomIndex = Math.floor(Math.random()*my_videos.length);
my_player.source = my_videos[randomIndex];
I tried "var tour_audio:Array = ["link1.mp3", "link2.np3"]; - but that did not work.

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

ActionScript 2.0 :: Make External Streaming Audio Sound File?

Mar 8, 2007

Is there a way to make external streaming audio sound file "mp3" loop. my understanding is that streaming audio won't loop, only works for attached sounds...

var my_sound:Sound = new Sound();
my_sound.loadSound("jazz.mp3", true);
my_sound.start.(0, 99)

This actionscript works but it won't loop..

View 3 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 :: End Of External Audio File Triggers Movement On Main Timeline?

Aug 12, 2011

I have a few external audio clips in MP3 format that I bring in to my SWF by creating different Sound Channels for them. However what I would like to do it when the end of the MP3 file is reached, it will dispatch an event to make the playhead on the main timeline move to a certain frame.

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

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

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

Html :: Flash Audio Player For M4a (AAC) Audio File Embedded?

May 15, 2007

I'm looking for a (free) flash player that I can embed in my site and use to play a .m4a (.mp4 with AAC audio) file that will be obtained using a URL (i.e. it's not local to the server hosting the web page).I've tried searching on google for one, but either I'm searching wrong or no one has made such a thing. Ideally this would be very simple (small user interface with play button and maybe a progress bar) and it would be easy to have multiple instances of on an html page (can create the player with an <object> tag).

View 7 Replies

ActionScript 3.0 :: Stopping External SWF??

May 26, 2010

I am having a problem manipulating a loaded swf. I would like it to load, play once and not continue until told to. have looked around the web and have gotten confused.I have been using a loader, but I have read that to controll a time line you need a movieclip(?)so I had created an empty mc, and placed the loader with the swf in the mc.

View 3 Replies

ActionScript 3.0 :: Stopping Video From External SWF?

Jul 2, 2009

I'm building a flash web site and I'm loading external SWF files to a main SWF. One of these external SWF loads videos using a FLVPlayback Component. The problem I have is when a video is playing and you press another link in the main SWF the other section loads but the video keeps playing in the background, eventhough every time a load a new external SWF I use the unload() method to unload the previous SWF.

View 3 Replies

ActionScript 3.0 :: Stopping External Swf's With No Timeline?

May 24, 2010

I just released my portfolio at [URL] which consists of a lot of externally loaded swf's (progressive banners). These swf's contains no timeline really, just one keyframe with an imported FLV. I don't have the source files so I need to control these from my Main flash file.
 
As these external swf's are auto-playing, I would like it to be user initiated instead, so the users click on a button and it plays. But commands like "loader.stop()", "gotoAndPlay" etc. doesn't seem to work obviously.

View 7 Replies

Actionscript 3.0 :: Stopping Video That Is Played In External SWF

Jul 27, 2009

I'm having a major problem stopping video that is played in an external SWF. I've added the external SWF file via the addChild method. However, when I remove it the video's audio keeps playing. The only other solution if I can't figure it out is rebuilding the site in AS2.

View 7 Replies

ActionScript 3.0 :: Stopping External Swf From Playing "unloadAndStop()?

May 23, 2010

I am having a problem stopping external swf from playing. I am currently using FlashCS4 and publishing to Flash Player 10. I would really like to use the code loader.unloadAndStop();" to stop the swf. I tried using it but I keep getting the following error: 1061: Call to a possibly undefined method unloadAndstop hrough a reference with static type flash.display:Loader.loader.unloadAndstop();I read somewhere that since the swf files were published in Captivate (also using Flash player 10) I have to load the swf into a flash movie clip first then try the loader.unloadAndStop code. where to put that code or what I'm doing wrong? And please be very detailed, I am new at this and have little experience.

ActionScript Code:
fscommand("allowscale","false");
fscommand("showmenu","false");

[code]....

View 0 Replies

ActionScript 3.0 :: Stopping, Playing, Getting Info Of An External .swf Animation

Feb 15, 2010

I have an external .swf lib that I load using Loader class. I can get the content of it (images, text) using:

new (loader.contentLoaderInfo.applicationDomain.getDef inition(symbol) as Class)();

Then I use it to load a .swf (that I generated using Flash CS3 trial) inside that .swf lib:

var mc:MovieClip = new (loader.contentLoaderInfo.applicationDomain.getDef inition(symbol) as Class)();

I use addChild(mc) and the animation is displayed! So far so good, but the gotoAndStop, gotoAndPlay, stop and play, getting totalFrames, functions simply does not works!!!

View 1 Replies

ActionScript 3.0 :: Stopping Sound File From Repeating

Mar 12, 2010

I have added two consecutive streaming audio tracks (mp3) to the timeline of a child SWF. The child SWF loads onto a parent SWF using a loader. After loading the child SWF the movieclip and audio plays without a problem. I have a problem with stopping the audio. After the child is unloaded and the playhead reset in the parent SWF the first audio track from the child SWF begins to play again (but not the one right after it). I have been trying to use the SoundMixer.stopAll(); command to stop the audio. I have not been successful in preventing the audio from playing. I now see that the command only works after the audio begins playing. Is there a better way to control streaming audio embedded in the timeline? I need to prevent it from playing again.

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

Flash8 :: Reading The First Line Of A Text File And Stopping

Aug 7, 2009

I am using flash 8 and I have succeeded so far in loading variables from a text file that contains around 20 lines and have the variables displayed in texboxes. The problem is that it goes directly to the last line and displays those variables. I need it to read the first line only and stop so I can add a "next" and "previous" buttons and be able to navigate through the database.

View 11 Replies

ActionScript 3.0 :: Stopping Sound File After Unloading SWF Child?

Mar 12, 2010

I have added two consecutive streaming audio tracks (mp3) to a child SWF.  The child SWF loads onto a parent SWF using a loader.  After loading the child SWF the movieclip and audio plays without a problem.  In the last frame of the child SWF a dispatchEvent is used to signal the end at which time the loader is unloaded and the playhead reset in the parent SWF.

I have a problem with stopping the audio.  After the loader is unloaded and the playhead reset in the parent SWF the first audio track plays again (but not the one after it).  I have been trying to use the SoundMixer.stopAll();  command to stop the audio.  I have not been sucessful in preventing the audio from playing. The command only works AFTER the audio begins playing and I manually move the playhead to a frame containing the SoundMixer.stopAll(); command.

I have been reading some older threads with similar problems and haven't found a solution that works for me.  I have placed the SoundMixer.stopAll(); command in every possible loaction in the main timelines of the parent and child SWF without success.  Why is the sound file playing after I unload the child SWF?  Is there a way to prevent it from playing again?

View 3 Replies

Actionscript 3 :: Use An Audio-file - Preload A Sound-file

Jan 21, 2011

I have AS3 project, made with FlashBuilder. I'm using MovieClips from an external .SWC-file. In a MovieClip from the .SWF-file, I want to use an audio-file. Is it possible to preload a sound-file (e.g. .MP3) in my FlashBuilder project, and access it in a MovieClip inside the .SWC?

View 1 Replies

ActionScript 3.0 :: How To Download Audio File And Video File

Sep 27, 2009

i am new to actionscript i need to download .mp3 and vedio file form my remote server how to do this give me any example source code for this.when i download .pdf its downloading properly. but not audio.

View 1 Replies

ActionScript 3.0 :: Starting And Stopping Video File That Is Attached To Augmented Reality?

Apr 17, 2009

I'm trying to do a little augmented reality. I'm using an action script to call a video and play it. The problem that I'm having is that the sound is starting the moment the window is open and the video plays with the marker is shown. I want the sound and video to only play when the marker is seen. I would like it to pause when the marker is removed and then resume where it left off when the marker is seen again. Here is a copy of my code if someone could look it over and tell me what I'm doing wrong. PLEASE PLEASE PLEASE just correct my mistake. I don't understand enough about coding for you to just say Netstream.pause() and netstream.resume. I don't know where to put that information in.

package { import flash.display.Sprite; import flash.events.Event; import flash.display.BitmapData; import flash.display.Loader; import flash.net.URLRequest; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream;

[code]........

View 1 Replies







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