MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 224

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

Specifying the ActionScript class and registration point of a screen
(Flash Professional only)
You can 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 to which the screen belongs. The class determines
what methods and properties are available for the screen. By default, slide screens are assigned
to the
mx.screens.Slide
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 Auto Snap is
on. The registration point of a form screen is in the upper left corner and Auto Snap is off by
default. 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.
Remember that 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 have 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 Flash document (a non-screen-based document) or select something
on the Stage that is not a screen, 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.
For more information on the Info Panel, see
on page
67.
To change the ActionScript class of a screen:
Select a screen in the Screen Outline pane.
1.
Select Window > Properties.
2.
In the Property inspector, click the Properties tab.
3.
Enter a class name in the Class Name text box. For more information on ActionScript classes,
4.
see Chapter 10, "Creating Custom Classes with ActionScript 2.0" in Using ActionScript in
Flash.
To change the registration point of a screen:
Select a screen in the Screen Outline pane.
1.
Select Window > Properties.
2.
Click the Properties tab and click a point in the registration grid.
3.
Clicking a registration point automatically selects in 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.
224
Chapter 12: Working with Screens (Flash Professional Only)
class, and form screens are assigned to the
"Getting information about instances on the Stage"
class.
mx.screens.Form

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents