View comments | RSS feed

Flash CS3  |  Go to CS4 Help

Set the classpath for ActionScript 2.0

To use an ActionScript class that you’ve defined, Flash must locate the external ActionScript 2.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, application, or document level. For more information about classpaths, see Classes in Learning ActionScript 2.0 in Adobe Flash.

  1. Select File > Publish Settings, and click Flash.
  2. Verify that ActionScript 2.0 is selected in the ActionScript Version pop‑up menu, and click Settings.
  3. Specify the frame where the class definition should reside in the Export Frame for Classes text field.
  4. 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 Selected 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


nolty said on Aug 29, 2008 at 8:53 AM :
I accidentally overwrote the standard path to all the classes included in the Flash installation -- fortunately I had another installation on a laptop to look it up -- for AS2 it was $(LocalData)/classes, and for AS3 it was $(AppConfig)/ActionScript 3.0/Classes.

 

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/WSd60f23110762d6b883b18f10cb1fe1af6-7bcd.html