RE: [flexcoders] Dictionary class?
I've used it in the past to get all the unique values from an array or array collection. See http://kennethsutherland.com/2009/04/02/find-all-unique-values-from-arra y-or-collection/ Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luvfotography Sent: 11 May 2009 17:11 To: flexcoders@yahoogroups.com Subject: [flexcoders] Dictionary class? What are some good uses for the dictionary class? I haven't used it yet, but I'm sure if I knew more, I might. . . . Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
Re: [flexcoders] Dictionary class?
One case is if you donĀ¹t want to use loops. On 5/11/09 12:11 PM, luvfotography ygro...@all-digital-links.com wrote: What are some good uses for the dictionary class? I haven't used it yet, but I'm sure if I knew more, I might. . . .
RE: [flexcoders] Dictionary class?
Dictionary is similar to Associative Aarray (Object, hashtable) except that it can use an object reference as a key. You might use to associate some data, perhaps an isModified flag with some instance of a class, perhaps an item in a dataProvider. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alan Klement Sent: Monday, May 11, 2009 3:42 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dictionary class? One case is if you don't want to use loops. On 5/11/09 12:11 PM, luvfotography ygro...@all-digital-links.com wrote: What are some good uses for the dictionary class? I haven't used it yet, but I'm sure if I knew more, I might. . . .
Re: [flexcoders] Dictionary class?
On Mon, May 11, 2009 at 9:41 PM, luvfotography ygro...@all-digital-links.com wrote: What are some good uses for the dictionary class? I haven't used it yet, but I'm sure if I knew more, I might. . . . One of the things I use Dictionary for is for storing weak references to objects. http://manishjethani.com/blog/2008/07/31/using-weak-references-in-actionscript-3/ You can see for instance the EffectManager class in the Flex 3 framework uses a Dictionary object to store references to effects. Manish