Actions when using flvplayback buttons

I’ve created a flv movie, and I have a button showing that I want to vanish when I press the play button on the flvplayback controller.

I searched the web and came up with this:


// Play Button code
function btnPlayClickHandler(event:MouseEvent){
PlayButton._visible = false;
trace("hello")
};
btnPlay.addEventListener(MouseEvent.CLICK, btnPlayClickHandler);

which seems to read what I need it to do. Which is basically, when the user clicks the play button on the controller the PlayButton (Button) vanishes, but it doesnt.

I get this error:


**Error** Scene=Scene 1, layer=Actions, frame=1:Line 12: The class or interface 'MouseEvent' could not be loaded.
     function btnPlayClickHandler(event:MouseEvent){

Im guessing that is AS3 and I need the function to work in AS2, can anybody advise and help me out.

Or do I need to declare what the playbutton on the controllers name is, so I can call it or listen to it in the function.

Maybe that piece of code needs more to inform it of who it is listening too, and then it will work.

Cheers

Lee