# Add code in flvplayback skin

**URL:** <https://forum.kirupa.com/t/add-code-in-flvplayback-skin/304695>\
**Category:** flash\
**Created:** [February 11, 2010, 11:51pm UTC](https://forum.kirupa.com/t/add-code-in-flvplayback-skin/304695 "2010-02-11T23:51:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asthyanax](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@asthyanax](https://forum.kirupa.com/u/asthyanax)\
**Post date:** [February 11, 2010, 11:51pm UTC](https://forum.kirupa.com/t/add-code-in-flvplayback-skin/304695/1 "2010-02-11T23:51:23Z")

</div>

Hi,  
I am trying to do something but I don’t even know if it’s possible. I want to add a textfield in a flvplayback skin that displays the length of the video. I tried this:

```auto
this.addEventListener(MetadataEvent.METADATA_RECEIVED, flvPlayback_metadataReceived);

function flvPlayback_metadataReceived(evt:MetadataEvent):void {
    var vidLength:Number=int(evt.info.duration*100)/100;
    trace(vidLength);
}

```

But I have an error:

```auto
1046: Type was not found or was not a compile-time constant: MetadataEvent.

```

Any idea? I want to be in the skin because I use multiple skins and I don’t want to modify the player code…if possible of course.  
Thanks.  
Chris
