Action script with flv

Hi, I guess it is easy answer…

I use mx2004 pro, I load dynamically with a button an .flv file using the media display component.

Once the flv is finished I would like to automatically go to a next frame or next scene, how do i do that?

Do i need to count the frame of the flv and says gotoandplay scene 2?

Thanks for any hint or tutorials

Regards

kcabe