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_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:
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