| 套件 | org.osmf.layout |
| 介面 | public interface ILayoutTarget extends IEventDispatcher |
| 實作者 | LayoutTargetSprite |
| 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
| 屬性 | 定義自 | ||
|---|---|---|---|
| displayObject : DisplayObject [唯讀]
A reference to the display object that represents the target. | ILayoutTarget | ||
| layoutMetadata : LayoutMetadata [唯讀]
The metadata that's used to hold information about the layout
of this layout target. | ILayoutTarget | ||
| measuredHeight : Number [唯讀]
Defines the height of the element without any transformations being
applied. | ILayoutTarget | ||
| measuredWidth : Number [唯讀]
Defines the width of the element without any transformations being
applied. | ILayoutTarget | ||
| 方法 | 定義自 | ||
|---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | IEventDispatcher | |
![]() |
會將事件傳送到事件流程。 | IEventDispatcher | |
![]() |
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | IEventDispatcher | |
Method that informs the implementation that it should update its
display to adjust to the given available width and height. | ILayoutTarget | ||
Method that informs the implementation that it should reassess its
measuredWidth and measuredHeight fields:
| ILayoutTarget | ||
![]() |
會從 EventDispatcher 物件移除偵聽程式。 | IEventDispatcher | |
![]() |
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | IEventDispatcher | |
displayObject | 屬性 |
displayObject:DisplayObject [唯讀] | 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
A reference to the display object that represents the target. A client may use this reference to position or parent the target.
實作
public function get displayObject():DisplayObjectlayoutMetadata | 屬性 |
layoutMetadata:LayoutMetadata [唯讀] | 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
The metadata that's used to hold information about the layout of this layout target. Cannot be null.
實作
public function get layoutMetadata():LayoutMetadatameasuredHeight | 屬性 |
measuredHeight:Number [唯讀] | 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
Defines the height of the element without any transformations being applied. For a JPG with an original resolution of 1024x768, this would be 768 pixels. A client may use this value to (for example) keep ratio on scaling the element.
實作
public function get measuredHeight():NumbermeasuredWidth | 屬性 |
measuredWidth:Number [唯讀] | 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
Defines the width of the element without any transformations being applied. For a JPG with an original resolution of 1024x768, this would be 1024 pixels. A client may use this value to (for example) keep ratio on scaling the element.
實作
public function get measuredWidth():Numberlayout | () | 方法 |
public function layout(availableWidth:Number, availableHeight:Number, deep:Boolean = true):void| 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should update its display to adjust to the given available width and height.
參數
availableWidth:Number | |
availableHeight:Number | |
deep:Boolean (default = true) — True if the layout request is to be forwarded to
the target's potential inner layout system. The forwarding should take
place only after the target has laid itself out.
|
measure | () | 方法 |
public function measure(deep:Boolean = true):void| 語言版本: | ActionScript 3.0 |
| 產品版本: | OSMF 1.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should reassess its measuredWidth and measuredHeight fields:
參數
deep:Boolean (default = true) — True if the measurement request is to be forwarded to
the target's potential inner layout system. The forwarding should take
place up front the target measuring itself.
|
Tue Jun 12 2018, 03:47 PM Z
隱藏繼承公用方法
顯示繼承公用方法