Is it Posibble question of the day:Variables and Arrays

Is it possible to get values for a variable from an array.
How would i do this? Also, working examples would be great if u guys know of any.

Thanks

u can do this with classes much easier a simple random code for the switch you know. if this isnt an option i at least put it back to the top of the forums.

Do you mean that you want a variable to take the value of a given element of an array? If so:

my_array = [10, 50, 44, 43] ;
var a = my_array[2] ;
trace (a) ; // returns 44