I have this mp3 3531Kb in my site.
when I only place in library swf I increase considerably and being main.swf sufficiently weighed.
I can make of another form?
i have this
import flash.media.Sound;
import flash.media.SoundChannel;
var soundOn:Boolean=true;
var myMusic:TitleMusic = new TitleMusic();
var myChannel:SoundChannel=myMusic.play(0,1000);
var myTransform:SoundTransform;
mySoundButton.addEventListener(MouseEvent.CLICK,toggleSound);
mySoundButton.buttonMode=true;
mySoundButton.mouseChildren=false;
function toggleSound(e:MouseEvent) {
if (soundOn) {
myTransform = new SoundTransform();
myTransform.volume=0;
myChannel.soundTransform=myTransform;
soundOn=false;
mySoundButton.myButtonText.text="ON";
} else {
myTransform = new SoundTransform();
myTransform.volume=1;
myChannel.soundTransform=myTransform;
soundOn=true;
mySoundButton.myButtonText.text="OFF";
}
}
thanks