Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 362
Positioning of the Loaded Content
Loaded content is aligned with the Stage (or whatever it is loaded into). The registra-
tion point of the ProLoader object is at its top-left corner, so the top-left corner of the
external SWFs align with the top-left corner of the Stage (where x=0 and y=0). Since
the four external Flash files (page1.swf, page2.swf, page3.swf, and page4.swf) all have
the same Stage size as the Flash file that loads them, the Stage is completely covered.
However, you can position the ProLoader object wherever you want. If you want to
place the ProLoader object in a different horizontal position, you can set a new X
value for the ProLoader object with ActionScript. If you want to place the ProLoader
in a different vertical position, you can set a new Y value for the ProLoader. Here’s
how: In the Actions panel, enter the name of the ProLoader object, followed by a
period, the property x or y , and then the equals symbol and a new value.
In the following example, the ProLoader object called myProLoader is repositioned
200 pixels from the left edge and 100 pixels from the top edge.
When the external SWF content loads, it shows up exactly 200 pixels to the right
and 100 pixels down.
Adobe FLAsh ProFessionAL Cs6 CLAssroom in A book
353