Forum Topic: is a sound playing??

(115 views • 3 replies)

This topic is 1 page long.

<< < > >>
Muted

wagnerben

Reply To Post Reply & Quote

Posted at: 4/5/09 11:17 PM

wagnerben NEUTRAL LEVEL 10

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

BBS Signature

None

Nisas

Reply To Post Reply & Quote

Posted at: 4/5/09 11:21 PM

Nisas DARK LEVEL 06

Sign-Up: 04/04/09

Posts: 144

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.


None

wagnerben

Reply To Post Reply & Quote

Posted at: 4/5/09 11:26 PM

wagnerben NEUTRAL LEVEL 10

Sign-Up: 05/27/07

Posts: 79

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

VEXT Media
Professional Web and logo design & re-design
VEXT Media.Com

BBS Signature

None

Denvish

Reply To Post Reply & Quote

Posted at: 4/6/09 04:27 AM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,229

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 - -

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 10:52 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!