I am having trouble still with this. If I type 7 in the input
txt box I get this in my output when I submit
days = 7 by using trace("days = "+_root.days);
which is fine but I need it to output the correct rate for 7
days from my array and store that rate as a variable so I can add
or multiply it to others when it calculates!
This is my array
durationDays = new Array();
durationDays  = "1.4375";
durationDays  = "2.6991";
durationDays  = "3.8160";
and so on.................................
So if the user types in 2 I need to turn it into 2.6991 and
make this into a variable!
you're storing strings in your array. if you want to use them
as numbers either store them as numbers (don't use quotes) or use
the Number() function to convert the strings to numbers.
p.s. the text property of (and variable associated with)
textfields is a string. so, you should convert that to a number in
order to use it as an array index. (though flash will currently