IMO, you should be using arrays of value objects (which are classes that
just hold data) which have values and if necessary, arrays of other
value objects.  Not multidimensional arrays - you're just making it
harder on yourself.


Jason Merrill 

Instructional Technology Architect
Bank of America   Global Learning 

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(Note: these resources are only available for Bank of America
associates)






-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lehr,
Theodore
Sent: Friday, September 03, 2010 3:36 PM
To: Flash Coders List
Subject: [Flashcoders] parsing multi-dimensional array

so if I have a multi-dimensional array - how could I break them into
their own array? So if I have:

arr[0] = ["red",0,0];
arr[1] = ["red",1,0];
arr[2] = ["red",2,0];
arr[3] = ["blue",0,0];
arr[4] = ["blue",1,0];
arr[5] = ["blue",2,0];

What I need to do is break red into it's own array and blue into it's
own array - and there could be any number of colors....

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to