• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. Flash Basics > Coordinate System

Coordinate System

On the Stage, Flash considers the x and y coordinates to begin at the top-left corner. The x coordinate increases as you move to the right. The y coordinate increases as you move down. This might be familiar to you, and you just accept that “0, 0” is the top-left corner. In the case of clip instances, position is based on the center registration point of that clip. If you use someClip._x=100, the clip will move so that its center appears at position 100x. Whenever you’re inspecting the coordinates of clips on the Stage, use the Info panel and be sure to click the center box, as shown in Figure 1.9 (so that you’re not viewing the top-left corner of the clip). (By the way, the coordinates that appear in the Properties panel reflect either the center point or the top-left corner, depending on the current setting in the Info panel.)

Figure 1.9. The center option on the Info panel reflects the location a clip will move to when using ActionScript.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint