Revision: 25973
Updated Code
at January 26, 2011 04:34 by adrianparr
Updated Code
var vid:Video; var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); var customClient:Object = new Object(); customClient.onMetaData = metaDataHandler; ns.client = customClient; ns.play("video.flv"); vid = new Video(); vid.attachNetStream(ns); addChild(vid); function asyncErrorHandler(event:AsyncErrorEvent):void { trace(event.text); } function metaDataHandler(infoObject:Object):void { vid.width = infoObject.width; vid.height = infoObject.height; }
Revision: 25972
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 15, 2010 05:29 by adrianparr
Initial Code
var vidConnection:NetConnection = new NetConnection(); vidConnection.connect(null); var vidStream:NetStream = new NetStream(vidConnection); var vid:Video = new Video(); addChild(vid); vid.attachNetStream(vidStream); vidStream.play("video_name.flv");
Initial URL
http://macromediastudiomx.de/devnet/flash/quickstart/metadata_cue_points.html
Initial Description
Initial Title
AS3 Loading and Playing an External FLV File
Initial Tags
video, load
Initial Language
ActionScript 3