Código ActionScript :
var default_volume:Number=0.50; var bg_music:Sound = new miMusica3(); var music_channel:SoundChannel=bg_music.play(0,10000); var music_volume:SoundTransform = new SoundTransform(); sound_control.buttonMode=true; music_volume.volume=default_volume; music_channel.soundTransform=music_volume; sound_control.stop(); sound_control.addEventListener( MouseEvent.CLICK, play_pause ); function play_pause(e:MouseEvent):void { music_volume.volume=default_volume; if (e.target.currentFrame==1) { music_volume.volume=0; } music_channel.soundTransform=music_volume; e.target.play(); }
alguien sabe porque puede ser? ...
[BOFH HERNÁN] Usa etiquetas [AS] para enmarcar código [/BOFH]