7 Replies Latest reply on Mar 25, 2011 3:35 AM by anitha.h

    create folder using flex

    athiroy

      hi

      i am working in flex.

      i want to create folder using flex 4.

       

      i use this code

      private var file:File;

      private function  addfolder():void

      {

      file = new  File("file:///C:/MyNewFolder");

      file.createDirectory();

      }

       

      the error is

      Type was not found or was not a compile-time constant: File.

       

      anybody helpme

       

      regards

      athi