Finding an instance name from another instance name

Hi all.

I’m having a lil play with some drag and drop events, and have come to a bit of a hurdle.

The main problem (that I have) is I’m fairly new to AS3 … so it’s all pretty much a learning curve, but thats not to say I don’t understand it .

Anyways …

I have a bunch of text boxes which are acting as labels on a diagram.
The idea is all the labels are jumbled up to start with, and the user has to drag the labels to the correct place.
So far, I have the labels, and they are dragable, but I want to be able to lock the label onto a specific area (I’ve called them crashzones) so that when the user drags the label onto the correct area, the label snaps into place.
The ‘crashzones’ instance names, are indentical to the label instance names, with the exception that the ‘crashzones’ instance names have the letter ‘z’ at the begining.

I was hoping to do the following:
On the dragStart event, something (maybe a string) would hold the instance name of the current label and add the letter ‘z’ to the beggining, so something like … crashzone = “z” + label1;
As there is an instance with the name “zlabel1”, when the dragstop event starts, it’ll do a ‘hittestobject’ on the instance “zlabel1”.

I’m not entirely sure how to go about this.
I’ve tried creating a string to hold the ‘crashzone’ name, but the hittestobject event doesnt work with strings i.e: hitTestObject(stringname);
I’ve also tried with Sprite, but as the sprite technically already exists and has a name, I can’t give the sprite any properties.

It’s all more or less my fault, mainly 'cos I’m trying to keep code down to a minimum.
Hope this make sense.