actionscript-video-com-flashconnections-ui-component-mediaPlayer-NetStreamExt.ax [swf] flex
AUTHOR: James O'Reilly kremens@gmail.com
package com.flashconnections.ui.component.mediaPlayer { import flash.net.NetConnection; import flash.events.NetStatusEvent; import flash.net.NetStream; public class @ax-actionscript-video-com-flashconnections-ui-component-mediaPlayer-NetStreamExt extends flash.net.NetStream { public function @ax-actionscript-video-com-flashconnections-ui-component-mediaPlayer-NetStreamExt(netC:NetConnection) { super(netC); // Listen for stream status this.addEventListener(NetStatusEvent.NET_STATUS, streamNetStatus); } // Event handler invoked every time a status change or error is // posted for the NetStream object private function streamNetStatus(event:NetStatusEvent):void { trace("stream status: "); for (var prop:String in event.info) { trace("\t" + prop + ": " + event.info[prop]); } } public function onMetaData (info:Object):void { trace("stream metadata: "); for (var prop:String in info) { trace("\t" + prop + ": " + info[prop]); } } public override function toString():String { return "com.flashconnections.ui.component.mediaPlayer.@ax-actionscript-video-com-flashconnections-ui-component-mediaPlayer-NetStreamExt"; } } }
(C) Æliens 27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.