Use Dictionary class to create an associative array that uses objects
for keys rather than strings. This way u can store both key and value.

var d:Dictionary = new Dictionary();
var a,b:Object = new Object();
d[a] = "apple";
d[b] = "banana";
trace(d[b]); //banana


On Feb 6, 2:13 pm, Saurabh Narula <[email protected]>
wrote:
> +1 for associative arrays...
> will also save you from lot of unnecessary looping involved with for
> loops..if implemented intelligently.
>
> Thanks
> Saurabh
>
> On Fri, Feb 6, 2009 at 1:25 PM, sudhi <[email protected]> wrote:
>
> > Dear sravan,
>
> > There is something called Associative arrays in Actionscript 3.0 i
> > think that will be helpful for you...
>
> > Regards
> > Sudhi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to