How to play sound from libray in AS3?
Posted
by Ullallulloo
on Stack Overflow
See other posts from Stack Overflow
or by Ullallulloo
Published on 2010-04-23T21:43:06Z
Indexed on
2010/04/24
1:33 UTC
Read the original article
Hit count: 203
In Flash 10/AS3, I added some sound and it seems to be working alright, but I think I'm doing it wrong. I imported the sound into the library, but I believe that it's reloading it from the folder with the swf/sound. I'm loading them like so:
var request1:URLRequest = new URLRequest("CLICK8C.mp3");
clickSound = new Sound();
clickSound.addEventListener(Event.COMPLETE, completeHandler);
clickSound.load(request1);
Is there a way to get it to just load it from the library?
© Stack Overflow or respective owner