Get shortest number Algorithm, in actionscript syntax?

The code is not ActionScript-3, it is either AS-2 or lower. You are not casting the string (textfield. Text) to a Number.

What if the smallest number is 501 (or anything greater than 500)? Try the following code: var shortest:Number = Number. MAX_VALUE; for(i = 1; I Var_process_count; i++) { var t:Number = Number(_root"process" + i.

Process_time_original. Text); if(isNaN(t)) //in case the text is not a valid number. Continue; if(t.

There is no _global in as3. – Martin Konecny Apr 15 '10 at 11:10 @teehoo neither an _root; That's exactly why I said that the code is not AS3 and retagged the question accordingly. – Amarghosh Apr 15 '10 at 12:03 so what's is in as3?

– ehmad Apr 15 '10 at 12:08 yh, I apologize it was not as3 and this thing worked: var shortest:int; shortest = _global. Var_process_time; var GoFor:int; for(i = 1; I Process_time_original. Text); if(isNaN(t)) //in case the text is not a valid number.

Continue; if(t Process_played == 0) { shortest = t; GoFor = i; } } _root"process" + GoFor. PlayState = 1; – ehmad Apr 15 '10 at 12:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions