
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Math Class
|
459
Constructor
LocalConnection( )
Instance methods
close( ):Void
connect(
connectionName:String):Boolean
domain( ):String
send(
connectionName:String, methodName:String, args:Object):Boolean
Event handlers
Math Class
The Math class provides access to mathematical functions and constants.
At runtime, the Math class is actually a standalone, predefined object,
not a class. However, it is treated as a class by the compiler for the
sake of type checking. Hence, the Math class has no constructor.
Constructor
None
Class properties
The following properties are all datatype Number:
Class methods
abs(value:Number):Number
acos(
value:Number):Number
asin(
value:Number):Number
atan(
value:Number):Number
atan2(
value1:Number, value2:Number):Number
ceil(
value:Number):Number
cos(
value:Number):Number
exp(
value:Number):Number
floor(
value:Number):Number
log(
value:Number):Number
max(
value1:Number, value2:Number):Number
allowDomain(
domain:String):Boolean
allowInsecureDomain(
domain:String):Boolean
a
a
Supported in Flash Player 7 and later
onStatus(infoObject:Object):Void
E LN2 LOG2E SQRT1_2
LN10 LOG10E PI SQRT2