03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Method summary<br />

Modifiers Signature Description<br />

Methods inherited from class Object<br />

MAX_VALUE (Number.MAX_VALUE property)<br />

public static MAX_VALUE : Number<br />

The largest representable number (double-precision IEEE-754). This number is<br />

approximately 1.79e+308.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Example<br />

The following <strong>ActionScript</strong> displays the largest <strong>and</strong> smallest representable numbers to the<br />

Output panel.<br />

trace("Number.MIN_VALUE = "+Number.MIN_VALUE);<br />

trace("Number.MAX_VALUE = "+Number.MAX_VALUE);<br />

This code displays the following values:<br />

Number.MIN_VALUE = 4.94065645841247e-324<br />

Number.MAX_VALUE = 1.79769313486232e+308<br />

MIN_VALUE (Number.MIN_VALUE property)<br />

public static MIN_VALUE : Number<br />

The smallest representable non-negative number (double-precision IEEE-754). This number<br />

is approximately 5e-324.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

1000 <strong>ActionScript</strong> classes<br />

toString(radix:Numbe<br />

r) : String<br />

Returns the string representation of the specified<br />

Number object (myNumber).<br />

valueOf() : Number Returns the primitive value type of the specified<br />

Number object.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!