I’m trying to preload everything internally within one SWF because most upload sites have that restriction.
However, I’m having loads of trouble trying to preload sounds to be used in AS3. It keeps giving me Error #2068: Invalid Sound when I try to play the sound. I have the sound placed on the Timeline in frame 2, and the sound is set to export at that frame.
I instantiate and play the sound after the whole movie is loaded with:
snd:Sound = new SoundClassName();
var channel:Channel = snd.play(); // error is thrown here
But that error keeps popping up. The sound looks to be loaded and playable because if I go to frame 2, I can hear the sound play.
Any ideas or suggestions?
Thanks.