Let's learn about layers and the importance of layers
Layers, in graphic arts programs, give you a way of organizing objects in your documents and controlling their front-to-back stacking order. Illustrator, InDesign, and Photoshop all have layers, and share most basic layer features: you can create, move, hide, and show layers, and you can assign objects to layers.
We should first understand that Flash uses two types of spatial (space) organization
1) position of objects on stage
2) stacking order of objects that overlap
Therefore, layers in Flash are used on the Timeline as a way to ORGANIZE objects and actions. Placing objects and actions in their own layer makes them easier to work with and provide the necessary documentation that can be easily edited by other developers.
By having layers, the developer can
draw and edit objects in one layer without affecting other overlapping objects in another layer. This is done by hiding the unnecessary layer. If the overlapped objects are all done in one layer, they are merged together and specific selection of an object will be impossible. By using layers, the object in that layer will be easily selected if we want to reshape them or reposition them on stage.
The second reason of having layers, as mentioned earlier is to
provide necessary documentation for easy editing. The developer will know which layer is for what function, that is which layer contains the first object, the second object ande so on, which layer contains the action script, which layer contains sound, which layer contains animation, etc. A simple file may not need different layers, but by practicing using layers, will be ready to use the same concept when we develop more complex application.
We can also perform operation on the layer itself
1) Lock the layers (to protect their embedded objects from unwanted editing)
2) Hide the layers OR make them visible (i.e. you can see OR not see their objects in the workspace)
3) Switch between normal to outline mode
4) Move layers to change order of overlapped or stacked objects
There are six types of layers:
1) Normal (the one that we use)
2) Guide (Standard and Motion)
a) A Standard Guide serves as a reference point for positioning objects on stage
b) A Motion Guide is used to create a path for animated objects to follow
3) Guided - A layer that contains the animated object (link to Motion Guide layer)
4) Mask - A layer that hides and reveals portions of another layer (widely used in Photoshop)
5) Masked - A layer that contains the objects that are hidden and revealed by a Mask layer
6) Folder - A layer that contain other layers
In this course, we have learned about layer type 1, 2 and 3. More to come if we further this course in the future.
Source of information:
Dr Zaidatun Tasir - Universiti Teknologi Malaysia
Adobe Flash CS3 Revealed - Jim Shuman