/**
* 窗体居中X\Y坐标
* */
public static function getCenter(winWidth:Number, winHeight:Number):Array{
var appWidth:Number = FlexGlobals.topLevelApplication.getVisibleRect().width;
var appHeight:Number = FlexGlobals.topLevelApplication.getVisibleRect().height;
var arr:Array = new Array();
arr.push(Math.max(0, (appWidth - winWidth) / 2)); //X
arr.push(Math.max(0, (appHeight - winHeight) / 2));//Y
return arr;
}