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


Similar Posts:


ActionScript 3.0 :: Sound And LineTo Synchronization?

Oct 30, 2010

I would like to draw a shape with LineTo (following a motion guide) and having this drawing synchronize to the duration of a sound : if the sound lasts 2 minuts, the drawing should take 2 minuts to be drawn.

View 0 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 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 :: 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.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

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

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

ActionScript 3.0 :: Using Array With Music Synchronization

Nov 11, 2009

I'm working on a project with an Arduino microcontroller connected to LED's and using flash to turn the LED's on and off via a serial proxy and a special ActionScript 3 library. The program loads an MP3 and I use the time position of the song to tell the program when and which LED's to control. My issue is that I am using if statements for the control and I know that is very inefficient.[code]The variable pos is the time of the song. Pin LOW is light off and pin HIGH is on. I repeat this every time I want the lights to change so there are over 100 if statements. There are 6 pins/LED's.I know you can do this with an array but have no idea how to get started.

View 8 Replies

ActionScript 3.0 :: Simple Space Ship Game - Motion Synchronization

Oct 12, 2010

I was trying to make a game with simple spaceships and a bullet that is supposed to hit them and delete them on screen. As all ships are deleted the level gets up by one, increasing number of ships to delete. I think the collision detection part of my program works fine, but their is some problem in their motion synchronization.

Code:
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
public class HitGame extends Sprite {
[Code] .....

View 6 Replies

Actionscript :: Synchronization - Make Several External Calls To Get Various Pieces Of Outside Information In Response To A User Request

Apr 17, 2011

I am unable to produce the kind of synchronization effects I would like to in ActionScript. The issue is that I need to make several external calls to get various pieces of outside information in response to a user request, and the way items will be laid out on the page is dependent on what each of these external calls returns. So, I don't care that all of these calls return asynchronously. However, is there any way to force some amount of synchronization on ActionScript, so that at least calling the method for doing the final layout and placement of items on the page is dependent on all of my calls finishing?

View 1 Replies

Professional :: How To Add A Delay Between Code

Jan 24, 2010

I need to add delays between the following lines of code.

speed=speed*.98;
//Delay here
speed=speed*.50;

[code]....

View 1 Replies

Professional :: Loading With Sound Only Played Once But Keeping Hover Over Menu Item Sound Intack?

May 21, 2010

I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. (not sure if I'm able to give a link to it or not on here. If I able to and someone would like to see it let me know)I want to know if my flash header can support the following addionalunctionality/changes:1) Currently, it loads everytime a page is selected.  I only want it to load the one time of entering the site because the audio gets annoying.  Set a cookie maybe?2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.

3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features.

View 2 Replies

Professional :: Sound Free Sound Effects Links?

Jul 29, 2011

Ive stumbled upon a few sites that have free sound FX's but the ones I want which I wuld think are the easiest to get I cant find.I want a sound for when someone clicks the right thing, like a under a sec tiriring or something like when you kill a guy in Leauge of Legends or something like that and also one for when you click the wrong thing like an windows warning ut a little different, yet all the sites and SFX I come across are for everything but those.

View 5 Replies

AS :: Professional - Create Delay Before Tween Or Function?

Jun 25, 2010

I have a number of cases where I have a tween happening in ActionScript, but I would like it to happen after a delay from the event that triggers it. At the moment I'm creating this delay by having a tween that does nothing (eg. an "_x" tween for which the start and end points are the same) and then using tween1.onMotionFinished = function(){to create the one I really want. Is there a way to create this delay more neatly?

View 1 Replies

Professional :: Pencil Tool Draw Delay?

Oct 23, 2010

I'm new to Adobe Flash CS4, and I was wondering why on earth my pencil tool delays when I draw with it? I will click, draw my line (which will be invisible), then when I let go of my mouse/pen, the line appears. Is it supposed to do that? Is there a way to fix it? I hate it, because I can't see what I'm doing. I downloaded all of the updates, and I have more than enough memory on my computer and my processor is more than fast enough. My paintbrush works fine, it's just the pencil.

View 1 Replies

ActionScript 2.0 :: Create A Delay Via SetTimer, SetInterval Or Delay?

Feb 23, 2009

I want to create a function based (not frame) delay of about 10 seconds to the function at the start of a flash movie, the code only needs to run once.I'm very new to actionscript and have been given links to SetInterval and SetTimer examples but they all seem to be very complex.The function is below. I believe it's possible to add the commandTimer(delay:Number, repeatCount:int = 0) how me to a simple example.

onClipEvent (enterFrame) {
framePos = int(_xmouse / 100 * _parent._totalframes);
if (framePos < 0) {

[code].......

View 4 Replies

Flash :: Professional - Importing Sound Into CS4

Feb 15, 2009

so i've just been learning flash and i'm really enjoying it, i have got to a point when i want to import sound but when i do. i get the following message... "one or more files were not imported because there were problems reading them." i am using windows xp and i have had this problem trying .aif and .mp3. (i haven't tried any other types but i think these should work anyway)

does anybody know why it isn't working? is it because i don't have the latest media players that flash uses? if so do you know which media player i should have? or is it something else?

View 3 Replies

Professional :: How To Record Pc's Sound By Flash

Sep 11, 2009

I want to record my pc's sound use flash to the FMS,that is, when i play a music by Windows Media Player, I can record the sound to the FMS,anyone has an idea?

View 2 Replies

Flash :: Professional - Using Sound In The Timeline In CS5

Jun 2, 2010

I'm trying out FlashCS5 in an iMac running Snow Leopard. I'm putting in the timeline an mp3 sound I imported to the library. When I test the movie I get this message: When I test the swf, I get no animation and no sound. I tried changing the settings in the Advanced AS3 Settings to Default Linkage to from "Runtime Shared Libraries" to "Merged int code". The message goes away but the test still fails.

View 3 Replies

Flash :: Professional - Importing Sound Into CS5.5?

Jul 27, 2011

I have an mp3 file of a song i downloaded from [URL]. i tested it to make sure it wasn't a virus or anything like that- but wheneever i click file->import to library i select the mp3 file and an error comes up saying that it wasn't able to be imported! I don't understand why it willnot im[ort into flash. Im using actionscript 3.0 by the way. and it has the same error message when i try to import any song into flash.

View 2 Replies

Professional :: Possible To Chop Up Sound In Flash?

Sep 23, 2011

I am making an animated music video, so I have one song playing throughout my piece. First thing I did was the animatic/storyboard---the whole video sketched out with the song. Now I am chopping it into scenes for character animation. I selected all the keyframes---including those in the song track---and pasted them into new, separate Flash projects. Problem is, the song plays from the beginning in every scene (and in fact I can't get it to stop). I think I understand why this happens -- it's using what I have in the library, and it's the whole song that is in the library. So, do I have to conclude the worst case scenario: that I have to chop up the song outside Flash (which would be error-prone, in terms of precision of timing)? Or is there another way to do this in Flash?

View 3 Replies

Flash :: Professional - Sound Quality In CS5

Nov 11, 2011

I'm looking to upgrade from Flash 8 Professional to the newest version. Has the quality of imported sounds improved beyond the tinny, in-the-submarine effect?

View 2 Replies

Professional :: Insert A Time Delay On The Action Of A Button

Apr 2, 2009

how do you insert a time delay on the action of a button, say 1/2 sec. script 2.0 Flash CS3

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

Professional :: Adding Sound To Flash Movies?

Mar 29, 2011

When I tried to import music to flash animations I have created, I received error message that: One or more files were not imported because there were problems reading them.
 
The platform: Mac AA audio file Encoded with iTunes 10.1.2, Quick Time 7.6.6
  
Is it because of the audio file format that music cannot be imported? If so, how can i convert it to the compatible format?

View 5 Replies

Professional :: Unable To Get Sound With Flash CS5.5 IOS Packager?

Jun 28, 2011

Once you have read through the story and then go back along the timelone to previous pages all sfx that have previously been played will continuously start playing again (overlapping etc) even though SoundMixer.stopAll() gets called when ever you hit the back/next buttons. It seems to only be a problem with sound that is embedded in a movie clip that is 2 or more children deep. I have voice over that is just 1 movie clip deep and there is no issues with this. It only happens when playing through iPad/iPhone, the swf itself plays fine on my mac I have a work around of throwing all sfx in a mc on the main timeline and then referencing that but its not ideal and can see this causing more issues later down the track.
 
Ps. All mc's/animations are timeline based and all sounds are set to streaming.

View 7 Replies







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