ActionScript 3.0 :: External Audio X Animation - Sound Delay

Feb 8, 2011

I have a few animations that run on different scenes each time a scene is loaded the external audio should start with it. Well here is the thing the animation always starts before my audio files and each scene gets bugged. I need to create an action that only allows my scene to start with the audio and also starts loading the next audio so it wont be dellayed.

On the first scene I have the following code:
scene 1 frame 1
var autoPlay:Boolean;
if(!autoPlay){
stop();}
scene 1 frame 2 animation starts and audio 1 loads
import flash.media.Sound;
[Code] .....

View 3 Replies


Similar Posts:


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 :: External Sound - Load Audio And Have It Ready For After The Preloader

Apr 17, 2007

how to load audio and have it ready for after the preloader. I had it export for actionscript before but it loads before the preloader starts which really elimates much of the need for the preloader. I took off the linkage for it to load for frame 1. I search the forums and saw that a few people recommended following link

[Code]...

View 3 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 :: SoundSpectrum Delay Audio?

Apr 14, 2009

I have an mp3 file that is mainly narration and I have a very simple soundSpectrum routine placing a soundwave. the issue is that the spectrum starts before the actual audio, so it is completely out of sync. it appears like it's buffering, so I am curious if there is a way to prevent the buffering and play right away or buffer the soundSpectrum.

View 3 Replies

Media Server :: Audio Delay FMS 3.5

Jul 24, 2010

I have an application that uses FMS 3.5 to stream live audio between 2 computers.Currently, the delay between when the person speaks and the time the other person hears it is about 2 - 3 seconds.This makes it difficult to have a conversation because one person regularly steps on the other.I am using a NetStream object that connects to the fms server.I then attach audio.What configurations can be set so that the least amount of delay is experienced between the two computers? Can fms ever relay audio as quick as something like Google Talk?

View 4 Replies

ActionScript 2.0 :: Audio Delay Without Netstream?

Mar 17, 2011

I have been working on a voice-chat system in AS 2.0 using FMS 3.5 for a while now. I have been experiencing a lot of latency. Usually there's no latency to begin with but it grows over time to several seconds. Up until this point, I have assumed that this latency is due to a slow server/low bandwidth since I have tinkered around with all of the buffer settings (that I know about) already.However, today I decided to see what would happen if I just attached the audio of the microphone to _root. In other words, the script does not connect to FMS and there's no streaming going on at all. All I have is essentially:

myMic = Microphone.get();
_root.attachAudio(myMic);

However, even in this case I get a delay! In fact the same sort of thing happens: there's no delay to begin with, but it grows to approximately 1.5 seconds over time (very quickly in fact). In order to track down where it could be coming from, I decided to add a microphone activity clip that showed the activity of the mic. Perhaps not so surprisingly this activity clip was perfectly in sync with the actual activity of the mic (i.e. no delay). So it seems like there's a delay due to the attachAudio command.

View 4 Replies

Media Server :: Send Sound With Stream (both Sound And Mic Audio)?

Oct 6, 2011

I have a broadcasting project that I've got where the host of the show can have multiple sound effects they can use on their show.I'm wondering if the only way to go about this is for all the clients listening to the show need to download the mp3 of that sound effect or if the sound effect could come from the host ...like combining his mic (for his voice) but also straight audio (the sound effect) into the stream.

View 1 Replies

Media Server :: Delay Of 5 Seconds Between Video And Audio?

Nov 24, 2010

I've a site  where consumer can take a live meeting with the beauty consultant. The  problem I'm facing is during the video chat. Basically there is a delay  of 5 seconds between Video and Audio when I access the site from out of  my network but when I access it within my network (VPN) then it's work  fine.

View 14 Replies

ActionScript 3.0 :: Microphone Input>Delay 3 Seconds>Audio Output?

Dec 2, 2009

Basically I want to recreate a sound installation that I made a couple of months ago which used Logic Express and a Tape Delay effect to take ambient sound captured by a mic, delay its output by 3 seconds, and then play it into the headphones. All without recording anything and in realtime.I've basically got this far, which lets me hear the mic input through my headphones loud and clear. Now all I want to do is apply a 3 second delay to the input before it outputs. Do I have to send the audio to a buffer where it can be constantly stored and rewritten?

Code:
//Create a new Microphone
var mic:Microphone = Microphone.getMicrophone();

[code].....

View 3 Replies

ActionScript 2.0 :: Sound Then Go To URL After Delay

Aug 17, 2009

What I have is a landing page on my customers site, I want to hold it there until the user clicks a button in the flash file it then plays a short sound, 2 seconds and redirects the page. I have tried setinterval and cannot get it to work. What I have loads the flash file and after the set time plays the file then redirects, cutting off the sound.

On Frame1

Code:
var sndMusic = new Sound();
sndMusic.attachSound("mySound");
var duration:Number = 5000; // set the call delay

[Code].....

View 1 Replies

ActionScript 3.0 :: Get An Animation To Loop With A Delay In Between Using It?

Oct 18, 2010

How would you get an animation to loop with a delay in between using AS3?

View 1 Replies

ActionScript 3.0 :: Use Motion_Finish To Delay Animation?

Dec 20, 2009

How to use motion_finish. the animation i want to make is simple, there is a box on the stage and there are few balls at the top part. when i click on a ball i want the box to come under it and when this motion finishes i want the ball to drop into it. i can make them move at the same time but i can not figure out how to fire the ball animation only after the box is in its right position.[code]...

View 8 Replies

Actionscript 3 :: Play Sound Without Delay?

Jun 16, 2011

I've got a couple of classes.

My document class (Main.as) instantiates the class player and Soundsloader.
In the player class when the player picks up an item in the game, i want to play a short sound. I do this with the following code: MovieClip(this.main_object.sound_loader).playPickUp();

In my document class i also instantiate the SoundsLoader which basically should load all the sounds. (just one in my sample code below)

package {
import flash.display.MovieClip;
public class SoundsLoader extends MovieClip{

[Code]...

However when i use the methods my swf file freezes for a moment, plays the sound and then continues. So what's the best way of doing this ? (i'm using a .wav sound)

View 1 Replies

ActionScript 2.0 :: Dependant Sound Delay?

Apr 20, 2010

I've done the getting the time right bit and the ticking bit, but big problem arises with the background music. It's different every second, and what I want is that is it's launched at, say 19:00:00 the music will start at 00 seconds, if it's launched at 19:00:22 - at 22 seconds, at 19:00:45 - at 45 seconds etc. So far I have no idea how to do it, I am a total newbie in Flash..

View 3 Replies

ActionScript 3.0 :: 60 Millisecond Sound Delay?

Nov 8, 2010

The first time around, the sound play's exactly on time, After that it has about a 30-60 millisecond delay to re play it again. if i wait about 20 seconds it will be able to play exactly on time again...? Im new to the sound class, but i don't think i have done anything wrong...my sound is imported to the library, exported for actionscript,i have tried:

Code:
var myAudio:Sound= new myCustomSound();
myAudio.play(0,1);

[code]....

simply put the sound on the timeline of a movieClip its all the same, in the play() method, i have tried start time of 0 or 1 or not at all, same with # of loops. i have tried to re-create the sound object each time its called, or have other sounds in the background, or create longer sounds. ive used mp3s,wavs, the audio file has no silence at the beginning of it.

this happens in the flash ide, or the published swf or on my phone using air for android settings, problem is on the phone its a larger delay i would say 60 to 150 milliseconds, otherwise it probably wouldn't be a problem. on my phone, using mrDoobs stats class i can actually see the frame rate drop from 30 to 25 back to 30 once that estimated 20 seconds is up and its "ready" to play on time again. Something happens after that 20 seconds that it clears up and it will play on time again. I dont know what to think

I re-created it in a regular non air/android swf and its the same issue, i attached it if anyone want to take a look. so hard to see the delay on a regular cpu as the response is good, but its there. click to make a noise, do it again once on the balls on the platform and you will see that tiny audio delay as the ball jumps. however wait 20 sec and it will be exact again.

View 14 Replies

Actionscript 3 :: Delay Enter Frame Animation

Feb 7, 2011

I've got a fade out animation using ENTER_FRAME. I want the fade out to start after 2-3 seconds. How can I create this delay?

[Code]...

View 1 Replies

ActionScript 2.0 :: Delay Flash Animation After Mouseover?

Aug 1, 2007

I have l logo animation but i don't want it to play every time a user runs over it with mouse. I'd like it to start playing after the user has stayed on the banner for 1 second (30 frames in my case). So if the user leaves the logo before 1 second, the animation wouldn't start.

Can it be done with actionscript? If so then how I use flash for tweened animations and am not familiar with programming languages. So a code examlpe (or a link to one) would be very welcome

The code to activate the animation is as follows:

[Code]...

View 2 Replies

ActionScript 3.0 :: Sound Delay After Button Push?

Jan 2, 2009

I have made this little thing, its more or less just to try out some basic scripting, its a button that you would push and when you do so it would play a random sound out of six different sounds, and it does all that, but it delays the sound, so it has a short delay, does anyone know how to fix this? Here is a link to the page where the button is (test page).[URL]...

View 24 Replies

Professional :: Flash Sound Delay - No Synchronization

Jan 26, 2010

I've been suffering the fliction of making sounds playing synchronized in Flash, I load 4 mp3 files externally and once all of the 4 mp3 loaded completely, let them play, but they starts not at the same time, the files starts unsynchronized with a random manner, some times file a starts first, some times file c starts first, there are always files delay about 500ms, the wierd thing is, O only see it's running sync in one computer, in firefox browser, in IE not. Same problem like, we always experience the case that, when we click a music player button, the sound not starts immediately or click a stop button, the sound not end immediately.

View 2 Replies

ActionScript 2.0 :: Playing Short Animation With Time Delay

Feb 18, 2009

I have a short animation that I want to pause for 5 seconds and then play again. Now I am using acionScript 2 to get this done.

Here is the code.
stop();
function triggerNext () {
var z = setInterval (changeAd, 15000);
}function startAgain(){
gotoAndPlay(1);
}
triggerNext()

Now this works the first 2 times. But when the third time rolls around it seems to start and the start again. This progressively gets worse as time goes on.

View 3 Replies

ActionScript 3.0 :: Trigger Animation - Conditional Delay On Button

Sep 7, 2010

I have a bunch of buttons each one with a roll over on it that trigger an animation. So far no problem. The problem is that as I would like to add to the buttons a behaviour like this: if you roll over the button more than 200ms the animation happens else nothing happen.

Here is my code:
tab01_mc.buttonMode = true;
tab01_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverTab, false, 0, true); //this is one of the buttons
function rollOverTab (event:MouseEvent):void{
getTimer();
var delayTime:int = getTimer();
trace(delayTime);
if (delayTime >= 200){
event.target.gotoAndPlay("Over"); // over is the animation of the button
}}

But this isn't working because what getTimer actually does is return the time since the whole movie started not since the function star running. So my question is: is the a way to tell AS to start counting from 0 so that I can use the elapsed time as my condition to trigger the animation?

View 6 Replies

ActionScript 3.0 :: Time Delay In Tween Class Animation

Dec 18, 2010

I have created a simple tween letter animation in AS2. There are two letters (a and b) on the stage that I have to animate and display one by one. Now both are displayed at a time. x and y position of each letter also has been set. Can I set time delay between first and second letter? I have attached my fla. file.
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
a_mc._x = 137;
a_mc._y = 215;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Delay Timer To Make Animation Smooth

Mar 7, 2007

I have the idea of scripting animations, placing them inside a function, so then I can recall them whenever I want:
Code:
function eyesleft(){
eyes._x=0
eyes._x=-100
}
one question is I need some kind of delay timer to make the animation smooth, otherwise the animations would be all jumpy. Set interval seems a bit jumpy.

View 1 Replies

ActionScript 3.0 :: Start Sound - Delay In Loaded MP3 Playing

Feb 2, 2009

I have recently updated to Flash CS4 and AS3 from Flash 8 - apart from one issue I have with the Sound Object. There seems to be a delay in the loaded MP3 playing when told to. This means that I am unable to add SFX to the game I am developing for a client, because the sound plays about 1-2 seconds after it is told to play. How to tee the Sound up, so that it plays immediately?

The process I am using is this:
Class defined to load all game assets defined in XML

All Sounds are loaded into their own Sound Object and a reference to each is held in an array and passed to the relevant Class (i.e. Player). The relevant Class tells the reference to the Sound to play - it plays, but 2 seconds after the collision detection Event has told the sound to play.

View 4 Replies

ActionScript 3.0 :: Making A Flash App - Sound Play Delay?

Apr 3, 2004

I am trying to develop my first flash app. The application emulates a "karaoke" service. It plays a background sound and at the same time records the sound coming from the mic. I use the "sound" class to play the sound (s.play() ) and the "netStream" class to record the mic sound (ns.publish("mysound", "record") ). In the same app, I then try to play these two sounds together. The problem is that I cannot synchronize them. My tests drove me to a conclusion which I am not certain for. The conclusion is that the method s.play() has a delay about 500ms until the sound starts playing. The result is that recording starts 500ms earlier than playback. When, then, I playback both of them the recording sound is 500ms after the backround sound. Is that delay for sure true?

View 12 Replies

ActionScript 3.0 :: Slight Delay In Button Sounds During Sound Stream?

Jan 30, 2009

I have some sounds on buttons:

Code:
var mySound:Sound = new myLibrarySound();
myButton.addEventListener(MouseEvent.CLICK, playSound);
function playSound(e:Event):void

[code]....

... and that works fine. I then have some streaming music:

Code:
var myStream:Sound = new Sound();
myStream.load(new URLRequest("myPath.mp3"));
myStream.play(0);

... and that works fine too. Now, however, the initial button sounds have a slight delay -- I'd estimate about 150-250 ms. It's enough that rollover click noises happen about the time you click, and click noises happen about the time you release, etc. Now, here's the KICKER. It only happens in FIREFOX. CURSE FIREFOX. Seriously. I've been having so many Flash issues in FF3, it just drives me nuts. Firefox and wmode is a pain, Firefox and sound is a pain, Firefox has been crap for Flash development lately.

View 2 Replies

Professional :: Syncing Audio With Animation?

Mar 24, 2012

I'm making an animation in flash CS5, and everything went well with it until a certain scene, which is no different than the other scenes in terms of animation/audio. In that scene, while one character is finishing his audio sentence, the next audio line already begins, screwing up the animation to audio sync in the animation from that point on. This doesn't make sense because the line that begins too early, isn't marked to play until a few seconds into the NEXT scene. Why is this happening? I tried so many things and it's really frustrating that nothing is working. I tried changing the lines from even, to stream, from mp3 to wav, making scenes longer at the end, but no matter what I do, the next audio line begins really early, messing up the entire audio to animation sync of the entire video from that point on.

View 5 Replies

Audio Kept Visible In The Timeline For Flash Animation?

Oct 19, 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, but I do not know how to keep the audio graph seen 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

ActionScript 2.0 :: Play The Animation After The Audio Is Completed?

Aug 11, 2003

what should i do to make the animation plays after the audio is finished. I'm using the attach sound to play audio.

View 3 Replies







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