both are good with their own advantages, In Directory you can put anything and access by passing a key, and you will get the corresponding value. If you want to send the value to server side, you may want to use associative array. Depends on your need, I will say both will work for you
Thanks, Shaleen Jain http://shaleenjain.blogspot.com On Feb 7, 12:39 am, Venkat Viswanathan <[email protected]> wrote: > 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, > Venkatwww.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 -~----------~----~----~----~------~----~------~--~---

