Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.containers.utilityClasses 
PostScaleAdapter 
Packagemx.containers.utilityClasses
Classpublic class PostScaleAdapter
InheritancePostScaleAdapter Inheritance Object
Implements IUIComponent, IConstraintClient, IInvalidating

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The PostScaleAdapter class is used as a compatibility layer for Flex 3 classes that rely on width, height, min, max, explicit, measured, and other properties to be determined after scaling is applied. This is useful since in Flex 4, the properties are calculated before scaling is applied.



Public Properties
 PropertyDefined By
  accessibilityProperties : AccessibilityProperties
PostScaleAdapter
  alpha : Number
PostScaleAdapter
  baselinePosition : Number
[read-only]
PostScaleAdapter
  blendMode : String
PostScaleAdapter
  cacheAsBitmap : Boolean
PostScaleAdapter
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  document : Object
A reference to the document object associated with this component.
PostScaleAdapter
  enabled : Boolean
Whether the component can accept user interaction.
PostScaleAdapter
  explicitHeight : Number
The explicitly specified height for the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitMaxHeight : Number
[read-only] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitMaxWidth : Number
[read-only] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitMinHeight : Number
[read-only] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitMinWidth : Number
[read-only] Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitWidth : Number
The explicitly specified width for the component, in pixels, as the component's coordinates.
PostScaleAdapter
  filters : Array
PostScaleAdapter
  focusPane : Sprite
A single Sprite object that is shared among components and used as an overlay for drawing the focus indicator.
PostScaleAdapter
  height : Number
PostScaleAdapter
  includeInLayout : Boolean
PostScaleAdapter
  isPopUp : Boolean
PostScaleAdapter
  loaderInfo : LoaderInfo
[read-only]
PostScaleAdapter
  mask : DisplayObject
PostScaleAdapter
  maxHeight : Number
[read-only] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  maxWidth : Number
[read-only] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  measuredHeight : Number
[read-only] The measured height of this object.
PostScaleAdapter
  measuredMinHeight : Number
PostScaleAdapter
  measuredMinWidth : Number
PostScaleAdapter
  measuredWidth : Number
[read-only] The measured width of this object.
PostScaleAdapter
  minHeight : Number
[read-only] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  minWidth : Number
[read-only] Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  mouseX : Number
[read-only]
PostScaleAdapter
  mouseY : Number
[read-only]
PostScaleAdapter
  name : String
PostScaleAdapter
  opaqueBackground : Object
PostScaleAdapter
  owner : DisplayObjectContainer
PostScaleAdapter
  parent : DisplayObjectContainer
[read-only]
PostScaleAdapter
  percentHeight : Number
Number that specifies the height of a component as a percentage of its parent's size.
PostScaleAdapter
  percentWidth : Number
Number that specifies the width of a component as a percentage of its parent's size.
PostScaleAdapter
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  root : DisplayObject
[read-only]
PostScaleAdapter
  rotation : Number
PostScaleAdapter
  scale9Grid : Rectangle
PostScaleAdapter
  scaleX : Number
PostScaleAdapter
  scaleY : Number
PostScaleAdapter
  scrollRect : Rectangle
PostScaleAdapter
  stage : Stage
[read-only]
PostScaleAdapter
  systemManager : ISystemManager
A reference to the SystemManager object for this component.
PostScaleAdapter
  transform : flash.geom:Transform
PostScaleAdapter
  tweeningProperties : Array
Used by EffectManager.
PostScaleAdapter
  visible : Boolean
PostScaleAdapter
  width : Number
PostScaleAdapter
  x : Number
PostScaleAdapter
  y : Number
PostScaleAdapter
Public Methods
 MethodDefined By
  
PostScaleAdapter
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
PostScaleAdapter
  
PostScaleAdapter
  
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
PostScaleAdapter
  
[static] Call getCompatibleIUIComponent when you need to work with an IUIComponent that reports width, height, min, max, explicit, measured, etc.
PostScaleAdapter
  
getConstraintValue(constraintName:String):*
Returns the specified constraint value.
PostScaleAdapter
  
PostScaleAdapter
  
PostScaleAdapter
  
getRect(targetCoordinateSpace:DisplayObject):Rectangle
PostScaleAdapter
  
PostScaleAdapter
  
PostScaleAdapter
 Inherited
Indicates whether an object has a specified property defined.
Object
  
PostScaleAdapter
  
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
PostScaleAdapter
  
Initialize the object.
PostScaleAdapter
  
Calling this method results in a call to the component's validateDisplayList() method before the display list is rendered.
PostScaleAdapter
  
Calling this method results in a call to the component's validateProperties() method before the display list is rendered.
PostScaleAdapter
  
Calling this method results in a call to the component's validateSize() method before the display list is rendered.
PostScaleAdapter
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
PostScaleAdapter
  
Moves this object to the specified x and y coordinates.
PostScaleAdapter
  
owns(displayObject:DisplayObject):Boolean
PostScaleAdapter
  
PostScaleAdapter
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
PostScaleAdapter
  
setActualSize(newWidth:Number, newHeight:Number):void
Sets the actual size of this object.
PostScaleAdapter
  
setConstraintValue(constraintName:String, value:*):void
Sets the specified constraint value.
PostScaleAdapter
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
  
setVisible(value:Boolean, noEvent:Boolean = false):void
PostScaleAdapter
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
  
Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.
PostScaleAdapter
 Inherited
Returns the primitive value of the specified object.
Object
  
PostScaleAdapter
Property Detail

accessibilityProperties

property
accessibilityProperties:AccessibilityProperties

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get accessibilityProperties():AccessibilityProperties
    public function set accessibilityProperties(value:AccessibilityProperties):void

alpha

property 
alpha:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void

baselinePosition

property 
baselinePosition:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get baselinePosition():Number

blendMode

property 
blendMode:String

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void

cacheAsBitmap

property 
cacheAsBitmap:Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get cacheAsBitmap():Boolean
    public function set cacheAsBitmap(value:Boolean):void

document

property 
document:Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

A reference to the document object associated with this component. A document object is an Object at the top of the hierarchy of a Flex application, MXML component, or ActionScript component.



Implementation
    public function get document():Object
    public function set document(value:Object):void

enabled

property 
enabled:Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Whether the component can accept user interaction. After setting the enabled property to false, some components still respond to mouse interactions such as mouseOver. As a result, to fully disable UIComponents, you should also set the value of the mouseEnabled property to false. If you set the enabled property to false for a container, Flex dims the color of the container and of all of its children, and blocks user input to the container and to all of its children.



Implementation
    public function get enabled():Boolean
    public function set enabled(value:Boolean):void

explicitHeight

property 
explicitHeight:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The explicitly specified height for the component, in pixels, as the component's coordinates. If no height is explicitly specified, the value is NaN.



Implementation
    public function get explicitHeight():Number
    public function set explicitHeight(value:Number):void

explicitMaxHeight

property 
explicitMaxHeight:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the maximum height of the component, in pixels, as the component's coordinates.



Implementation
    public function get explicitMaxHeight():Number

explicitMaxWidth

property 
explicitMaxWidth:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the maximum width of the component, in pixels, as the component's coordinates.



Implementation
    public function get explicitMaxWidth():Number

explicitMinHeight

property 
explicitMinHeight:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the minimum height of the component, in pixels, as the component's coordinates.



Implementation
    public function get explicitMinHeight():Number

explicitMinWidth

property 
explicitMinWidth:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the minimum width of the component, in pixels, as the component's coordinates.



Implementation
    public function get explicitMinWidth():Number

explicitWidth

property 
explicitWidth:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The explicitly specified width for the component, in pixels, as the component's coordinates. If no width is explicitly specified, the value is NaN.



Implementation
    public function get explicitWidth():Number
    public function set explicitWidth(value:Number):void

filters

property 
filters:Array

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get filters():Array
    public function set filters(value:Array):void

focusPane

property 
focusPane:Sprite

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

A single Sprite object that is shared among components and used as an overlay for drawing the focus indicator. Components share this object if their parent is a focused component, not if the component implements the IFocusManagerComponent interface.



Implementation
    public function get focusPane():Sprite
    public function set focusPane(value:Sprite):void

height

property 
height:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get height():Number
    public function set height(value:Number):void

includeInLayout

property 
includeInLayout:Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get includeInLayout():Boolean
    public function set includeInLayout(value:Boolean):void

isPopUp

property 
isPopUp:Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get isPopUp():Boolean
    public function set isPopUp(value:Boolean):void

loaderInfo

property 
loaderInfo:LoaderInfo  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get loaderInfo():LoaderInfo

mask

property 
mask:DisplayObject

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get mask():DisplayObject
    public function set mask(value:DisplayObject):void

maxHeight

property 
maxHeight:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the maximum height of the component, in pixels, as the component's coordinates.



Implementation
    public function get maxHeight():Number

maxWidth

property 
maxWidth:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the maximum width of the component, in pixels, as the component's coordinates.



Implementation
    public function get maxWidth():Number

measuredHeight

property 
measuredHeight:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The measured height of this object.

This is typically hard-coded for graphical skins because this number is simply the number of pixels in the graphic. For code skins, it can also be hard-coded if you expect to be drawn at a certain size. If your size can change based on properties, you may want to also be an ILayoutManagerClient so a measure() method will be called at an appropriate time, giving you an opportunity to compute a measuredHeight.



Implementation
    public function get measuredHeight():Number

measuredMinHeight

property 
measuredMinHeight:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get measuredMinHeight():Number
    public function set measuredMinHeight(value:Number):void

measuredMinWidth

property 
measuredMinWidth:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get measuredMinWidth():Number
    public function set measuredMinWidth(value:Number):void

measuredWidth

property 
measuredWidth:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The measured width of this object.

This is typically hard-coded for graphical skins because this number is simply the number of pixels in the graphic. For code skins, it can also be hard-coded if you expect to be drawn at a certain size. If your size can change based on properties, you may want to also be an ILayoutManagerClient so a measure() method will be called at an appropriate time, giving you an opportunity to compute a measuredHeight.



Implementation
    public function get measuredWidth():Number

minHeight

property 
minHeight:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the minimum height of the component, in pixels, as the component's coordinates.



Implementation
    public function get minHeight():Number

minWidth

property 
minWidth:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the minimum width of the component, in pixels, as the component's coordinates.



Implementation
    public function get minWidth():Number

mouseX

property 
mouseX:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get mouseX():Number

mouseY

property 
mouseY:Number  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get mouseY():Number

name

property 
name:String

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get name():String
    public function set name(value:String):void

opaqueBackground

property 
opaqueBackground:Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get opaqueBackground():Object
    public function set opaqueBackground(value:Object):void

owner

property 
owner:DisplayObjectContainer

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get owner():DisplayObjectContainer
    public function set owner(value:DisplayObjectContainer):void

parent

property 
parent:DisplayObjectContainer  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get parent():DisplayObjectContainer

percentHeight

property 
percentHeight:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the height of a component as a percentage of its parent's size. Allowed values are 0 to 100.



Implementation
    public function get percentHeight():Number
    public function set percentHeight(value:Number):void

percentWidth

property 
percentWidth:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Number that specifies the width of a component as a percentage of its parent's size. Allowed values are 0 to 100.



Implementation
    public function get percentWidth():Number
    public function set percentWidth(value:Number):void

root

property 
root:DisplayObject  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get root():DisplayObject

rotation

property 
rotation:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get rotation():Number
    public function set rotation(value:Number):void

scale9Grid

property 
scale9Grid:Rectangle

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get scale9Grid():Rectangle
    public function set scale9Grid(value:Rectangle):void

scaleX

property 
scaleX:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get scaleX():Number
    public function set scaleX(value:Number):void

scaleY

property 
scaleY:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get scaleY():Number
    public function set scaleY(value:Number):void

scrollRect

property 
scrollRect:Rectangle

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get scrollRect():Rectangle
    public function set scrollRect(value:Rectangle):void

stage

property 
stage:Stage  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get stage():Stage

systemManager

property 
systemManager:ISystemManager

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

A reference to the SystemManager object for this component.



Implementation
    public function get systemManager():ISystemManager
    public function set systemManager(value:ISystemManager):void

transform

property 
transform:flash.geom:Transform

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get transform():flash.geom:Transform
    public function set transform(value:flash.geom:Transform):void

tweeningProperties

property 
tweeningProperties:Array

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Used by EffectManager. Returns non-null if a component is not using the EffectManager to execute a Tween.



Implementation
    public function get tweeningProperties():Array
    public function set tweeningProperties(value:Array):void

visible

property 
visible:Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void

width

property 
width:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get width():Number
    public function set width(value:Number):void

x

property 
x:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get x():Number
    public function set x(value:Number):void

y

property 
y:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor Detail

PostScaleAdapter

()Constructor
public function PostScaleAdapter(obj:IUIComponent)



Parameters
obj:IUIComponent
Method Detail

addEventListener

()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = false)

dispatchEvent

()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean

getBounds

()method 
public function getBounds(targetCoordinateSpace:DisplayObject):Rectangle

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

targetCoordinateSpace:DisplayObject

Returns
Rectangle

getCompatibleIUIComponent

()method 
public static function getCompatibleIUIComponent(obj:Object):IUIComponent

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Call getCompatibleIUIComponent when you need to work with an IUIComponent that reports width, height, min, max, explicit, measured, etc. in post-scale coordinates.

Parameters

obj:Object

Returns
IUIComponent

getConstraintValue

()method 
public function getConstraintValue(constraintName:String):*

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Returns the specified constraint value.

Parameters

constraintName:String — name of the constraint value. Constraint parameters are "baseline", "bottom", "horizontalCenter", "left", "right", "top", and "verticalCenter".

For more information about these parameters, see the Canvas and Panel containers and Styles Metadata AnchorStyles.

Returns
* — The constraint value, or null if it is not defined.

getExplicitOrMeasuredHeight

()method 
public function getExplicitOrMeasuredHeight():Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Returns
Number

getExplicitOrMeasuredWidth

()method 
public function getExplicitOrMeasuredWidth():Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Returns
Number

getRect

()method 
public function getRect(targetCoordinateSpace:DisplayObject):Rectangle

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

targetCoordinateSpace:DisplayObject

Returns
Rectangle

globalToLocal

()method 
public function globalToLocal(point:Point):Point

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

point:Point

Returns
Point

hasEventListener

()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean

hitTestObject

()method 
public function hitTestObject(obj:DisplayObject):Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

obj:DisplayObject

Returns
Boolean

hitTestPoint

()method 
public function hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

x:Number
 
y:Number
 
shapeFlag:Boolean (default = false)

Returns
Boolean

initialize

()method 
public function initialize():void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Initialize the object.

invalidateDisplayList

()method 
public function invalidateDisplayList():void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Calling this method results in a call to the component's validateDisplayList() method before the display list is rendered.

For components that extend UIComponent, this implies that updateDisplayList() is called.

invalidateProperties

()method 
public function invalidateProperties():void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Calling this method results in a call to the component's validateProperties() method before the display list is rendered.

For components that extend UIComponent, this implies that commitProperties() is called.

invalidateSize

()method 
public function invalidateSize():void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Calling this method results in a call to the component's validateSize() method before the display list is rendered.

For components that extend UIComponent, this implies that measure() is called, unless the component has both explicitWidth and explicitHeight set.

localToGlobal

()method 
public function localToGlobal(point:Point):Point

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

point:Point

Returns
Point

move

()method 
public function move(x:Number, y:Number):void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Moves this object to the specified x and y coordinates.

Parameters

x:Number — The new x-position for this object.
 
y:Number — The new y-position for this object.

owns

()method 
public function owns(displayObject:DisplayObject):Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

displayObject:DisplayObject

Returns
Boolean

parentChanged

()method 
public function parentChanged(p:DisplayObjectContainer):void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

p:DisplayObjectContainer

removeEventListener

()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

setActualSize

()method 
public function setActualSize(newWidth:Number, newHeight:Number):void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Sets the actual size of this object.

This method is mainly for use in implementing the updateDisplayList() method, which is where you compute this object's actual size based on its explicit size, parent-relative (percent) size, and measured size. You then apply this actual size to the object by calling setActualSize().

In other situations, you should be setting properties such as width, height, percentWidth, or percentHeight rather than calling this method.

Parameters

newWidth:Number — The new width for this object.
 
newHeight:Number — The new height for this object.

setConstraintValue

()method 
public function setConstraintValue(constraintName:String, value:*):void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Sets the specified constraint value.

Parameters

constraintName:String — name of the constraint value. Constraint parameters are "baseline", "bottom", "horizontalCenter", "left", "right", "top", and "verticalCenter".

For more information about these parameters, see the Canvas and Panel containers and Styles Metadata AnchorStyles.

 
value:* — The new value for the constraint.

setVisible

()method 
public function setVisible(value:Boolean, noEvent:Boolean = false):void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters

value:Boolean
 
noEvent:Boolean (default = false)

validateNow

()method 
public function validateNow():void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.

When properties are changed, the new values do not usually have an immediate effect on the component. Usually, all of the application code that needs to be run at that time is executed. Then the LayoutManager starts calling the validateProperties(), validateSize(), and validateDisplayList() methods on components, based on their need to be validated and their depth in the hierarchy of display list objects.

For example, setting the width property is delayed, because it may require recalculating the widths of the object's children or its parent. Delaying the processing also prevents it from being repeated multiple times if the application code sets the width property more than once. This method lets you manually override this behavior.

willTrigger

()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean