Couple of things about embedding swf files

I am using a .swf file with FlashVars to create a .flv web player…

I managed to load the flv and play it.

WHen it’s done however, I want to switch to an HTML5 VideoPlayer playing a .mp4/.ogg

How can I tell when the flv is done playing so I can run some code to get to the HTML5 Player

Here is my current source.

https://pastebin.mozilla.org/8953198