# How to? - When FLV stops, go to another frame

**URL:** <https://forum.kirupa.com/t/how-to-when-flv-stops-go-to-another-frame/269373>\
**Category:** Uncategorized\
**Created:** [August 26, 2008, 6:56pm UTC](https://forum.kirupa.com/t/how-to-when-flv-stops-go-to-another-frame/269373 "2008-08-26T18:56:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gl0tch](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gl0tch](https://forum.kirupa.com/u/gl0tch)\
**Post date:** [August 26, 2008, 6:56pm UTC](https://forum.kirupa.com/t/how-to-when-flv-stops-go-to-another-frame/269373/1 "2008-08-26T18:56:46Z")

</div>

Hi-

I have a FLV coming into a FLVPlayback component. This component is on placed on frame 1.  
When it stops, I would like the timeline to advance to frame 2 (where I have new content).  
However, this doesnt happen and the video hangs and stops on the last frame of the FLV.

I’ve added a cue point on the last frame of the FLV called “end”. I thought the following code would work by detecting the cue point and going to frame 2, but it doesn’t? Can anyone help me?

```auto

stop();
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
var cuePtName = eventObject.info.name;
if (cuePtName == "end") {
gotoAndStop(2);
}
};

```

Also, should I be setting up some type of preloader on the FLV or the entire timeline? I’d like the video to start playing immediately (as I’ve chosen no component skin), but I want to avoid glitchy stop/start playback. Is there a way to be loading new content somehow while the first part of the movie starts playing?

Thanks so much. I really need help with this.
