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


Similar Posts:


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

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

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

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 :: 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 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 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 3.0 :: Control The Volume Of Multiple Audio Tracks Embedded Within A Movie Clip?

Jun 9, 2010

What is the script to control the volume of multiple audio tracks embedded within a movie clip?

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

Javascript :: Gain Access To An Embedded Flash Video's Parameters That Is Embedded On A Site You Don't Own Via A Browser Extension?

Jan 2, 2011

I'd like to gain read only access to the following parameters of embedded Flash videos located on sites that I do not own through my own custom browser extension/add-on:

Time location of playback head (so I can display the current time in the browser extension via HTML5/JavaScript) Frames (so I can make capture them to an image file, save it and display image in browser extension) Original Dimensions in pixels (so I can display the original video dimensions via JS/HTML5 in browser extension)

Is this possible by using Javascript and HTML5 from a browser extension?

Would I have to use something like the SWFObject Javascript API [URL]

View 1 Replies

Flash Won't Load When Embedded But It Works On The Published Embedded Html?

Nov 11, 2009

I made a flash mp3 player and it works fine in any other test pages. but when i embed it onto my site it just shows blank. what do i do? my site is [URL] and the flash player i tested here [URL] and it plays. What im i doing wrong? i tryed everything. right now i just got it in a iframe but i dont want that iframe.

View 1 Replies

ActionScript 3.0 :: Value When The Text Is Dynamically Embedded And Correct When Manually Embedded?

Oct 19, 2007

Looking at the attached file, why does bottomScrollV give me the wrong value when the text is dynamically embedded and correct when manually embedded?

Here's the code:
ActionScript Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoad);
loader.load( new URLRequest("info.xml") );

[Code]...

View 1 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

Aug 25, 2009

I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)

Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.

I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.

View 8 Replies

Asp.net :: Skinnable Audio Player (or Something Similar To Windows Vista Audio Control In Task Bar) For The Web?

Mar 11, 2010

Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?

A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.

View 1 Replies

CS4 Media Encoder Audio - Audio Sound Stops After A Few Seconds From The Beginning?

Aug 4, 2009

I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...

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

Php :: Recording Audio On Website: Red5 Stream Or Posting The Audio Data?

Sep 6, 2011

Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:

1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.

2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.

View 1 Replies







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