hello,

I'm streaming an flv using NetStream but always always always whenI try to access the bytesTotal/ bytesLoaded property through my displayLoaded function it returns "undefined". what am I doing wrong, please?

Here's my code:

Code:
class game.VideoStreamer
{
	private var flv:String;
	private var nc:NetConnection;
	private var ns:NetStream;
	
	public function VideoStreamer(target:MovieClip)
	{
		nc = new NetConnection();
		nc.connect(null);
		
		ns = new NetStream(nc);
		target.videoHolder.attachVideo(ns);
		ns.setBufferTime(0);
	}
	
	public function playVideo(flv)
	{
		ns.play(flv)
		setInterval(displayLoaded, 100)
	}
	
	private function displayLoaded():Void
	{
		trace("loaded="+ ns.bytesLoaded + " total="+ ns.bytesTotal)
	}
	public function deleteVideo(current)
	{
		delete this;
	}
	
}