![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
The FLA file includes a reference to the ActionScript class file for the component. This is known as binding the component to the class file.
The ActionScript code specifies the properties and methods for the component, and defines which, if any, classes your component inherits from. You must use the *.as file naming convention for ActionScript source code and name the source code file after the component itself. For example, MyComponent.as contains the source code for the MyComponent component.
The Flash MX 2004 core class .as files reside within a single folder called Classes/mx/Core. Other ActionScript class files are organized by package names in their own folders under /Classes.
For a custom component, create a new directory under /Classes and store the ActionScript class file there.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |