Selecting instances with incremental names

hey guys

was just wondering if there’s a way of using a for loop to select instances that have an incremental name.

something like


for (var i:int = 0; i < 10; i++) 
{
  someInstance.["myInstance" + i].alpha = 0;
}