You can still do that, but only on dynamic objects :) anything that is defined as:
public dynamic class MyDynamicClass var dynamicObject = new MyDynamicClass(); var dynamicObject2 = new Object(); var dynamicObject3 = {}; -Josh On Fri, Jul 18, 2008 at 10:05 AM, andrewedwards39 <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm migrating from as2 to as3 and had a question regarding dynamic > variables. > > A very powerful feature of as2 was the ability to access variables > dynamically like: > > for(var i:uint = 0; i< 10; i++){ > this['item_'+i] = i * 20; > } > > I cant seem to replicate this type of functionality in as3 - any pointers? > > Cheers > > andrew > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]