Controlling the Stacking Order

I l @ ve RuBoard

You can change the stacking order of groups via the Modify > Arrange menu. Notice that the stacking order doesn't require that you actually stack objects on top of one another. If you have two groups on opposite sides of the Stage, their stacking order is not visible, but as soon as you drag the objects so that one overlaps the other, the order becomes apparent.

Each grouped object sits on its own sublayer. You can move objects up or down in the stacking order one level at a time, or you can bring an object forward or send it backward through the stack of sublayers . The sublayer containing the live, editable objects is always at the bottom; groups and symbols stack on top of ungrouped elements.

To bring an element forward in the stacking order:

  1. On the Stage, select a grouped object (Figure 4.20).

    Figure 4.20. Each dumbbell represents a separate group .

    graphics/04fig20.gif

  2. From the Modify menu, choose Arrange > Bring Forward, or press Option-up arrow (Mac) or Ctrl-up arrow (Windows) (Figure 4.21).

    Figure 4.21. Choose Modify > Arrange > Bring Forward to move a selected group up one level in the stacking order.

    graphics/04fig21.gif

    Flash brings the selected item up one sublayer in the stacking order (Figure 4.22).

    Figure 4.22. The selected group moves forward in the stacking order one sublayer.

    graphics/04fig22.gif

To bring an element to the front of the stack:

  1. On the Stage, select a grouped object (Figure 4.23).

    Figure 4.23. Select an item that you want to bring to the very top of the stacking order.

    graphics/04fig23.gif

  2. From the Modify menu, choose Arrange > Bring to Front, or press graphics/01icon01.gif -Shift-up arrow (Mac) or Ctrl-Shift-up arrow (Windows) (Figure 4.24).

    Figure 4.24. Choose Modify > Arrange > Bring to Front to place a selected group on the top of the stack.

    graphics/04fig24.gif

    Flash brings the selected object to the top of the heap (Figure 4.25).

    Figure 4.25. The selected item comes to the front of the stack,regardless of how many groups (or sublayers) lie on top of the selected group.

    graphics/04fig25.gif

To send an element to a lower level of the stack:

  1. On the Stage, select a grouped object.

  2. From the Modify menu, choose Arrange > Send Backward, or press graphics/01icon01.gif -down arrow (Mac) or Ctrl-down arrow (Windows).

    Flash sends the selected item down one sublayer in the stacking order.

To send an element to the bottom of the stack:

  1. On the Stage, select a grouped object.

  2. From the Modify menu, choose Arrange > Send to Back, or press Option-Shift-down arrow (Mac) or Ctrl-Shift-down arrow (Windows).

    Flash sends the selected item to the bottom of the heap.

Understanding the Stacking Order of Grouped Shapes

Editable shapes on a single layer always stay on the same layer, cutting one another whenever they inhabit the same space on the Stage. Grouped items (and symbols), however, stack on top of one another. By default, Flash stacks each group that you create on top of the preceding one; the last group created winds up on top of all the others (Figure 4.19).

Figure 4.19. This schematic shows Flash's default stacking order for grouped items. The most recently created group is on top. Editable shapes are always on the bottom.

graphics/04fig19.gif

A higher-level group obscures any groups that lie directly beneath it.

I l @ ve RuBoard


Macromedia Flash MX for Windows and Macintosh. Visual QuickStart Guide
Macromedia Flash MX 2004 for Windows and Macintosh (Visual QuickStart Guides)
ISBN: 0582851165
EAN: 2147483647
Year: 2002
Pages: 243

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net