View comments | RSS feed

Flash CS3  |  Go to CS4 Help

Set the classpath for ActionScript 3.0

To use an ActionScript class that you’ve defined, Flash must locate the external ActionScript 3.0 files that contain the class definition. The list of folders in which Flash searches for class definitions is called the classpath. Classpaths exist at the global or document level. For more information about classpaths, see “Packages” in Programming ActionScript 3.0.

  1. Select File > Publish Settings, and click Flash.
  2. Verify that ActionScript 3.0 is selected in the ActionScript Version pop‑up menu, and click Settings. Your Flash Player version must be set to Flash Player 9 to use ActionScript 3.0.
  3. Specify the frame where the class definition should reside in the Export Frame for Classes text field.
  4. Specify the Errors settings. You can choose either Warnings Mode or Strict Mode. Strict Mode reports warnings as errors, which means that compilation will not succeed if those errors exist. Warnings Mode reports extra warnings that are useful for discovering incompatibilities when updating ActionScript 2.0 code to ActionScript 3.0.
  5. (Optional) Select Stage to automatically declare stage instances.
  6. Specify ActionScript 3.0 or ECMAScript as the dialect to use. ActionScript 3.0 is recommended.
  7. Do any of the following:
    • To add a folder to the classpath, click the Browse To Path button , browse to the folder to add, and click OK.

    • To add a new line to the Classpath list, click the Add New Path  button. Double-click the new line, type a relative or absolute path, and click OK.

    • To edit an existing classpath folder, select the path in the Classpath list, click the Browse To Path button, browse to the folder to add, and click OK. Alternatively, double-click the path in the Classpath list, type the desired path, and click OK.

    • To delete a folder from the classpath, select the path in the Classpath list and click the Remove From Path button .

Comments

Comments are no longer accepted for Flash CS3. Flash CS4 is the current version. To discuss Flash CS3, please use the Adobe forum.

Comments


Jay4 said on Feb 8, 2008 at 9:32 AM :
Steps 3 and 4 above should read as follows:
3. Specify the frame where the class definition should reside in the Export Classes in Frame text field.
4. Specify the Errors settings. You can select Strict Mode and Warnings Mode. Strict Mode reports compiler warnings as errors, which means that compilation will not succeed if those types of errors exist. Warnings Mode reports extra warnings that are useful for discovering incompatibilities when updating ActionScript 2.0 code to ActionScript 3.0.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/UsingFlash/WS06D23361-54E6-4ac2-9D24-081C181BD2DF.html