在adobe air中保存文件的麻烦

时间:2015-03-18 18:50:59

标签: actionscript-3 air flash-cs5

我在我的应用中有这个代码:

trace("FLACCodec.encodingCompleteHandler(event):", event);
var myfilelol:File = new File("C://test.flac");
var myfilelolstr:FileStream=new FileStream();
myfilelolstr.open(myfilelol, FileMode.WRITE);
myfilelolstr.writeBytes(flacData);
myfilelolstr.close();

我想在.flac文件中保存bytearray。 但我在输出中得到了这个:

typecheck MethodInfo-1060()
outer-scope = [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ flash.display::MovieClip$ talk$ talk talk/stopRecord]
                       [Object~[A] *[A] *[A] *[A]] {} ()
  0:findpropstrict trace
                       [Object~[A] *[A] *[A] *[A]] {} (global~[O])
  3:pushstring "FLACCodec.encodingCompleteHandler(event):"
                       [Object~[A] *[A] *[A] *[A]] {} (global~[O] String~[S])
  6:getlocal1
                       [Object~[A] *[A] *[A] *[A]] {} (global~[O] String~[S] *[A])
  7:callpropvoid trace 2
                       [Object~[A] *[A] *[A] *[A]] {} ()
  11:findpropstrict flash.filesystem::File
                       [Object~[A] *[A] *[A] *[A]] {} (Object~[A])
  14:pushstring "C://test.flac"
                       [Object~[A] *[A] *[A] *[A]] {} (Object~[A] String~[S])
  17:constructprop 1534 1
                       [Object~[A] *[A] *[A] *[A]] {} (*[A])
  21:coerce flash.filesystem::File

什么'错误?谢谢您的帮助! (对不起我的英文)

0 个答案:

没有答案