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.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...