Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-15-2001, 09:57 AM   #1
IFZen
Even graphists R objects
 
IFZen's Avatar
 
Join Date: Jun 2001
Location: Paris
Posts: 273
Question Double associative array

Does anybody know if it is possible to create a "double associative array".
I mean some stuff like tMyArray["toto"]["titi"].

I tried to create it directly or using something like :

tMyArray["toto"] = new Array();
tMyArray["toto"]["titi"] = "tata";

but it doesn't seam to work.
Thanx 4 further help

François
IFzen - Paris
__________________
Oh Lord, shut me down !
IFZen is offline   Reply With Quote
Old 10-15-2001, 12:58 PM   #2
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,254
Default

Several things you could do here...
check out this thread first...
http://actionscripts.org/forums/show...le+declaration
Code:
myObject = {x:[10,20,30], y:[15,25,35]};
//or
drinks[0] = {brand:"corona", variety:"light"};
drinks[1] = {brand:"pepsi", variety:"max"};
drinks[2] = {brand:"coke", variety:"cherry"};
you would have to use a nested for loop to access this...tu piges?
__________________

komielan.com
red penguin is offline   Reply With Quote
Old 10-15-2001, 01:35 PM   #3
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,254
Default add on...

check this link out...
http://layer51.com/proto/d.asp?p=3&f=128
__________________

komielan.com
red penguin is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem creating mc instance names inside a function jasonyen ActionScript 2.0 10 12-08-2004 12:01 AM
trouble with variable getting lost whoo Simple Stuff (Newbies) 2 08-07-2004 05:52 PM
Associative Array and Extra Field Souvent ActionScript 1.0 (and below) 0 04-12-2004 12:24 AM
for loop in an associative array quinu ActionScript 1.0 (and below) 3 04-06-2004 11:31 AM
XML attributes - associative array? lucky4udanny ActionScript 1.0 (and below) 4 05-22-2003 09:07 PM


All times are GMT. The time now is 07:39 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.