About the default classpath
The default local classpath is empty. The default global classpath consists of the following paths:
•
. (the dot)
•
$(LocalData)/Classes
The dot (.) indicates the current working directory. Flash searches the FLA file's current directory
for the ActionScript classes it needs.
The $(LocalData)/Classes path indicates the per-user configuration directory. This directory
points to the following physical locations:
•
On Windows 2000 or Windows XP, this directory is C:\Documents and Settings\username\
Local Settings\Application Data\ Macromedia\Flash MX 2004\en\Configuration\Classes.
•
On the Macintosh, this directory is volume:Users:username:Library:Application Support:
Macromedia:Flash MX 2004:en:configuration:classes.
The user configuration directories mirror the directories located in Flash_root/en/Configuration.
However, the classpath does not directly include those directories.
By default, Flash MX 2004 does not include the Flex classes in its environment. You must
download and install a separate set of files, and then add them to your classpath settings. For
more information, see
Changing the Flash classpath
This section describes how to change the global and local classpaths. Macromedia recommends
changing only the local classpath and adding the following entries to your local classpath:
•
$(LocalData)/Flex Classes
•
. (the dot)
The $(LocalData)/Flex Classes classpath entry points to the classes that you extracted in
Flex classes and components to the Flash IDE" on page
working directory in Flash. This is the directory in which you store your FLA file.
Note: To edit the local classpath, you must have a FLA file open.
To change the local classpath:
Create a new FLA file or open an existing FLA file in Flash.
1.
Select File > Publish Settings.
2.
The Publish Settings dialog box appears.
Select the Flash tab.
3.
Click the Settings button.
4.
The ActionScript Settings dialog box appears.
Add, remove, or edit entries in the Classpath dialog box.
5.
Click OK to save your changes.
6.
Save the FLA file.
7.
10
Chapter 1: Working with Flash MX 2004
"Adding Flex classes and components to the Flash IDE" on page
8. The dot (.) indicates the current
8.
"Adding
Need help?
Do you have a question about the FLEX - DEVELOPING COMPONENTS AND THEMES and is the answer not in the manual?
Questions and answers