RE: [Flashcoders] Dynamic variables in as3

2005-11-27 Thread matti bar zeev
; } } hope it works for you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Flashcoders mailing list Sent: Friday, November 25, 2005 11:11 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Dynamic variables in as3 Importance: Low for(var i:Number

Re: [Flashcoders] Dynamic variables in as3

2005-11-25 Thread ryanm
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. The

Re: [Flashcoders] Dynamic variables in as3

2005-11-24 Thread Johannes Nel
push it into an array. myArr.push(new MovieClip()); On 11/24/05, Phil Douglas [EMAIL PROTECTED] wrote: 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