Does anybody know of a way to create and reference dynamic variables in as3. Specifically movie clips, but if there's a difference between them and any other type of variables, that'd be good to know.
In as2 this would be for(var i:Number =0; i < acRate; i++){ this.createEmptyMovieClip('p'+i,this.getNextHighestDepth()) this['p'+i]._x = i*10 this['p'+i]._y = i*10 } However in as3 it would need to be something like for(var i:Number =0;i < acRate; i++){ var ['p'+i]:MovieClip = new MovieClip() this['p'+i].x = i*10 this['p'+i].y = i*10 } Which doesn't work of course. Does anybody have a work around for this, or is it no longer possible to create undeclared variables at run time. Thanks all Phil _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders