Paquete | org.osmf.layout |
Interfaz | public interface ILayoutTarget extends IEventDispatcher |
Implementadores | LayoutTargetSprite |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Propiedad | Definido por | ||
---|---|---|---|
displayObject : DisplayObject [solo lectura]
A reference to the display object that represents the target. | ILayoutTarget | ||
layoutMetadata : LayoutMetadata [solo lectura]
The metadata that's used to hold information about the layout
of this layout target. | ILayoutTarget | ||
measuredHeight : Number [solo lectura]
Defines the height of the element without any transformations being
applied. | ILayoutTarget | ||
measuredWidth : Number [solo lectura]
Defines the width of the element without any transformations being
applied. | ILayoutTarget |
Método | Definido por | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | IEventDispatcher | ||
Distribuye un evento en el flujo del evento. | IEventDispatcher | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | 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 | ||
Elimina un detector del objeto EventDispatcher. | IEventDispatcher | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | IEventDispatcher |
displayObject | propiedad |
displayObject:DisplayObject
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | 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.
Implementación
public function get displayObject():DisplayObject
layoutMetadata | propiedad |
layoutMetadata:LayoutMetadata
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
The metadata that's used to hold information about the layout of this layout target. Cannot be null.
Implementación
public function get layoutMetadata():LayoutMetadata
measuredHeight | propiedad |
measuredHeight:Number
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | 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.
Implementación
public function get measuredHeight():Number
measuredWidth | propiedad |
measuredWidth:Number
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | 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.
Implementación
public function get measuredWidth():Number
layout | () | método |
public function layout(availableWidth:Number, availableHeight:Number, deep:Boolean = true):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | 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.
Parámetros
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 | () | método |
public function measure(deep:Boolean = true):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should reassess its measuredWidth and measuredHeight fields:
Parámetros
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, 02:12 PM Z