var uRate= new Array();
Don’t ever use Array for anything ever. List is far superior (and has all the same functions).
Try changing your var line to be:
var uRate : List.< float > new List.< float >();
You may need to .Add your values instead of just setting them, I’m not certain.
You’ll have to cast uRate (or any other access) to an int
I would also recommend using a typed array (or list as mentioned in the other answer)
var uRate = new int;
var uRate = new List.<int> ( );
Either of those would avoid the need for casting.