7 Replies Latest reply on Mar 18, 2011 2:55 AM by Koyel_flex

    How can I take snap of application and save it in folder automatically by clicking a button?

    Koyel_flex Level 1

      I can take snap of application using this code

      import mx.graphics.ImageSnapshot;

      import mx.graphics.codec.JPEGEncoder;

       

      import flash.net.URLRequest;

      import flash.net.navigateToURL;

      public var file:FileReference = new FileReference();

      private function saveChart():void

      {

      var jPEGEncoder:JPEGEncoder = new JPEGEncoder(500);

       

      var imageSnapshot:ImageSnapshot = ImageSnapshot.captureImage(details, 0, jPEGEncoder);

       

      //var request:URLRequest = new URLRequest("http://clients.designmytemplate.com/u/flex/magento_1.4.1.1");

       

      //file.save(imageSnapshot, "shirt.png");

       

      }

      But I cant save it in folder automatically.

      can anyone plz help me on this problem?