2 Replies Latest reply on Mar 29, 2010 10:03 AM by tzeng

    Error # 3006, Not A File.

    Krish.praveen Level 1

      Hello All,

       

      I'm having trouble writing to the file..

       

      Code :

      var testFile:File = File.applicationStorageDirectory.resolvePath("testing.doc");
      trace(testFile.exists); //traces 'true'


      var writer:FileStream = new FileStream();
      writer.open(testFile, FileMode.WRITE);  //error here

       

       

       

      I get a "Error #3006: Not a file." error..

       

      Please help me for the same.

       

      Thanks in Advance.