Hi, I'm using AMF format storing and retrieving objects using write and readobject() in AIR.
But I have a problem. Let's say this is my class: (simple, no params in constructor) ActionScript Code: public class MyClass { public function MyClass():void { } } Then, I create an ArrayCollection (and save the arraycollection object to the file) with instances of this class. This is working ok, I can save, open and retrieve, iterate objects in the stored arraycollection just fine. BUT, if my class have any parameter in the constructor, my code fails retrieving the arraycollection Something like this: ActionScript Code: var file:File = File.applicationDirectory.resolvePath('Data.data'); var stream:FileStream = new FileStream(); stream.open(file, FileMode.READ); var myAC:ArrayCollection = new ArrayCollection(); while(stream.bytesAvailable){ myAC = stream.readObject() as ArrayCollection;//ERROR Error #1063: Argument count mismatch } Any idea ..? TIA