The Flash player implements both Array and Object as hashtables. In other
words, doing
var a:Array = [];
a[10] = "foo";
is doing the same thing internally as setting
var o:Object = {};
o["10"] = "foo";
- Gordon
-----Original Message-----
From: Krzysztof Szlapinski [mailto:[EMAIL PROTECTED]
Sent: Monday, March 21, 2005 12:29 PM
To: [email protected]
Subject: [flexcoders] internal representation of an array
Hi,
Does anybody know what is the internal memory representation of an array in
Flex?
I used an array like in the example below but much longer and the servlet
execution threw this exception: "java.lang.OutOfMemoryError"
here is the sample array structure:
form['vb8'] = new Array();
form['vb8']['type'] = 5;
form['vb8']['pid'] = 55;
form['vb8']['fid'] = 'vb8';
form['vb8']['rbgs'] = new Array();
form['vb8']['rbgs'][0] = new Array();
form['vb8']['rbgs'][0]['fid'] = 'rbg0';
form['vb8']['rbgs'][0]['pid'] = 88;
form['vb8']['rbgs'][0][0] = 'rb0';
form['vb8']['rbgs'][0][1] = 'rb1';
form['vb8']['rbgs'][0][2] = 'rb2';
form['vb8']['rbgs'][0][3] = 'rb3';
form['vb8']['rbgs'][0][4] = 'rb4';
form['vb8']['rbgs'][0][5] = 'rb5';
form['vb8']['rbgs'][0][6] = 'rb6';
form['vb8']['rbgs'][1] = new Array();
form['vb8']['rbgs'][1]['fid'] = 'rbg1';
.......
form['vb46']['rbs'][6] = new Array();
form['vb46']['rbs'][6]['pid'] = 165;
form['vb46']['rbs'][6]['fid'] = 'rb353';
krzysiek
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/