There is no method with this name "attachNetStream" What's wrong?

Hi!

I am using this code to load a FLV file into a video player but I am getting an error message saying that there is no method attachNetStream.


var vp : Video = new Video(320,240);
addChild(vp);


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;


vp.attachNetStream(ns);


ns.play("ffTrailer.flv");

Can anyone please help me?

thank you