Category Archives: flash

Ciclare video flv con flash actionscript

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.setBufferTime(4);
my_video.attachVideo(stream_ns);
stream_ns.play("promo.flv");

stream_ns.onStatus = function(info) {
var netStreamStatus = info.code;
if (netStreamStatus == 'NetStream.Play.Stop') {
stream_ns.seek(0);
}
};

stop();