Paket | mx.core |
Klass | public class DesignLayer |
Arv | DesignLayer EventDispatcher Object |
Implementerar | IMXMLObject |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
visible
and alpha property
that when set will propagate to the associated layer children.
Egenskap | Definieras med | ||
---|---|---|---|
alpha : Number
The alpha for this design layer instance, between 0.0 and 1.0. | DesignLayer | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
effectiveAlpha : Number [skrivskyddad]
Property that returns the effective alpha, between 0.0 and 1.0,
of this design layer. | DesignLayer | ||
effectiveVisibility : Boolean [skrivskyddad]
Returns the effective visibility of this design layer. | DesignLayer | ||
id : String
ID of the layer component. | DesignLayer | ||
numLayers : int [skrivskyddad]
The number of DesignLayer children directly parented by this layer. | DesignLayer | ||
parent : DesignLayer [skrivskyddad]
This layer's parent layer. | DesignLayer | ||
visible : Boolean
The visibility for this design layer instance. | DesignLayer |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | DesignLayer | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Adds a DesignLayer child to this layer. | DesignLayer | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Returns the DesignLayer child at the specified index. | DesignLayer | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Called after the implementing object has been created and all
component properties specified on the MXML tag have been initialized. | DesignLayer | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Removes a DesignLayer child from this layer. | DesignLayer | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher | |||
Dispatched by the layer when either effectiveVisibility or effectiveAlpha changes. | DesignLayer |
alpha | egenskap |
alpha:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Standardvärdet är 1.0.
Implementering
public function get alpha():Number
public function set alpha(value:Number):void
effectiveAlpha | egenskap |
effectiveAlpha:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Standardvärdet är 1.0.
Implementering
public function get effectiveAlpha():Number
effectiveVisibility | egenskap |
effectiveVisibility:Boolean
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Standardvärdet är true.
Implementering
public function get effectiveVisibility():Boolean
id | egenskap |
id:String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Implementering
public function get id():String
public function set id(value:String):void
numLayers | egenskap |
parent | egenskap |
parent:DesignLayer
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
This layer's parent layer.
Standardvärdet är null.
Implementering
public function get parent():DesignLayer
visible | egenskap |
visible:Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Standardvärdet är true.
Implementering
public function get visible():Boolean
public function set visible(value:Boolean):void
DesignLayer | () | Konstruktor |
public function DesignLayer()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
addLayer | () | metod |
public function addLayer(value:DesignLayer):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Adds a DesignLayer child to this layer.
Parametrar
value:DesignLayer — The layer child to add.
|
getLayerAt | () | metod |
public function getLayerAt(index:int):DesignLayer
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Parametrar
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.
|
Relaterade API-element
initialized | () | metod |
public function initialized(document:Object, id:String):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Parametrar
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 | () | metod |
public function removeLayer(value:DesignLayer):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes a DesignLayer child from this layer.
Parametrar
value:DesignLayer — The layer child to remove.
|
layerPropertyChange | Händelse |
mx.events.PropertyChangeEvent
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched by the layer when either effectiveVisibility
or
effectiveAlpha
changes.
Tue Jun 12 2018, 01:40 PM Z