# .flv instead of .f4v script doesn't work

**URL:** https://forum.kirupa.com/t/flv-instead-of-f4v-script-doesnt-work/314510
**Category:** Uncategorized
**Created:** [September 30, 2010, 3:18pm UTC](https://forum.kirupa.com/t/flv-instead-of-f4v-script-doesnt-work/314510 "2010-09-30T15:18:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![KateH](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@KateH](https://forum.kirupa.com/u/KateH)
#### Post date: [September 30, 2010, 3:18pm UTC](https://forum.kirupa.com/t/flv-instead-of-f4v-script-doesnt-work/314510/1 "2010-09-30T15:18:11Z")

</div>

This script was on the first frame of the swf that was playing the flv. When the flv was done playing the function was activated. All I did was change the flv to an f4v and now this script doesn’t work.

var listener:Object = new Object();

listener.complete = function(evt:Object):Void {  
trace(“Video complete”);  
trace(evt.state);  
trace(evt.playheadTime);  
loadMovieNum(“projector\_all.swf”, 1001);  
}

videoPlayer.addEventListener(“complete”, listener);
