Air App will not read local text file using openAsync/readUTFBytes on user (non-admin) mode

I am running an Air App I did for the desktop, from the actual installed executable already deployed in the machine (Not from Flash Pro / Flex dev. environment). For some reason the app will not read a text file stored in the same application folder unless I run my app as administrator from the OS.
When I run the app as admin, or within the development environment it works fine. Maybe this is related to some security issue? I read the adobe air documentation, and this should work...
I am using openAsync/readUTFBytes on user as shown here:
var continueGamesConnection:FileStream();
var continueFile:File = new File(File.applicationDirectory.resolvePath("continueGames.txt").nativePath.toString()); 
continueGamesConnection.addEventListener(Event.COMPLETE, openSavedGames);
continueGamesConnection.openAsync(continueFile, FileMode.UPDATE); 
function openSavedGames(event:Event):void
     continueGamesConnection.removeEventListener(Event.COMPLETE, openSavedGames);
     var content:URLVariables = new URLVariables();
     var loadedContent:String = new String();
     loadedContent = continueGamesConnection.readUTFBytes(continueGamesConnection.bytesAvailable);
     content.decode(loadedContent); 
     variableX = content. variableX
     //etc, etc. 
     continueGamesConnection.close();
By the way, I have also, tried using FileMode.READ, and others, and it still gives me the same problem. Only works if ran on admin mode or from the dev. environment.
It's very frustrating, I tried reading other posts without any luck... What solutions do people use for this kind of problem?
I have seen that you can set the app to run as admin somehow, and I guess that could work. However, this should work just fine, since it doesn't seem to violate any of the security APIs of Air. Seems like an overkill. But even so, how do I do that?
You help is greatly appreciated!

Thanks kglad.com. I will try this and see if it works. Can you check my code a bit to see if it's right?
var continueFile:File = new File(File.applicationStorageDirectory.resolvePath("savedgames/continueGames.txt").nativePath.toString());
Does this look right to work across all desktop OS?

Similar Messages

  • I have iphoto '08 version with an imac osx 10.5.8. It will not read my RAW files  from my Nikon D800 - a very new model.How can I get it to read my RAW files?

    my somewhat old imac osx 10.5.8 with iphoto '08 will not read my RAW files from my new Nikon D800 camera - a new model on the market( 5 months or so). How can I get iphoto to read my RAW  files?

    iPhoto 08 would not read RAW files from that new a camera. You need to upgrade so you can get more up-to-date version of OS X and iPhoto. Another possiblity is see if iPhoto 11 will run on 10.5.8, if so you should update. You can also attempt to run Software Update and see if it finds a newer release of iPhoto 08 that supports newer RAW formats.

  • Photoshop CS6 will not read my raw files

    I have both a Canon 5D Mark 3 and a Canon 70D and CS6 will not read my RAW files.  I have to convert them to DNG to work on them.  Suggestions?

    According to this Adobe help link, the 5D Mark III had support since Camera Raw version 7.1 and the 70D had support since version 8.2, which CS6 should support fully. (CS6 supports up to the latest Camera Raw, which is version 8.7 as of this post.)
    Is everything updated? (Help > Updates in Photoshop.)

  • How to read a text file using Java

    Guys,
    Good day!
    Please help me how to read a text file using Java and create/convert that text file into XML.
    Thanks and God Bless.
    Regards,
    I-Talk

         public void fileRead(){
                 File aFile =new File("myFile.txt");
             BufferedReader input = null;
             try {
               input = new BufferedReader( new FileReader(aFile) );
               String line = null;
               while (( line = input.readLine()) != null){
             catch (FileNotFoundException ex) {
               ex.printStackTrace();
             catch (IOException ex){
               ex.printStackTrace();
         }This code is to read a text file. But there is no such thing that will convert your text file to xml file. You have to have a defined XML format. Then you can read your data from text files and insert them inside your xml text. Or you may like to read xml tags from text files and insert your own data. The file format of .txt and .xml is far too different.
    cheers
    Mohammed Jubaer Arif.

  • How to read two text files using the Read from spreadsheet.vi and then plot it

    I need to read two text files using the read from spreadsheet function and then plot these files over time.
    The file with the .res extention is the RMS values (dt and df) and the second file contains the amplitude of a frequency spectrum.
    I really appreciate any help..thanks
    Attachments:
    RMS.txt ‏1 KB
    FREQUENCY.txt ‏1 KB

    From NI Example Finder:
    Write to Text File.vi
    Read from Text File.vi
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • Preview.app will not display some PDF files

    Since upgrading Yosemite I have found that Preview.app will not display some PDF documents, the documents open but all the pages are blank. This is a big issue as my work involves reviewing documents that are all in the PDF format. Strangely some PDFs work properly but I haven't been able to determine any common factors among the documents that work versus those that don't work. The problem documents do open correctly in Adobe Acrobat Reader but Reader takes over viewing of PDF container fields I have in several important FileMaker Pro 13 databases. Acrobat in the FileMaker databases for me is just as much of a problem as not viewing PDFs in Preview.
    After searching the forums I followed suggestion in a post to try using version 7.0 of Preview.app (the version that worked under Mavericks) but that is also showing blank pages. I have noticed that the PDFs which open as blank pages also display that way in Finder and Spotlight previews. Could this mean that I have some kind of OS level issue here and not a Preview.app issue? Perhaps Finder and Spotlight use Preview.app to generate the preview.
    I have posted this in a bug report to Apple but in the meantime I would welcome any suggestions or workarounds to try.

    The built-in PDF renderer has trouble with that file. You might get better results with Adobe Reader.

  • Will not read D800 NEF files

    Lightroom will not read Nikon D800 NEF files.  I have updated lightroom twice,  first to 4.1 and second to 4.2 and in neither case would the files import.  I have read several forum entries that say these files are compatible with Lightroom and/or to update Lightroom.  Anyone have an answer?  This is getting really aggravating!

    Nikon Transfer is obsolete and should not be used.  The Transfer option of an up-to-date ViewNX2 should be ok.  I would hesitate to use something that tries to be very consumer friendly like Windows Photo Transfer in case it is extracting JPG previews from the NEFs instead of actually transferring the NEF files, unchanged, but if you can determine they are really raw files, not just JPGs or JPGs renamed to NEF, then it’s probably ok—the NEFs will be much larger than the JPGs so that’s a way to tell.  I think you should test with a few photos, waiting long enough to make sure you do actually get previews rendered in LR’s Import area.
    Personally I just use Windows Explorer and copy the files from my card in a card-reader to my local hard-drive then do an LR Add Import from there.  I use a codec-pack that allows Windows Explorer to let me see the JPG-previews that are embedded into the raw files so I am not copying blind.

  • I've installed Adobe Reader twice and it still will not read a PDF file. What's up?

    I've installed Adober Reader twice now and it still will not read a PDF. What's up?

    I have the same problem. Adobe Reader worked fine until the last few days. I run Windows 7 and all I get is a small black cross in the top left corner of the screen. I can open downloaded pdf files, but not anything new from the internet.
    I uninstalled and reinstalled the program and have run every type of scan I know of without any change.
    This seems to be a common and recent problem, so I would like to know what's being done about it.

  • Lightroom will not read sony ARW files

    I understood the latest version of Lightroom supported the recent Sony A7 series, whose RAW files are Sony's own ARW files. I have the latest Lightroom but it will not read these files.

    Here is a list of the Sony A7 series cameras that Lightroom supports, and the version of Lightroom required. The Lightroom versions are in the highlighted area.
    If you are certain you have the appropriate version of Lightroom installed, then provide more information. Can your operating system browser see the raw files? Have they been downloaded to your hard drive? What operating system are you using? What is the exact version of Lightroom?

  • Lightroom 5 will not read my card files

    lightromm 5 will not read my card files

    alvinc wrote:
    lightroom 5 will not read my RAW preview file , no images in preview file to copy.instead of image file states , preview file unavailable for this file
    Hi,
    Please provide more information ... such as:
    - What are you trying to do? e.g. "Trying to import images from CF Card I get this message"
    - What PC are you using? e.g. "Mac, PC, memory etc"
    It is quite a cryptic thread but it sounds like you are trying to import directly from a CF Card, if you are copy the images to the hard disk then import.

  • Photoshop will not read my RW2 files!

    I have Photoshop CS6 (it wont let me update it any higher) and I have upgraded to the RAW 7.1 but it still will not read RW2 files. Any suggestions?

    8.3 is the latest ACR for CS6  Go to Help > Update...
    or here:
    http://blogs.adobe.com/crawlspace/2011/03/keeping-photoshop-up-to-date.html#notconnected

  • How to read any text files using file adapter as it is

    Hi,
    I need to build bpel process to read any text files as it is.I am file adapter and using opaque schema.But input file is coming as base64encoding format.But i need the input as it is.How can i do that.
    Is there any sample schema to read input text files as it is?

    in java embedding activity i need to remove all newlines from my input text file.During this process i am getting arryindexoutofbounds exception.Below is my code
    String input = (String)getVariableData("inputFileStr");
    Base64Decoder Decoder = new Base64Decoder();
    try
    String decoded = Base64Decoder.decode(input); --exception is coming at this line
    setVariableData("inputFileStr", decoded);
    decoded = decoded.replaceAll("\\n|\\r", "");
    byte[] outputBytes = decoded.getBytes();
    String reencoded = Base64Encoder.encode(outputBytes);
    setVariableData("outputFileStr", reencoded);
    catch(Exception uee)
    uee.printStackTrace();
    below is stack trace:
    09/02/26 08:10:33 java.lang.ArrayIndexOutOfBoundsException: -1
    09/02/26 08:10:33 at com.collaxa.common.util.Base64DecoderStream.decode(Base64DecoderStream.java:162)
    09/02/26 08:10:33 at com.collaxa.common.util.Base64DecoderStream.decode(Base64DecoderStream.java:143)
    09/02/26 08:10:33 at com.collaxa.common.util.Base64Decoder.decode(Base64Decoder.java:36)

  • How to read a text file using adobe javascript

    Hi,
    I have a api application which adds toolbar to a adobe acrobat. i need to disable the toolbar according to expiry date, So i need to fetch the expiry datge from a text file from the specified location.
    I am using importTextData() function to get the textdata from text file using adobe javascript. When i call this function i am getting error "ReferenceError: importTextData() is not defined".
    I am using Adobe Acrobat 7.0 version.
    Can any one tell how to use the importTextData() function.
    Regards
    Shiva

    calling from javascript file which is placed in the below location.C:\\Program Files (x86)\\Adobe\\Acrobat 7.0\\Acrobat\\Javascripts
    Regards
    Shiva

  • OMG, after last AIR update before current ALL my AIR apps will not work, HELP!

    I have 5 or 6 AIR based apps after I did an update last month, none of them will work. I just re-installed and updated AIR again today and re-installed all the apps multiple times and when I go to one it trys to open the last I installed for every app it only opens the last installed. App installions always end with "faled to open app" and in the log I see this "Error: Missing necessary file META-INF/AIR/application.xml" not sure?
    Windows 7 (all lastest updates)
    Latest Air (13.057 I believe?)
    How do I fix this, why did it break?
    Full log:
    http://ge.tt/2IDeU4b1/v/0?c

    Hello,
    I could install and run the AIR application successfully with AIR 4.0, 12.0 and 13.0.
    Looking into the log, it seems that "missing application.xml" and "Application Installer end with exit code 7" issues have been there from 2014-02-09, below is the detailed log seen from http://ge.tt/2IDeU4b1/v/0?c. This issue maybe caused by the application.
    Is there an application.xml under C:\Program Files (x86)\YourApplicationXXX\META-INF\AIR\ ?
    If possible, could a bug against this issue be logged in https://bugbase.adobe.com/, and upload the AIR application which does not work. That would be very helpful to triage and find the root cause for this issue.
    Thanks your support!
    ===================================================
    [2014-01-04:01:26:19] Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -updatecheck
    [2014-01-04:01:26:20] Runtime Installer begin with version 3.9.0.1380 on Windows 7 x86
    [2014-01-04:01:26:20] Commandline is: -updatecheck
    [2014-01-04:01:26:20] Installed runtime (3.9.0.1380) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2014-01-04:01:26:20] Performing pingback request
    [2014-01-04:01:26:21] Pingback request completed with HTTP status 200
    [2014-01-04:01:26:21] Starting runtime background update check
    [2014-01-04:01:26:21] Clearing unused background update directory
    [2014-01-04:01:26:21] Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.9.0.1380/update
    [2014-01-04:01:26:21] Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.9.0.1380/update to C:\Users\Owner\AppData\Roaming\Adobe\AIR\Updater\Background
    [2014-01-04:01:26:21] Runtime update not available
    [2014-01-04:01:26:21] Unpackaging cancelled
    [2014-01-04:01:26:21] Runtime Installer end with exit code 0
    [2014-02-09:13:58:50] Application Installer begin with version 3.9.0.1380 on Windows 7 x86
    [2014-02-09:13:58:50] Commandline is: C:\Users\Owner\Downloads\SPPro\SocialPostingPro-4.air
    [2014-02-09:13:58:50] Installed runtime (3.9.0.1380) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2014-02-09:13:58:53] Unpackaging file:///C:/Users/Owner/Downloads/SPPro/SocialPostingPro-4.air to C:\Users\Owner\AppData\Local\Temp\fla3EA0.tmp
    [2014-02-09:13:58:53] Application signature verified
    [2014-02-09:13:58:53] Unpackaging/validation complete
    [2014-02-09:13:58:53] No app located for appID 'com.igs.socialpostingpro' and pubID ''
    [2014-02-09:13:59:06] Converting unpackaged application to a native installation package in C:\Users\Owner\AppData\Local\Temp\fla729C.tmp
    [2014-02-09:13:59:06] Native installation package creation succeeded
    [2014-02-09:13:59:06] Starting app installation to C:\Program Files (x86). Installing app com.igs.socialpostingpro version 1.0.8 using the source file at file:///C:/Users/Owner/Downloads/SPPro/SocialPostingPro-4.air
    [2014-02-09:13:59:06] Installing msi at C:\Users\Owner\AppData\Local\Temp\fla729C.tmp\setup.msi with guid {050F1169-D97B-B822-C803-D727DB278A96}
    [2014-02-09:13:59:17] Got an unexpected fatal error while accessing app for launch: Error: Missing necessary file META-INF/AIR/application.xml
    [2014-02-09:13:59:41] Application Installer end with exit code 7

  • AIR App. need to read textBox text into ....

    Hi there,
    After several days of searching and going through my collection of Flex database files I can't seem to find anything about writing from several different textBoxes into ONE only Text file OR even writing from an Xml file into plain text with line breaks.
    If anybody has any suggestions please do not hesitate to pass them on as I get now quiet frustrated to get hung out to dry on this.
    What I was after are several items, but I would be happy if I could make some of these work !
    I JUST HAVE WORKED OUT ALL ITEMS STATED BELOW (1 TO 3 AND 6) YET WOULD BE STILL INTERESTED TO FIND OUT MORE ABOUT THE ITEM NUMBER 4 IF THERE IS A DIRECT WAY OF READING A DATAGRID ROW INTO A TEXT FILE ???
    AND IF YES WOULD IT BE POSSIBLE TO HAVE ALSO LINE BREAKS ???
    My options would be:
    Read out of several different textBoxes with each readout having a line break.
    Possibly not with all the guff of the htmlText just plain text from the input would be fine.
    Or a direct readout from Xml file into a text.txt if that would be possible.
    Or a direct readout from a gatagrid row into a text.txt if that would be possible.
    Saving of a file automatically as a text.txt file without asking first or any other interaction, and Saving to a specific directory folder on the desktop.
    I have come up with something which started me off yet uses 'htmlText' or plain text without line breaks.
    OK, here is some of the code I have with the 'htmlText' readout:
    <TEXTFORMAT LEADING="2">
    <P ALIGN="LEFT">
    <FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">
    The Text which was used in textBox ....
    </FONT>
    </P>
    </TEXTFORMAT>
        <mx:Script>
            <![CDATA[
                private const textFilter:FileFilter = new FileFilter("Text Files (txt, html, htm, ods)","*.txt;*.html;*.htm;*.ods;");
            ]]>
        </mx:Script>
                <mx:TextInput id="inputOne"/>
                <mx:Button>
                    <mx:click>
                        var f:File = File.desktopDirectory;
                        f.browseForSave("Save As");
                        f.addEventListener(Event.SELECT, function (event:Event):void {
                        var stream:FileStream = new FileStream();
                        stream.open((event.target as File),FileMode.WRITE);
                        stream.writeUTFBytes(inputOne.htmlText);
                        stream.close();
                    </mx:click>
                </mx:Button>

    Thanks kglad.com. I will try this and see if it works. Can you check my code a bit to see if it's right?
    var continueFile:File = new File(File.applicationStorageDirectory.resolvePath("savedgames/continueGames.txt").nativePath.toString());
    Does this look right to work across all desktop OS?

Maybe you are looking for

  • How can you get an Embedded Quicktime to rewind?

    Hi there, I have been using the QTPro feature of 'Export to desktop' to create a quicktime for my web site. It works well but I was just wondering if there is a way to get the quicktime to rewind to the start after it has finished the movie and rever

  • Third party control in oracle developer6i

    hello, i want to use third party grid control in developer 6i, can anybody help me regarding this request i wil b very thankful its an urgent thanx

  • Color Resolution Presets and Final Cut fullscreen playback of 2.35:1

    I have sent a project from Final Cut Pro to Color. In Color's resolution settings, I have selected the 2k 2.35 setting to achieve a wider image. Once I finish Coloring and rendering and I send the Color project back to Final Cut Pro, the aspect ratio

  • Problem with Adware - Firefox for MAC

    I keep getting adware pop ups from cpxinteractive adware. Anyone figure out how to remove these? I'm running Firefox on my Intel based MAC. Firefox version 5.0. MAC OS X 10.5.1. Is Safari better at blocking adware and spyware programs? Help!? Thanks,

  • DVD Player App Problems

    Hi, I have an iMac G3 running the latest Tiger with a FireWire External DVD drive. Whenever I load DVD Player, I get an error message telling me that a valid DVD player could not be located. What's the problem here? Any workarounds? Thanks.