1 person found this helpful
Currently the AIR SDK doesn't have native support for this but you might consider using one of the following two workarounds for it:
1. The first method is to use the File.userDirectory to extract the name of the user's folder and use it as the username (but this will not guaranty that it will be the same with the username in all the cases)
2. Use the new NativeProcess functionality that exists in AIR 2 (currently in beta) to run a script that will get the username from the environment variables. More info on how to use this can be found at the following locations:
Hope this helps you,
This is very valuable input. Thank you very much. The file based solution is a bit wacky; but use of NativeProcess in AIR2 sounds promissing. I will look deeper in to this through the links you point out.