EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 578

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
578 Chapter 12: ActionScript Dictionary
Object.__proto__
Availability
Flash Player 5.
Usage
myObject.__proto__
Parameters
None.
Description
Property; refers to the prototype property of the constructor function that created myObject.
The
__proto__ property is automatically assigned to all objects when they are created. The
ActionScript interpreter uses the
__proto__ property to access the prototype property of
the objects constructor function to find out what properties and methods the object inherits
from its class.
Object.registerClass()
Availability
Flash Player 6. If you are using external class files, you can use the ActionScript 2.0 Class field in
the Linkage Properties or Symbol Properties dialog box to associate an object with a class instead
of using this method.
Usage
Object.registerClass(symbolID, theClass)
Parameters
symbolID
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
If the class registration succeeds, a value of true is returned; otherwise, false is returned.
Description
Method; associates a movie clip symbol with an ActionScript object class. If a symbol doesnt
exist, Flash creates an association between a string identifier and an object class.
When an instance of the specified movie clip symbol is placed by the Timeline, it is registered to
the class specified by the
theClass parameter rather than to class MovieClip.
When an instance of the specified movie clip symbol is created by means of
MovieClip.attachMovie() or MovieClip.duplicateMovieClip(), it is registered to the class
specified by theClass rather than to the MovieClip class. If theClass is null, this method
removes any ActionScript class definition associated with the specified movie clip symbol or class
identifier. For movie clip symbols, any existing instances of the movie clip remain unchanged, but
new instances of the symbol are associated with the default class MovieClip.

Table of Contents

Related product manuals