;
}
}
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
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
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
3 matches
Mail list logo