I have a convenience class in my Flex project called HashMap, which is essentially a wrapper around flash.utils.Dictionary with a bunch of convenience methods and an added (synchronized) ArrayCollection, so that I can pass the HashMap to the bindable that the ArrayCollection wants. Everything works perfectly.
What doesn’t work fine, I’m now figuring out, puts this HashMap in a local SharedObject.
Registering a class makes it save and return as the correct type, and the ArrayCollection member returns just fine, but the Dictionary does not save its data.
Here is a snippet:
[RemoteClass(alias="com.tamedtornado.collections.HashMap")]
public class HashMap extends Proxy
{
public var hash:Dictionary = new Dictionary();
[Bindable]
public var collection:ArrayCollection = new ArrayCollection();
, - . ? ArrayCollection , , SO , ( ).