Actionscript 3.0 :: Possible To Stop / Pause Embedded Audio On Timeline?

Dec 8, 2009

I have a swf that has embedded audio on the swf's timeline which is set to Stream. This swf is then loaded into my main flash timeline via the loader class. I have a button coded as a toggle switch that pauses the loaded swf via the stop() and play() command. This works fine. The issue is that when the swf is paused (stop()), the audio is longer heard, but it continues to play. When I press my toggle switch again, the swf begins to play exactly where it was paused and the audio is now heard, but the issue is that the streaming audio is now out of sync since the swf timeline paused, but the audio continued to play. Is it possible to stop or pause the embedded audio on the timeline? I've tried looking at the SoundMixer static class, but this doesn't seem to help. I can use SoundMixer.stopAll(), but there's no way to start the audio again.

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Stop Audio Embedded In Timeline?

Aug 10, 2010

I've been given FLAs that contain audio embedded within the timeline. It's been a long while since I've had to deal with audio in this manner and I'm running into a problem.

The basic setup is this:

- There are 3 movie clips within the FLA

- Each movie clip contains embedded audio within the timeline

- The audio plays as soon as each movie clip begins

Here's my issue:

On the main timeline, there is a 'back' button which allows the user to move to the previous movie clip.

When the user clicks this button, it does move back to the previous movie clip; however, the sound does not stop which results in 2 audio files playing at the same time.

If I were calling the sound utilizing SoundMixer/SoundChannel, I know how to ensure the audio stops, but since the audio is embedded within the timeline, I'm not quite sure the best way to make sure the audio stops when the preceding movie clip is called.

View 5 Replies

ActionScript 2.0 :: Pause/ Stop Embedded Video?

Feb 18, 2009

The Flash site I am building includes an FLV video which is embedded into a SWF (SWF1), which contains the video control components. SWF1 is in turn loaded into another SWF (SWF2) after SWF2 is launched. After I leave the part of SWF2 which contains the video, the video and audio continue to play. You can still hear the audio after you have moved away from the SWF1 video.The SWF1 video is part of a set of mostly PNG images that slide like a slide show along the X axis. When I hit the forward arrow, the SWF1 video slides out to the left and a loaded PNG image slides in from the right and into view. But you still hear the audio from SWF1 and the video continues to play.All of the loaded SWF video (there are three total) and PNG images are loaded into the same movie clip.Question: How can I tell the FLV video embedded in SWF1 to stop playing once SWF1 has moved out of view? I would like SWF2 to tell SWF1 to stop the video.

View 5 Replies

ActionScript 3.0 :: Options For Embedded Audio In The Timeline?

Jul 6, 2011

I am having trouble with an embedded audio clip. (embedded in the timeline) First, the reason for embedding.... I need the audio (voice over) to correspond to the on Stage animations, and have words and animations appear when certain keywords are spoken. Second, here is what I have tried...

1) I have tried to embed the audio clip directly on the timeline. The audio file I am using is an MP3 created out of Garage Band. (Mac audio program) When I embed the clip, and publish a preview, it nearly crashes Flash Player. The audio continues to play, but all on screen animations are severely slowed and choppy. And I must force quit Flash Player to close it. Plus it is nearly maxing out my CPU during playback.

2) I removed the audio clip from the timeline, and decided to try AS3 to import and control playback of the audio clip. This seemed to work fine, no slowdown, less CPU usage, and on screen animations seemed to play normally. However, it is nearly impossible to sync the audio and on Stage animations with an externally loaded audio clip. (timing is always different depending on computer and internet speed.)

[CODE]...

View 4 Replies

ActionScript 3.0 :: Stop Embedded Audio From Playing?

Jun 27, 2011

I have a section of a site that has a voice over when you get to a page. I have a play/pause button that works fine, and plays and pauses the audio voice over. I have about 9 other buttons on this page that all have 'SoundMixer.stopAll();' in order to stop the embedded audio. This works the first time you click a button, but any button after that restarts the embedded audio.

Is there a way to make it so that Flash knows not to restart the embedded audio?

Do I need to make a sound variable and set it to 'false'. I am not sure what to do, or how to do it.

View 8 Replies

Professional :: Create An Audio Player With Play, Stop, And Pause Buttons?

Apr 16, 2010

I want to do something that is probably very simple, but I'm having difficulty.
 
I want to create an audio player with play, stop, and pause buttons that I can then import into Fireworks/Dreamweaver. 

View 2 Replies

ActionScript 1/2 :: Make Audio Play And Pause / Stop When Different Buttons Pressed?

Jun 12, 2010

I am making a simple radio interface and i have 6 preset buttons which i want to have play the specific preset button's song which is in the library and stop/pause the current song when any preset button is pressed.

i tried using the attachSound function, with associated identifiers but not sure if that is the right way to go. It plays the songs, but doesnt stop them.[code]...

View 12 Replies

ActionScript 2.0 :: Simple Audio Player With Stop / Play / Pause Buttons?

Jul 8, 2011

I'm struggling with a script to make a simple audio player. I'm loading the audio externally, using loadMovie. I have three buttons on stage ("Stop","Play", and "Pause"). First two work nicely, problem is the third one. here are the actions for the three buttons:

STOP button - Working

ActionScript Code:
on (press) {
audioContainer.unloadMovie(10);
}

[code]....

BTW, the external movie clip contains an audio track inside a movie clip. Any ideas how to make the thrid button to "pause" the audio?

View 8 Replies

Professional :: Stop Audio Of An Embedded File When A New Swf Is Open?

Oct 18, 2010

Here is the issue I am running into. I have built my site in CS3 and I have used a loader.On my site I have embedded video links, when the other video links are pressed, the audio from the prior swf keeps playing. The site[URL]

View 1 Replies

ActionScript 2.0 :: Mute Audio Embedded In A Button's Timeline From The Main Stage?

Oct 26, 2007

how to mute a audio embedded in a button's timeline from the main stage

View 1 Replies

ActionScript 2.0 :: Pause Or Stop The Timeline For An Amount Of Time?

Sep 29, 2004

is there a line of code to pause or stop the timeline for an amount of time?

View 4 Replies

ActionScript 2.0 :: Stop Sound Embedded In Timeline?

Aug 28, 2009

Is there any way we can stop the sound embeded in timeline directly?

We have an application that load SWF dynamically. These external SWF are not created by our company and other company has embed the sound in timeline. without use of any actionscript or anything.

Now we need to provide the MUTE option for our user, is there any way We can simply disable all kind of sound in any mode from our ActionScript code.

View 2 Replies

ActionScript 2.0 :: Create A Pause Button That Will Pause Everything On The Screen Including Movieclips/audio?

Mar 26, 2007

I am trying to create a pause button that will pause everything on the screen including movieclips/audio. Right now I can't figure out how to pause the movieclips.

View 2 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 :: Audio Synchronization - If The Audio Were On The Timeline You Could Set Sync Params To Stream?

Mar 11, 2010

Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..

View 1 Replies

Get The Audio Level Chart From The Library Into View Along The Audio Timeline?

Oct 25, 2009

The images for animation load okay. The sound loads okay.  But the animation images need to be inserted in coordination with the sounds, which is difficult using only the ears  There is a visual graph of audio levels in the library window, which I have seen appear in the timeline also but only momentarily.  I do not know how to keep the audio graph on the timeline so as to know where to put the images.  I can keep the graph open on the little library window when it is open but not on the timeline. how to keep the graph open on the audio track while I work on the image tracks.

View 1 Replies

Flash :: Start And Stop Audio From The Middle Of Audio Track?

Apr 25, 2011

I have a single audio file, I'd like to avoid cutting it up.

I know I can use the sound class, mySound.play(150), to start at 150ms but haven't come across a way to stop the audio say after 500ms or at 650ms.

View 2 Replies

ActionScript 3.0 :: Looking For UI For Animation Timeline Or Video / Audio Timeline?

Feb 7, 2011

I'm looking for an animation timeline or video/audio timeline ui or maybe like a gantt chart thing that can be adjustable. It's basically draggable icons in tracks and bars that you can adjust the size of.

View 0 Replies

Audio Cannot Pause And Restart Correctly

Apr 3, 2009

I have a a movie which is a training...I have audio along with slide that change as the veiwer watches. I have created pause buttons for the audio and will be adding in stop features to the movie itself stop however my problem is. When I pause the audio and then go to restart the audio does not restart at the place it paused. It is ramndom in its restart. Like if the phrase was "see you in september" and I pause in the middle of "september" it will not restart in the middle of september...might start at "see" might start and "in" I do not get it. Here is my script which is in the first frame.[code]...

View 1 Replies

ActionScript 2.0 :: [CS3] Streaming Flv To Trigger Embedded Mp3 On Pause?

Feb 29, 2008

I have a loop (mp3) playing from the instant my index page is loaded. This is to be my web portfolio site and on the third page (loaded by clicking a linkage button), I have some buttons that trigger streaming flv files in an flv playback component. What I want to do is to pause or stop the loop for the duration of each flv, then when the streamed flv is finished, the loop resumes playing. Is there a way to do this? I can do this if the flv files are embedded in the swf, but since these files are streamed, I am kind of at a loss.

View 3 Replies

ActionScript 3.0 :: Play Pause In Embedded Video?

May 19, 2010

I am using AS3 and have embedded a video into flash using player. I want to play pause the video.

So, I am using ns.pause(); to pause the video and its working. ns denotes the instance name.

Simultaneously, i am using ns.play(); to play the video. But its not working.

View 10 Replies

ActionScript 3.0 :: Pause Play Embedded Video?

Apr 16, 2011

I'm new to Flash, and obviously AS3 (or AS in general) and am currently making a menu in which I have 2 video files.I want people to be able to play and pause (and stop) these videos.I currently have them playing and pausing using the FLVplayback method with no skins (have to make my own buttons). Though this is working I really need the video files to be embedded into the .swf/.fla as apposed to an external video.I have imported the videos into the library but they're not in use atm.

Is it possible to tell FLVplayback to use a embedded file from the library?If not is it possible to make a embedded video play/pause/stop in AS3 any other way? I couldn't seem to get it to which is why I went to FLVplayback method.

View 3 Replies

Professional :: Pause The Audio Track In Flash?

Apr 12, 2010

How would I pause the audio track in flash?I am creating a little movie and would like to pause the commentary (soundtrack) so I can show more pictures.

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 2.0 :: Pause And Play Multiple Audio Files?

Nov 5, 2010

I have a flash "hear from the experts" video in which multiple speakers discuss an issue. I have it set up so you can listen to each speaker one at a time, however, I don't know how to pause and play each speaker so if you wanted to pause it and return or pause it and start a different speaker, you could do that and then resume where you left off. It would be even cooler if I could add some sort of status bar that shows how far into the audio you are, and you could skip ahead. I uploaded the file in CS3 - I had to actually delete the MP3s that are triggered to play on each play button in order to make it small enough to upload, but if you look at the code you can see it there.

View 0 Replies

ActionScript 2.0 :: Link A Button Thats Embedded In Frame 2 (music Page Timeline) To A Frame In The Main Timeline?

Nov 22, 2011

How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.

View 1 Replies

ActionScript 3.0 :: Pause Stage/swf With Audio When A New Tab Is Opened/ Out Of Focus In Browser

May 16, 2011

I have created a container in Flash Professional CS5 for my project's CBT.  I've been able to script many of the features we require using AS3, but there are a couple of things I'm still trying to work out. I would like the swf presently playing in one tab to pause and go silent when another swf is opened in a new tab (the sound is inside this externally loaded swf which is loaded inside a movie clip from buttons nested a movie clip down).  I've tried :

var originalFrameRate:uint = stage.frameRate;
var standbyFrameRate:uint = 0;
addEventListener(Event.ACTIVATE, onActivate);
addEventListener(Event.DEACTIVATE, onDeactivate);

[Code].....

This function is present when I publish the CBT with Captivate, so obviously there must be code available. You can set the Captivate button to open url in new window and pause movie. Is there something I can add to the html file that is similar to the "has Priority" for mobile devices or is there javascript that can be added to the flash itself?

View 1 Replies

ActionScript 2.0 :: Control Audio Of Embedded FLV?

Apr 9, 2008

Im creating a microsite which loads external SWFs with embedded FLVs in their timeline (each SWF has its own preloader). To control their audio (mute/unmute buttun), I have encoded & imported the FLVs & their audio tracks seperately in the SWFs. I'm controlling the audio tracks by attached them from library through the sound object.

Issue:

The FLV & audio run synced when I play them together in timeline. But they go off-sync when I play the audio though AS, rest assured that FLV & SWF have the same fps. I have even tried encoding the FLV at both the source video fps & SWF fps.[code]...

View 9 Replies

ActionScript 3.0 :: Pausing Audio Embedded Into A Swf?

Jan 13, 2009

I read all of the threads on this forum about pausing audio in a swf. They were all very helpful - if you have control over the swf fla. However i have no control over the swf i am loading. I cannot find a way to reference a sound that is placed on the timeline of the movie. If i had access to the fla of the swf, then i could change the linkage, but again i don't possess the fla.

so does anyone out there know of a way to reference global sounds in a swf? In as 2.0, this could be done easily by declaring a new sound object without a target such as this: var gvol = new Sound();

I can't seem to make this work in AS3.

I need a way to reference a global sound in a swf, so i can then apply the SoundChannel to the sound object, and read the position property within

View 0 Replies

ActionScript 3.0 :: Progress Bar For Embedded Audio?

Sep 23, 2011

Is there a way to create a progress bar for embedded audio, or is there a component for it already? I have multiple embedded (in the timeline) audio files (MP3), and I have successfully scripted a play pause button for them, but I would also like a progress bar showing you where you are in the track. It doesn't need to be seekable by dragging. Just a visual indicator of where you are.

View 9 Replies







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