Hey,
I basically have the same issue as this person’s quote below from
https://store1.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=665&threadid=1422074&enterthread=y
I have preloaded a sound and when mouse-over I want to play it.
Whenever I try to .play() a sound on mouse-over, it plays but only after a 2second delay… If I set .play(0, 20) so the sound replays 20 times it still takes 2seconds before the first initial play and then continuous.
Something seems bugged here, the initial play does not work. Any ideas / fixes?
Hi,
I have recently updated to Flash CS4 and AS3 from Flash 8, and am loving AS3 - 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. I can’t imagine that this is intended behaviour, there must be somthing I am missing. I have the AS3 Bible from Wiley, and I have searched all support docs, but can’t find anything that describes why the delay is there or any way around it. Can someone show me 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 (ie Player)
The relvant 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.
Any help is greatly appreciated because this is the last itme on the list prior to a full demo for the client. Never had this problem with sounds in AS2, so guess I am missing something simple.
Thanks
Paul