Tag Archives: Flex

LRU Cache implementation using ActionScript

0  

Custom Wrapper Class for Dictionary component – Flex {UPDATED}

Added some new functionality and plugged possible bugs. New functions incorporated: function insertKeyValue(keyValueCombo:Object):void >>Argument passed in is used as both Key and Value function insertArray(arr:Array):void >>Takes an Array object as argument and inserts each Array element in the MyDictionary Object function clone():MyDictionary >>Performs a deep copy function getValue(key : Object):Object >>Returns the corresponding value for the […]

0  

Custom Wrapper Class for Dictionary component – Flex

I was developing a Flex module earlier yesterday and somehow felt the need of an efficient data structure for look-up purpose. Array and ArrayCollection are just not good enough and the default implementation of Dictionary as part of Flex API is a no-brainer. So, I decided to create a wrapper functionality similar to the Dictionary […]

0  

Multi-select Flex List Control

Well, I had a requirement to use a multi-select Flex List control. I wanted to avoid the CTRL-button-down process altogether and devised a custom component. Upon clicking the item for the first time, the item is added to an ArrayCollection and is selected as well. If you click again on the same item/record, the item […]

1