Recipe 3.9. Hiding, Locking, and Customizing the Display of Layer ContentProblemYou need to customize the look or behavior of one or more layers, including hiding or locking the contents of a layer, displaying layer graphics as low-resolution outline graphics, and/or changing the height or width of the display of frames. SolutionToggle the visibility, editability, outline view on or off; use the Timeline Header Options menu or the Layer Properties dialog box to modify frame display. DiscussionWhen editing Flash documents crowded with art, text, and other visual assets, it becomes increasingly difficult to select and work with only the elements you want. Accidental selections and deletions, as well as inadvertent placement of content in the wrong layer, become more likely as your movie grows. Flash offers a handful of tools that can be used to prevent this confusion. Beside the stack of layer names are three controls available to each layer: layer visibility (Eye column), editability (Lock column), and outline display (Outline column). These elements control whether contents in that layer are editable and how they are displayed:
To toggle any of these options on or off, click the dot in the appropriate column in the desired layer. You can also toggle any of these settings for all layers by clicking the Eye, Lock, or Outline icons themselves, above the layer stack. Finally, Alt-clicking (Windows) or Option-clicking (Macintosh) one of the dots toggles the column attribute of all the other layers. For example, if you want to edit the contents of one layer and lock the contents of all other layers, Alt-click or Option-click the Lock dot in the layer you want to edit. You can also control the appearance and functionality of layers using the Layer Properties dialog box. You can access this dialog box by selecting a layer and choosing Modify Timeline Layer Properties. The options in this dialog box are mostly redundanthere you can rename the layer or toggle its visibility, editability, and outline display. You can also change the layer to one of the special layer types: guide, motion guide, or mask. The Outline Color option enables you to specify the color used for elements in a layer when Outline view is toggled on. The last setting, Layer Height, is discussed in the next recipe. Keep in mind that any visibility, editability, or outline display changes you make to a layer as described in this recipe take effect during authoring time only. After you export the movie, those specific layer settings are disregarded. They are intended for the purpose of assisting you with managing layers during authoring time. If you want to make a layer invisible when the movie is exported, convert the layer to a guide layer as described in Recipe 3.11. The majority of layer content is not editable during playback of the movie, so there is little or no need to make such a change to the exported movie. There are certain elements that have the option of being editable, however. For example, input text fields, draggable movie clips, and buttons allow for various types of editability, so to speak. If you want to toggle the editable state of such elements, do so at the level of the element, not at the level of the layer. You can read more about how to manage the editability of those types of elements in the appropriate recipes in this book. Flash does not provide a built-in tool that will automatically convert all the contents of a layer to outlines in the exported movie. You will need to add an outline to each element manually. To do so, you can use the Ink Bottle tool as described in Recipe 1.22. See AlsoRecipe 3.10 |
Tripod >> 3pod Tips & Learning and manuals for educations