| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The DesignLayer class represents a visibility group that can be associated
with one or more IVisualElement instances at runtime.
DesignLayer instances support a
visible and alpha property
that when set will propagate to the associated layer children.
alpha:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The alpha for this design layer instance.
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.
The default value is 1.0.
Implementation public function get alpha():Number public function set alpha(value:Number):voideffectiveAlpha:Number [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Property that returns the effective alpha of this design layer
(which considers the alpha of this layer multiplied with the alpha of
any ancestor layers).
The default value is 1.0.
Implementation public function get effectiveAlpha():NumbereffectiveVisibility:Boolean [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns the effective visibility of this design layer (which considers
the visibility of this layer as well as any ancestor layers).
The default value is true.
Implementation public function get effectiveVisibility():Booleanid:String| Language Version: | ActionScript 3.0 |
| Runtime Versions: | 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.
Implementation public function get id():String public function set id(value:String):voidnumLayers:int [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The number of DesignLayer children directly parented by this layer.
The default value is 0.
Implementation public function get numLayers():intparent:DesignLayer [read-only]
| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
This layer's parent layer.
The default value is null.
Implementation public function get parent():DesignLayervisible:Boolean| Language Version: | ActionScript 3.0 |
| Runtime Versions: | 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.
The default value is true.
Implementation public function get visible():Boolean public function set visible(value:Boolean):voidpublic function DesignLayer()| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor.
public function addLayer(value:DesignLayer):void| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Adds a DesignLayer child to this layer.
Parameters
public function getLayerAt(index:int):DesignLayer| Language Version: | ActionScript 3.0 |
| Runtime Versions: | 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.
Parameters
| index:int — The 0-based index of a DesignLayer child.
|
Returns | DesignLayer — The specified DesignLayer child if index is between
0 and numLayers - 1. Returns null
if the index is invalid.
|
See also
numLayers
public function removeLayer(value:DesignLayer):void| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes a DesignLayer child from this layer.
Parameters
Event Object Type: mx.events.PropertyChangeEvent| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Dispatched by the layer when either effectiveVisibility or
effectiveAlpha changes.
© 2009 Adobe Systems Incorporated. All rights reserved.
Sat Oct 3 2009, 04:15 AM -07:00