Advertisement

07.01.2008 at 05:29PM PDT, ID: 23532146
[x]
Attachment Details

Dynamic array naming

Asked by webstudiointeractive in ActionScript, Macromedia Flash

Tags: Adobe, Flash, AS2

Hi there,

I'm trying to create array names dynamically, but I'm not having any success.  I would like to do something similar to the code snippet.

Thanks very much,

Jayden

Start Free Trial
1:
2:
3:
4:
5:
6:
var k = 0;
while (k < 10) {
	// create a new array at every iteration
	var eval("array"+k):Array = new Array();
	k++;
}
[+][-]07.01.2008 at 09:15PM PDT, ID: 21913420

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.01.2008 at 11:02PM PDT, ID: 21913812

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ActionScript, Macromedia Flash
Tags: Adobe, Flash, AS2
Sign Up Now!
Solution Provided By: aneeshchopra
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.01.2008 at 11:13PM PDT, ID: 21913866

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628