PDA

View Full Version : Add code in flvplayback skin



asthyanax
February 11th, 2010, 06:51 PM
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:


this.addEventListener(MetadataEvent.METADATA_RECEI VED, flvPlayback_metadataReceived);

function flvPlayback_metadataReceived(evt:MetadataEvent):vo id {
var vidLength:Number=int(evt.info.duration*100)/100;
trace(vidLength);
}
But I have an error:

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