Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 9th, 2002, 02:54 PM
jbuckle24 jbuckle24 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Burlington, VT
Posts: 343 jbuckle24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 24 m 14 sec
Reputation Power: 0
Flash MX - Arrays

Hello,

I was wondering if Flash MX's array object could handle multi-dimensional associative arrays similar to:

Array[0]['ID'] = 1;
Array[0]['Name'] = "test 1";
Array[1]['ID'] = 2;
Array[1]['Name'] = "another test";
etc...

If so, how do I set it up?

Thanks,
-jbuckle24

Reply With Quote
  #2  
Old August 29th, 2002, 09:59 PM
black black is offline
flashing vampire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: nowhere
Posts: 19 black User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sure~

Even flash 5 could handle with muti-dementional arrays.

for example:
PHP Code:
 myArr=[[1,2,3],[4,5,6]; 


And please be aware that arrays recognize index not names.

Reply With Quote
  #3  
Old September 3rd, 2002, 06:19 PM
rob5408 rob5408 is offline
Certified Genius
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: over there
Posts: 77 rob5408 User rank is Private First Class (20 - 50 Reputation Level)rob5408 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 46 m 57 sec
Reputation Power: 8
Send a message via AIM to rob5408
here ya go...

you can mix associative and regular arrays...it can be coded a billion different ways...for instance:

team = new Array();
player = new Array();
team[0] = new Array();
team[0].name = "Cantona";
team[1] = new Array();
team[1].number = 9;

trace(team[0].name);
trace(team[1].number);

would output...
Cantona
9

...and if all else fails hit F1 : ) ...Rob

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash MX - Arrays


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway