# FLV end function

**URL:** <https://forum.kirupa.com/t/flv-end-function/227460>\
**Category:** flash\
**Created:** [May 30, 2007, 2:10pm UTC](https://forum.kirupa.com/t/flv-end-function/227460 "2007-05-30T14:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crowesBR](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@crowesBR](https://forum.kirupa.com/u/crowesBR)\
**Post date:** [May 30, 2007, 2:10pm UTC](https://forum.kirupa.com/t/flv-end-function/227460/1 "2007-05-30T14:10:30Z")

</div>

Hi people

I’m having some problem with FLV when end the video.

I’m trying to make a gotoandplay for exemple when my FLV finished.

The problem is that I’m not using the FLV Component.

If I use the component, I can use:

```auto
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
trace("video ended");
play();
};
myVideo.addEventListener("complete",listenerObject); 

```

This work perfect. But

I’m using the NEW VIDEO option on the library panel. And this code don’t work.

Somebody can help me on this?

Thanks  
Anderson
