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
You dont need the new keyword.
var file:File = File.applicationDirectory.resolvePath("letters.db");
You're a godsend. Thank you so much!