0 Replies Latest reply on Dec 14, 2011 1:26 AM by hincauti

    Actionscript 3.0 and Flex 4.6 save files into documents directory!

    hincauti

      Hi there, I'm working on a Flex 4.6 android mobile project. I'd like to save a sound file to the phone documents directory without calling the save file dialog box, I'd like to save it automatically. Hot to achieve that?

       

       

      public var soundFile:File = File.documentsDirectory.resolvePath("AppName/Sounds/");
      
      //some code here
      
      output_ba = encoder.encode(output_ba,1);
      soundFile.save(output_ba, "sample.wav");
      

       

      whith the code presented above, the 'save file' dialog window is opened. I'd like to save it without calling the dialog box!

       

      Thank you!