1 Reply Latest reply: Nov 20, 2012 10:16 PM by komal harkut RSS

    flex how to remove file to user directory

    Flex_CRJ

      flex how to remove file to user directory

       

      Ex(if i am download content  server to application directory .

           In the content where valid only ten day (nov 1 to nov 10)

       

      Nov 10 If i  am login the app  server give some response (expired file name:"ContentSocialScience.swf") after how to remove the content .

        • 1. Re: flex how to remove file to user directory
          komal harkut Community Member

          Try this:

           

          var swfFile:File = File.userDirectory.resolvePath("your file path/ContentSocialScience.swf");

           

          if(swfFile.exists)

                                                            {

                    swfFile.deleteFile();

                                                            }