MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 578

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Object.__proto__
Availability
Flash Player 5.
Usage
myObject.__proto__
Parameters
None.
Description
Property; refers to the
The
__proto__
ActionScript interpreter uses the
the object's 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
The linkage identifier of the movie clip symbol, or the string identifier for the
symbolID
ActionScript class.
A reference to the constructor function of the ActionScript class, or
theClass
unregister the symbol.
Returns
If the class registration succeeds, a value of
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.
When an instance of the specified movie clip symbol is placed by the Timeline, it is registered to
the class specified by the
When an instance of the specified movie clip symbol is created by means of
MovieClip.attachMovie()
specified by
theClass
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.
578
Chapter 12: ActionScript Dictionary
property of the constructor function that created
prototype
property is automatically assigned to all objects when they are created. The
__proto__
parameter rather than to class MovieClip.
theClass
or
MovieClip.duplicateMovieClip()
rather than to the MovieClip class. If
property to access the
is returned; otherwise,
true
theClass
myObject
property of
prototype
to
null
is returned.
false
, it is registered to the class
is
, this method
null
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents