Previous Page
Next Page

Using Distribute to Layers

The Distribute to Layers command (Shift+Ctrl+D or Shift+z+D) is a great timesaver if you're managing multiple elements that you need to move to animate on individual layers. If you've imported several items to the Document window, or you've created a complex graphic that you decide needs to be split up on different layers, you can use this command to do most of the work for you. Instead of having to manually create new layers and copy and paste items one by one, you can select a number of individual items in the Document window and apply Distribute to Layers to have Flash automatically create a layer for each selected item.

To apply Distribute to Layers, select the items that you want to have moved to discrete layers — these items can be symbols, groups, shapes, text blocks, and even bitmaps or video objects. Choose Modify ð Timeline ð Distribute to Layers from the application menu, or choose Distribute from the contextual menu. Strokes and fills for an individual shape will be kept together on the same layer, as will items in a group or a multipart symbol. The items you select can be on different source layers, but they must all be on the same frame of the Timeline. When items have been distributed to new layers, you can delete any old layers that have been left empty.

The auto-created layers will be stacked from top to bottom below the currently selected layer in the order that the selected items were created. So the most recently created item should be placed on a layer at the bottom of the stack, just above the layer that was formerly below the selected layer, while the item that was created before the others in the selection will be placed at the top of the stack, just below the currently selected layer. If you are completely disoriented by now, have a look at Figure 13-24 to see a file with the layer order before applying Distribute to Layers to the selected items, and look at Figure 13-25 to see how the new layers are stacked and named.

Image from book
Figure 13-24: A Flash document with the original layer structure for some bitmaps, symbols, shapes, and a broken-apart text block to be distributed to layers
Image from book
Figure 13-25: The same Flash document after Distribute to Layers has been applied. All selected items have been moved to newly created, auto-named layers, leaving the original layers empty.

Characters from a broken-apart text block will be stacked in layers in the same order that the text block was created (from left to right, right to left, or top to bottom). Flash names autocreated layers with the following conventions:

Any layer can always be renamed after it has been created.

Web Resource 

We'd like to know what you think about this chapter. Visit www.flashsupport.com/feedback to fill out an online form with your comments.


Previous Page
Next Page