Isprototypeof (Object.isprototypeof Method) - 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

Properties that you create are enumerable, but built-in properties are generally not
enumerable.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
-
name:String
Returns
- A Boolean value:
Boolean
enumerable.
Example
The following example creates a generic object, adds a property to the object, then checks
whether the object is enumerable. By way of contrast, the example also shows that a built-in
property, the
Array.length
var myObj:Object = new Object();
myObj.prop1 = "hello";
trace(myObj.isPropertyEnumerable("prop1")); // Output: true
var myArray = new Array();
trace(myArray.isPropertyEnumerable("length")); // Output: false
See also
for..in statement

isPrototypeOf (Object.isPrototypeOf method)

public isPrototypeOf(theClass:Object) : Boolean
Indicates whether an instance of the Object class is in the prototype chain of the object
specified as an argument. This method returns
the object specified by the
target object is absent from the prototype chain of the
argument is not an object.
theClass
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
-
theClass:Object
556
ActionScript classes
if the property specified by the
true
property, is not enumerable.
true
parameter. The method returns
theClass
parameter is
name
if the object is in the prototype chain of
false
object, but also if the
theClass
not only if the

Advertisement

Table of Contents
loading

Table of Contents