Class, symbol, and owner names

To help Flash find the proper ActionScript classes and packages and to preserve the component's naming, you must set the symbolName, symbolOwner, and className properties in your component's ActionScript class file.

The following table describes these variables:

Variable

Description

symbolName

Symbol name for the object. This variable is static and of type String.

symbolOwner

Class used in the internal call to the createClassObject() method. This value should be the fully qualified class name, which includes the package's path. This variable is static and of type Object.

className

Name of the component class. This variable is also used in calculating style values. If _global.styles[className] exists, it sets defaults for a component. This variable is of type String.

The following example shows a custom component's naming:

static var symbolName:String = "MyComponent";
static var symbolOwner:Object = custom.MyComponent;
var className:String = "MyComponent";