Hey peeps

Bit struggling with this problem for a while and google isn't helping me.

I need to have a flv player pop open when a button is clicked on a html page and when the flv video gets to the end the player disappears.

What i envisage happening is:

Button clicked, loads swf into empty <div> and chosen flv plays, in the script (AS3) i possibly have a listener that detects when stream has ended and closes the swf (popup).

the only thing is i have no idea what the AS would be for this, any one got any tips/advice??

This is the effect i am after http://www.net-a-porter.com/product/77770 (the video link)

thanks in advance