Monthly Archives: March 2008

As3 Sound .play() channel quirks & problems

Another interesting thing which makes sense but isn’t necessarily obvious, for me at least, happened when I was trying to make a pause/resume function for an mp3 player:- var mysound:Sound = new Sound(); var channel:SoundChannel = new SoundChannel(); var pauseposition:Number = 0; channel = sound.play(); //pause code channel.stop() pauseposition = channel.position; //resume code sound.play(pauseposition); This… Read more »

Posted