適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
mx.containers.utilityClasses 

PostScaleAdapter  - AS3 Flex

套件mx.containers.utilityClasses
類別public class PostScaleAdapter
繼承PostScaleAdapter Inheritance Object
實作 IUIComponent, IConstraintClient, IInvalidating

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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
PostScaleAdapter
  alpha : Number
PostScaleAdapter
  baselinePosition : Number
[唯讀]
PostScaleAdapter
  blendMode : String
PostScaleAdapter
  cacheAsBitmap : Boolean
PostScaleAdapter
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
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
[唯讀] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitMaxWidth : Number
[唯讀] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitMinHeight : Number
[唯讀] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  explicitMinWidth : Number
[唯讀] 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
[唯讀]
PostScaleAdapter
  mask : DisplayObject
PostScaleAdapter
  maxHeight : Number
[唯讀] Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  maxWidth : Number
[唯讀] Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  measuredHeight : Number
[唯讀] The measured height of this object.
PostScaleAdapter
  measuredMinHeight : Number
PostScaleAdapter
  measuredMinWidth : Number
PostScaleAdapter
  measuredWidth : Number
[唯讀] The measured width of this object.
PostScaleAdapter
  minHeight : Number
[唯讀] Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  minWidth : Number
[唯讀] Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
PostScaleAdapter
  mouseX : Number
[唯讀]
PostScaleAdapter
  mouseY : Number
[唯讀]
PostScaleAdapter
  name : String
PostScaleAdapter
  opaqueBackground : Object
PostScaleAdapter
  owner : DisplayObjectContainer
PostScaleAdapter
  parent : DisplayObjectContainer
[唯讀]
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
  root : DisplayObject
[唯讀]
PostScaleAdapter
  rotation : Number
PostScaleAdapter
  scale9Grid : Rectangle
PostScaleAdapter
  scaleX : Number
PostScaleAdapter
  scaleY : Number
PostScaleAdapter
  scrollRect : Rectangle
PostScaleAdapter
  stage : Stage
[唯讀]
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
公用方法
 方法定義自
  
PostScaleAdapter
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
PostScaleAdapter
  
PostScaleAdapter
  
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
PostScaleAdapter
  
[靜態] 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
指出物件是否有已定義的指定屬性。
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
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
  
PostScaleAdapter
  
Moves this object to the specified x and y coordinates.
PostScaleAdapter
  
owns(displayObject:DisplayObject):Boolean
PostScaleAdapter
  
PostScaleAdapter
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
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
為迴圈作業設定動態屬性的可用性。
Object
  
setVisible(value:Boolean, noEvent:Boolean = false):void
PostScaleAdapter
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
  
Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.
PostScaleAdapter
 Inherited
會傳回指定之物件的基本值。
Object
  
PostScaleAdapter
屬性詳細資訊

accessibilityProperties

屬性
accessibilityProperties:AccessibilityProperties

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get accessibilityProperties():AccessibilityProperties
    public function set accessibilityProperties(value:AccessibilityProperties):void

alpha

屬性 
alpha:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get alpha():Number
    public function set alpha(value:Number):void

baselinePosition

屬性 
baselinePosition:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get baselinePosition():Number

blendMode

屬性 
blendMode:String

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get blendMode():String
    public function set blendMode(value:String):void

cacheAsBitmap

屬性 
cacheAsBitmap:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get cacheAsBitmap():Boolean
    public function set cacheAsBitmap(value:Boolean):void

document

屬性 
document:Object

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get document():Object
    public function set document(value:Object):void

enabled

屬性 
enabled:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get enabled():Boolean
    public function set enabled(value:Boolean):void

explicitHeight

屬性 
explicitHeight:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get explicitHeight():Number
    public function set explicitHeight(value:Number):void

explicitMaxHeight

屬性 
explicitMaxHeight:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get explicitMaxHeight():Number

explicitMaxWidth

屬性 
explicitMaxWidth:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get explicitMaxWidth():Number

explicitMinHeight

屬性 
explicitMinHeight:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get explicitMinHeight():Number

explicitMinWidth

屬性 
explicitMinWidth:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get explicitMinWidth():Number

explicitWidth

屬性 
explicitWidth:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get explicitWidth():Number
    public function set explicitWidth(value:Number):void

filters

屬性 
filters:Array

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get filters():Array
    public function set filters(value:Array):void

focusPane

屬性 
focusPane:Sprite

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get focusPane():Sprite
    public function set focusPane(value:Sprite):void

height

屬性 
height:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get height():Number
    public function set height(value:Number):void

includeInLayout

屬性 
includeInLayout:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get includeInLayout():Boolean
    public function set includeInLayout(value:Boolean):void

isPopUp

屬性 
isPopUp:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get isPopUp():Boolean
    public function set isPopUp(value:Boolean):void

loaderInfo

屬性 
loaderInfo:LoaderInfo  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get loaderInfo():LoaderInfo

mask

屬性 
mask:DisplayObject

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get mask():DisplayObject
    public function set mask(value:DisplayObject):void

maxHeight

屬性 
maxHeight:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get maxHeight():Number

maxWidth

屬性 
maxWidth:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get maxWidth():Number

measuredHeight

屬性 
measuredHeight:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get measuredHeight():Number

measuredMinHeight

屬性 
measuredMinHeight:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get measuredMinHeight():Number
    public function set measuredMinHeight(value:Number):void

measuredMinWidth

屬性 
measuredMinWidth:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get measuredMinWidth():Number
    public function set measuredMinWidth(value:Number):void

measuredWidth

屬性 
measuredWidth:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get measuredWidth():Number

minHeight

屬性 
minHeight:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get minHeight():Number

minWidth

屬性 
minWidth:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get minWidth():Number

mouseX

屬性 
mouseX:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get mouseX():Number

mouseY

屬性 
mouseY:Number  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get mouseY():Number

name

屬性 
name:String

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get name():String
    public function set name(value:String):void

opaqueBackground

屬性 
opaqueBackground:Object

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get opaqueBackground():Object
    public function set opaqueBackground(value:Object):void

owner

屬性 
owner:DisplayObjectContainer

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get owner():DisplayObjectContainer
    public function set owner(value:DisplayObjectContainer):void

parent

屬性 
parent:DisplayObjectContainer  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get parent():DisplayObjectContainer

percentHeight

屬性 
percentHeight:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get percentHeight():Number
    public function set percentHeight(value:Number):void

percentWidth

屬性 
percentWidth:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get percentWidth():Number
    public function set percentWidth(value:Number):void

root

屬性 
root:DisplayObject  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get root():DisplayObject

rotation

屬性 
rotation:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get rotation():Number
    public function set rotation(value:Number):void

scale9Grid

屬性 
scale9Grid:Rectangle

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get scale9Grid():Rectangle
    public function set scale9Grid(value:Rectangle):void

scaleX

屬性 
scaleX:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get scaleX():Number
    public function set scaleX(value:Number):void

scaleY

屬性 
scaleY:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get scaleY():Number
    public function set scaleY(value:Number):void

scrollRect

屬性 
scrollRect:Rectangle

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get scrollRect():Rectangle
    public function set scrollRect(value:Rectangle):void

stage

屬性 
stage:Stage  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get stage():Stage

systemManager

屬性 
systemManager:ISystemManager

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

A reference to the SystemManager object for this component.



實作
    public function get systemManager():ISystemManager
    public function set systemManager(value:ISystemManager):void

transform

屬性 
transform:flash.geom:Transform

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



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

tweeningProperties

屬性 
tweeningProperties:Array

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get tweeningProperties():Array
    public function set tweeningProperties(value:Array):void

visible

屬性 
visible:Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get visible():Boolean
    public function set visible(value:Boolean):void

width

屬性 
width:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get width():Number
    public function set width(value:Number):void

x

屬性 
x:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get x():Number
    public function set x(value:Number):void

y

屬性 
y:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1



實作
    public function get y():Number
    public function set y(value:Number):void
建構函式詳細資料

PostScaleAdapter

()建構函式
public function PostScaleAdapter(obj:IUIComponent)



參數
obj:IUIComponent
方法詳細資訊

addEventListener

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

參數

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

dispatchEvent

()方法 
public function dispatchEvent(event:Event):Boolean

參數

event:Event

傳回值
Boolean

getBounds

()方法 
public function getBounds(targetCoordinateSpace:DisplayObject):Rectangle

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

targetCoordinateSpace:DisplayObject

傳回值
Rectangle

getCompatibleIUIComponent

()方法 
public static function getCompatibleIUIComponent(obj:Object):IUIComponent

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.

參數

obj:Object

傳回值
IUIComponent

getConstraintValue

()方法 
public function getConstraintValue(constraintName:String):*

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Returns the specified constraint value.

參數

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.

傳回值
* — The constraint value, or null if it is not defined.

getExplicitOrMeasuredHeight

()方法 
public function getExplicitOrMeasuredHeight():Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回值
Number

getExplicitOrMeasuredWidth

()方法 
public function getExplicitOrMeasuredWidth():Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

傳回值
Number

getRect

()方法 
public function getRect(targetCoordinateSpace:DisplayObject):Rectangle

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

targetCoordinateSpace:DisplayObject

傳回值
Rectangle

globalToLocal

()方法 
public function globalToLocal(point:Point):Point

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

point:Point

傳回值
Point

hasEventListener

()方法 
public function hasEventListener(type:String):Boolean

參數

type:String

傳回值
Boolean

hitTestObject

()方法 
public function hitTestObject(obj:DisplayObject):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

obj:DisplayObject

傳回值
Boolean

hitTestPoint

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

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

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

傳回值
Boolean

initialize

()方法 
public function initialize():void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Initialize the object.

invalidateDisplayList

()方法 
public function invalidateDisplayList():void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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

()方法 
public function invalidateProperties():void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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

()方法 
public function invalidateSize():void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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

()方法 
public function localToGlobal(point:Point):Point

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

point:Point

傳回值
Point

move

()方法 
public function move(x:Number, y:Number):void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Moves this object to the specified x and y coordinates.

參數

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

owns

()方法 
public function owns(displayObject:DisplayObject):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

displayObject:DisplayObject

傳回值
Boolean

parentChanged

()方法 
public function parentChanged(p:DisplayObjectContainer):void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

p:DisplayObjectContainer

removeEventListener

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

參數

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

setActualSize

()方法 
public function setActualSize(newWidth:Number, newHeight:Number):void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.

參數

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

setConstraintValue

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

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Sets the specified constraint value.

參數

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

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

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

參數

value:Boolean
 
noEvent:Boolean (default = false)

validateNow

()方法 
public function validateNow():void

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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

()方法 
public function willTrigger(type:String):Boolean

參數

type:String

傳回值
Boolean




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。