2 Replies Latest reply on Sep 1, 2010 10:14 AM by cwramsey

    Can't access applicationDirectory


      I'm trying to open a database like every tutorial is telling me to... but I can't open it using applicationDirectory.


      This is being written in Flex, and runs as a desktop app in AIR, which means I SHOULD be able to access that directory...


      Here's the line I'm having trouble with.



      var file:File = new File.applicationDirectory.resolvePath("letters.db");



      And the error I'm getting is...


      Description     Resource     Path     Location     Type
      1048: Method cannot be used as a constructor.     Main.mxml     Business Letters/src     line 77     Flex Problem




      Any ideas?