im pretty new to ActionScript, and even newer to AIR methods. The problems im encountering seem like they have a simple answer, but i cant find it. The program has people generate 6 numbers that i need to record in a file so i can analyze them later in a stats program. Here is the code for the write to file portion. Some of the code may be redundant, not needed, or just plain wrong, as I kept changing things based on the error messages i got.
String(ce_0);
String(ce_1);
String(ce_2);
String(ce_3);
String(ce_4);
String(ce_5);
var file:File=File.desktopDirectory.resolve(“ce’s.txt”);
var stream:FileStream = new FileStream();
stream.open(file, FileMode.APPEND);
stream.writeMultiByte("\r ce0 = " + ce_0 + "\r ce1 = " + ce_1 + "\r ce2 = " + ce_2 + "\r ce3 = " + ce_3 + "\r ce4 = " + ce_4 + "\r ce5 = " + ce_5:String, iso-8859-1:String):void;
stream.close()
problem 1 is that when i click the check syntax button it says no errors, but 2 pop up in the compiler error box. The first is a 1084 saying it is expecting a right parenthese before the colon, the second is a 1078 (label must be a simple identifier). To see if it would work I removed the identifiers and the colons, and I get problem number 2. 3 errors pop up now. First, it says the resolve is a call to a possibly undefined method through static type. Second, it says iso is undefined (im assuming this is becuase it doesnt have the String identifier). Third, it says in the writeMultiByte method there is a coersion of Number types with String types (im assuming this is also becuase it is missing the identifier)
beyond this, i was also wondering what capabilities AIR has to write to Excel. I can go all the stats on the numbers in Excel, and if i can put the data directly in it would cut out a step, I just havent been able to find anything saying what AIR can and cant do regarding excel.
Thank you for your help