User Guide
Object.__resolve 381
Object.registerClass()
Availability
Flash Player 6.
Usage
Object.registerClass(symbolID:String, theClass:Function) : Boolean
Parameters
symbolID
String; the linkage identifier of the movie clip symbol or the string identifier for the
ActionScript class.
theClass A reference to the constructor function of the ActionScript class or null to
unregister the symbol.
Returns
A Boolean value: if the class registration succeeds, a value of true is returned; false otherwise.
Description
Method; associates a movie clip symbol with an ActionScript object class. If a symbol doesn’t
exist, Flash creates an association between a string identifier and an object class.
If a symbol is already registered to a class, this method replaces it with the new registration.
Object.__resolve
Availability
Flash Player 6.
Usage
myObject.__resolve = function (name:String) {
// your statements here
};
Parameters
name
A string representing the name of the undefined property.
Returns
Nothing
Description
Property; a reference to a user-defined function that is invoked if ActionScript code refers to an
undefined property or method. If ActionScript code refers to an undefined property or method of
an object, Flash Player determines whether the object’s
__resolve property is defined. If
__resolve is defined, the function to which it refers is executed and passed the name of the
undefined property or method. This lets you programmatically supply values for undefined
properties and statements for undefined methods and make it seem as if the properties or
methods are actually defined.