i'm trying to play HD footage (h.264) in my flash movie...only the tutorial i followed gave me output errors in the AS code.

my code is as follows:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVideo.attachNetStream(ns);

var listener :Object = new Object();
listener.onMetaData = function (md:Object):void{};
ns.client = listener

ns.play("test.mov");
the error says this:
A type identifier is expected after the ':'.
has anybody done this properly?