Return to Snippet

Revision: 11212
at January 28, 2009 08:16 by kungpoo


Initial Code
var video:Video = new Video(320, 240);
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("VIDEO");

Initial URL

                                

Initial Description

                                

Initial Title
AS3 Video Skeleton

Initial Tags
video

Initial Language
ActionScript 3