套件 | mx.core |
類別 | public class DesignLayer |
繼承 | DesignLayer EventDispatcher Object |
實作 | IMXMLObject |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
visible
and alpha property
that when set will propagate to the associated layer children.
屬性 | 定義自 | ||
---|---|---|---|
alpha : Number
The alpha for this design layer instance, between 0.0 and 1.0. | DesignLayer | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
effectiveAlpha : Number [唯讀]
Property that returns the effective alpha, between 0.0 and 1.0,
of this design layer. | DesignLayer | ||
effectiveVisibility : Boolean [唯讀]
Returns the effective visibility of this design layer. | DesignLayer | ||
id : String
ID of the layer component. | DesignLayer | ||
numLayers : int [唯讀]
The number of DesignLayer children directly parented by this layer. | DesignLayer | ||
parent : DesignLayer [唯讀]
This layer's parent layer. | DesignLayer | ||
visible : Boolean
The visibility for this design layer instance. | DesignLayer |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | DesignLayer | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Adds a DesignLayer child to this layer. | DesignLayer | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
Returns the DesignLayer child at the specified index. | DesignLayer | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Called after the implementing object has been created and all
component properties specified on the MXML tag have been initialized. | DesignLayer | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
Removes a DesignLayer child from this layer. | DesignLayer | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
事件 | 摘要 | 定義自 | ||
---|---|---|---|---|
[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。 | EventDispatcher | |||
[廣播事件] 當 Flash Player 或 AIR 應用程式失去作業系統焦點並成為非作用中時傳送。 | EventDispatcher | |||
Dispatched by the layer when either effectiveVisibility or effectiveAlpha changes. | DesignLayer |
alpha | 屬性 |
alpha:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The alpha for this design layer instance, between 0.0 and 1.0.
When updated, the appropriate change event for effectiveAlpha
will be dispatched to all layerPropertyChange
listeners
for this layer, as well as those of affected descendant layers if any.
預設值為 1.0。
實作
public function get alpha():Number
public function set alpha(value:Number):void
effectiveAlpha | 屬性 |
effectiveAlpha:Number
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Property that returns the effective alpha, between 0.0 and 1.0, of this design layer. This value multiplies the alpha of this layer by the alpha of any ancestor layers.
預設值為 1.0。
實作
public function get effectiveAlpha():Number
effectiveVisibility | 屬性 |
effectiveVisibility:Boolean
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the effective visibility of this design layer. This value takes into consideration the visibility of this layer and any ancestor layers.
預設值為 true。
實作
public function get effectiveVisibility():Boolean
id | 屬性 |
id:String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
ID of the layer component. This value becomes the instance name of the layer and as such, should not contain any white space or special characters.
實作
public function get id():String
public function set id(value:String):void
numLayers | 屬性 |
parent | 屬性 |
parent:DesignLayer
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
This layer's parent layer.
預設值為 null。
實作
public function get parent():DesignLayer
visible | 屬性 |
visible:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The visibility for this design layer instance.
When updated, the appropriate change event for effectiveVisibility
will be dispatched to all layerPropertyChange
listeners for
this layer, as well as those of affected descendant layers if any.
預設值為 true。
實作
public function get visible():Boolean
public function set visible(value:Boolean):void
DesignLayer | () | 建構函式 |
public function DesignLayer()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
addLayer | () | 方法 |
public function addLayer(value:DesignLayer):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Adds a DesignLayer child to this layer.
參數
value:DesignLayer — The layer child to add.
|
getLayerAt | () | 方法 |
public function getLayerAt(index:int):DesignLayer
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the DesignLayer child at the specified index.
Note that the order of DesignLayer children is insignificant.
The getLayerAt
method is meant to be used in
conjunction with numLayers to iterate over the child list.
參數
index:int — The 0-based index of a DesignLayer child.
|
DesignLayer — The specified DesignLayer child if index is between
0 and numLayers - 1. Returns null
if the index is invalid.
|
相關 API 元素
initialized | () | 方法 |
public function initialized(document:Object, id:String):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
參數
document:Object — The MXML document that created this object.
| |
id:String — The identifier used by document to refer
to this object.
If the object is a deep property on document ,
id is null.
|
removeLayer | () | 方法 |
public function removeLayer(value:DesignLayer):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Removes a DesignLayer child from this layer.
參數
value:DesignLayer — The layer child to remove.
|
layerPropertyChange | 事件 |
mx.events.PropertyChangeEvent
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Dispatched by the layer when either effectiveVisibility
or
effectiveAlpha
changes.
Tue Jun 12 2018, 03:47 PM Z