2 Replies Latest reply on Apr 27, 2009 8:18 AM by CelineFR

    air application with flex Builder?

    CelineFR Level 1



      I need to create an air application with flex builder, i have created an ai project to test this function but i have an error:


      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
           import flash.filesystem.*;


      var source:File = File.desktopDirectory.resolvePath("test.txt");
      var target:File = File.documentsDirectory.resolvePath("AIR Test/test.txt");
      var targetParent:File = target.parent;
      source.moveTo(target, true);


      "Parse error at '\n\timport flash.filesystem.*;\n\nvar source:File = File.desktopDirectory.resolvePath(\"test.txt\");\nvar target:File = File.documentsDirectory.resolvePath(\"AIR Test/test.txt\");\nvar targetParent:File = target.parent;\ntargetParent.createDirectory();\nsource.moveTo(target, true);\n'.  "