Specifying the ActionScript class and registration point of a screen (Flash Professional only)
On the Properties tab of the Property inspector, you can specify the ActionScript class of the screen and its registration point:
- The ActionScript class specifies what class the screen belongs to. The class determines what methods and properties are available for the screen. By default, slide screens are assigned to the
mx.screens.Slide
class, and form screens are assigned to the mx.screens.Form
class. You can assign the screen to a different class.
- The registration point grid indicates the position of the screen registration point in relation to its content. By default, the registration point of a slide screen is in the center, and the registration point of a form screen is in the upper left corner. You can change the registration point using the grid. You can use the Auto Snap option to keep the registration point in the same position in relation to screen contents, even when you add, remove, or reposition the screen contents.
Keep in mind that the height and width of a screen are determined by its content. Therefore, the upper left corner of a screen may not be the same as the upper left corner of the Stage.
Note: If you have changed the coordinate grid setting in the Info panel in another Flash document, the coordinate grid for the screen registration point may reflect that change. To check the Info panel coordinate grid setting, open a Flash document (a non-screen-based document) and select Window > Design Panels > Info. To change settings in the Info panel while working in a screen-based document, deselect all screens before you open the panel.
- Select a screen in the Screen Outline pane.
- Select Window > Properties.
- In the Property inspector, click the Properties tab.
- Enter a class name in the Class Name text box. For more information on ActionScript classes, see Creating Classes with ActionScript 2.0.
- Select a screen in the Screen Outline pane.
- Select Window > Properties.
- Click the Properties tab and click a point in the registration grid.
Clicking a registration point automatically selects Auto Snap on the Properties tab. When this option is selected, the registration point moves in relation to the screen content, but the screen itself does not move.