Yeah... I read somewhere that DIctionary is Adobe's answer for HashMaps in
AS3. However, the custom HashMap class that Leena has provided the link for
has been extended from Dictionary class and works in a similar fashion as
Java HashMap works...

Regards,
Venkat
www.venkatv.com


On Fri, Feb 6, 2009 at 6:01 PM, gurpreet <[email protected]> wrote:

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