Skip to main content
June 27, 2006
Question

Sound.loadSound() hangs player

  • June 27, 2006
  • 1 reply
  • 254 views
I'm loading a 150kb low-medium quality MP3 via loadSound, and I notice that the player hangs for <1 second when the loadSound is called. Is this the expected behavior, or is there some way to prevent the momentary freeze as loadSound starts? Here is my loadSound code:

var v = _root.voiceController_mc;
v.startVoiceover = function(file){
var s = this._sound;
s.stop();
s.setVolume(100);
s.loadSound(file,true);
s.onLoad = function(){v.init}
}
v.init = function(){
delete this.onEnterFrame;
this._sound.start();
}

Thanks
This topic has been closed for replies.

1 reply

June 27, 2006
correction:
s.onLoad = function(){v.init}
is actually:
s.onLoad = function(){v.init()}

Normally I would copy paste code, but I am posting from a computer, and working another computer without internet access, using Synergy.