Y si por esas casuales de la vida lo tenes que hacer también en Flash:
 
yourArray = new Array (30, 25, 2, 67, 99); 
function selectHigherValue(x) {
		x.sort();
		higherVal = x[ [(x.length) - 1] ];
		return(higherVal); 
}
selectHigherValue(yourArray);); 
Nunca se sabe 
  
<hr noshade size=1><font color="#CC0000" face=Arial size=1>500 rutinas ordenadas por categorías: JS, ASP, PHP, Actionscript y VB!<br><font color="#000000" face=Arial size=1>Descargá <a href="http://www.webtutorial.com.ar/">ScriptMaster v1.0</a>[/CODE]