var myVideo:Video = new Video(); addChild(myVideo); var nc:NetConnection = new NetConnection(); nc.connect("rtmp://*****.rtmphost.com/appname/_definst_"); var ns:NetStream = new NetStream(nc); myVideo.attachNetStream(ns); ns.play("stream");