Hi, was just playing around with AIR as a potential for an
app I'm working on, a few questions:
1. Can you force the install directory in AIR. For example on
Windows, I need the app to be installed in c:\program files\app and
not let the user change
2. The app needs to read and write a config file. I've gotten
this to work using the file and filestream AIR classes but only if
my config file is in the "My documents" directory but couldn't get
to work using the AIR application directory or sub-directory. If
this isn't possible, then how would I modify the AIR install to
write the config file on installation into "My Documents"?
3. Was wondering if there is a "sleep" type function in AIR.
I've got a work around with gettimer and a loop right now but this
locks up the stage.
4. I need a trial version capability where users can try out
the app and then have to enter a key to activiate fully, was
wondering how to do in AIR
5. my app would actually have multiple AIR files with
multiple .EXEs, can they all be packaged together as one big
1. Not using the normal installer (see answer to #5).
2. Typically you would copy the config file to the
application storage directory if the file doesn't exist already.
3. Yes. You can listen for userIdle and userPresent events on
the NativeApplication object.
4. There's probably a number of ways to do this. You can
store a date in the ELS, or use a signed XML document as a
5. To do this you would have to sign up for the AIR runtime
redistribution program and write your own installer.