var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStrm:NetStream = new NetStream(netConn);
myVideo.attachVideo(netStrm);
netStrm.play("video/1700_3.flv");
netStrm.onStatus = function(infoObject:Object) {
switch (infoObject.code) {
case 'NetStream.Play.Start' :
case 'NetStream.Buffer.Full' :
altezza = myVideo.height;
a = 410;
rapporto = altezza / a;
larghezza = myVideo.width;
l = larghezza / rapporto;
myVideo._width = l;
myVideo._height = a;
centra = Math.round(l/2);
trace (centra);
myVideo._x = 943-centra;
myVideo._y = 70;
break;
}
}