03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - 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.

trace(new Date(maxDate).toString());<br />

See also<br />

min (Math.min method)<br />

min (Math.min method)<br />

public static min(x:Number, y:Number) : Number<br />

Evaluates x <strong>and</strong> y <strong>and</strong> returns the smaller value.<br />

Parameters<br />

x:Number - A number or expression.<br />

y:Number - A number or expression.<br />

Returns<br />

Number - A number.<br />

Example<br />

The following example displays Sat Dec 25 00:00:00 GMT-0700 2004, which is the smaller<br />

of the evaluated expressions.<br />

var date1:Date = new Date(2004, 11, 25);<br />

var date2:Date = new Date(2004, 11, 30);<br />

var minDate:Number = Math.min(date1.getTime(), date2.getTime());<br />

trace(new Date(minDate).toString());<br />

See also<br />

max (Math.max method)<br />

PI (Math.PI property)<br />

public static PI : Number<br />

A mathematical constant for the ratio of the circumference of a circle to its diameter,<br />

expressed as pi, with a value of 3.141592653589793.<br />

Example<br />

The following example draws a circle using the mathematical constant pi <strong>and</strong> the Drawing<br />

API.<br />

drawCircle(this, 100, 100, 50);<br />

//<br />

Math 387

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

Saved successfully!

Ooh no, something went wrong!