That's called bad practice. The lookup method you're referring to is called
an associative array or dictionary.

 

!k

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Monday, March 24, 2008 6:18 PM
To: [email protected]
Subject: [flexcoders] What's this Called?

 

When I do this["idOfsomethingImLookingfor"]

I usually do this if I have to loop something.

So:

for (i=0; i<10; i++){
var example:Object = this["myComponent" + i]
//do some more stuff
}

I'm trying to do the same thing in .NET. I don't know what it's
called though so I'm having a hard time googling it.

Thanks,

Nate

 

Reply via email to