EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Object Class

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...
574 Chapter 12: ActionScript Dictionary
Description
Function; converts the parameter expression to a number and returns a value as follows:
If expression is a number, the return value is expression.
If expression is a Boolean value, the return value is 1 if expression is true, 0 if expression
is
false.
If expression is a string, the function attempts to parse expression as a decimal number
with an optional trailing exponent, that is, 1.57505e-3.
If expression is undefined, the return value is as follows:
In files published for Flash Player 6 or earlier, the result is 0.
In files published for Flash Player 7 or later, the result is NaN.
This function is used to convert Flash 4 files containing deprecated operators that are
imported into the Flash 5 or later authoring environment. For more information, see
& (bitwise
AND operator)
.
See also
NaN
, Number class
Object class
Availability
Flash Player 5 (became a native object in Flash Player 6, which improved
performance significantly).
Description
The Object class is at the root of the ActionScript class hierarchy. This class contains a small
subset of the features provided by the JavaScript Object class.
Method summary for the Object class
Property summary for the Object class
Method Description
Object.addProperty() Creates a getter/setter property on an object.
Object.registerClass() Associates a movie clip symbol with an ActionScript object class.
Object.toString() Converts the specified object to a string and returns it.
Object.unwatch() Removes the watchpoint that Object.watch() created.
Object.valueOf() Returns the primitive value of an object.
Object.watch() Registers an event handler to be invoked when a specified property of an
ActionScript object changes.
Property Description
Object.__proto__ A reference to the prototype property of the object’s constructor
function.

Table of Contents

Related product manuals