I am implementing a slide show player in AIR. This is a
request for help regarding the dynamic loading and display of
images retrieved from the local filesystem.
I find that when I run my AS3 script in Flash 9 using ADL
(i.e. Debug Movie) that I can use a Loader object to load images
from the local filesystem (var imgFile:File =
File.userDirectory();) without a problem. When I then generate an
AIR application and run the app that no images can be loaded from
any location other than the applicationDirectory or the
applicationStorageDirectory. The applicationDirectory resolves to
the zip file that is the AIR app so that is useless for this
If I do the work to move images to the
applicationStorageDirectory and then refer to them using the
app-storage:/ url scheme, the images load and display. This is less
than optimal for performance and management reasons.
What is the means or method required to load and display
images found in the userDirectory (or the documentsDirectory)?
Thanks in advance for any assistance in this most perplexing
OK it has been awhile and i have learned a lot. My slideshow
works just fine.
It is true that the Debug Move or Test Movie behaves
differently than the runtime when it comes to the app:/ directory.
During test, that is the same directory as the .fla; during runtime
it is part of the .air zip package. You can verify this by checking
the .url property of a file.