since the names you are trying to create are just based on the
position in the mData array, why not just stick the assetProxys in an
array with the same index.

var startUpProxies:Array = []
for(var i:Number=0; i<mData.length; i++){
   startUpProxies.push(new AssetProxy( mData[i] ));
}

-- In flexcoders@yahoogroups.com, justSteve <[EMAIL PROTECTED]> wrote:
>
> I think this is a fairly common operation - a loop instantiates an
> object passing the iterator variable to the constructor. The object
> being instantiated needs to take it's name from the current iterator.
>               
>       for(var i:Number=0; i<mData.length; i++){
>               var how2NameMe :IStartupProxy =  new AssetProxy( mData[i] );
>       }
> 
> 
>  In pre-AS3 days i'd do something like:
> 
>    var this["rAsset" + mData[i].ToString()] :StartupResourceProxy =
> makeAndRegisterStartupResource( SRNAME , this);
> 
> That seems not to be an option anymore.
> 
> mny thx
> --steve...
>


Reply via email to