Is it possible to instantiate objects with dynamic names? 

So instead of:---------------------------

var n:Object = new Object;


Something like:-------------------------

for (var i:int=0; i < array.length; i++){
   var n(i):Object = new Object;
}

I need to create instance of certain type object, but then reference
those objects later by their name. I would like to create them then
store them in a dictionary and reference them later so maybe using the
dictionaries methods to access them would be better?


So do something like so:----------------

for (var i:int=0; i < array.length; i++){
   var n(i):Object = new Object;
   myDict[n(i)] = n(i);
}

then later do this:---------------------

var g1:something = b.link ( myDict[n1], myDict[n2])


TIA!

Reply via email to