var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.play(“papervision.flv”);
function asyncErrorHandler(event:AsyncErrorEvent):void
{
// Null
}
var vid:Video = new Video();
vid.attachNetStream(ns);
addChild(vid);

Above code is simple to understand . Here you need flv file with name of paperVision.

Advertisements