Class mx.core.UIObject

MovieClip
   +--mx.core.UIObject

Description

The base class for all components and graphical objects. UIObjects support events and styles and resize by scaling.

Field Index

__height, __onUnload, __width, _color, _endInit, _id, _maxHeight, _maxWidth, _minHeight, _minWidth, _preferredHeight, _preferredWidth, _tf, _topmost, addEventListener, bottom, buildDepthTable, changeColorStyleInChildren, changeTextStyleInChildren, childrenCreated, className, clipParameters, color, createAccessibilityImplementation, createChildAtDepth, createClassChildAtDepth, createEvent, dispatchEvent, embedFonts, findNextAvailableDepth, fontFamily, fontSize, fontStyle, fontWeight, handleEvent, height, idNames, ignoreClassStyleDeclaration, initProperties, invalidateFlag, left, lineColor, lineWidth, marginLeft, marginRight, methodTable, minHeight, minWidth, notifyStyleChangeInChildren, removeEventListener, right, scaleX, scaleY, setStyle, stylecache, styleName, symbolName, symbolOwner, tabEnabled, textAlign, textColorList, textDecoration, textIndent, tfList, top, validateNow, visible, width, x, y
Inherited from MovieClip
_alpha, _currentframe, _droptarget, _focusrect, _framesloaded, _height, _lockroot, _name, _parent, _quality, _rotation, _soundbuftime, _target, _totalframes, _url, _visible, _width, _x, _xmouse, _xscale, _y, _ymouse, _yscale, enabled, focusEnabled, hitArea, tabChildren, tabEnabled, tabIndex, tooltipText, trackAsMenu, useHandCursor

Method Index

new UIObject()

__getTextFormat(), _createChildren(), _getTextFormat(), cancelAllDoLaters(), constructObject(), createChildren(), createClassObject(), createEmptyObject(), createLabel(), createObject(), createSkin(), destroyObject(), doLater(), doLaterDispatcher(), draw(), drawRect(), getClassStyleDeclaration(), getMinHeight(), getMinWidth(), getSkinIDName(), getStyle(), getStyleName(), init(), initFromClipParameters(), invalidate(), invalidateStyle(), mergeClipParameters(), move(), redraw(), setColor(), setMinHeight(), setMinWidth(), setSize(), setSkin(), setVisible(), size()
Inherited from MovieClip
attachAudio(), attachMovie(), beginFill(), beginGradientFill(), clear(), createEmptyMovieClip(), createTextField(), curveTo(), duplicateMovieClip(), endFill(), getBounds(), getBytesLoaded(), getBytesTotal(), getDepth(), getInstanceAtDepth(), getNextHighestDepth(), getSWFVersion(), getTextSnapshot(), getURL(), globalToLocal(), gotoAndPlay(), gotoAndStop(), hitTest(), lineStyle(), lineTo(), loadMovie(), loadVariables(), localToGlobal(), moveTo(), nextFrame(), onData(), onDragOut(), onDragOver(), onEnterFrame(), onKeyDown(), onKeyUp(), onKillFocus(), onLoad(), onMouseDown(), onMouseMove(), onMouseUp(), onPress(), onRelease(), onReleaseOutside(), onRollOut(), onRollOver(), onSetFocus(), onUnload(), play(), prevFrame(), removeMovieClip(), setMask(), startDrag(), stop(), stopDrag(), swapDepths(), unloadMovie(), valueOf()

Constructor Detail

UIObject

function UIObject()

Field Detail

symbolName

static symbolName:String

symbolOwner

static symbolOwner:Object

textColorList

static textColorList

invalidateFlag

private invalidateFlag:Boolean

lineWidth

private lineWidth:Number

lineColor

private lineColor:Number

tabEnabled

tabEnabled:Boolean

ignoreClassStyleDeclaration

ignoreClassStyleDeclaration:Object

childrenCreated

childrenCreated:Boolean

createEvent

createEvent:Function

dispatchEvent

dispatchEvent:Function

addEventListener

addEventListener:Function

handleEvent

handleEvent:Function

removeEventListener

removeEventListener:Function

buildDepthTable

buildDepthTable:Function

findNextAvailableDepth

findNextAvailableDepth:Function

createChildAtDepth

createChildAtDepth:Function

createClassChildAtDepth

createClassChildAtDepth:Function

createAccessibilityImplementation

createAccessibilityImplementation:Function

_id

private _id:String

validateNow

validateNow:Boolean

color

color:Number

fontSize

fontSize:Number

fontWeight

fontWeight:String

fontFamily

fontFamily:String

fontStyle

fontStyle:String

textAlign

textAlign:String

textDecoration

textDecoration:String

textIndent

textIndent:Number

marginLeft

marginLeft:Number

marginRight

marginRight:Number

embedFonts

embedFonts:Boolean

changeTextStyleInChildren

changeTextStyleInChildren:Function

changeColorStyleInChildren

changeColorStyleInChildren:Function

notifyStyleChangeInChildren

notifyStyleChangeInChildren:Function

_topmost

_topmost:Boolean

_color

_color

styleName

styleName:String

className

className:String

stylecache

stylecache:Object

methodTable

methodTable:Array

idNames

idNames:Array

setStyle

setStyle:Function

clipParameters

clipParameters:Object

initProperties

initProperties:Function

__width

__width:Number

__height

__height:Number

_minHeight

private _minHeight:Number

_minWidth

private _minWidth:Number

_maxHeight

private _maxHeight:Number

_maxWidth

private _maxWidth:Number

_preferredHeight

private _preferredHeight:Number

_preferredWidth

private _preferredWidth:Number

_tf

private _tf:TextFormat

tfList

private tfList:Object

__onUnload

private __onUnload:Function

_endInit

private _endInit:Function

width

width:Number [Read Only]
width of object Read-Only: use setSize() to change.

height

height:Number [Read Only]
height of object Read-Only: use setSize() to change.

left

left:Number [Read Only]
left of object Read-Only: use move() to change.

x

x:Number [Read Only]
x = left of object Read-Only: use move() to change.

top

top:Number [Read Only]
top of object Read-Only: use move() to change.

y

y:Number [Read Only]
y = top of object Read-Only: use move() to change.

right

right:Number [Read Only]
right of object relative to its parent's right edge. Read-Only: use setSize() to change.

bottom

bottom:Number [Read Only]
bottom of object relative to its parent's bottom Read-Only: use setSize() to change.

minHeight

minHeight:Number
minimum height of object

minWidth

minWidth:Number
minimum width of object

visible

visible:Boolean
True if object is visible

scaleX

scaleX:Number
100 is standard scale

scaleY

scaleY:Number
100 is standard scale

Method Detail

getMinHeight

function getMinHeight(Void):
Number

setMinHeight

function setMinHeight(h:
Number):Void

getMinWidth

function getMinWidth(Void):
Number

setMinWidth

function setMinWidth(w:
Number):Void

setVisible

function setVisible(x:
Boolean, noEvent:Boolean):Void

doLater

function doLater(obj:
Object, fn:String):Void
Queues a function to be called later
Parameters
obj Object that contains the function
fn Name of function on Object

doLaterDispatcher

function doLaterDispatcher(Void):Void

cancelAllDoLaters

function cancelAllDoLaters(Void):Void
cancel all queued functions

invalidate

function invalidate(Void):Void
mark component so it will get drawn later

invalidateStyle

function invalidateStyle(Void):Void
called if just styles are changing so subclasses don't have to redraw everything

redraw

function redraw(bAlways:
Boolean):Void
redraws object if you couldn't wait for invalidation to do it
Parameters
bAlways if False, doesn't redraw if not invalidated @tiptext Redraws an object immediately @helpid 3971

draw

function draw(Void):Void

move

function move(x:
Number, y:Number, noEvent:Boolean):Void
move the object
Parameters
x left position of the object
y top position of the object
noEvent if true, doesn't broadcast "move" event @tiptext Moves the object to the specified location @helpid 3970

setSize

function setSize(w:
Number, h:Number, noEvent:Boolean):Void
size the object
Parameters
w width of the object
h height of the object
noEvent if true, doesn't broadcast "resize" event @tiptext Resizes the object to the specified size @helpid 3976

size

function size(Void):Void

drawRect

function drawRect(x1:
Number, y1:Number, x2:Number, y2:Number):Void
draw unfilled rectangle on the screen
Parameters
x1 (x1, y1) is one corner of rectangle
y1 (x1, y1) is one corner of rectangle
x2 (x2, y2) is other corner of rectangle
y2 (x2, y2) is other corner of rectangle

createLabel

function createLabel(name:
String, depth:Number, text):TextField
Parameters
name instance name of text object
depth z order of object
text text of object
Return
reference to text object

createObject

function createObject(linkageName:
String, id:String, depth:Number, initobj:Object):MovieClip
create a subobject from its symbol name
Parameters
id instance name of object
depth z order of object
Return
reference to object @tiptext Creates a sub-object using its symbol name @helpid 3960

createClassObject

function createClassObject(className:
Function, id:String, depth:Number, initobj:Object):UIObject
create a subobject from its class definition
Parameters
id instance name of object
depth z order of object
Return
reference to object @tiptext Creates a sub-object using its class name @helpid 3961

createEmptyObject

function createEmptyObject(id:
String, depth:Number):UIObject
create a blank or empty subobject
Parameters
id instance name of object
depth z order of object
Return
reference to object

destroyObject

function destroyObject(id:
String):Void
destroy the subobject
Parameters
id instance name of object @tiptext Destroys the specified object @helpid 3962

getSkinIDName

function getSkinIDName(tag:
Number):String
Parameters
tag id number in idNames

setSkin

function setSkin(tag:
Number, linkageName:String, initObj:Object):MovieClip
Parameters
tag id number of skin
initObj object containing initialization properties
Return
reference to object @helpid 3977

createSkin

function createSkin(tag:
Number):UIObject
Parameters
tag id number of skin
Return
reference to object

createChildren

function createChildren(Void):Void

_createChildren

function _createChildren(Void):Void

constructObject

function constructObject(Void):Void

initFromClipParameters

function initFromClipParameters(Void):Void

init

function init(Void):Void

getClassStyleDeclaration

function getClassStyleDeclaration(Void):
CSSStyleDeclaration

setColor

function setColor(color:
Number):Void

__getTextFormat

function __getTextFormat(tf:
TextFormat, bAll:Boolean):Boolean

_getTextFormat

function _getTextFormat(Void):
TextFormat

getStyleName

function getStyleName(Void):
String

getStyle

function getStyle(styleProp:
String)
get a style property
Parameters
Return
Variant the style value @tiptext Gets the style value associated with the style property @helpid 3965

mergeClipParameters

static function mergeClipParameters(o, p):
Boolean