ActionScript for Flash MX: The Definitive Guide, 2nd Edition By Colin Moock
Chapter 18. ActionScript Language Reference
Math.min( ) Method
Flash 5; can be used when exporting Flash 4 movies
determine the smaller of two numbers
Math.min(x, y)
Arguments
x
A number.
y
A number.
Returns
The smaller of x and y.
Description
The min( ) function compares two numbers and returns the smaller of the two. When comparing two negative numbers, the one with a larger absolute value is actually smaller (see the following Example). If used on strings, min( ) returns NaN.