Actions at end of FLV playback?

Is there anyway to put actionscript at the end of FLV playback? I’m using the “Sound Object Fade ActionScript extension v 1.0” by Hayden Porter (http://www.sonify.org/home/feature/remixology/022_soundfadeextension/page3.html) to fade in and out background music. However, I’d like it to fade the background music out when an FLV starts playing, and fade it back in when the FLV is done playing. Any suggestions?