Revision: 10748
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 12, 2009 11:32 by SmpleJohn
Initial Code
var video:Video = new Video(VIDEOWIDTH, VIDEOHEIGHT); addChild(video); var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); ns.addEventListener(NetStatusEvent.NET_STATUS, onStatusEvent); function onStatusEvent(stat:Object):void { trace(stat.info.code); } var meta:Object = new Object(); meta.onMetaData = function(meta:Object) { trace(meta.duration); } ns.client = meta; video.attachNetStream(ns); ns.play("yoursource.flv");
Initial URL
Initial Description
Initial Title
Flash NetConnection
Initial Tags
flash, video
Initial Language
ActionScript 3