Provando con questo codice, il video mi viene esattamente al centro dello stage:
Codice PHP:
var video:Video = addChild(new Video(560, 420)) as Video;
video.x = (stage.stageWidth-video.width) * 0.5;
video.y = (stage.stageHeight-video.height) * 0.5;
var conn:NetConnection = new NetConnection(); conn.connect(null);
var stream:NetStream = new NetStream(conn);
stream.addEventListener(NetStatusEvent.NET_STATUS, function (evt:NetStatusEvent) {})
var listener:Object = new Object();
listener.onCuePoint = function (evt) {}
listener.onMetaData = function (evt) {}
listener.onPlayStatus = function (evt) {}
stream.client = listener;
video.attachNetStream(stream);
stream.play("test_video.flv");