zoukankan      html  css  js  c++  java
  • AS2 的全屏自适应

    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();
    

      

  • 相关阅读:
    Microsoft SQL Server JDBC 驱动程序支持矩阵
    Package java.sql
    访问系统的时间
    tomcat 测试页面显示
    jsp中的http status 500错误问题怎么解决
    jetty访问jsp页面出现异常:org.apache.jasper.JasperException: PWC6345: A full JDK (not just JRE) is required解决
    Starting Tomcat v7.0 Server at localhost' has encountered a problem. 如何解决
    报错:org.apache.jasper.JasperException: /jsp/head.jsp (line: 1, column: 2) Page directive: illegal to
    Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start
    Win10系统如何配置Tomcat环境变量
  • 原文地址:https://www.cnblogs.com/regalys168/p/4572256.html
Copyright © 2011-2022 走看看