AS2의 전체 화면 적응성
2910 단어 적응
function Move(obj, to_x, to_y, duration)
{
var _loc2 = new mx.transitions.Tween(obj, "_x", mx.transitions.easing.Strong.easeOut, obj._x, to_x, duration, false);
_loc2.start();
var _loc3 = new mx.transitions.Tween(obj, "_y", mx.transitions.easing.Strong.easeOut, obj._y, to_y, duration, false);
_loc3.start();
} // End of the function
function TopCenter(obj, to_x, to_y, duration)
{
var _loc4 = Stage.width;
var _loc7 = obj._width;
to_x = to_x + (_loc4 - _loc7) / 2;
to_y = to_y + 0;
var _loc5 = new mx.transitions.Tween(obj, "_x", mx.transitions.easing.Strong.easeOut, obj._x, to_x, duration, false);
_loc5.start();
var _loc6 = new mx.transitions.Tween(obj, "_y", mx.transitions.easing.Strong.easeOut, obj._y, to_y, duration, false);
_loc6.start();
} // End of the function
function BottomCenter(obj, to_x, to_y, duration)
{
var _loc5 = Stage.width;
var _loc4 = Stage.height;
var _loc9 = obj._width;
var _loc8 = obj._height;
to_x = to_x + (_loc5 - _loc9) / 2;
to_y = to_y + (_loc4 - _loc8);
var _loc6 = new mx.transitions.Tween(obj, "_x", mx.transitions.easing.Strong.easeOut, obj._x, to_x, duration, false);
_loc6.start();
var _loc7 = new mx.transitions.Tween(obj, "_y", mx.transitions.easing.Strong.easeOut, obj._y, to_y, duration, false);
_loc7.start();
} // End of the function
function Center(obj, to_x, to_y, duration)
{
var _loc5 = Stage.width;
var _loc4 = Stage.height;
var _loc9 = obj._width;
var _loc8 = obj._height;
to_x = to_x + (_loc5 - _loc9) / 2;
to_y = to_y + (_loc4 - _loc8) / 2;
var _loc6 = new mx.transitions.Tween(obj, "_x", mx.transitions.easing.Strong.easeOut, obj._x, to_x, duration, false);
_loc6.start();
var _loc7 = new mx.transitions.Tween(obj, "_y", mx.transitions.easing.Strong.easeOut, obj._y, to_y, duration, false);
_loc7.start();
} // End of the function
function Center2(obj, to_x, to_y, to_width, to_height, duration)
{
var _loc5 = Stage.width;
var _loc4 = Stage.height;
var _loc9 = to_width;
var _loc8 = to_height;
to_x = to_x + (_loc5 - _loc9) / 2;
to_y = to_y + (_loc4 - _loc8) / 2;
var _loc6 = new mx.transitions.Tween(obj, "_x", mx.transitions.easing.Strong.easeOut, obj._x, to_x, duration, false);
_loc6.start();
var _loc7 = new mx.transitions.Tween(obj, "_y", mx.transitions.easing.Strong.easeOut, obj._y, to_y, duration, false);
_loc7.start();
} // End of the function
stop ();
Stage.align = "TL";
Stage.scaleMode = "noScale";
var ReSizer = new Object();
ReSizer.onResize = function ()
{
var _loc1 = 20;
Center2(laoding, 0, 0, 275, 110, _loc1);
};
Stage.addListener(ReSizer);
ReSizer.onResize();
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
AS2의 전체 화면 적응성텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.