글 수 211
fullmodeAlign.zip


fscommand("fullscreen", "true");
Stage.scaleMode = "noScale";
Stage.align = "tl";
_root.skal = 0;
speed = 4;
onEnterFrame = function(){ // se들이 mc위치로 따라가기
_root.se2._x = _root.se2._x + (mc2._x -_root.se2._x)/speed ;
_root.se3._y = _root.se3._y + (mc3._y -_root.se3._y)/speed ;
_root.se4._x = _root.se4._x + (mc4._x -_root.se4._x)/speed ;
_root.se4._y = _root.se4._y + (mc4._y -_root.se4._y)/speed ;
_root.se0._x = _root.se0._x + (mc0._x -_root.se0._x)/speed ;
_root.se0._y = _root.se0._y + (mc0._y -_root.se0._y)/speed ;
}
onLoad = function(){; //mc들의 초기 위치
sw = Stage.width;
sh = Stage.height;
mc0._y = sh/2;
mc0._x = sw/2;
mc2._x = sw-80;
mc3._y = sh-80;
mc4._y = sh-80;
mc4._x = sw-80;
};
var myListener:Object = new Object();
myListener.onResize = function() { //swf 파일 가로세로 사이즈가 변할때 실행
trace("Stage size is now "+Stage.width+" by "+Stage.height);
sw = Stage.width;
sh = Stage.height;
mc0._y = sh/2;
mc0._x = sw/2;
mc2._x = sw-80;
mc3._y = sh-80;
mc4._y = sh-80;
mc4._x = sw-80;
};
Stage.addListener(myListener);
// later, call Stage.removeListener(myListener)
소스가 좀 조잡합니다. 그래도 유용하게 쓰일듯..
Tweet


fscommand("fullscreen", "true");
Stage.scaleMode = "noScale";
Stage.align = "tl";
_root.skal = 0;
speed = 4;
onEnterFrame = function(){ // se들이 mc위치로 따라가기
_root.se2._x = _root.se2._x + (mc2._x -_root.se2._x)/speed ;
_root.se3._y = _root.se3._y + (mc3._y -_root.se3._y)/speed ;
_root.se4._x = _root.se4._x + (mc4._x -_root.se4._x)/speed ;
_root.se4._y = _root.se4._y + (mc4._y -_root.se4._y)/speed ;
_root.se0._x = _root.se0._x + (mc0._x -_root.se0._x)/speed ;
_root.se0._y = _root.se0._y + (mc0._y -_root.se0._y)/speed ;
}
onLoad = function(){; //mc들의 초기 위치
sw = Stage.width;
sh = Stage.height;
mc0._y = sh/2;
mc0._x = sw/2;
mc2._x = sw-80;
mc3._y = sh-80;
mc4._y = sh-80;
mc4._x = sw-80;
};
var myListener:Object = new Object();
myListener.onResize = function() { //swf 파일 가로세로 사이즈가 변할때 실행
trace("Stage size is now "+Stage.width+" by "+Stage.height);
sw = Stage.width;
sh = Stage.height;
mc0._y = sh/2;
mc0._x = sw/2;
mc2._x = sw-80;
mc3._y = sh-80;
mc4._y = sh-80;
mc4._x = sw-80;
};
Stage.addListener(myListener);
// later, call Stage.removeListener(myListener)
소스가 좀 조잡합니다. 그래도 유용하게 쓰일듯..
![IMGWizard[이미지위자드]](/layouts/wizard/images/default/zeroBoardXE.png)


