USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 4/5/09 11:17 PM
Sign-Up: 05/27/07
Posts: 79
help me plz! i am working on an mp3 player for my newest game but i don't know how to see whether or not a track is playing...what i need to do is: once the first track is done, the code sees that there is no sound playing and goes to the next track pwease help me newgrounders =/
VEXT Media Professional Web and logo design & re-design VEXT Media.Com
Posted at: 4/5/09 11:21 PM
Sign-Up: 04/04/09
Posts: 143
If it's in as3, there is an event to listen for the end of a sound file. It's part of the soundChannel class.
Signatures are for people who aren't lazy.
Posted at: 4/5/09 11:26 PM
At 4/5/09 11:21 PM, Nisas wrote: If it's in as3, there is an event to listen for the end of a sound file. It's part of the soundChannel class.
i'm using AS2 in CS4
Posted at: 4/6/09 04:27 AM
Sign-Up: 04/25/03
Posts: 16,238
Look up onSoundComplete in the Flash help files
onSoundComplete = function() {}
Invoked automatically when a sound finishes playing. You can use this handler to trigger events in a SWF file when a sound finishes playing.
Sound.duration and Sound.position might also be useful to you
- - Flash - Music - Images - -
All times are Eastern Standard Time (GMT -5) | Current Time: 06:30 PM
<< Back