Referencing MovieClips made from the UI

Hi there,
I have 23 movieclips on Stage. Each one is a class of ‘point’, and has been given an instance name of p1, p2, p3, p4 etc.

I want to reference them in code, and then get their x and y co-ords eventually.

How do I make them accessible variables in AS3? in AS2 I would have put them into a for loop, and said


so in AS3

var p:String;
for(var i:uint = 0;i<23;i++)
    var currentClip:MovieClip;
    currentClip = point['p'+i];

hmm, im just not sure man! any help would be ace!:rock: