stage.addEventListener(Event.RESIZE, onStageResize);
//back_mc.mouseEnabled=back_mc.mouseChildren=false
//初始化位置**********************
var _w:int = stage.stageWidth;
var _h:int = stage.stageHeight;
back_mc_di.y=0;
back_mc.x=back_mc.y=0;
dibu.y=_h-37;
dibu.back_di_mc.width=_w;
mc_add.y=_h-42;
mc_add.x=_w-306;
menu_mc.x=_w-627
menu_mc.y=15;
back_mc_di.width=_w;
back_mc_di.height=_h;
function onStageResize(e:Event):void {
var w:int = stage.stageWidth;
var h:int = stage.stageHeight;
back_mc_di.y=0;
back_mc.x=back_mc.y=0;
dibu.y=h-37;
dibu.back_di_mc.width=w;
mc_add.y=h-42;
mc_add.x=w-306;
menu_mc.x=w-627;
menu_mc.y=15;
back_mc_di.width=w;
back_mc_di.height=h;
if(my_loader){
//my_loader.x=Math.max(50, int((w-1002)/2));
//my_loader.y=Math.max(30, int((h-600)/2));
my_loader.x=Math.max(0, int((w-1002)/2));
my_loader.y=Math.max(0, int((h-600)/2));
}
preloader_mc.x=int((w-315)/2);
preloader_mc.y=int((h-150)/2);
//playsound("shouye.swf",1002,600);
}
//back_mc.mouseEnabled=back_mc.mouseChildren=false
//初始化位置**********************
var _w:int = stage.stageWidth;
var _h:int = stage.stageHeight;
back_mc_di.y=0;
back_mc.x=back_mc.y=0;
dibu.y=_h-37;
dibu.back_di_mc.width=_w;
mc_add.y=_h-42;
mc_add.x=_w-306;
menu_mc.x=_w-627
menu_mc.y=15;
back_mc_di.width=_w;
back_mc_di.height=_h;
function onStageResize(e:Event):void {
var w:int = stage.stageWidth;
var h:int = stage.stageHeight;
back_mc_di.y=0;
back_mc.x=back_mc.y=0;
dibu.y=h-37;
dibu.back_di_mc.width=w;
mc_add.y=h-42;
mc_add.x=w-306;
menu_mc.x=w-627;
menu_mc.y=15;
back_mc_di.width=w;
back_mc_di.height=h;
if(my_loader){
//my_loader.x=Math.max(50, int((w-1002)/2));
//my_loader.y=Math.max(30, int((h-600)/2));
my_loader.x=Math.max(0, int((w-1002)/2));
my_loader.y=Math.max(0, int((h-600)/2));
}
preloader_mc.x=int((w-315)/2);
preloader_mc.y=int((h-150)/2);
//playsound("shouye.swf",1002,600);
}