⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uiobject.as

📁 flash 视频聊天室源码,非常好的源码
💻 AS
📖 第 1 页 / 共 2 页
字号:
class mx.core.UIObject extends MovieClip
{
    var _width, _height, _x, _y, _parent, __get__width, __get__height, _minHeight, __get__minHeight, _minWidth, __get__minWidth, _visible, dispatchEvent, __get__visible, _xscale, __get__scaleX, _yscale, __get__scaleY, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, _loc2, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled, __get__bottom, __get__left, __set__minHeight, __set__minWidth, __get__right, __set__scaleX, __set__scaleY, __get__top, __set__visible, __get__x, __get__y;
    function UIObject()
    {
        super();
        this.constructObject();
    } // End of the function
    function get width()
    {
        return (_width);
    } // End of the function
    function get height()
    {
        return (_height);
    } // End of the function
    function get left()
    {
        return (_x);
    } // End of the function
    function get x()
    {
        return (_x);
    } // End of the function
    function get top()
    {
        return (_y);
    } // End of the function
    function get y()
    {
        return (_y);
    } // End of the function
    function get right()
    {
        //return (_parent.width - (_x + this.width()));
    } // End of the function
    function get bottom()
    {
        //return (_parent.height - (_y + this.height()));
    } // End of the function
    function getMinHeight(Void)
    {
        return (_minHeight);
    } // End of the function
    function setMinHeight(h)
    {
        _minHeight = h;
    } // End of the function
    function get minHeight()
    {
        return (this.getMinHeight());
    } // End of the function
    function set minHeight(h)
    {
        this.setMinHeight(h);
        //return (this.minHeight());
        null;
    } // End of the function
    function getMinWidth(Void)
    {
        return (_minWidth);
    } // End of the function
    function setMinWidth(w)
    {
        _minWidth = w;
    } // End of the function
    function get minWidth()
    {
        return (this.getMinWidth());
    } // End of the function
    function set minWidth(w)
    {
        this.setMinWidth(w);
        //return (this.minWidth());
        null;
    } // End of the function
    function setVisible(x, noEvent)
    {
        if (x != _visible)
        {
            _visible = x;
            if (noEvent != true)
            {
                this.dispatchEvent({type: x ? ("reveal") : ("hide")});
            } // end if
        } // end if
    } // End of the function
    function get visible()
    {
        return (_visible);
    } // End of the function
    function set visible(x)
    {
        this.setVisible(x, false);
        //return (this.visible());
        null;
    } // End of the function
    function get scaleX()
    {
        return (_xscale);
    } // End of the function
    function set scaleX(x)
    {
        _xscale = x;
        //return (this.scaleX());
        null;
    } // End of the function
    function get scaleY()
    {
        return (_yscale);
    } // End of the function
    function set scaleY(y)
    {
        _yscale = y;
        //return (this.scaleY());
        null;
    } // End of the function
    function doLater(obj, fn)
    {
        if (methodTable == undefined)
        {
            methodTable = new Array();
        } // end if
        methodTable.push({obj: obj, fn: fn});
        onEnterFrame = doLaterDispatcher;
    } // End of the function
    function doLaterDispatcher(Void)
    {
        delete this.onEnterFrame;
        if (invalidateFlag)
        {
            this.redraw();
        } // end if
        var _loc3 = methodTable;
        methodTable = new Array();
        if (_loc3.length > 0)
        {
            var _loc2;
            while (_loc2 = _loc3.shift(), _loc3.shift() != undefined)
            {
                _loc2.obj[_loc2.fn]();
            } // end while
        } // end if
    } // End of the function
    function cancelAllDoLaters(Void)
    {
        delete this.onEnterFrame;
        methodTable = new Array();
    } // End of the function
    function invalidate(Void)
    {
        invalidateFlag = true;
        onEnterFrame = doLaterDispatcher;
    } // End of the function
    function invalidateStyle(Void)
    {
        this.invalidate();
    } // End of the function
    function redraw(bAlways)
    {
        if (invalidateFlag || bAlways)
        {
            invalidateFlag = false;
            var _loc2;
            for (var _loc2 in tfList)
            {
                tfList[_loc2].draw();
            } // end of for...in
            this.draw();
            this.dispatchEvent({type: "draw"});
        } // end if
    } // End of the function
    function draw(Void)
    {
    } // End of the function
    function move(x, y, noEvent)
    {
        var _loc3 = _x;
        var _loc2 = _y;
        _x = x;
        _y = y;
        if (noEvent != true)
        {
            this.dispatchEvent({type: "move", oldX: _loc3, oldY: _loc2});
        } // end if
    } // End of the function
    function setSize(w, h, noEvent)
    {
        var _loc2 = __width;
        var _loc3 = __height;
        __width = w;
        __height = h;
        this.size();
        if (noEvent != true)
        {
            this.dispatchEvent({type: "resize", oldWidth: _loc2, oldHeight: _loc3});
        } // end if
    } // End of the function
    function size(Void)
    {
        _width = __width;
        _height = __height;
    } // End of the function
    function drawRect(x1, y1, x2, y2)
    {
        this.moveTo(x1, y1);
        this.lineTo(x2, y1);
        this.lineTo(x2, y2);
        this.lineTo(x1, y2);
        this.lineTo(x1, y1);
    } // End of the function
    function createLabel(name, depth, text)
    {
        this.createTextField(name, depth, 0, 0, 0, 0);
        var _loc2 = this[name];
        _loc2._color = mx.core.UIObject.textColorList;
        _loc2._visible = false;
        _loc2.__text = text;
        if (tfList == undefined)
        {
            tfList = new Object();
        } // end if
        tfList[name] = _loc2;
        _loc2.invalidateStyle();
        this.invalidate();
        _loc2.styleName = this;
        return (_loc2);
    } // End of the function
    function createObject(linkageName, id, depth, initobj)
    {
        return (this.attachMovie(linkageName, id, depth, initobj));
    } // End of the function
    function createClassObject(className, id, depth, initobj)
    {
        var _loc3 = className.symbolName == undefined;
        if (_loc3)
        {
            Object.registerClass(className.symbolOwner.symbolName, className);
        } // end if
        var _loc4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj);
        if (_loc3)
        {
            Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
        } // end if
        return (_loc4);
    } // End of the function
    function createEmptyObject(id, depth)
    {
        return (this.createClassObject(mx.core.UIObject, id, depth));
    } // End of the function
    function destroyObject(id)
    {
        var _loc2 = this[id];
        if (_loc2.getDepth() < 0)
        {
            var _loc4 = this.buildDepthTable();
            var _loc5 = this.findNextAvailableDepth(0, _loc4, "up");
            var _loc3 = _loc5;
            _loc2.swapDepths(_loc3);
        } // end if
        _loc2.removeMovieClip();
        delete this[id];
    } // End of the function
    function getSkinIDName(tag)
    {
        return (idNames[tag]);
    } // End of the function
    function setSkin(tag, linkageName, initObj)
    {
        if (_global.skinRegistry[linkageName] == undefined)
        {
            mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
        } // end if
        return (this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj));
    } // End of the function
    function createSkin(tag)
    {
        var _loc2 = this.getSkinIDName(tag);
        this.createEmptyObject(_loc2, tag);
        return (this[_loc2]);
    } // End of the function
    function createChildren(Void)
    {
    } // End of the function
    function _createChildren(Void)
    {
        this.createChildren();
        childrenCreated = true;
    } // End of the function
    function constructObject(Void)
    {
        if (_name == undefined)
        {
            return;
        } // end if
        this.init();
        this._createChildren();
        this.createAccessibilityImplementation();
        this._endInit();
        if (validateNow)
        {
            this.redraw(true);
        }
        else
        {
            this.invalidate();
        } // end else if
    } // End of the function
    function initFromClipParameters(Void)
    {
        var _loc4 = false;
        var _loc2;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -