# Couple of things about embedding swf files

**URL:** https://forum.kirupa.com/t/couple-of-things-about-embedding-swf-files/635673
**Category:** flash
**Created:** [December 19, 2016, 12:09am UTC](https://forum.kirupa.com/t/couple-of-things-about-embedding-swf-files/635673 "2016-12-19T00:09:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Kachlon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/david_kachlon/32/7896_2.png) [@David\_Kachlon](https://forum.kirupa.com/u/David_Kachlon)
#### Post date: [December 19, 2016, 12:09am UTC](https://forum.kirupa.com/t/couple-of-things-about-embedding-swf-files/635673/1 "2016-12-19T00:09:14Z")

</div>

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](https://pastebin.mozilla.org/8953198)
