| 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):voidalpha: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):voidbaselinePosition:Number [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get baselinePosition():NumberblendMode: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):voidcacheAsBitmap: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):voiddocument: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):voidenabled: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):voidexplicitHeight: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):voidexplicitMaxHeight: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():NumberexplicitMaxWidth: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():NumberexplicitMinHeight: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():NumberexplicitMinWidth: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():NumberexplicitWidth: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):voidfilters: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):voidfocusPane: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):voidheight: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):voidincludeInLayout: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):voidisPopUp: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):voidloaderInfo:LoaderInfo [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get loaderInfo():LoaderInfomask: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):voidmaxHeight: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():NumbermaxWidth: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():NumbermeasuredHeight: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():NumbermeasuredMinHeight: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):voidmeasuredMinWidth: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):voidmeasuredWidth: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():NumberminHeight: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():NumberminWidth: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():NumbermouseX:Number [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get mouseX():NumbermouseY:Number [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get mouseY():Numbername: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):voidopaqueBackground: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):voidowner: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):voidparent:DisplayObjectContainer [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get parent():DisplayObjectContainerpercentHeight: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):voidpercentWidth: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):voidroot:DisplayObject [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get root():DisplayObjectrotation: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):voidscale9Grid: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):voidscaleX: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):voidscaleY: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):voidscrollRect: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):voidstage:Stage [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Implementation public function get stage():StagesystemManager: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):voidtransform: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):voidtweeningProperties: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):voidvisible: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):voidwidth: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):voidx: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):voidy: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):voidpublic 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