Hello

I want to stream this rmtp url "rtmp://mydomain.com/live/mystream" by Action script 2

I tried this code:

I created a flash file, and add a movie clip to it "name is video" to play the stream inside it and used this code:
nc = new NetConnection();

nc.connect('rtmp://mydomain.com/live');
ns = new NetStream(nc);
ns.setBufferTime("100");
ns.play('mystream');

this.video.attachVideo(ns);
but it did not work.