MACROMEDIA FLASH MX 2004-USING ACTIONSCRIPT IN FLASH Use Manual page 270

Using actionscript in flash
Hide thumbs Also See for FLASH MX 2004-USING ACTIONSCRIPT IN FLASH:
Table of Contents

Advertisement

In Flash Professional, when you Check Syntax while editing an AS file, the compiler looks only in
the global classpath; AS files aren't associated with FLAs in Edit mode and don't have their own
classpath.
Modifying the classpath
You can modify the global classpath using the Preferences dialog box. To modify the document-
level classpath setting, you use the Publish Settings dialog box for the FLA file. In both cases, you
can add absolute directory paths (for example, C:/my_classes) and relative directory paths (for
example, ../my_classes or "."). The order of directories in the dialog box reflects the order in
which they will be searched.
To modify the global classpath:
Select Edit > Preferences to open the Preferences dialog box.
1.
Click the ActionScript tab, and then click the ActionScript 2.0 Settings button.
2.
Do any of the following:
3.
To add a directory to the classpath, click the Browse to Path button, browse to the directory
you want to add, and click OK.
Alternatively, click the Add New Path (+) button to add a new line to the Classpath list.
Double-click the new line, type a relative or absolute path, and click OK.
To edit an existing classpath directory, select the path in the Classpath list, click the Browse
to Path button, browse to the directory you want to add, and click OK.
Alternatively, double-click the path in the Classpath list, type the desired path, and
click OK.
To delete a directory from the classpath, select the path in the Classpath list and click the
Remove from Path button.
Note: Do not delete the absolute global classpath (see
on page
268). Flash uses this classpath to access built-in classes. If you accidentally delete this
classpath, reinstate it by adding $(LocalData)/Classes as a new classpath.
To modify the document-level classpath:
Select File > Publish Settings to open the Publish Settings dialog box.
1.
Click the Flash tab.
2.
Click the Settings button next to the ActionScript Version pop-up menu.
3.
Do any of the following:
4.
To add a directory to the classpath, click the Browse to Path button, browse to the directory
you want to add, and click OK.
Alternatively, click the Add New Path (+) button to add a new line to the Classpath list.
Double-click the new line, type a relative or absolute path, and click OK.
To edit an existing classpath directory, select the path in the Classpath list, click the Browse
to Path button, browse to the directory you want to add, and click OK.
270
Chapter 10: Creating Custom Classes with ActionScript 2.0
"Global and document-level classpaths"

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING ACTIONSCRIPT IN FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents