Anyone real good with ActionScript ? Variable Question

I have three variables named:

var pic1, pic2, pic3;

// I want to set i=2 and be able to reference the second variable mentioned above
i=2

// something to the effect of this idea, but this isn’t the correct syntax
pic+i = “whatever”;

can anyone help?