/ Published in: Other

Expand |
Embed | Plain Text
/* リã‚ッドサイズ MdN P035 ステージã«fiftyPer.boxã‚’ç”¨æ„ = 50%固定 */ Stage.scaleMode = "noScale"; Stage.align="LT"; // ã©ã“ã‚’ä¸å¿ƒã«æ‹¡å¤§ç¸®å°ã™ã‚‹ã‹ //ãƒªã‚¹ãƒŠãƒ¼ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆã‚’ä½œæˆ var myListener:Object = new Object(); //リサイズã•ã‚ŒãŸæ™‚ã®å‡¦ç† myListener.onResize = function () { var SW = Stage.width; var SH = Stage.height; //X軸 LT._x = L._x = LB._x = 10; T._x = B._x = fiftyPer._x = SW/2; RT._x = R._x = RB._x = SW-10; //Y軸 LT._y = T._y = RT._y = 10; L._y = R._y = fiftyPer._y = SH/2; LB._y = B._y = RB._y = SH - 10; //æ‹¡å¤§ç¸®å° fiftyPer.box._width = SW/2; fiftyPer.box._height = SH/2; } //リスナーオブジェクトをイベントリスナーã«ç™»éŒ² Stage.addListener(myListener);
You need to login to post a comment.