Object Constructor; Proto__ (Object.__Proto__ Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Returns
- A Boolean value:
Boolean
by the
parameter;
theClass

Object constructor

public Object()
Creates an Object object and stores a reference to the object's constructor method in the
object's
constructor
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a generic object named myObject:
var myObject:Object = new Object();

__proto__ (Object.__proto__ property)

public __proto__ :
Refers to the
prototype
(ActionScript 1.0) used to create the object. The
assigned to all objects when they are created. The ActionScript interpreter uses the
property to access the
out what properties and methods the object inherits from its superclass.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a class named Shape and a subclass of Shape named Circle.
// Shape class defined in external file named Shape.as
class Shape {
function Shape() {}
}
// Circle class defined in external file named Circle.as
class Circle extends Shape{
function Circle() {}
}
The Circle class can be used to create two instances of Circle:
var oneCircle:Circle = new Circle();
var twoCircle:Circle = new Circle();
if the object is in the prototype chain of the object specified
true
otherwise.
false
property.
Object
property of the class (ActionScript 2.0) or constructor function
property of the object's class or constructor function to find
prototype
property is automatically
__proto__
__proto__
Object
557

Advertisement

Table of Contents
loading

Table of Contents