Using jQuery to handle Flash (ActionScript) events

Using jQuery to handle Flash (ActionScript) events

I'm using the shockwave flash media player.

I want jquery to handle the functions of the play button, if the user clicks on it, an alert box will pop-up instead of playing the certain media file.

Hope you can help me guys. Thanks