A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Can we get Enviornmental Variables yet?

  1. #1
    Senior Member
    Join Date
    May 2009

    Can we get Enviornmental Variables yet?

    Working with AIR 3
    Is there any way to get environmental variables? Such as the path to java or the user's application directory? I managed to get what SHOULD be the user's application directory by trimming off a few folders from File.applicationStoreDireectory but I still need the path to Java.

    I have a few alternative methods like mismatching between operating system (if windows then its this, if mac then its this, ext) but on the slim off chance that the default directory has been changed, its pretty much over.

  2. #2
    Flactionscrish Baby Minion's Avatar
    Join Date
    Nov 2005
    Planet Earth
    I feel like it should be possible by writing native extensions.

    I have done almost no research on native extensions although lee brimelow has a video on them.

    Theoretically, you can do whatever you want with a native extension. take a look at them

    but there is nothing in air right now that can get you environment variables
    Last edited by Baby Minion; 11-03-2011 at 02:29 PM. Reason: adding words
    he who hesitates is lost; so i guess i'll wander intently

    Are you sure this is real?
    Life is Love, Love is Blind, Blind we go through Life.
    Life isn't hard, dealing with your self is.

    The concept of life in a human brain is weakening day after day. Live every day like its your last. Take the chances, and opportunities, and never let authority push you around for fun.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center