ActionScript 3.0 :: Embedded F4v Files Drop Audio After Pausing/playing?

May 10, 2011

I have a template I created in CS4 where an flv video clip was embedded with a controller skin, etc. It worked fine.

I'm working in CS5 now and using f4v files, and publishing for Flash 10 Player. The files are targeted, load and play properly, but if I pause the video, then hit play, audio stops. Starting a new clip at a different point in the timeline works fine. I noticed if I turn off autoplay under Component Parameters, audio doesn't work at all.

View 2 Replies


Similar Posts:


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

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

ActionScript 2.0 :: Control The Audio Files Playing?

Apr 22, 2009

I am new to action script.I am going to control the audio files like media player. How to control the audio files playing

View 1 Replies

ActionScript 3.0 :: Playing A Series Of Extrernal Audio Files?

Nov 8, 2008

I am bulding a slide show with syncronised audio I have aworking version which will load a series of jpgs names 1.jpg, 2.jpgand a series of mp3s (1.mp3 etc). The problm comes when I wanted toadd play and pause buttons.It works until on the second audio file if I click pause thenpay it goes back to audio file 1.mp3. Can't for the life of me findthe right code

View 1 Replies

Playing Local Audio Files With Flash And/or HTML5

Jul 9, 2011

I realize it is possible to play audio with Flash and HTML5 by passing a URL.

However, is it possible to get a reference to an audio file using a file browser (either with HTML5 or Flash), to then play this local file, again using either Flash or HTML5?

Of course, this should happen without the interference of a server. Since the file is already on the local system, it does not make sense to route it through a server only to receive the same file again.

View 1 Replies

ActionScript 2.0 :: Action Script To Import Audio Files Into Flash Movie While Movie Is Playing

Jun 10, 2002

Is it possible for action script to import audio files into the flash movie while the movie is playing. (Instead of manually importing a file from within the flash application) Or some way to load an audio file located at a remote url, that is not preloaded, and play it.I've searched through the action script reference guide, but have found nothing to do the job.

View 3 Replies

ActionScript 3.0 :: Pausing Sounds That Are Embedded In A Movieclip?

Nov 13, 2009

I have a movieclip that contains an animation with several soundeffects in it.Now i would like to be able to pause the animation and play it again. Which isn't so hard for the animation itself but it is for the sound.

View 0 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 :: Pausing Swfs And Audio In A Browser When The Tab Is Out Of Focus?

May 19, 2011

I'm trying to code my flash file so that the html will pause all swfs AND audio when the tab is out of foucs.  I found this code on[URL].._and_VBScr ipt_Injection_in_ActionScript_3 and it works,but not completely. It only pauses the movie clips that are in the Flash file and not any that are exteranlly loaded with audio included.

[Code]...

View 2 Replies

Professional :: Pausing Swfs And Audio In A Browser When The Tab Is Out Of Focus?

May 19, 2011

I'm trying to code my flash file so that the html will pause all swfs AND audio when the tab is out of foucs.  I found this code on [URL] and it works,but not completely. It only pauses the movie clips that are in the Flash file and not any that are exteranlly loaded with audio included.
 
How can I adjust it to pause the externally loaded swfs that are loaded to a mc within my main movie clip and the audio OR what should I use in place of this code?  Someone mentioned on a different post that I needed to use a window.onblur funcition, but they didn't give details. 
 
import flash.display.MovieClip;import flash.utils.setTimeout; // This is a more "safe than sorry" setting, since multiple domains// have entry into my site. Can be removed or hardcoded if you feel// secure or insecure, as you see fit.flash.system.Security.allowDomain("*"); // Throw any errors around to make sure somebody actually gets

[code]....

View 1 Replies

ActionScript 3.0 :: Pausing A Swf With Audio When The Html Window Is Out Of Focus?

May 16, 2011

I have created a container in Flash Professional CS5 for my projects CBT. I have been able to script many of the features we require using AS3, but there are a couple of things I am 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 have tried :

var originalFrameRate:uint = stage.frameRate;
var standbyFrameRate:uint = 0;
addEventListener(Event.ACTIVATE, onActivate)[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 0 Replies

Pausing And Playing MovieClip Children

Jul 10, 2010

Pausing, stopping and playing movieClip (MC) children. I am making SWFs that an interface will load and control (pause, re-start, stop, etc.). Then the interface is paused, the main MC will pause but not it's child MCs. I didn't write the interface, I am just supplying SWFs that are loading into the interface. The developer of the interface willn't allow me to use animated MCs in my SWFs since he can't control them with the interface. So all my animation need to be on the main time line, which is no optimal to say the lease.Can I provide him with some code to allow him to stop the child MCs or is there an Event Listener I could include in the child MCs that would pause, stop, restart, etc when the main MC changes?I currently do not have a fix at this time and since all my animations are on the main timeline, is there a way to select multiple objects (on difference layers) and move and resize them across multiple keyframes?

View 1 Replies

ActionScript 3.0 :: Detect When A Playing Audio File Has Reached The End (stops Playing)?

Aug 31, 2009

I have some animation (programmatic, I'm NOT using keyframed animation in timeline), and some music I want to play in the background. Once the music file reaches the end (about 30 seconds long), I want to trigger the end of the animation functions.I figure I could either use an actionscript timer to trigger the end of the animation or a keyframe with actionscript that is placed on the timeline near the end of the song but these methods assume knowledge about the duration of the wave file. If I changed the framerate or updated the external wave file, these triggers would possibly no longer sync upIs there some sort of event listener or other detection method for an audio file to signal it has finished playing? Or maybe there is a way to get the duration of the audio file to use in the timer

View 3 Replies

Streaming Audio / Loading Audio Into Swf First / Then Playing It?

Jan 28, 2012

I think it is loading the whole audio first into the swf, but I would like to get confirmation from someone more knowledgible.[code]I want it to stream the audio when the button is clicked only so that 100 of these swf will not slow down a whole webpage from loading.[code]I only start getting concerned when I noticed that on FF and Chrome, the page loads really quick but when I open the page in IE, it takes a very long time for the page to appear.

View 3 Replies

Professional :: 2 Out Of 6 Imported Flv Files Pausing On Frame 1 When Published

Jul 19, 2011

I have six Scenes, each scene has an imported FLV file.I have a 6 button menu that works fine when clicking from one scene to the other.The problem is is that videos 1 to 4 play fine when I switch to the scene, but FLV files 5 and 6 just stay paused at frame 1.If I test the Scene using Ctrl+ALT+Enter, the Scenes work fine.But Only if I either hit Ctrl+Enter to render the whole project, or if I publish the file, do the FLV files pause on frame 1.All 6 videos are coded exactly the same way.

View 4 Replies

Finding Flash Files Embedded In Office Files

Jun 15, 2010

Can anyone improve on this? Requires Sysinternals Strings

date /T >N:output.txt
net use z: /delete
net use z: \svr-002

[Code].....

Basically it mounts a share as a network drive then runs through the share looking for swf files inside office documents.

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 :: 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

Flash8 :: Controlling Embedded Video Audio?

Aug 19, 2010

I am trying to control the audio of an embedded video from a mute button. I can get the audio to play and the mute button to control the volume using the following script:

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

[code]....

The problem I am having with this is that the video is not appearing on the stage and when I place it on the stage the audio is playing twice. how I can get it to appear on the stage and still control the sound as the button is doing at the moment?

View 1 Replies

Professional :: Muting Audio On Multiple Embedded MCs?

Jul 19, 2011

I have a file with one main mc called "clip" that contains 9 different embedded audio tracks (all inside their own separate mc) on the first keyframe. They span the entire length of the mc - 10 frames in this case. Essentially what this does is creates a full song with 9 separate tracks that I want to mute (and unmute) when I arrive at a specific keyframe.I am using a slider (called "aSlider") on the main timeline to navigate between the keyframes.Everything starts out muted and as we progress, tracks are unmuted and the song starts to build. It is working great right now in that direction. However, if I move the slider backwards, it seems to be re-creating the audio clips so that I am overlaying more and more audio on top of each other.. which is quite the mess. Here's the AS for the slider.

aSlider.width = 324;
aSlider.move(309, 681);
addChild(aSlider);

[code].....

View 1 Replies

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

Embedded Flash Videos - Audio And Video Sync?

Feb 28, 2008

Im having serious issues making a video sync with audio inside an embedded flash video file.

View 2 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 3.0 :: Overlapping Sounds With SWFs With Embedded Audio?

Aug 11, 2010

I am using an xml based slide navigation shell that uses next and back buttons to page through content.

If I use SWFs with embedded audio (which I need to do sometimes) the audio will overlap after I leave the slide, SoundMixer.stopAll() is not doing the trick. I think removeChild may be the direction I need, but I'm not sure how to implement so far.

View 3 Replies

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

ActionScript 3.0 :: All Embedded FLV's Playing At Once?

Nov 17, 2010

I have completed my website with several sections Home, competition, prizes, sponsors, gallery, enter, contact us.Each section is labelled on the main time frame and then there are movies within that with the content for each section.Everything was working fine until I decided that I was going to import some FLV files to use within my home section.There are seven of them and they are each 12 seconds long with audio. I imported them in to a movie clip called santa_intro_movie with structure like thisScene 1 - Home_BG - santa_intro_movie > and each imported flv sits within it's own movieclip named snta_click-001 etc up to 007 all on different frames of the santa_intro_movie and controlled by buttons.

When I test the movie it works great....except when i try and navigate to other sections of the website, when i click on my main buttons at the top for some reason the audio from all of the FLV's start playing at once and any tweens or animations that I have on those other pages start going in to hyperdrive!!!I have checked through my actionscript and I just can't figure it out.

View 8 Replies

IDE :: Audio From Unloaded Swf Keeps Playing?

May 28, 2009

I'm trying to load a successive series of swf, each containing audio, into a loader. As each ends, it's unloaded and the next one loads. I'm using the following code:

Code:
var ldr:Loader = new Loader();
var c:int = 0;

[code].....

View 2 Replies







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