class WddxRecordset { // Add default properties var preserveFieldCase:Boolean = true; // Add extensions /* if (typeof (wddxRecordsetExtensions) == "object") { for (prop in wddxRecordsetExtensions) { // Hook-up method to WddxRecordset object this[prop] = wddxRecordsetExtensions[prop]; } } */ // Perfom any needed initialization function WddxRecordset(arguments) { if (arguments.length>0) { var val; if (typeof (val=arguments[0].valueOf()) == "boolean") { // Case preservation flag is provided as 1st argument preserveFieldCase = arguments[0]; } else { // First argument is the array of column names var cols = arguments[0]; // Second argument could be the length or the preserve case flag var nLen = 0; if (arguments.length>1) { if (typeof (val=arguments[1].valueOf()) == "boolean") { // Case preservation flag is provided as 2nd argument preserveFieldCase = arguments[1]; } else { // Explicitly specified recordset length nLen = arguments[1]; if (arguments.length>2) { // Case preservation flag is provided as 3rd argument preserveFieldCase = arguments[2]; } } } for (var i:Number = 0; i0) { colNamesList += ","; } colNamesList += col; } } var nRows:Number = this.getRowCount(); node.appendChild((new XML()).createElement("recordset")); node.lastChild.attributes["rowCount"] = nRows; node.lastChild.attributes["fieldNames"] = colNamesList; var bSuccess:Boolean = true; for (i=0; bSuccess && i