-
loadSound() question
Code:
var targetSound:Sound = new Sound();
targetSound.loadSound("whatever.mp3", false);
targetSound.start();
i'm trying to load the sound as and "event" and not as "streaming" with the 2nd parameter as false. however, the sound would never play. what is wrong?
-
I believe you have to wait until the sound is completely loaded before calling start.
try the onload event.
targetSound.loadSound("whatever.mp3", false);
targetSound.onload = function() {targetSound.start();}
-
thanks for that help again! i missed that point. u r cool!
-
so, just to help others reading the thread, did this solve your problem?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|