2 //Open a new NetConnection to attach a remote object
3 var nc
= new NetConnection();
5 //RTMP=(Real-Time Messaging Protocol)
6 //rtmp://host[:port]/appName[/instanceName]
8 //nc.connect("http://localhost");
9 nc
.connect
("rtmp://localhost/oflaDemo");
11 //Declare a Streaming Object called NetStream
12 var ns
= new NetStream(nc
);
15 // Attach de stream to the video
18 //Push Play on the movie
19 // NewStream.attachAudio(Microphone.get());
20 // NewStream.attachVideo(Camera.get());
22 // this is a url variable passed in the object call
24 ns
.play
("DarkKnight.flv");