📄 uiobject.as
字号:
for (var _loc2 in clipParameters)
{
if (this.hasOwnProperty(_loc2))
{
_loc4 = true;
set("def_" + _loc2, this[_loc2]);
delete this[_loc2];
} // end if
} // end of for...in
if (_loc4)
{
for (var _loc2 in clipParameters)
{
var _loc3 = this["def_" + _loc2];
if (_loc3 != undefined)
{
this[_loc2] = _loc3;
} // end if
} // end of for...in
} // end if
} // End of the function
function init(Void)
{
__width = _width;
__height = _height;
if (initProperties == undefined)
{
this.initFromClipParameters();
}
else
{
this.initProperties();
} // end else if
if (_global.cascadingStyles == true)
{
stylecache = new Object();
} // end if
} // End of the function
function getClassStyleDeclaration(Void)
{
var _loc4 = this;
for (var _loc3 = className; _loc3 != undefined; _loc3 = _loc4.className)
{
if (ignoreClassStyleDeclaration[_loc3] == undefined)
{
if (_global.styles[_loc3] != undefined)
{
return (_global.styles[_loc3]);
} // end if
} // end if
_loc4 = _loc4.__proto__;
} // end of for
} // End of the function
function setColor(color)
{
} // End of the function
function __getTextFormat(tf, bAll)
{
var _loc8 = stylecache.tf;
if (_loc8 != undefined)
{
var _loc3;
for (var _loc3 in mx.styles.StyleManager.TextFormatStyleProps)
{
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[_loc3])
{
if (tf[_loc3] == undefined)
{
tf[_loc3] = _loc8[_loc3];
} // end if
} // end if
} // end of for...in
return (false);
} // end if
var _loc6 = false;
for (var _loc3 in mx.styles.StyleManager.TextFormatStyleProps)
{
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[_loc3])
{
if (tf[_loc3] == undefined)
{
var _loc5 = _tf[_loc3];
if (_loc5 != undefined)
{
tf[_loc3] = _loc5;
continue;
} // end if
if (_loc3 == "font" && fontFamily != undefined)
{
tf[_loc3] = fontFamily;
continue;
} // end if
if (_loc3 == "size" && fontSize != undefined)
{
tf[_loc3] = fontSize;
continue;
} // end if
if (_loc3 == "color" && color != undefined)
{
tf[_loc3] = color;
continue;
} // end if
if (_loc3 == "leftMargin" && marginLeft != undefined)
{
tf[_loc3] = marginLeft;
continue;
} // end if
if (_loc3 == "rightMargin" && marginRight != undefined)
{
tf[_loc3] = marginRight;
continue;
} // end if
if (_loc3 == "italic" && fontStyle != undefined)
{
tf[_loc3] = fontStyle == _loc3;
continue;
} // end if
if (_loc3 == "bold" && fontWeight != undefined)
{
tf[_loc3] = fontWeight == _loc3;
continue;
} // end if
if (_loc3 == "align" && textAlign != undefined)
{
tf[_loc3] = textAlign;
continue;
} // end if
if (_loc3 == "indent" && textIndent != undefined)
{
tf[_loc3] = textIndent;
continue;
} // end if
if (_loc3 == "underline" && textDecoration != undefined)
{
tf[_loc3] = textDecoration == _loc3;
continue;
} // end if
if (_loc3 == "embedFonts" && embedFonts != undefined)
{
tf[_loc3] = embedFonts;
continue;
} // end if
_loc6 = true;
} // end if
} // end if
} // end of for...in
if (_loc6)
{
var _loc9 = styleName;
if (_loc9 != undefined)
{
if (typeof(_loc9) != "string")
{
_loc6 = _loc9.__getTextFormat(tf, true, this);
}
else if (_global.styles[_loc9] != undefined)
{
_loc6 = _global.styles[_loc9].__getTextFormat(tf, true, this);
} // end if
} // end if
} // end else if
if (_loc6)
{
var _loc10 = this.getClassStyleDeclaration();
if (_loc10 != undefined)
{
_loc6 = _loc10.__getTextFormat(tf, true, this);
} // end if
} // end if
if (_loc6)
{
if (_global.cascadingStyles)
{
if (_parent != undefined)
{
_loc6 = _parent.__getTextFormat(tf, false);
} // end if
} // end if
} // end if
if (_loc6)
{
_loc6 = _global.style.__getTextFormat(tf, true, this);
} // end if
return (_loc6);
} // End of the function
function _getTextFormat(Void)
{
var _loc2 = stylecache.tf;
if (_loc2 != undefined)
{
return (_loc2);
} // end if
_loc2 = new TextFormat();
this.__getTextFormat(_loc2, true);
stylecache.tf = _loc2;
if (enabled == false)
{
var _loc3 = this.getStyle("disabledColor");
_loc2.color = _loc3;
} // end if
return (_loc2);
} // End of the function
function getStyleName(Void)
{
var _loc2 = styleName;
if (_loc2 != undefined)
{
if (typeof(_loc2) != "string")
{
return (_loc2.getStyleName());
}
else
{
return (_loc2);
} // end if
} // end else if
if (_parent != undefined)
{
return (_parent.getStyleName());
}
else
{
return;
} // end else if
} // End of the function
function getStyle(styleProp)
{
var _loc3;
++_global.getStyleCounter;
if (this[styleProp] != undefined)
{
return (this[styleProp]);
} // end if
var _loc6 = styleName;
if (_loc6 != undefined)
{
if (typeof(_loc6) != "string")
{
_loc3 = _loc6.getStyle(styleProp);
}
else
{
var _loc7 = _global.styles[_loc6];
_loc3 = _loc7.getStyle(styleProp);
} // end if
} // end else if
if (_loc3 != undefined)
{
return (_loc3);
} // end if
_loc7 = this.getClassStyleDeclaration();
if (_loc7 != undefined)
{
_loc3 = _loc7[styleProp];
} // end if
if (_loc3 != undefined)
{
return (_loc3);
} // end if
if (_global.cascadingStyles)
{
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp))
{
var _loc5 = stylecache;
if (_loc5 != undefined)
{
if (_loc5[styleProp] != undefined)
{
return (_loc5[styleProp]);
} // end if
} // end if
if (_parent != undefined)
{
_loc3 = _parent.getStyle(styleProp);
}
else
{
_loc3 = _global.style[styleProp];
} // end else if
if (_loc5 != undefined)
{
_loc5[styleProp] = _loc3;
} // end if
return (_loc3);
} // end if
} // end if
if (_loc3 == undefined)
{
_loc3 = _global.style[styleProp];
} // end if
return (_loc3);
} // End of the function
static function mergeClipParameters(o, p)
{
for (var _loc3 in p)
{
o[_loc3] = p[_loc3];
} // end of for...in
return (true);
} // End of the function
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.1.78";
static var textColorList = {color: 1, disabledColor: 1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible: 1, minHeight: 1, minWidth: 1, maxHeight: 1, maxWidth: 1, preferredHeight: 1, preferredWidth: 1};
} // End of Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -