560
ActionScript classes
Parameters
name
:
String
- String; the linkage identifier of the movie clip symbol or the string identifier
for the ActionScript class.
theClass
:
Function
- A reference to the constructor function of the ActionScript class or
null
to unregister the symbol.
Returns
Boolean
- A Boolean value: if the class registration succeeds, a value of
true
is returned;
false
otherwise.
See also
attachMovie (MovieClip.attachMovie method)
,
duplicateMovieClip
(MovieClip.duplicateMovieClip method)
__resolve (Object.__resolve property)
public __resolve :
Object
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. This property is useful for enabling highly
transparent client/server communication, and is the recommended way of invoking server-
side methods.
Availability:
ActionScript 1.0; Flash Lite 2.0
Example
The following examples progressively build upon the first example and illustrate five different
usages of the
__resolve
property. To aid understanding, key statements that differ from the
previous usage are in bold typeface.
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...