View Full Version : [mx] Stupid Sound Looping Issues
greatbigbrain
November 17th, 2004, 12:57 AM
Alright, so Macromedia says Flash can't really loop mp3s seamlessly, and suggests importing WAV files. But if you're using AS to load an external sound at runtime, this is not possible. So I ask you, coding geniuses, is there a work-around to the silence that Flash adds to the beginning (end?) of an mp3 file, thus causing it to loop incorrectly (I've already tried adding a decimal to the secondsOffset and it sounds awful).
Thanks in advance.
JUD
November 17th, 2004, 02:14 AM
I used this before and it seemed to work for me:
onEnterFrame = function(){
if(mySound.position >= mySound.duration - 100){
mySound.stop();
mySound.start();
}
}
Hope it helps
JUD
greatbigbrain
November 17th, 2004, 09:52 AM
Hmm, that gives me a skipping CD effect...
I used this before and it seemed to work for me:
onEnterFrame = function(){
if(mySound.position >= mySound.duration - 100){
mySound.stop();
mySound.start();
}
}
Hope it helps
JUD
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.