Adobe AIR - reading a file in the same folder outside AIR package?

From what I can find there is no way to get that without doing some work yourself. If we assume that the File. ApplicationDirectory points to the wrong place only on Mac (which seems like the case), we can do this: var appDir = File.

ApplicationDirectory if ( appDir. ResolvePath("../../Contents/MacOS"). Exists ) { appDir = appDir.

ResolvePath("../../.."); } That is, check if the parent directories of the app directory match the Mac . App bundle directory structure, and in that case use the parent's parent's parent (which should then be the directory containing the . App bundle).

I believe you want to use File. ApplicationDirectory.

No, I'm using > File. ApplicationDirectory. ResolvePath('FILE.

Xml'); and I get > '/Users//Desktop/. App/Contents/Resources/FILE. Xml' I have my app in the desktop but I need my app Portable I want to use it in any folder and read that content folder.

– rafaelochoa Mar 18 '09 at 11:53.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions