Re: [Flashcoders] sortable map structure
Interesting topic. On 3/1/07, Davor Bauk [EMAIL PROTECTED] wrote: Hello, I'm looking for a structure for AS3 that can store values in a way that they are sortable (like in an array) as well as accessible by key of any type (such as a string). I've looked through the VEGAS (http://vegas.riaforge.org/) framework but I couldn't find what I'm looking for. Can anyone recommend such a structure? thanks, Davor ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] sortable map structure
Hello :) in vegas you can use vegas.data.map.ArrayMap class (AS3 library) ... this ArrayMap is a HashMap with two arrays to store the keys and the values... http://svn.riaforge.org/vegas/AS3/trunk/src/vegas/data/map/ArrayMap.as The HashMap class in the AS2 version of VEGAS is the same class like the AS3 version. In AS3 version of the vegas.data.map package the ArrayMap class replace the AS2 HashMap class ;) If you want use a ArrayMap with a value with multiple values... (the value is a collection) you can use the MultiHashMap class (based on the Java Jakarta implementation) : http://svn.riaforge.org/vegas/AS3/trunk/src/vegas/data/map/MultiHashMap.as For the moment i use a HashMap in the MultiHashMap but you can extends this class and use a ArrayMap. The AS3 version of vegas is in progress... i want finish the AS2 version before. i write in AS2 for the moment a TreeMap implementation of the TreeMap java class but this work is in progress... when the AS2 version will be finished, i think write the AS3 and SSAS version If you read the source code of my ArrayMap class .. you can extend the methods and sort the values EKA+ :) 2007/3/1, Davor Bauk [EMAIL PROTECTED]: Hello, I'm looking for a structure for AS3 that can store values in a way that they are sortable (like in an array) as well as accessible by key of any type (such as a string). I've looked through the VEGAS (http://vegas.riaforge.org/) framework but I couldn't find what I'm looking for. Can anyone recommend such a structure? thanks, Davor ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] sortable map structure
Maybe you're looking for the Dictionary Object? http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html On 3/1/07, Davor Bauk [EMAIL PROTECTED] wrote: Hello, I'm looking for a structure for AS3 that can store values in a way that they are sortable (like in an array) as well as accessible by key of any type (such as a string). I've looked through the VEGAS (http://vegas.riaforge.org/) framework but I couldn't find what I'm looking for. Can anyone recommend such a structure? thanks, Davor ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] sortable map structure
Hello :) My vegas.data.map.HashMap AS3 version is based on the Dictionnary object but you can't sort the values and the keys of the map with this object. EKA+ :) 2007/3/1, Wagner Amaral [EMAIL PROTECTED]: Maybe you're looking for the Dictionary Object? http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html On 3/1/07, Davor Bauk [EMAIL PROTECTED] wrote: Hello, I'm looking for a structure for AS3 that can store values in a way that they are sortable (like in an array) as well as accessible by key of any type (such as a string). I've looked through the VEGAS (http://vegas.riaforge.org/) framework but I couldn't find what I'm looking for. Can anyone recommend such a structure? thanks, Davor ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com