Packagecom.adobe.flashpro
Classpublic class Layer
InheritanceLayer Inheritance com.adobe.csawlib.CSHostObject

The Layer object represents layers in the timeline.



Public Properties
 PropertyDefined By
  animationType : String
[read-only] Property returns the animation type of the layer as a string.
Layer
  color : String
the color used to outline the different layers.
Layer
  frameCount : int
[read-only] Total number of frames in the layer.
Layer
  frames : Array
[read-only] An array of frame objects.
Layer
  height : int
Whether to use larger layer height, legal values are 100, 200, 300 (percent)
Layer
  layerType : String
This specifies which type of layer.
Layer
  locked : Boolean
locked status of the layer.
Layer
  name : String
Name of the layer.
Layer
  outline : Boolean
whether or not to show the layer as outlines
Layer
  parentLayer : Layer
changes the layer's parent.
Layer
  visible : Boolean
whether the layer's objects should show up on stage.
Layer
Property Detail
animationTypeproperty
animationType:String  [read-only]

Property returns the animation type of the layer as a string. This will be one of the following: "none", "motion object", "IK pose".


Implementation
    public function get animationType():String
colorproperty 
color:String

the color used to outline the different layers. Specified in hex form "#aarrggbb" a=alpha, r=red, g=green, b=blue.


Implementation
    public function get color():String
    public function set color(value:String):void
frameCountproperty 
frameCount:int  [read-only]

Total number of frames in the layer.


Implementation
    public function get frameCount():int
framesproperty 
frames:Array  [read-only]

An array of frame objects.


Implementation
    public function get frames():Array
heightproperty 
height:int

Whether to use larger layer height, legal values are 100, 200, 300 (percent)


Implementation
    public function get height():int
    public function set height(value:int):void
layerTypeproperty 
layerType:String

This specifies which type of layer. Acceptable values are: "normal", "guide", "guided", "mask", "masked", "folder".


Implementation
    public function get layerType():String
    public function set layerType(value:String):void
lockedproperty 
locked:Boolean

locked status of the layer. If set to true layer is locked. Default value is false.


Implementation
    public function get locked():Boolean
    public function set locked(value:Boolean):void
nameproperty 
name:String

Name of the layer.


Implementation
    public function get name():String
    public function set name(value:String):void
outlineproperty 
outline:Boolean

whether or not to show the layer as outlines


Implementation
    public function get outline():Boolean
    public function set outline(value:Boolean):void
parentLayerproperty 
parentLayer:Layer

changes the layer's parent. A parent can be a folder, guide, or mask. returns null on layer that is on the top level


Implementation
    public function get parentLayer():Layer
    public function set parentLayer(value:Layer):void
visibleproperty 
visible:Boolean

whether the layer's objects should show up on stage. True if layer is visible. False if layer is not. Default is true.


Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void