CS4의 Preferences 의 ActionScript 3.0 Settings 메뉴는 CS3와 달리
위 화면과 같이 세가지로 구분이 되어있습니다. 아래 설명은 Adobe Help 에서 찾은 설명입니다. 참고하세요.
즉 .as 로 존재하는 library 들은 위와같이 첫번째 source path 에 경로를 지정해주면 되고,
.swc 로 존재하는 library 들은 두번째의 library path 에 경로를 지정해주면 됩니다.

이렇게 flash의 Preferences 에서 설정한 라이브러리는 모든 flash파일에 공통적으로 적용이 되고 사용할 수 있으므로, Papervision3D 와 같은 라이브러리는 여기서 설정하여 사용할 수 있게 하면 좋겠죠. (Application level)

각 flash파일에서만 필요한 라이브러리는 해당 파일의 publish setting 화면에서 ActionScript 3.0 Setting 에서 path를 지정해 줄 수 있습니다. (Document level)

Set the location of ActionScript files

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


You can set the following ActionScript locations in Flash:

  • ActionScript 2.0

    • Application level (available to all AS2 FLA files):

      • Classpath (set in ActionScript preferences)

    • Document level (available only to the FLA file that specifies this path):

      • Classpath (set in Publish Settings)

  • ActionScript 3.0

    • Application level (available to all AS3 FLA files):

      • Source path (set in ActionScript preferences)

      • Library path (set in ActionScript preferences)

      • External library path (set in ActionScript preferences)

    • Document level (available only to the FLA file that specifies these paths):

      • Source path (set in Publish Settings)

      • Library path (set in Publish Settings)

      • External library path (set in Publish Settings)

      • Document class (set in Document Property inspector)

In ActionScript 3.0, there are two additional paths that you can set to specify the locations of ActionScript resources.

The Library path specifies the location of pre-compiled ActionScript code which resides in SWC files you have created. The FLA file that specifies this path loads every SWC file at the top level of this path and any other code resources that are specified within the SWC files themselves. If you use the Library path, be sure none of the compiled code in the SWC files is duplicated in uncompiled AS files in the Source path. The redundant code will slow down compilation of your SWF file.

The External Library path specifies the location of SWC files that contain code used for compiler error definitions. This path can be used to load external code resources in SWC format so that the classes within them can be used at runtime. When you compile a SWF, the SWC files in the External Library path are not added to the SWF file, but the compiler verifies that they are in the locations you specified. The External Library path is most often used for runtime shared libraries. For more information about runtime shared libraries, see Working with runtime shared assets. For more information about loading external code at runtime, see Programming ActionScript 3.0.

For each type of resource path, you can specify more than one path for Flash to look in. Resources found in any of the paths specified will be used.

Posted by 알 수 없는 사용자