AS2 Intrinsic Classes

When installing SWF Studio a set of ActionScript 2 intrinsic class files will be installed that will make the ActionScript API easier to use when working with ActionScript 2 classes. Including the instrinsic classes in your projects allows the Flash compiler to provide feedback about errors when invalid methods are called.

These classes require ActionScript 2 support and therefore will only work with versions of the Flash IDE higher than Flash MX. If you are not publishing for ActionScript 2.0 these classes are not required.

To use these classes you need to set a classpath to the default location of the classes, or copy the classes to Flash's default classes folder.

Note: There will almost certainly be changes to the class files in future updates to SWF Studio. If you copy the class files from the SWF Studio installation directory, be aware that SWF Studio will NOT update files you have copied to other locations. You will be responsible for synchronizing these class files.

Setting the classpath

  With your FLA file open in Flash, select the top menu File > Publish Settings...

  Select the Flash tab and make sure that ActionScript 2.0 is selected in the ActionScript version dropdown.

  Click the Settings... button near the ActionScript version dropdown.

  Press the [+] button to add a new classpath.

  Press the target button to select a classpath from a Windows dialog.

  When the dialog appears choose the following path {Studio3}\Classes

Where {Studio3} is the directory where you installed SWF Studio. For instance the default installation directory is C:\Program Files\Northcode\Studio3 so the path you would select then is C:\Program Files\Northcode\Studio3\Classes

Copying the classes to the Flash default location

If you would prefer that these classes be available by default to all of your projects, copy all of the class files, including subfolders to the Flash classes folder. Find the SWF Studio classes directory (mentioned in setting the classpath above) and copy all files in the Classes folder...

to C:\Documents and Settings\{username}\Local Settings\Application Data\Macromedia\Flash MX 2004\{language}\Configuration\Classes on Windows NT, 2000 and XP systems, where {username} is your username and {language} is the language of your Flash installation.

to C:\Windows\Application Data\Macromedia\Flash MX 2004\{language}\Configuration\Classes on Windows 9x and ME systems, where {language} is the language of your Flash installation.