Fixing music player
i downloaded this free flash template for a project im working on with friends but i want to place music in the background
var default_volume:Number = 0.6; // 0.00 to 1.00
var sound1:Sound = new music();
var music_channel:SoundChannel = sound1.play();
var music_volume:SoundTransform = new SoundTransform();
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();
}
this came with it but it was disabled with /* so i took it out and now my project just flashes randomly and stops working, after i make it a comment again it fixes it, any ideas?
