SoundChannel and other bug?
hi.
i' ve problem sound or soundchannel classes.
my project "vector drum" , action mouse_over play mp3 embbeded in swf.
i have 9 soundchannels , 9 sounds classes, 1 each part of drum.
the action works but, when pass mouse on drum for many times(or during long time), sounds stop moment (delay), , never play. wait seconds , work normaly.
there bug in sound or soundchannel class? how fix it?
url project:
http://www.andredangelo.com/nnew/drum.swf
*ps. turn on sound system.
the code simple.
//canalname = soundchannel class , mp3name = sound class.
private function som(pad:movieclip)
{
if(pad == mccaixa){
canalcaixa = mp3caixa.play();
}
if(pad == mcbumbo){
canalbumbo = mp3bumbo.play();
}
if(pad == mcchimbal){
canalchimbal = mp3chimbal.play();
}
if(pad == mctom1){
canaltom1 = mp3tom1.play();
}
if(pad == mctom2){
canaltom2 = mp3tom2.play();
}
if(pad == mcpedalchimbal){
canalchimbal = mp3chimbalfechado.play();
}
if(pad == mcataque){
canalataque = mp3ataque.play();
}
if(pad == mcconducao){
canalconducao = mp3conducao.play();
}
if(pad == mcsurdo){
canalsurdo = mp3surdo.play();
}
}
thanks.
More discussions in ActionScript 3
adobe
Comments
Post a Comment