I’ve got a finished project that requires .mp3s to be played using the code:
InstanceName.addEventListener(MouseEvent.CLICK, playSound1);
function playSound1(event:MouseEvent):void{
SoundMixer.stopAll();
var s1:Sound = new Sound(new URLRequest(“My track.mp3”));
s1.play()
}
When I upload the .swf to a site such as swfcabin, the project is there but when the buttons are clicked, there is no audio.
Is there any site that will allow me to upload the .swf and have the audio play? I tried to embed the audio in the buttons but the project ended up being so big, my computer didn’t have enough memory to test and create an .swf.
This is pretty urgent so any help would be greatly appreciated!