# FLV complete function

**URL:** <https://forum.kirupa.com/t/flv-complete-function/251992>\
**Category:** flash\
**Created:** [February 14, 2008, 5:24pm UTC](https://forum.kirupa.com/t/flv-complete-function/251992 "2008-02-14T17:24:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbstanley](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@bigbstanley](https://forum.kirupa.com/u/bigbstanley)\
**Post date:** [February 14, 2008, 5:24pm UTC](https://forum.kirupa.com/t/flv-complete-function/251992/1 "2008-02-14T17:24:09Z")

</div>

I’m having a BIG issue with the flash player crashing all browsers when using a streaming FLV and the eventListener of complete. Initially the page loads fine, but as soon as I do a refresh or navigate away from the page, the browser stalls and crashes.

Here is my AS for the eventListener:

[AS]  
import mx.video.\*;  
var listenerObject:Object = new Object();  
listenerObject.complete = function(eventObject:Object):Void {  
videoFadeOut();  
slider.play();  
};  
weddingVid.myVideo.addEventListener(“complete”, listenerObject);  
[/AS]

this is straight off the Adobe doc pages, so I have no ideas why this is happening. Can someone please help, or least let me know that you are having the same issue?

Thanx
