Can I test whether a sound has finished playing?

using actionscript, I want to test whether a sound has finished playing, and then tell flash to play a different sound file, or to change the frame.

Thanks for any help :hr: