# Flvplayback component?

**URL:** https://forum.kirupa.com/t/flvplayback-component/280086
**Category:** Uncategorized
**Created:** [January 22, 2009, 2:56pm UTC](https://forum.kirupa.com/t/flvplayback-component/280086 "2009-01-22T14:56:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)
#### Post date: [January 22, 2009, 2:56pm UTC](https://forum.kirupa.com/t/flvplayback-component/280086/1 "2009-01-22T14:56:48Z")

</div>

I have one instance of an flvplayback component on my stage. I want to use it for multiple flvs. I am having trouble getting the play head to advance to the next labeled frame. My question is: do you have to have separate listener objects for each video that plays? In the code below the listener object is “complete”, if I go to the frame labeled “machineshop”, do I need to change the listener obejct to something else?

```auto

_root.stop();
changeTitle("WELCOME");
_global.isOn = 2;
_root.menu_intro.gotoAndStop("off");
_root.menu_welcome.gotoAndStop("on");
_root.menu_machine.gotoAndStop("off");
_root.menu_mfg.gotoAndStop("off");
_root.menu_weld.gotoAndStop("off");
_root.menu_assm.gotoAndStop("off");
_root.menu_paint.gotoAndStop("off");
_root.menu_inspect.gotoAndStop("off");
_root.menu_engr.gotoAndStop("off");
_root.menu_closing.gotoAndStop("off");

/**
 Requires:
  - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
     trace("Elapsed play time at completion is: " + my_FLVPlybk.playheadTime);
    //my_FLVPlybk.play();    
    _root.gotoAndStop("machineshop");

};
my_FLVPlybk.addEventListener("complete",listenerObject);

my_FLVPlybk.contentPath = "videos/Intro 500x278_CD.flv";

```
