ganado / redtamarin

Automatically exported from code.google.com/p/redtamarin
Other
2 stars 0 forks source link

Update wiki documentation on how to use flash.utils.byteArray #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This code:

import flash.utils.byteArray;

function getChar() {
   if (System.isStdinEmpty())
      return "";
   var stdinData: ByteArray = System.stdinRead(1);

   return String(stdinData[0]);
}

gives this error when compiled in this way:

C:\Projects\tamarin\redtamarin>java -jar l/asc.jar -AS3 -import l/builtin.abc 
-import l/toplevel.abc actionscriptexamples.as

[Compiler] Error #1046: Type was not found or was not a compile-time constant: 
ByteArray.
   actionscriptexamples.as, Ln 232, Col 19:
      var stdinData: ByteArray = System.stdinRead(1);
   ..................^

1 error found

Original issue reported on code.google.com by thegar...@gmail.com on 17 Jul 2011 at 4:57

GoogleCodeExporter commented 9 years ago
change
import flash.utils.byteArray;

to
import flash.utils.ByteArray;

and the ByteArray class will be correctly loaded and no more errors

Original comment by zwetan on 18 Jul 2011 at 1:14