Repositioning Elements Numerically

I l @ ve RuBoard

Repositioning Elements Numerically

Flash allows you to reposition a selection numerically by specifying a precise Stage location in x and y coordinates. You can enter the x and y coordinates in either the Shape Property Inspector or the Info panel.

To reposition an element via the Shape Property Inspector:

  1. With the Property Inspector open , on the Stage, select an element.

    The coordinates for the element's current position appear in the x and y fields of the Shape Property Inspector (Figure 3.22).

    Figure 3.22. With a shape selected on the Stage, the Property Inspector reveals attributes of that shape, including the x and y coordinates of the shape's bounding box. This element is located 1 inch to the right along the horizontal axis and 3 inches down the vertical axis.

    graphics/03fig22.gif

  2. To position the element, do one of the following:

    • Enter a new x coordinate for the element's position along the horizontal axis.

    • Enter a new y coordinate for the element's position along the vertical axis.

      Flash changes the element's horizontal position as soon as you click the y field.

  3. Press Enter to confirm the new y coordinate value.

    The element moves to its new position (Figure 3.23).

    Figure 3.23. Changing the x and y coordinates in the Shape Property Inspector changes the location of the selected element. This arrow is now located 2 inches to the right along the horizontal axis and 2.5 inches down the vertical axis.

    graphics/03fig23.gif

To access the Info panel:

  • If the Info panel is not open, from the Window menu, choose Info (Figure 3.24). The Info panel appears.

    Figure 3.24. Choose Window > Info to access the Info panel.

    graphics/03fig24.gif

To reposition an element via the Info panel:

  1. With the Info panel open, on the Stage, select the element you want to reposition. The coordinates for the element's current position appear in the x and y fields of the Info panel (Figure 3.25).

    Figure 3.25. Selecting an element puts that element's information in the Info panel (bottom).

    graphics/03fig25.gif

  2. To select the point Flash uses to position the element, do one of the following:

    • To position your element by its center point, select the center square in the Info panel's element model.

    • To position your element by its top-left corner, select the top-left square in the Info panel's element model.

  3. Enter a new x coordinate for the element's position along the horizontal axis.

  4. Enter a new y coordinate for the element's position along the vertical axis.

    Flash changes the element's horizontal position as soon as you click the y field.

  5. Press Enter to confirm the new y coordinate value.

    The element moves to its new position (Figure 3.26).

    Figure 3.26. Changes of the coordinates in the Info panel work just like changes of the coordinates in the Shape Property Inspector. The selected shape has moved to the right and down.

    graphics/03fig26.gif

graphics/01icon02.gif Tip

  • If you change multiple values in the Info panel (as in the preceding task), Flash confirms each change when you click the next entry field. To confirm the last new value quickly, click any other field in the panel or click the Stage.


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