imrahil / asx3m

Automatically exported from code.google.com/p/asx3m
0 stars 0 forks source link

can't serialize ArrayList! #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. code:
import system.data.lists.ArrayList;

var data:ArrayList = new ArrayList();
var part:ArrayList = new ArrayList();
data.add(col);
part.add(new String("gds"));
part.add(new String("123"));

var newXMLStr:String = Asx3mer.instance.toXML(data);
var fs2:FileStream = new FileStream();
fs2.open(file, FileMode.WRITE);
fs2.writeUTFBytes(newXMLStr);
fs2.close();
2. run the code

What is the expected output?
get a correct serialisation of the arrayList...

What do you see instead?
in console i get: [Fault] exception, information=ReferenceError: Error #1069: 
Property 0 not found on system.data.lists.ArrayList and there is no default 
value.
xml data in the file:
<system.data.lists.ArrayList>
  <modCount>1</modCount>
</system.data.lists.ArrayList>

What version of the product are you using? On what operating system?
0.92  -  windows 7  -  air project with flashDevelop (using air version 3.1)

Original issue reported on code.google.com by alexande...@gmail.com on 24 Apr 2012 at 10:15