Air File.documentsDirectory points wrong in German Vista?

I cannot use any of the Help samples out of my flexbuilder:
private var userDirFiles:Array =
File.desktopDirectory.getDirectoryListing();
for (var i:uint = 0; i < userDirFiles.length; i++) {
if (userDirFiles
.isDirectory) {
trace(userDirFiles.nativePath);
this leads to a compiler error "multiple markers at this
line, 1120 zugriff auf eine nicht definierte eigenschaft i
zugriff auf eine nicht definierte Eigenschaft userdirfiles
To me it seems that air is definitly buggy

There's no substitution being done here. The resolvePath()
call doesn't guarantee that a file exists. If you want to check
that, use the File.exists property.

Similar Messages

  • The REAL nativePath for air.File.documentsDirectory.resolvePath("My Music") in VISTA

    AIR is performing some magic in VISTA OS with the following:
    var musicFolder =
    air.File.documentsDirectory.resolvePath("My Music");
    air.trace(musicFolder.nativePath) writes
    "c:\Users\username\Documents\My Music"
    When I use windows explorer to try to navigate to that
    folder... IT DOES NOT EXIST
    air.trace(musicFolder.exists) writes "true"
    It turns out that AIR is doing an internal substitution
    air.File.documentsDirectory.resolvePath("My Music") -->
    air.File.userDirectory.resolvePath("Music")
    I want to display the native path for "My Music" so my users
    know where to find their Music folder if they are trying to find it
    using their OS native file browser / explorer.
    How can I get a straight answer as to
    "C:\Documents\username\My Music" exists or not (vs.
    c:\users\username\Music")

    There's no substitution being done here. The resolvePath()
    call doesn't guarantee that a file exists. If you want to check
    that, use the File.exists property.

  • Bug when getting file path in non-english Windows Vista

    Hello,
    I'm getting an error when trying to get the file path of a video in a non-english Windows Vista... The code is:
    var file = "video.flv"
    var filePath = air.File.applicationStorageDirectory.resolvePath(file);
    filePath = filePath.nativePath;
    The filePath variable is used later by a flash video player to load the video file..
    In the brazilian Windows Vista the path of the StorageDirectory would be something like "C:\Usuários\(user name)\..." but if I run this script it returns "C:\Users\(user name)\..." as the native path.
    The problem seems to be in the "nativePath" function, cause I'm able to copy files to the app-storage folder using the "air.File.appicationStorageDirectory.resolvePath()" method without any problems.
    I could insert a small code which substitutes "Users" with "Usuários" but then it wouldn't work on an english Vista...
    Any ideas on this? Is there a way to check the language of the operating system in Air so to act accordingly?
    Thanks for any help!

    Hello,
    has anybody found a solution?
    Testcase: SQL Developer 3.1 on a German XP with default NLS Settings
    CREATE TABLE "TEST_TABLE"
           "NUM" NUMBER
          ,"VCH"  VARCHAR2(10 BYTE)
        ) ;Test file test_insert.dsv
    num;vch
    1;KL
    1,5;tz
    12345,45;ooImporting using the wizard inserts the first row correctly, for the others I get
    SET DEFINE OFF
    --Einfügen für Zeilen  1  bis  3  nicht erfolgreich
    --ORA-01722: invalid number
    --Zeile 2
    INSERT INTO TEST_TABLE (NUM, VCH) VALUES (1.5,'tz');
    --Zeile 3
    INSERT INTO TEST_TABLE (NUM, VCH) VALUES (12345.45,'oo');Beside the wrong umlaut in the message the insert statement itself is correct, because you cannot use the german decimal separator "," in the script. The bug is, that it should use the same NLS settings for generating and running the script.
    Regards
    Marcus

  • Can not open .air file after install AIR

    I uninstall it and reinstall it , but  it can not slove this problem.
    the extension .air was not pointed to Adobe Air
    OS : Vista SP1

    I can not select the exe file in the Start --> Control Panel --> Programs --> Default Programs and select "Make a file type always open in a specific program."
    Does it a method to input by myself?
    And The System Can not use Adobe AIR Application Installer.exe when I try to install Air Application from Web , Update from the Application.
    It always told me to go http://www.adobe.com/go/getair.
    I reinstall it many times , but all problems still could not be fixed.

  • Launching an Adobe AIR file from Director 11

    I am not much of a Lingo programmer and am trying to figure out how to launch an external application from within Director 11.  Have done alot of searching and reading on the internet and everything I found points to using the following script or BuddyAPI
    I am using the following
    open the moviePath & "cme_managingpain.air"
    This is part of a canned "RollOver Graphic Change" script.  On mouseUp it calls that line.
    I also looked at BuddyAPI but don't know enough lingo to understand how to use it.
    Any ideas on what is wrong with my line of script?
    Has anyone tried lauching an AIR file within Director?
    The air file is in the same folder as my .dir file.

    The problem with using the native 'open()' command you posted is that you probably also need to provide the full path to the executable that will open the .air file, and what's more if something goes wrong there is no way for you, the developer, to programatically determine this. In that sense it is better to use the Buddy API xtra - just be sure to remember to distribute it with your projector:
    on mouseUp me
      OK = baOpenFile(_movie.path & "cme_managingpain.air", "normal")
      if OK < 32 then
        -- an error occurred, check the BudAPI docs for numbers and their meaning
        alert "Error opening file:" && OK
      end if
    end

  • "Sorry, an error has occured. The application could not be installed because the AIR file is damaged

    Hello-
    I have an air application that is distributed via CDROM, the app is signed by a code signing certificate and timestamped. In mid-August when my certicate expired my users started calling stating that they couldn't install our product due to the following error: "Sorry, an error has occured. The application could not be installed because the AIR file is damaged. Try obtaining a new AIR file from the application author." From my understanding a timestamped application is taken at a point in time when it's generated so why would it matter if the certificate was still valid? I have since replaced the certificate and will need to redistribute to my (thousands of) users however when I test it out using a future date and time the same error occurs. Any information to help resolve this would be grately appreciated.

    my command:
    C:\Users\HOME USE\Desktop\AIR Development\HelloWorld>adl
    application.xml
    C:\Users\HOME USE\Desktop\AIR Development\HelloWorld>adt
    -certificate -cn HelloW
    orld 1024-RSA certHelloWorld.pfx password
    C:\Users\HOME USE\Desktop\AIR Development\HelloWorld>adt
    -package -storetype pkc
    s12 -keystore certHelloWorld.pfx HelloWorld.air
    application.xml HelloWorld.html
    password: password
    C:\Users\HOME USE\Desktop\AIR Development\HelloWorld>
    And here is another link to download my code
    http://www.megaupload.com/?d=JS3X2IVC
    Thank you.

  • Damaged AIR File, Error #1000

    Hello,
    This is my first post, but hopefully someone here will be able to help me.
    I am a Flex Developer who was just recently assigned to help out on a project that has gone bonkers.  The project had been going fairly well... but after the latest build the following messages comes up during installation on Windows XP.
    "Sorry, an error has occured.
    The application could not be installed because the AIR file is damaged. Try obtaining a new AIR file from the application author."
    Awesome!  All we need to do is get a new AIR file from the application author... oh wait... I AM the application author.  Grumble grumble.
    So I tried reinstalling the application, but this time I ran it with .airappinstall.log.  Here is what was output by the log.
    Starting app install of file:///C:/Documents%20and%20Settings/Administrator/Desktop/2009-11-30r33MW4.air
    UI SWF load is complete
    UI initialized
    Unpackaging to C:\Documents and Settings\Administrator\Local Settings\Temp\fla1D.tmp
    failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Error #1000" errorID=1000]
    starting cleanup of temporary files
    application installer exiting
    So, what exactly is this error?  Can anyone point me to a place where I might be able to look up what Error #1000 is?
    Don't worry I have done my homework,  I know there are a decent amount of posts about people recieving an "AIR file damaged" error.  I have looked and read through them all, but when they run a log on the install it ends up being a different error...so the other posts are not entirely helpful.
    I am guessing something must have been changed in the most recent build but I was just placed into this project so I do not have much knowledge of previous versions.  Any hints of suggestions about common things to check that might be causing this would be greatly appreciated.

    It might help if you can get the installation log and post
    it.
    To get the log, create a file .airappinstall.log in your home
    directory.

  • Export .air files with Xcelsius

    Hi all,
    I want to start developing an adobe flex component.
    I am trying to export the dashboard on the .air file, but the export u201CAiru201D option is disabled in Xcelsius. I already change the sdk Xcelsius file to u201CC:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0u201D.
    I donu2019t know if I have the correct software versions:
    - Xcelisus 2008 5.3.0.0
    - Adobe Air 2.0.4
    - Adobe Felx Builder 3.0.2
    - JRE 6.0.210
    All is running on Windows 7
    Thanks

    Hi Matt, first of all thanks for your respond
    Maybe I don´t explain the correct form about my Xcelsius version, I made the installation of service pack 5.3.3.0 over the version 5.3.0.0 that I already had on my computer, but after to install the service pack 5.3.3.0, Xcelisus version continues being 5.3.0.0
    In the fact after install the service pack, in my desktop had been created Xcelsius Add-On Packager shortcut
    I´m sure that I followed all the steps that are mentioned to install the service pack like administrator, because one of the consequences is every time that I open my Xcelsius appears one window asking the permission to execute the changes in the program.
    About the license, I think it hasnu2019t issues because I made one test in other machine that has Windows Vista, and all option shows habilitated
    Thanks

  • Firefox opens the air file !?!!

    I have made an air application and uploaded it to my web
    server. However, when I enter the URL to the air file, Firefox
    opens it up instead of downloading it.
    Here's the link to my app:
    http://www.jashsayani.com/Development/RememberTheTask.air
    (Firefox opens the air file and shows garbeled text. But the
    file works when downloaded with a download manager)
    Here are other air file links that show the download pop-up
    when opened:
    WebKut:
    http://toki-woki.net/p/WebKut/WebKut-v1.2.2.air
    DestroyTwitter:
    http://www.destroytoday.com/releases/DestroyTwitter130B.air
    What is wrong ? and how do I fix it ?

    Sounds like you need to assign a MIME type foe AIR files on
    your web server.
    (application/vnd.adobe.air-application-installer-package+zip)
    See
    http://www.davidtucker.net/2008/01/08/update-your-air-mime-type/

  • Accidentally associated Adobe AIR file with Acrobat, now an otherwise easily fixed problem has been causing me far too much anger.

    I accidentally associated an Adobe AIR file to open Adobe Acrobat in it's stead, now an otherwise easily fixed problem has been causing me far too much anger.
    Basically I downloaded an .air file after recently reformatting my computer, and I tried to open it with Acrobat. Now, since there is no actual application and or shortcut created by AIR I can't just tell the file to use that. I've found that I'm not alone in this issue, have tried a few things I've read on both this forum and others, and have come to no resolution as of yet. This file isn't anything of any great significance, but it bugs me so much that at this point I just want to know how to fix this and win this little battle.
    Thanks in advance to anyone willing to help.

    Thank JJMack - that has helped me get closer to the problem.
    I opened the resource monitor and you can see a screenshot of what is going on when I try to save a simple, 9 Kb graphic. (I'm saving an RGB JPG, not a PNG or animated GIF file. Doing anything complex / memory intensive than saving or simple edits in PS is almost impossible.)
    As you can see from the screencap below, when I save (it doesn't make a difference if it is save vs. save to web or a network or local drive) Photoshop becomes unresponsive. (From past experiences, if I try to switch to a non-Adobe program it will also freeze and sometimes crash.) When PS becomes unresponsive, the NT Kernel & System immediately goes to the top of the list and uses 200+ threads.
    From there Photoshop will typically be frozen for about a minute, then will recover and take another minute or two to finish the save. At that point PS is okay, but the rest of the computer is still frozen with CPU oscillating up to almost 100%.
    As soon as the NT Kernel & System settles down, everything is back to normal again (as long as I haven't used other programs, which in one case required a hard reboot.)
    It is pretty clear the problem is rooted in Adobe / Window 7 as I only have this problem with Adobe programs. (Illustrator isn't as bad, but I've had problems with it as well.)
    The question is: How do I fix this, as it is killing my ability to work?
    Thanks! Julie

  • Use adt to package an air installer success, but install this air file "sorry , an error has occured

    hi everyone, i am using a bat file to package an air file ,
    this application runs on windows 7 32 bit,
    it need to call another windows application , so i google and then find i need to add -target native when package , so i added.
    the bat file is like below:
    ========================================
    @echo off
    :: AIR application packaging
    :: More information:
    :: http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_5.html#1035959
    :: Path to Flex SDK binaries
    set PATH=%PATH%;C:\AdobeAIRSDK\bin
    :: Signature (see 'CreateCertificate.bat')
    set CERTIFICATE=yeahCert.pfx
    set SIGNING_OPTIONS=-storetype pkcs12 -keystore %CERTIFICATE% -tsa none
    if not exist %CERTIFICATE% goto certificate
    :: Output
    if not exist air md air
    set AIR_FILE=air/jonnson.air
    :: Input
    set APP_XML=application.xml
    set FILE_OR_DIR=-C bin .
    echo Signing AIR setup using certificate %CERTIFICATE%.
    call adt -package      %SIGNING_OPTIONS%  -target native  %AIR_FILE% %APP_XML% %FILE_OR_DIR% 
    if errorlevel 1 goto failed
    echo.
    echo AIR setup created: %AIR_FILE%
    echo.
    goto end
    :certificate
    echo Certificate not found: %CERTIFICATE%
    echo.
    echo Troubleshotting:
    echo A certificate is required, generate one using 'CreateCertificate.bat'
    echo.
    goto end
    :failed
    echo AIR setup creation FAILED.
    echo.
    echo Troubleshotting:
    echo did you configure the Flex SDK path in this Batch file?
    echo.
    :end
    pause
    ======================================================
    after run this bat , the air file is successfully built , but when i want to install this air , it says "sorry ,an error has occured .....  bla bla installer file is damaged....bla bla "
    but when i remove the red part -target native  in the command above then run it again , the new packaged air file can install successfully, but the application can not call other windows apllication anymore, nativeprocess.issupported always returns false when running
    so seems like the problem is all about -target native , deos anyone know whats wrong ?
    this problem really bothers me long time , any help will be appreciated. thanks in advance!

    Nice! I swear I tried that URL (substituting "mac" for "win" and "MAC" for "WIN" in the one relaxatraja posted), but I guess I missed something.
    Ironically, it doesn't include a binary either, but a simple alias works:
    alias pfi='java -jar /path/to/PFI/lib/pfi.jar'
    And it did indeed produce an ipa without error. I don't have my hardware with me, but I'll be able to test it tonight. Meanwhile, I think I'm in business. Thank you all!

  • AIR file extensiòn *.air - howto help needed

    Hola¡¡
    I have Adobe AIR (es nou)
    I have Adobe Media Player (es nou)
    I have Adobe Flex Builder (es nou .. 3.0)
    I have Adobe AIR project in Adobe Flex Builder
    It not run the Adobe AIR Program >>> Windows not
    can make AIR runtime and AIR fitxers.
    PERO>>> meu fitxer es totalment correctament ....
    i function in Flex Builder but not other.....
    Comes es that I can run the AIR programes The Adobe Media Player
    but Error comes with download AIR programes and comes I have Error.
    vale... the download AIR progames from web look diferent and have icones.
    but me programes not. Is no icona....is only file plus extensiòn air....per exemple "holamon.air"
    I installa the Adobe AIR other second time and problem comes also other second time...
    I not know this to work OK....perhaps I have Error Windows Vista?
    crec no tinc...pero possi....
    >>>>
    how to make associate the Adobe AIR fitxer and Adobe AIR runtime?
    No have opcións in Tauler de control ?
    You perhaps know ?
    Can you are help me please?
    sisplau,
    Moltes Gracies
    Dominik

    If I understand correctly, perhaps the air file extension is improperly mapped on your pc.
    In Windows Explorer perform the following:
    Tools --> Folder Options --> File Types
    Look for the AIR extension (see screenshot).
    Click advanced (see screenshot)
    Click "Edit"
    In the field labeled "Application used to perform action" mine has c:\PROGRA~1\COMMON~1\ADOBEA~1\Versions\1.0\ADOBEA~1.EXE "%1"
    Yours should be similar.  If you want to browse for the program, it's typically located in program files\common files\Adobe AIR\versions\1.0\Adobe AIR Application Installer.exe
    Good luck! My apologies if I've misunderstood.

  • Error creating AIR file: 105:ERROR, application.installFolder

    I renamed my project and can not create release build.
    would be nice to what I did that broke it.
    here is the Error message during the Export Release Build:
    Error creating AIR file: 105: ERROR,
    application.installFolder
    also, when I close flex builder then try to reopen it, my
    default workspace is busy..
    oops.. I had messed with the default install folder and had
    dropped in a C:\Program Files\... which it should only be a sub as
    air defaults already to C:\Program Files\<filename> or on mac
    \Applications\<filename>.app
    <installFolder>subfolder/subsubfolder</installFolder>

    It's not uncommong while editing your app.xml file... that one can leave stray < or >. Check to make sure the file is valid and that any included references (like icons) aren't missing or in the wrong location.
    Rick Winscot

  • Air 1.51 installation failure. The application could not be installed because the AIR file is damaged

    The error:
    The application could not be installed because the AIR file is damaged. Try obtaining a new AIR file from the application author.
    is generated when an AIR installation file is lauched from a Samba Network Drive in Vista Utlimate 64. If the install files are copied to a local drive, it installs without incident.

    Working with networks drives are never reliable.  Corruption, path problems, networks connections, and privlatges can come in the way of a properly mapped drive.  I think your solution is fairly straight forward.  You need to install your application from a local filesystem, not a mapped network drive.  In the meantime, log a bug report HERE.

  • Converting AIR file to APK file

    Hi to all...
    I am new to adobe air ..I am developing a desktop application using adobe flex builder 3....I exoprt my project as .air file and execute it in adobe air 2.7 and its work fine in my system ....
    Now my questions are..
    1. whether may i convert that desktop application into .apk file to run in android phone?
                  if the answer is yes how can we do that...
    2. what are the changes i have to made in code for doing so?
    3 .In some forums i read that we can do it by using ADT..what are the steps we have to follow for doing that..
    Help me out in this issue...thanks in advance...

    You can create an APK package directly from an existing AIR or AIRI file:
    adt -target apk -storetype pkcs12 -keystore ../codesign.p12 myApp.apk myApp.air
    (PS:-The AIR file must use the AIR 2.5 (or later) namespace in the application descriptor file.)
    You seem to using the wrong the keystore argument.
    -Varun

Maybe you are looking for

  • La Cie External Hard Drive has trouble mounting!

    I have a similar problem to some of those that have posted,but any help is appreciated. I have a 160GB La Cie Porsche external hard drive that will not mount on my desktop of either a G4 running 10.3 or an ibook running 10.4.4. In both instances, I t

  • File content convertion for multi mapping occurance 1:N

    Hi ALL, In my scenario i have used multimapping means 1:N, In my scenario the sender is file adapter and receiver is JMS adapter. My requirement is that i have to pick the file from respective directory path... through file content convertion For exa

  • Log which records are exported?

    Hello, On 11G: I'm using datapump to keep 2 databases in sync. When exporting data with expdp the query-parameter is used to filter data from the tables - not all data need to be synced all the time. Now I'm wondering if there is any way to log the n

  • Error msg. PS cc 2014. The pattern is bad or corrupted.

    I installed PS cc 2014 and things seemed to work OK. Then I tried installing plug-ins.  Now I get an error msg. when I pull up PS either by itself or thru LR5.  It says The Pattern is bad or corrupted.  When I click OK everthing seems to work OK.  Wh

  • HT1773 Unable to erase and re-install leopard OS in my macbook pro

    Hi all I wanted to re-install my macbook pro by using installation CD (given by apple). But when I tried to restart, unable to restart the computer even I was holding the C key. How can format and re-install? Kindly help Regards Suresh