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.
Summary of Contents for FLEX
Page 1: ...Flex ActionScript Language Reference ...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Page 135: ...case 135 See also break default strict equality switch ...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Page 808: ...808 Chapter 7 ActionScript for Flash ...
Page 810: ...810 Appendix A Deprecated Flash 4 operators ...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Page 822: ...822 Index ...