Specify the ActionScript class and registration point of a screen

Specify the ActionScript class of the screen and its registration point on the Properties tab of the Property inspector:

  • 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 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 Auto Snap is on. By default, the registration point of a form screen is in the upper left corner and Auto Snap is off. To change the registration point, use the grid. To keep the registration point in the same position in relation to screen contents, even when you add, remove, or reposition the screen contents, use the Auto Snap option.

    The height and width of a screen are determined by its content. Therefore, the center of a screen cannot be the center of the Stage.

    Note: If you changed the coordinate grid setting in the Info panel in another Flash document, the coordinate grid for the screen registration point can reflect that change. To check the Info panel coordinate grid setting, open a non-screen-based Flash document or select something on the Stage that is not a screen, and select Window > Info. To change settings in the Info panel while working in a screen-based document, deselect all screens before you open the panel.

Change the ActionScript class of a screen

  1. Select a screen in the Screen Outline pane.
  2. Select Window > Properties > Properties.
  3. In the Property inspector, click the Properties tab.
  4. Enter a class name in the Class Name box. For more information on ActionScript classes, see Classes in Learning ActionScript 2.0 in Adobe Flash.

Change the registration point of a screen

  1. Select a screen in the Screen Outline pane.
  2. Select Window > Properties > Properties.
  3. Click the Properties tab and click a point in the registration grid.

    Clicking a different registration point in the registration grid changes the point on the screen that is used as the registration point. When this is done, the registration point moves in relation to the screen content, but the screen itself does not move.

  This page on the Web