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


Similar Posts:


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

Audio And Video Out Of Sync

Dec 7, 2009

When I use the webcam and microsoft to record a video, my audio and video are out of sync.This does not happens when I use the built-in Microphone on the webcam.

View 2 Replies

Flash :: Professional - Audio Out Of Sync

Aug 14, 2011

I have an animation that I am exporting as either a .wav or .mov file then editing in different software but when I import the new file it is out of sync. That sounds confusing so I will explain. The project is a cartoon and a temp dialogue track was created before animation started. Then that temp track was used to animate over and do lip synching. Recently, actors have re-recorded the original temp dialogue track.  So, I need to export the original dialogue track out of Flash, use an editor, in this case Final Cut Pro, and replace the dialogue then export that as an audio file and bring it back into Flash.

But it is always out of sync. I have even exported a .wav file from Flash then immediately re-imported it and put it on the timeline and it is already out of sync. And it is the exact same audio! I don't even know how that could be possible. Surely if you export a wav from Flash and then re-import it, it should be exactly the same.

View 8 Replies

ActionScript 3.0 :: Streaming Flv Audio Sync?

Apr 9, 2011

I am streaming live content via flv but the video is lagging audio by some time. I am using netstream and video but cannot find a way to set the FPS for the video, I think i could fix it if I knew how to adjust the FPS

View 1 Replies

Professional :: Sync Up Audio In 30-track Mixer?

Mar 2, 2010

We are creating a 30-track mixing desk to demonstrate our percussion instruments. Take a look at www.bellpercmixer.com. As you can probably hear, the audio is not properly syncing up.
 
The files should be exactly the same length (8 seconds) but they are mp3s so I don't know if the compression messes the length up as I know it adds the gap between the loop? More than likely, it is my lack of action script skill that has caused this problem... e.g. does each track need to be on a separate layer with a sync-track type thing? Here is an example of the script:

[Code].....

View 1 Replies

Flash - Keeping Audio In Sync With Video?

Dec 5, 2011

I have a project that involves playing back a video clip within my swf movie. The video clip plays fine on its own, but when brought into flash the video and audio become out of sync and the movie quality suffers dramatically. I have tried embedding and streaming.

View 1 Replies

ActionScript 2.0 :: AttachSound - Sync Audio Clips With MC?

Jul 6, 2005

Are there issues with using attachSound to sync sound clips with Movie Clips? I currently am having this problem. I have all my sounds in a separate swf (sounds.swf), then I call the sounds like this:
Code:
gear1_btn.onRelease = function() {
logo.gear1.play();
sounds.gearssmfx.start();
}

I build the movieclips with the sound on the timeline, so that I know they sync up. Then I remove the sound from the movieclip, and actually play the sound with the AS above. The above AS should play the same in the browser, but doesn't. The problem is that the movieclip animations often run slower in the browser than they did within Flash. Is is possible that the movie is running at a slower FPS in the browser? I have noticed that it runs slightly slower in Firefox than IE. I'm currently using 32fps.
Here is my development : [URL]
Specifically, I'm having problems with the gears next to the letter "S" and "0", click on them to play.

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

Media Server :: Video And Audio Out Of Sync When Recording With FMS

Aug 18, 2009

We use a Flash component to allow a user on our web site to record from a Webcam on to our own Flash Media Server. The problem we are having is that the video in a 30 second FLV freezes at the 7th second but the audio continues. The video unfreezes after a couple of seconds but never catches up with the audio. At the very end there's a "Fast-forwarding" of video for the last few seconds so that at literally the last moment, everything's in sync. This happens for almost all of our recordings. Has anyone experienced this type of behavior?

View 5 Replies

Professional :: Export Animation To QuickTime - Audio Sync

Jun 18, 2010

I am using Flash CS3 on a PC. I am trying to export an animation to quicktime (Export > Export movie) and have some problem regarding the sound. The animation contains actionscript 2.0loads external swf contains streaming soundsplay other sounds via actionscript. 4 scenes. When publishing the animation, it works fine, but when exporting it to .mov, the audio goes faster than the video.

Export setting:
Video:Compression type: H.264Frame Rate: CurrentKeyFrames: 4
Sound:Compressor: 24-bit integerRate: 48.000KhzSize: 16BitUse: Stereo
To be honest, I tried many other compression types and frame rates and keyframes, but nothing seem to work.

I tried:
- importing the external swfs into the original animation
- creating a streaming silence from frame 1 for continuous sound
- capturing the animation using CamStudio, but it's not smooth enough

View 1 Replies

Professional :: Audio Import Changes Speed - Out Of Sync With Picture

Feb 21, 2011

I am trying to edit and mix sound effects and music for a FLASH animation in ProTools. After much trial and error I figured out how to make an accurate Quick Time of my FLASH file to spot sounds to in ProTools. The problem is when I import my audio into FLASH, it speeds up making it out of sync with the picture. I did several tests and it looks like for ever minute of ProTools the audio in FLASH speeds up 2 frames. Both programs are running at 24 FPS.

It is not a NTSC vs Flim speed issue. All other programs read my PT audio file correctly and show it to be the correct length with the SFX where I placed them. FLASH speeds it up, making my animation not time to the music and effects causing me to resync all my layers. How do I accurately export a sound file into an AIFF format and import it into FLASH without FLASH changing the speed? I have my audio set to Stream as it should be. After 3 minutes my audio is 8 frames (1/3 of a second) out of sync with the picture.

View 3 Replies

Actionscript 2.0 :: NS Video And Audio Out Of Sync When Called From Frames 3-11?

Dec 18, 2009

I am calling some streaming video on frames 1-11 to play for a multiple choice game. My video and audio are out of sync at times on frames 3-11? [code]...

View 1 Replies

IDE :: CS5 Audio Sync - Stream Sounds On Long Timeline?

May 13, 2011

I have a long timeline (5000+ frames) with cartoon animation and streaming dialogue sound on it. I've run into the dreaded audio sync problem. I found many discussions, peaking around 2005, but no solutions for this problem. I have a track of silence to ensure frame-dropping even between lines of dialogue. Prior to around 2000 frames the error is not noticeable.

My testing shows that playback is off by 2 frames per 1000 at 24fps. So at frame 10,000 the audio is out of sync with the graphics by 20 frames, nearly a second. This is predictable and reproducible on a variety of PCs and an iMac. I'm publishing to Flash 8 + AS2, but publishing to Flash 9 or Flash 10 don't make any difference at all.

I don't want to split this into multiple SWFs. Scenes don't help. Putting things into multiple movieclips would complicate my controls and our workflow. Just shifting the audio on the timeline is preferable to those solutions, but it makes maintenance difficult.

View 4 Replies

Professional :: Flash Audio Out Of Sync Even As Image Sequence In Premeire Pro?

Apr 11, 2010

I'm using Flash CS4 to animate hi-def music videos. It seems that I can't keep the audio to stay in sync for anything over 2 or 3 minutes.

- I'm working a stage at 1280x720 and 30 fps

- audio is streamed on a separate layer

- mp3 publish settings are: stereo 128kbs

Inside the FLA file everything syncs perfect, but when it's published, everything drifts in the SWF and in everything else I've tried.I've tried exporting image sequences and popping the sequences into premiere pro to match up with the original wave, and i've also put the swf file in a premiere pro project as well. Whether a SWF or an image sequence, it always lapses after 2 or 3 minutes.

View 12 Replies

ActionScript 2.0 :: External Audio Not In Sync With Text/screen On Windows XP?

Sep 23, 2011

I created a Flash program that utilizes audio and text. The audio is located in an external folder and is loaded using .loadSound(). The text is located on the timeline and appears based on a certain time in the audio. I have a pre-loader that looks to ensure all of the external audio is loaded before the user can move onto the appropriate screen and the audio would play. This is using a combination of the .getBytesTotal and .getsBytesLoaded.

It works fine on Windows 7 but doesn't seem to be working one particular user's Windows XP on IE 7 (So it's not happen on all Windows XP). On a particular user's computer, the text is slow to load while the sounds loads pretty quickly leaving the text out of sync. After a few screens, the text will catch up with the audio.

View 6 Replies

Media Server :: Recording Webcam Video Quality/audio Sync?

Jan 21, 2011

I'm trying to record a stream from a webcam using FMS4 developer edition.  The streams are recording on a linux box in .flv files.  These files though have problems.
 
1 - The video quality is terrible.  Fuzzy/blocky.  Any kind of motion looks awful.  Is there any way to improve this?

2 - The sound jumps/skips and goes out of time with the video.
 
As it is now this is useless.  I am trying to make a system where a user records a short video from the camera and then I upload it to YouTube from my server.  If you use Youtube's webcam page the video quality is quite acceptable and the audio is obviously in sync too, so they must know something I don't. [URL]..

View 2 Replies

Media Server :: Audio Several Seconds Out Of Sync With Live Video Stream

Jan 4, 2012

I did a live stream last week using 282,482,832,1500Kbps streams. What would cause the audio to get out of sync with the live video stream? I'm trying to determine if it was bandwidth related, cpu/memory issue on the FMIS 4.5 server, or an issue with encoding PC exceeding it's limits?

View 3 Replies

Actionscript 3.0 :: 1046 Error - Sync To Mpr3 Audio Files At Specific Points?

Mar 21, 2009

Following this tutorial: http:[url].....But I keep getting this error message:1046: Type was not found or was not a compile-time constant: CuePointEvent.

how to sync to mpr3 audio files at specific points?

View 1 Replies

ActionScript 3.0 :: Sync Audio To Text To Highlight Text?

Jan 15, 2010

I've been involved in a webproject where text will be converted into speech. Then the text should be highlighted word by word as the audio is played in the browser.

View 0 Replies

ActionScript 2.0 :: Sync MovieClip Animation With Flv Playback?

Dec 7, 2011

my as2 chops are minimal (as3 are non existent) but i have been animating in flash for a while.

I have a movie with an imported flv I made in AfterEffects. I have 2 movieClips that need to animate at certain times during the playback. I was able to add cuePoints in media encoder (i think) but can't figure out how to use them in flash.

View 1 Replies

ActionScript 3.0 :: Audio-code Is On A Movieclip Within A (Base)movieclip?

Mar 31, 2011

I have a problem concerning sound. Sound and AS3 to be more specific.my shoddy description of the problem, but here it is: How do I stop() an AS3 INTERNAL sound from another movieclip?

This following Audio-code is on a movieclip within a (Base)movieclip. It stops playing/looping when a button is pressed that gotoAndStops on another frame within the same (Base)movieclip. But when a button is pressed outside the movieclip and (Base)movieclip, which gotoAndStops on another movieclip on the timeline, it continues playing.

[Code]...

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

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

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







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