mx.core
Class UIObject


Direct Known Subclasses
           mx.controls.Label, mx.controls.ProgressBar, mx.controls.Spacer, mx.controls.listclasses.DragProxy, mx.core.UIComponent

class UIObject
extends MovieClip

The UIObject class is the base class for all components and graphical objects. UIObjects support events and styles, and resize by scaling. The UIObject class itself is not used as an MXML tag.

Common MXML Syntax Inherited from UIObject

All user interface components in Flex extend the UIObject class. Flex components inherit the following properties from the UIObject class.

 <mx:tagname
color="value"
draw="value"
effectEnd="value"
effectStart="value"
fontFamily="value"
fontSize="value"
fontStyle="value"
fontWeight="value"
height="value"
heightFlex="value"
id="value"
initialize="value"
load="value"
marginLeft="value"
marginRight="value"
maxHeight="value"
maxWidth="value"
minHeight="value"
minWidth="value"
mouseDown="value"
mouseDownEffect="value"
mouseOut="value"
mouseOutEffect="value"
mouseOver="value"
mouseOverEffect="value"
mouseUp="value"
mouseUpEffect="value"
move="value"
moveEffect="value"
nestLevel="value
preferredWidth="value"
preferredHeight="value"
resizeEffect="value"
scaleX="value"
scaleY="value"
styleName="value"
textAlign="value"
textDecoration="value"
textIndent="value"
toolTip="value"
unload="value"
visible="value"
width="value"
widthFlex="value"
x="Only recognized when a component is a child
of a View container.
"
y="Only recognized when a component is a child
of a View container.
"
>
...
child tags
...
</mx:UIObject>

See Also
mx.core.UIComponent



Constructors
UIObject ()
Constructor.


Methods
      addEventListener
Adds a listener for a particular event.
      cancelAllDoLaters() : Void
Cancels all queued functions.
      createAccessibilityImplementation() : Void
Creates accessibility implementation.
      createClassObject(classRef:Function, name:String, depth:Number, initObj:Object) : UIObject
Creates a subobject from its class definition.
      createEmptyObject(name:String, depth:Number) : UIObject
Creates a blank or empty subobject.
      destroyLabel(name:String) : Void
Destroys a text label created by the createLabel method.
      destroyObject(name:String) : Void
Destroys the subobject.
      dispatchEvent
Dispatch the event to all listeners.
      doLater(obj:Object, fn:String, args:Array) : Void
Queues a function to be called later.
      drawRect(x1:Number, y1:Number, x2:Number, y2:Number, r) : Void
Draws an unfilled rectangle on the screen.
      fillRect(x1:Number, y1:Number, x2:Number, y2:Number, rgb:Number, alpha:Number) : Void
Fills the rectangle on the screen.
      getRepeaterItem
The signature of this method is getRepeaterItem(whichRepeater).
      getStyle(styleProp:String) : Void
Gets a style property.
      handleEvent
Handles all events.
      invalidate() : Void
Marks a component so that it is redrawn on the next frame interval.
      invalidateProperties() : Void
If a property setter must do a lot of processing, it should wait to do that processing during the next measurement or layout cycle.
      invalidateSize() : Void
Called if the object`s size is changing.
      invalidateStyle(styleProp:String) : Void
Called if only styles are changing, so subclasses don`t have to redraw everything.
      measure() : Void
Determines the size of the component.
      move(x:Number, y:Number, noEvent:Boolean) : Void
Moves the object.
      redraw(bAlways:Boolean) : Void
Redraws the object instead of waiting for invalidation to do so.
      removeEventListener
Remove a listener for a particular event.
      setMask(mask_mc:MovieClip) : Void
Overrides the MovieClip.
      setSize(w:Number, h:Number, noEvent:Boolean) : Void
Sizes the object.
      setSizeNoLayout(w:Number, h:Number, noEvent:Boolean) : Void
Sizes the object.
      setStyle
Sets a style property.
      swapDepths(target) : Void
Overrides the MovieClip.


Properties
staticversion:String  
ComponentVersion is for internal use only.
      nestLevel:Number  
Depth of this object in the containment hierarchy.
statickStretch:Number  
Number used to indicate stretchability in the preferredWidth and preferredHeight.
      styleName:String  
CSSStyleDeclaration or pointer to parent to be used by component in calculating style values.
      className:String  
Name of component class.
      parentApplication:Object   [Read-Only]
A reference to the Application object that contains this UIObject instance.
      isDocument:Boolean   [Read-Only]
Determines whether this UIObject instance is a document object, that is, whether it is at the top of the hierarchy of a Flex application, MXML component, or ActionScript component.
      parentDocument:Object   [Read-Only]
A reference to the parent document object for this UIObject.
      documentDescriptor:Object   [Read-Only]
For a document object, which is an instance of a UIObject at the top of the hierarchy of a Flex application, MXML component, or ActionScript component, the documentDescriptor property is a reference to the descriptor at the top of the autogenerated descriptor tree for that document.
      descriptor:Object   [Read-Only]
Reference to the UIObjectDescriptor, if any, that was used by the createComponent method to create this UIObject instance.
      instanceIndices:Array  
An Array that contains the indices required to reference a Repeater from its parent document.
      repeaterIndices:Array  
An array that contains the indices of the items in the dataProviders of the Repeaters in the parent document that produced this Repeater.
      id:String   [Read-Write]
MXML ID of this UIObject INSTANCE.
      width:Number   [Read-Write]
Number that specifies the width of the component, in pixels.
      height:Number   [Read-Write]
Number that specifies the height of the component, in pixels.
      x:Number   [Read-Write]
Number that specifies the component`s x position within its parent container.
      y:Number   [Read-Write]
Number that specifies the component`s y position within its parent container.
      minHeight:Number   [Read-Write]
Number that specifies the minimum height of the component, in pixels.
      minWidth:Number   [Read-Write]
Number that specifies the minimum width of the component, in pixels.
      preferredHeight:Number   [Read-Write]
Number that specifies the preferred height of the component, in pixels.
      preferredWidth:Number   [Read-Write]
Number that specifies the preferred width of the component, in pixels.
      maxHeight:Number   [Read-Write]
Number that specifies the maximum height of the component, in pixels.
      maxWidth:Number   [Read-Write]
Number that specifies the maximum width of the component, in pixels.
      widthFlex:Number   [Read-Write]
Setting to a positive number enables resizing of the component width.
      heightFlex:Number   [Read-Write]
Setting to a positive number enables resizing of the component height.
      visible:Boolean   [Read-Write]
If true, the object is visible.
      scaleX:Number   [Read-Write]
Number that specifies the horizontal scaling percentage.
      scaleY:Number   [Read-Write]
Number that specifies the vertical scaling percentage.
      alpha:Void   [Write-Only]
Determines how transparent a component is.
      depth:Number   [Read-Only]
The MovieClip depth of the UIObject instance, which determines the z-ordering.
      mouseX:Number   [Read-Only]
Horizontal coordinate of the mouse pointer`s location in the coordinate system of this UIObject instance.
      mouseY:Number   [Read-Only]
Vertical coordinate of the mouse pointer`s location in the coordinate system of this UIObject instance.
      toolTip:String  
Text to display in the ToolTip.
      baselinePosition:Number   [Read-Only]
Determines the baseline y-coordinate of the first line of text of the component.


Effects
creationCompleteEffectComponent is created.
moveEffectComponent is moved.
resizeEffectComponent is resized.
mouseDownEffectUser presses the mouse button while over the component.
mouseOverEffectUser rolls the mouse over the component.
mouseOutEffectUser rolls the mouse so it is no longer over the component.
mouseUpEffectUser releases the mouse button.


Events
initializeBroadcast when Flex initializes the component. Target contains a reference to the component that triggered the event. Type contains the name of the event.
creationCompleteBroadcast when the object has finished its construction, measuring, layout, and drawing. Target contains a reference to the component that triggered the event. Type contains the name of the event.
resizeBroadcast when the component is resized. The event object contains the following properties:
- oldWidth Previous width. - oldHeight Previous height. Target contains a reference to the component that triggered the event. Type contains the name of the event.
moveBroadcast when the object has moved. The event object contains the following properties:
- oldX Previous x coordinate. - oldY Previous y coordinate. Target contains a reference to the component that triggered the event. Type contains the name of the event.
drawBroadcast when an object is about to draw its graphics. Target contains a reference to the component that triggered the event. Type contains the name of the event.
loadBroadcast when subobjects are being loaded. Target contains a reference to the component that triggered the event. Type contains the name of the event.
unloadBroadcast when the subobjects are being unloaded. Target contains a reference to the component that triggered the event. Type contains the name of the event.
mouseDownBroadcast when the cursor is over the component and the user clicks the mouse button. Target contains a reference to the component that triggered the event. Type contains the name of the event.
mouseUpBroadcast when the cursor is over the component and the user releases the mouse button. Target contains a reference to the component that triggered the event. Type contains the name of the event.
mouseMoveBroadcast when the user moves the mouse. Target contains a reference to the component that triggered the event. Type contains the name of the event.
mouseOverBroadcast when the user moves the cursor over the component. Target contains a reference to the component that triggered the event. Type contains the name of the event.
mouseOutBroadcast when the user moves the cursor off of the component. Target contains a reference to the component that triggered the event. Type contains the name of the event.
mouseDownSomewhereBroadcast when the user clicks the mouse button, even if it`s outside the MovieClip.
mouseUpSomewhereBroadcast when the user releases the mouse button, even if it"s outside the MovieClip.
mouseMoveSomewhereBroadcast whenever the user moves the mouse, even if it is still over the same MovieClip.
mouseChangeSomewhereBroadcast when the user moves the mouse from one MovieClip to another.
effectStartBroadcast when an effect starts. Target contains a reference to the component that triggered the event. Type contains the name of the event.
effectEndBroadcast when an effect ends. Target contains a reference to the component that triggered the event. Type contains the name of the event.
dragBeginBroadcast to the drag initiator when the user makes a gesture that starts a dragand- drop operation. No Flex components respond to this event; it is for use by any custom components that you create. Target contains a reference to the component that triggered the event. Type contains the name of the event.
dragCompleteBroadcast to the drag initiator when the drag operation completes, either when you drop the drag data onto a drop target or when you end the drag-and-drop operation without performing a drop. You can use this event to perform any final cleanup of the dragand- drop operation. For example, if you drag a List control item from one list to another, you can delete the List control item from the source if you no longer need it. Target contains a reference to the component that triggered the event. Type contains the name of the event.
dragEnterBroadcast to the drop target when a drag initiator passes over the target. Only components that define a handler for this event can be drop targets. Within the handler, you can change the appearance of the drop target to provide visual feedback to the user that the component can accept the drag. For example, you could draw a border around the drop target, or give focus to the drop target. Target contains a reference to the component that triggered the event. Type contains the name of the event.
dragOverBroadcast to the drop target when the user moves the mouse over the target. You can handle this event if you want to perform additional logic before allowing the drop, such as dropping data to various locations within the drop target, reading keyboard input to determine if the drag and drop action is a move or copy of the drag data, or providing different types of visual feedback based on the type of drag and drop action. Target contains a reference to the component that triggered the event. Type contains the name of the event.
dragExitBroadcast to the drop target when the user drags outside the drop target, but does not drop the data onto the target. You can use this event to restore the drop target to its normal appearance if you modified its appearance as part of handling the dragEnter event. Target contains a reference to the component that triggered the event. Type contains the name of the event.
dragDropBroadcast to the drop target when the mouse is released over it. You use this event handler to add the drag data to the drop target. Target contains a reference to the component that triggered the event. Type contains the name of the event.


Styles
color Type: Number   Format: Color   CSS Inheritance: yes
Text color of a component label.
fontFamily Type: String   CSS Inheritance: yes
Comma-separated list of fonts to use, in descending order of desirability. Any font family name can be used. If you specify a generic font name, it will be converted to an appropriate device font.
fontSize Type: Number   Format: Length   CSS Inheritance: yes
Size of the text.
fontStyle CSS Inheritance: yes
Whether the text is italic or not. Recognized values are normal and italic. The default is normal.
fontWeight CSS Inheritance: yes
Whether the text is bold or not. Recognized values are normal and bold. The default is normal.
textAlign CSS Inheritance: yes
Alignment of text within a container. Recognized values are left, right, or center. The default is right.
textDecoration CSS Inheritance: no
Determines whether the text is underlined or not. Recognized values are none and underline. The default is none.
textIndent Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container. The default is 0.
marginLeft Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container`s left border and its content area.
marginRight Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container`s right border and its content area.
horizontalGap Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between children in the horizontal direction.
verticalGap Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between children in the vertical direction.


Constructor Detail

UIObject

UIObject()

Constructor.


Method Detail

addEventListener

addEventListener() :  Void

Adds a listener for a particular event. The signature for this method is:
addEventListener(event:String, listener):Void

See Also
     mx.events.EventDispatcher


cancelAllDoLaters

cancelAllDoLaters() : Void

Cancels all queued functions.


createAccessibilityImplementation

createAccessibilityImplementation() :  Void

Creates accessibility implementation.

See Also
     mx.accessibility.accImpl


createClassObject

createClassObject(classRef:Function, name:String, depth:Number, initObj:Object) : UIObject

Creates a subobject from its class definition.

Parameters
     classRef - Reference to the class of the object.
     name - Instance name of the object.
     depth - Indicates the z order of the object.
     initObj - Object that contains initialization properties.

Returns
     Reference to the object.


createEmptyObject

createEmptyObject(name:String, depth:Number) : UIObject

Creates a blank or empty subobject.

Parameters
     name - Instance name of the object.
     depth - Indicates the z order of the object.

Returns
     Reference to the object.


destroyLabel

destroyLabel(name:String) : Void

Destroys a text label created by the createLabel method.

Parameters
     name - Instance name of text object to destroy.


destroyObject

destroyObject(name:String) : Void

Destroys the subobject.

Parameters
     name - Instance name of the object.


dispatchEvent

dispatchEvent() :  Void

Dispatch the event to all listeners. The event is also propagated up the parent chain and broadcast at each level if eventObj.bubbles is true. The signature for this method is:
dispatchEvent(eventObj:Object) : Boolean

See Also
     mx.events.EventDispatcher


doLater

doLater(obj:Object, fn:String, args:Array) : Void

Queues a function to be called later.

Parameters
     obj - Object that contains the function.
     fn - Name of the function on the object.
     args - Array of arguments to pass to the function specified by the fn parameter.


drawRect

drawRect(x1:Number, y1:Number, x2:Number, y2:Number, r) : Void

Draws an unfilled rectangle on the screen.

Parameters
     x1 - Horizontal position of one corner. Note: (x1, y1) is one corner of the rectangle.
     y1 - Vertical position of one corner. Note: (x1, y1) is one corner of the rectangle.
     x2 - Horizontal position of the corner diagonally opposite the first corner. Note: (x2, y2) is the other corner of the rectangle.
     y2 - Vertical position of the corner diagonally opposite the first corner. Note: (x2, y2) is the other corner of the rectangle.
     r - Corner radius of the rectangle or object containing radii for each corner.


fillRect

fillRect(x1:Number, y1:Number, x2:Number, y2:Number, rgb:Number, alpha:Number) : Void

Fills the rectangle on the screen.

Parameters
     x1 - Horizontal position of one corner. Note: (x1, y1) is one corner of the rectangle.
     y1 - Vertical position of one corner. Note: (x1, y1) is one corner of the rectangle.
     x2 - Horizontal position of the corner diagonally opposite the first corner. Note: (x2, y2) is the other corner of the rectangle.
     y2 - Vertical position of the corner diagonally opposite the first corner. Note: (x2, y2) is the other corner of the rectangle.
     rgb - Fill color.
     alpha - Transparency, where 0=transparent, and 100=opaque.


getRepeaterItem

getRepeaterItem() :  Void

The signature of this method is getRepeaterItem(whichRepeater). This method returns the item in the dataProvider that was used by the specified Repeater to produce this Repeater, or undefined if this Repeater isn`t repeated. The argument whichRepeater is 0 for the outermost Repeater, 1 for the next inner Repeater, and so on. If whichRepeater is not specified, the innermost Repeater is used.


getStyle

getStyle(styleProp:String) :  Void

Gets a style property.

Parameters
     styleProp - Name of the style property.

Returns
     Style value.


handleEvent

handleEvent() :  Void

Handles all events. The signature of this method is:
handleEvent(event:Object) : Void

See Also
     mx.events.EventDispatcher


invalidate

invalidate() : Void

Marks a component so that it is redrawn on the next frame interval.


invalidateProperties

invalidateProperties() : Void

If a property setter must do a lot of processing, it should wait to do that processing during the next measurement or layout cycle. That way, multiple changes to the same property do not cause that chunk of processing to execute multiple times. To defer processing, the component sets an internal flag and calls this invalidateProperties function. This function remembers that the component is "dirty", so you call the component`s commitProperties function after the current script finishes executing. When you call the commitProperties method, the component should check its internal flag. If the flag is set, it does that chunk of processing.


invalidateSize

invalidateSize() : Void

Called if the object`s size is changing. Because this object must be re-measured, there is a measurement and sizing pass after the current script finishes executing.


invalidateStyle

invalidateStyle(styleProp:String) : Void

Called if only styles are changing, so subclasses don`t have to redraw everything.

Parameters
     styleProp - Style property.


measure

measure() : Void

Determines the size of the component. The UIObject class contains this code so it can be shared by the UIComponent and Label classes.


move

move(x:Number, y:Number, noEvent:Boolean) : Void

Moves the object.

Parameters
     x - Left position of the object.
     y - Top position of the object.
     noEvent - If true, it does not broadcast a move event.


redraw

redraw(bAlways:Boolean) : Void

Redraws the object instead of waiting for invalidation to do so.

Parameters
     bAlways - If false, it does not redraw if not invalidated.


removeEventListener

removeEventListener() :  Void

Remove a listener for a particular event. The signature of this method is:
removeEventListener(event:String, listener) : Void

See Also
     mx.events.EventDispatcher


setMask

setMask(mask_mc:MovieClip) :  Void

Overrides the MovieClip.setMask function, so it is possible to determine later whether this object has a mask.

Parameters
     mask_mc - Mask that is currently applied to this object.


setSize

setSize(w:Number, h:Number, noEvent:Boolean) : Void

Sizes the object. The setSize method also sets the preferredWidth and preferredHeight parameters so that the layout managers do not resize the object to its original size.

Parameters
     w - Width of the object.
     h - Height of the object.
     noEvent - If true, it does not broadcast resize event.


setSizeNoLayout

setSizeNoLayout(w:Number, h:Number, noEvent:Boolean) : Void

Sizes the object. The setSizeNoLayout method does not set the preferredWidth and preferredHeight parameters, so a future layout calculation may result in the object returning to its previous size. This method is used primarily by Effects and Layout managers.

Parameters
     w - Width of the object.
     h - Height of the object.
     noEvent - If true, it does not broadcast resize event.


setStyle

setStyle() :  Void

Sets a style property. Use this method sparingly because it results in a lot of processing. This property is implemented in mx.styles.CSSSetStyle.as. The signature of this method is: setStyle(styleProp:String, newValue) : Void


swapDepths

swapDepths(target) : Void

Overrides the MovieClip.swapDepths function, so you can send an event when an object`s depth changes.

Parameters
     target - UIObject to swap with.


Property Detail

alpha

alpha:Void   [Write-Only]

Determines how transparent a component is. Values range from 0, which inidicates the component is invisible, to 100, which indicates the component is opaque. Device fonts do not honor alpha setting, although embedded fonts do. The default value is 100.


baselinePosition

baselinePosition:Number   [Read-Only]

Determines the baseline y-coordinate of the first line of text of the component. Each component should override this property.


className

className:String  

Name of component class. This property is also used in calculating style values. If _global.styles[className] exists, it set the defaults for a component.


depth

depth:Number   [Read-Only]

The MovieClip depth of the UIObject instance, which determines the z-ordering.


descriptor

descriptor:Object   [Read-Only]

Reference to the UIObjectDescriptor, if any, that was used by the createComponent method to create this UIObject instance. If this UIObject instance was not created from a descriptor, this property is undefined.


documentDescriptor

documentDescriptor:Object   [Read-Only]

For a document object, which is an instance of a UIObject at the top of the hierarchy of a Flex application, MXML component, or ActionScript component, the documentDescriptor property is a reference to the descriptor at the top of the autogenerated descriptor tree for that document. For other UIObjects, it is undefined.


height

height:Number   [Read-Write]

Number that specifies the height of the component, in pixels.


heightFlex

heightFlex:Number   [Read-Write]

Setting to a positive number enables resizing of the component height. The default value is 0, which indicates that the component is not resizable.


id

id:String   [Read-Write]

MXML ID of this UIObject INSTANCE. If no ID has been assigned, this property is the empty string.


instanceIndices

instanceIndices:Array  

An Array that contains the indices required to reference a Repeater from its parent document. The Array is empty unless the Repeater is within one or more Repeaters. The first element corresponds to the outermost Repeater. For example, if the ID is "r" and instanceIndices is [2,4], you reference it on the document as r[2][4].


isDocument

isDocument:Boolean   [Read-Only]

Determines whether this UIObject instance is a document object, that is, whether it is at the top of the hierarchy of a Flex application, MXML component, or ActionScript component.


kStretch

static kStretch:Number  

Number used to indicate stretchability in the preferredWidth and preferredHeight.


maxHeight

maxHeight:Number   [Read-Write]

Number that specifies the maximum height of the component, in pixels.


maxWidth

maxWidth:Number   [Read-Write]

Number that specifies the maximum width of the component, in pixels.


minHeight

minHeight:Number   [Read-Write]

Number that specifies the minimum height of the component, in pixels.


minWidth

minWidth:Number   [Read-Write]

Number that specifies the minimum width of the component, in pixels.


mouseX

mouseX:Number   [Read-Only]

Horizontal coordinate of the mouse pointer`s location in the coordinate system of this UIObject instance.


mouseY

mouseY:Number   [Read-Only]

Vertical coordinate of the mouse pointer`s location in the coordinate system of this UIObject instance.


nestLevel

nestLevel:Number  

Depth of this object in the containment hierarchy. This number is used by the measurement and layout code.


parentApplication

parentApplication:Object   [Read-Only]

A reference to the Application object that contains this UIObject instance. This Application object might exist in a Loader in another Application, and so on, creating a chain of Application objects that can be walked using parentApplication. The parentApplication of an Application is never itself; it is either the Application into which it was loaded or undefined (for the top-level Application). Walking the application chain using the parentApplication property is similar to walking the document chain using the parentDocument property. You can access the top-level application using the application property of the Application class.


parentDocument

parentDocument:Object   [Read-Only]

A reference to the parent document object for this UIObject. A document object is a UIObject at the top of the hierarchy of a Flex application, MXML component, or AS component. For the application object, parentDocument is undefined. This property is useful in MXML scripts to go up a level in the chain of document objects. It can be used to walk this chain using parentDocument.parentDocument, and so on. It is typed as Object so that authors can access properties and methods on ancestor document objects without casting.


preferredHeight

preferredHeight:Number   [Read-Write]

Number that specifies the preferred height of the component, in pixels.


preferredWidth

preferredWidth:Number   [Read-Write]

Number that specifies the preferred width of the component, in pixels.


repeaterIndices

repeaterIndices:Array  

An array that contains the indices of the items in the dataProviders of the Repeaters in the parent document that produced this Repeater. The array is empty unless this Repeater is within one or more Repeaters. The first element corresponds to the outermost Repeater. For example, if repeaterIndices is [2,4], it means that the outer repeater used item dataProvider[2] and the inner repeater used item dataProvider[4]. This property differs from instanceIndices if the startingIndex of any of the Repeaters is not 0. For example, even if a Repeater starts at dataProvider item 4, the document reference of the first repeated object is b[0], not b[4].


scaleX

scaleX:Number   [Read-Write]

Number that specifies the horizontal scaling percentage. The default value is 100.


scaleY

scaleY:Number   [Read-Write]

Number that specifies the vertical scaling percentage. The default value is 100.


styleName

styleName:String  

CSSStyleDeclaration or pointer to parent to be used by component in calculating style values.


toolTip

toolTip:String  

Text to display in the ToolTip.


version

static version:String  

ComponentVersion is for internal use only.


visible

visible:Boolean   [Read-Write]

If true, the object is visible.


width

width:Number   [Read-Write]

Number that specifies the width of the component, in pixels.


widthFlex

widthFlex:Number   [Read-Write]

Setting to a positive number enables resizing of the component width. The default value is 0, which indicates that the component is not resizable.


x

x:Number   [Read-Write]

Number that specifies the component`s x position within its parent container. Only recognized when the component is a child of a Canvas container.


y

y:Number   [Read-Write]

Number that specifies the component`s y position within its parent container. Only recognized when the component is a child of a Canvas container.