简体   繁体   中英

AS3: What resolvePath should I use for my AIR application?

I am working on an simple AIR app. And used:

File.userDirectory.nativePath.toString();

Here, I have kept my external images into a folder called "INTERFACE".

After publishing, I have removed the image folder. And images are not loading in my APP.

So like to know, What

resolvePath

shoud I use for my AIR application?

PS: I am using MAC, I am not sure about WINDOWS.

Your images wont load because you are targeting

File.userDirectory.nativePath.toString();

but you dont have the directory there, because you have deleted that. So your app must create "INTERFACE" directory in userDirectory and then access it. You can read More about the file handling at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html , It have explanation for both platform

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM