Language Version: | ActionScript 3.0 |
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.
accessibilityProperties:AccessibilityProperties
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get accessibilityProperties():AccessibilityProperties
public function set accessibilityProperties(value:AccessibilityProperties):void
alpha:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get alpha():Number
public function set alpha(value:Number):void
baselinePosition:Number
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get baselinePosition():Number
blendMode:String
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get blendMode():String
public function set blendMode(value:String):void
cacheAsBitmap:Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get cacheAsBitmap():Boolean
public function set cacheAsBitmap(value:Boolean):void
document:Object
Language Version: | ActionScript 3.0 |
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:Boolean
Language Version: | ActionScript 3.0 |
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:Number
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
Language Version: | ActionScript 3.0 |
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:Array
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get filters():Array
public function set filters(value:Array):void
focusPane:Sprite
Language Version: | ActionScript 3.0 |
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:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get height():Number
public function set height(value:Number):void
includeInLayout:Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get includeInLayout():Boolean
public function set includeInLayout(value:Boolean):void
isPopUp:Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get isPopUp():Boolean
public function set isPopUp(value:Boolean):void
loaderInfo:LoaderInfo
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get loaderInfo():LoaderInfo
mask:DisplayObject
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get mask():DisplayObject
public function set mask(value:DisplayObject):void
maxHeight:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get measuredMinHeight():Number
public function set measuredMinHeight(value:Number):void
measuredMinWidth:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get measuredMinWidth():Number
public function set measuredMinWidth(value:Number):void
measuredWidth:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
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:Number
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get mouseX():Number
mouseY:Number
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get mouseY():Number
name:String
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get name():String
public function set name(value:String):void
opaqueBackground:Object
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get opaqueBackground():Object
public function set opaqueBackground(value:Object):void
owner:DisplayObjectContainer
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get owner():DisplayObjectContainer
public function set owner(value:DisplayObjectContainer):void
parent:DisplayObjectContainer
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get parent():DisplayObjectContainer
percentHeight:Number
Language Version: | ActionScript 3.0 |
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:Number
Language Version: | ActionScript 3.0 |
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:DisplayObject
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get root():DisplayObject
rotation:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get rotation():Number
public function set rotation(value:Number):void
scale9Grid:Rectangle
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get scale9Grid():Rectangle
public function set scale9Grid(value:Rectangle):void
scaleX:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get scaleX():Number
public function set scaleX(value:Number):void
scaleY:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get scaleY():Number
public function set scaleY(value:Number):void
scrollRect:Rectangle
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get scrollRect():Rectangle
public function set scrollRect(value:Rectangle):void
stage:Stage
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get stage():Stage
systemManager:ISystemManager
Language Version: | ActionScript 3.0 |
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:flash.geom:Transform
Language Version: | ActionScript 3.0 |
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:Array
Language Version: | ActionScript 3.0 |
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:Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get visible():Boolean
public function set visible(value:Boolean):void
width:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get width():Number
public function set width(value:Number):void
x:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get x():Number
public function set x(value:Number):void
y:Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get y():Number
public function set y(value:Number):void
public function PostScaleAdapter(obj:IUIComponent)
Parameters public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Parameters
public function dispatchEvent(event:Event):Boolean
Parameters
Returns public function getBounds(targetCoordinateSpace:DisplayObject):Rectangle
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
Returns public static function getCompatibleIUIComponent(obj:Object):IUIComponent
Language Version: | ActionScript 3.0 |
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
Returns public function getConstraintValue(constraintName:String):*
Language Version: | ActionScript 3.0 |
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.
|
public function getExplicitOrMeasuredHeight():Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns public function getExplicitOrMeasuredWidth():Number
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns public function getRect(targetCoordinateSpace:DisplayObject):Rectangle
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
Returns public function globalToLocal(point:Point):Point
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
Returns public function hasEventListener(type:String):Boolean
Parameters
Returns public function hitTestObject(obj:DisplayObject):Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
Returns public function hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
Returns public function initialize():void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Initialize the object.
public function invalidateDisplayList():void
Language Version: | ActionScript 3.0 |
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.
public function invalidateProperties():void
Language Version: | ActionScript 3.0 |
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.
public function invalidateSize():void
Language Version: | ActionScript 3.0 |
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.
public function localToGlobal(point:Point):Point
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
Returns public function move(x:Number, y:Number):void
Language Version: | ActionScript 3.0 |
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.
|
public function owns(displayObject:DisplayObject):Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
Returns public function parentChanged(p:DisplayObjectContainer):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
public function setActualSize(newWidth:Number, newHeight:Number):void
Language Version: | ActionScript 3.0 |
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.
|
public function setConstraintValue(constraintName:String, value:*):void
Language Version: | ActionScript 3.0 |
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.
|
public function setVisible(value:Boolean, noEvent:Boolean = false):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Parameters
public function validateNow():void
Language Version: | ActionScript 3.0 |
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.
public function willTrigger(type:String):Boolean
Parameters
Returns