Different behaviour air apps running in flex builder or standalone

Hello,
<mx:HTML location="
http://www.google.com"
id="myBrowser">
I try to get the mouse selected text in my browser with the
following javascript bridge :
myBrowser.htmlLoader.window.getSelection().toString()
That work fine when my apps is running throw the flex builder
IDE.
But when it running as a standalone on the same computer, I
get an empty string.
Do you know why ?
Thanks
Ben

Very helpful! Should be placed in the blazeDS docs!
Chris

Similar Messages

  • Problem Installing Adobe Flex Builder 3 (Standalone)

    I have attempted a few times today to install the Flex Builder 3 standalone file, but I am having issues. I am currently using Adobe CS4 Design Premium on my computer.
    I am new to this type of application development.  Currently, I mainly used flash to create my interactive applications, but I need to branch out to create more complex applications.  As I already know actionscript 3.0, I was interesting into getting into Flex.  I do not know Javascript, C++, etc.
    Once I download the standalone file to my desktop and run the installer, I do not choose to download Flash Player 9 because I already have nor do I choose do download the Coldfusion or JSEclipse Plug-in as I do not have Eclipse on my computer (it comes with the standalone as I have been led to believe).  After running the installer, it almost gets to the end and then I get the following error message:
    I click OK, it finishes the install and says
    I go to the log file and get the following:
    !SESSION 2010-02-24 16:22:40.424 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -application org.eclipse.update.core.standaloneUpdate -command install -from file:\C:\Program Files\Adobe\Flex Builder 3\com.adobe.flexbuilder.update.site/ -featureId com.adobe.flexbuilder.feature.standalone -version 3.0.214193
    Command-line arguments:  -application org.eclipse.update.core.standaloneUpdate -command install -from file:\C:\Program Files\Adobe\Flex Builder 3\com.adobe.flexbuilder.update.site/ -featureId com.adobe.flexbuilder.feature.standalone -version 3.0.214193
    !ENTRY org.eclipse.update.core 4 0 2010-02-24 16:22:44.799
    !MESSAGE Cannot install featurecom.adobe.flexbuilder.feature.standalone 3.0.214193
    Can anybody help me on this?  Is there something I missing prior to download?

    We're in the same boat here - the the behavour of xsd:all in
    BETA 3 renders our Flex app virtually useless because of
    communication issues with the backend webservice. We have studied
    the proposed workaround suggested, unfortunately we only control
    the FLEX app - we do not control the WS we have to integrate with.
    As a result we've gone back to BETA 2 to do some critical
    changes in the software but the "Beta expired." message we've been
    receiving is really not well received. As we have been very
    proactive in supporting development in the BETA phases including
    reporitng bugs, we think that Adobe shoudl also have some
    flexibility here and offer ways to extend the BETA 2. We're not
    asking for any type of support during that phase - purely the
    ability to compile our source until we can implement the full work
    around which will allow the software to run on BETA 3. The
    suggestion to change dates or go to previous restore points do not
    work well here with our numerous developers.

  • AIR app and Flex app in same Flex builder project

    Hi,
    I've developed a flex app with a lot of custom components.
    Now I want to create a desktop version of the same using the same
    exact same components. Is it possible that I add an mxml
    application, make it a WindowedApplication and compile it to
    produce an AIR app? Or are there any workarounds to accomplish
    this.

    Easiest way I have found is to complete your Flex Web app.
    Then create a new Flex AIR app and then copy code from your working
    Flex Web app over.
    Yes, you end up with two complete sets of code, but if that
    is going to become an issue with keeping both versions up to date
    you can simply use one set of source.
    To do this, create two projects, one Web, one Air. Then you
    can create a third folder (not project) that contains all the
    common code.
    In each of your projects, simply import the code you want to
    use using the project options.
    No, not ideal, but does work. Would be nice to see Flex
    Builder changed so you can have rooted projects.
    E.g. A project called "MyBigApplication" that isn't targetted
    at any platform. Within this you could then produce sub-projects
    that target a particular platform, be it web or air but share code.
    Maybe in the next version.....
    Cheers
    Ian

  • Air 2.0 in Flex Builder 3

    I need to use the NativeProcess API available in Air 2.0 so went about doing this by including the Air2.0 SDK in Flex Builder 3 which gave me access to the APIs. I wrote my app and it worked beautifully within Flex Builder 3.
    However, when I export a release build (.air file) and attempt to install it I get the following error:
    "Sorry, an error has occurred.
    This application requires an update to Adobe AIR that is not available for your system.
    I have installed Air 2.0 on my system (done it several times to make sure).
    I have the following namespace in my .xml file:
    <application xmlns="http://ns.adobe.com/air/application/2.0beta"> 
    Could this be the issue?
    If anyone can shed some light on this that would be great.
    Was looking forward to using the features offerred in Air2.0 but am at a stand still now.

    Hi Neha,
    Again thank you for your help but unfortunately still cannot get this working, I have resorted to using the exact files (except the swf) and instructions at http://www.adobe.com/devnet/air/flex/quickstart/interacting_with_native_process_print.html to try and get some sort of example of NativeProcess working and after some tweeking got it to build the exe but running it gives me the same error i started with:
    "This application requires an update to Adobe AIR that is not available for your system."
    One of the tweeks i made was to the namespace in the xml file, it had to be:
    <application xmlns="http://ns.adobe.com/air/application/2.0beta">
    http://ns.adobe.com/air/application/2.0 was not recognised running the adt command (got error 102: invalid namespace).
    I really want to be able to get this working so I can determine if NativeProcess is the solution to my project.
    Maybe if I explain my needs you could possibly offer a better, proven solution:
    I have an existing Air desktop app (originally Air 1.0) that is invoked from the browser, I would like an additional feature to this app that executes a command line call to make something happen on the users machine - specifically add a track to the users iTunes library.
    Any ideas would be greatly appreciated.
    Thanks,
    Bilge.

  • Can't install air app generated from Flex

    Hi, I have just installed the new Flex Builder 3 on my
    Windows Vista Home Premium. One of the first thins I did was to
    create a very simple air project (one centered button only). I
    inmediately exported it as an *.air file to my desktop to see it
    run! but it fails!!! Every time I run it, just after display
    "Getting ready to install this application" this error ocurs:
    Sorry, an error has ocurred. "The application could not be
    installed because the AIR file is damaged. Try obtaining a new AIR
    file from the application author."
    By the way, I installed the last air runtime from the net and
    installed and run perfectly well some air apps downloaded from the
    net.
    Any ideas?
    Leonardo

    Hi,
    I don't have an answer for your question but i think you can answer to my question, so i am using flex builder for my application and i need to test the creation of a folder on my desktop this can't be possible with a browser based application but it is possible with air application, but i don't know how to test an application or how to create an air application with Flex Builder, can you tell me if i have to install something other or to configure flex builder to do this?
    Thanks
    Celine

  • In my pc  my  AIR app  run correctly but when i try to open it in other pcs not run correctly

    hi friends
    any one can help me please...
    i had created air app very nice about my school ,so after i build the application and test it in my pc its run correctly without problems, but when i to try open after installed  it
    in other pcs the program not run correctly exactly show me empty window with progress dots like this :
    with my respects

    What are you expecting to display? Is it data? Images?
    It's possible that you've written your code such that it references a path on YOUR specific machine. Always try to avoid references to C:/ or /<yourUserName>/someFolder as you're not guaranteed that they'll exist on other machines.

  • Install error in Air application created in Flex builder

    Hi all,
    When I export the release version of an AIR project, and
    attempt to
    run the resulting AIR file, I get the error "The application
    could not
    be installed because the AIR file is damaged. Try obtaining a
    new AIR
    file from the publisher." This happens every time, with every
    project.
    I even created a new project, and tried exporting that
    project without
    adding any of my own code to it and still the same error. The
    export
    process does not generate any errors.
    I ' ve adobe cs3 and Flash Player 10. Adobe flex_sdk_3 and
    airsdk also installed.But .air file was can't install
    Thanks in Advance,

    hello tzeng,
    The air file was created by using Flex Builder 3 .One xml
    file and mxml file were used. The project export release the .air
    file (installer package ). When i install the .air file that error
    has occured.
    Thanks for reply,

  • Error in air application created by flex builder

    Hi all,
    When I export the release version of an AIR project, and
    attempt to
    run the resulting AIR file, I get the error "The application
    could not
    be installed because the AIR file is damaged. Try obtaining a
    new AIR
    file from the publisher." This happens every time, with every
    project.
    I even created a new project, and tried exporting that
    project without
    adding any of my own code to it and still the same error. The
    export
    process does not generate any errors.
    I ' ve adobe cs3 and Flash Player 10. Adobe flex_sdk_3 and
    airsdk also installed.But .air file was can't install
    Thanks in advance,

    hello tzeng,
    The air file was created by using Flex Builder 3 .One xml
    file and mxml file were used. The project export release the .air
    file (installer package ). When i install the .air file that error
    has occured.
    Thanks for reply,

  • Apps built with Flex Builder 2 - 3 not compatible with new Flash Players and/or new browsers, FB4 OK

    My applications built with Flex Builder 2 and 3 do not start in new versions of Flash Player and/or new browsers when run remotely. I have not been able to test all combinations of FP and browser versions but there is no problem with applications built with Flash Builder 4. Does anyone have info on this?

    Hi Dimitar,
    Did you close all the browsers (and applications which use
    Flash Player) when you install Flex Builder 3 Beta 3 or Flash
    Player? You can try manually installing it from <FB install
    location>/player/ directory. Here're some
    installation/unintallation instructions of Flash Player:
    http://labs.adobe.com/wiki/index.php/Flex_3:Release_Notes#Installing_Flex_SDK_3_Beta_3
    thanks,
    Sharon

  • How to get WTP on my Flex Builder 3 Standalone Version: 3.0.214193?

    Hello All,
    I have downloaded the Flex builder 3.0.2 from the adobe website, and am trying to install the WTP plugin for it.
    When i use this link http://download.eclipse.org/webtools/updates/ for getting the plugin it throws the error as :
    Java Persistence API Tools (2.1.1.v200902200210-7A79BjDZRDE7GUMQDJGD) requires feature "org.eclipse.platform (3.4.0)", or compatible.
    Any many more like this. I know my eclipse plugin version is 3.3 version.
    I am not sure how can i upgrade my eclipse which came with Flex builder standalone to the 3.4 version. And also is it possible to use standalone only as using the flex builder plugin in not an option for me right now.
    Or any other way if i can use Tomcat from Flex builder without using WTP ??
    Please help

    I've installed and it works fine but I've many plugins installed.
    Try to install WST (Web Standart Tools) throw FB and after that install WTP.
    For intalling WST follow this.
    In FB menu.
    Help - Software updates - Find and install...
    "Search new features and install" Next
    "Europa Discovery Site" Finish
    Choose any nearest mirror for your location.
    Find "Web and JEE Development" folder.
    There are "Eclipce XML Editors and Tools" and
    "Web Standard Tools (WST) Project" check them to install. This plugins requier some other plugins, so it's easer to click "Select required" button on left side  to check them all automaticaly.
    After that standart installing procedure: Licence agreement, downloading and so on.

  • Flex Builder 4.6 app runs fine in builder - exported release Air app flashes and dies

    I have tried exporting release build on more than one computer.
    I have successfully exported release builds of other projects.
    if I open the application's .exe file and scroll down I see this kind of stuff:
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
          R6033
    - Attempt to use MSIL code from this assembly during native code initialization
    This indicates a bug in your application. It is most likely the result of calling an MSIL-compiled (/clr) function from a native constructor or from DllMain.
      R6032
    - not enough space for locale information
          R6031
    - Attempt to initialize the CRT more than once.
    This indicates a bug in your application.
      R6030
    - CRT not initialized
      R6028
    - unable to initialize heap
        R6027
    - not enough space for lowio initialization
        R6026
    - not enough space for stdio initialization
        R6025
    - pure virtual function call
       R6024
    - not enough space for _onexit/atexit table
        R6019
    - unable to open console device
        R6018
    - unexpected heap error
        R6017
    - unexpected multithread lock error
        R6016
    - not enough space for thread data
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
       R6009
    - not enough space for environment
    R6008
    - not enough space for arguments
       R6002
    - floating point support not loaded
        Microsoft Visual C++ Runtime Library   
      ... <program name unknown>  Runtime Error!

    I have tried exporting release build on more than one computer.
    I have successfully exported release builds of other projects.
    if I open the application's .exe file and scroll down I see this kind of stuff:
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
          R6033
    - Attempt to use MSIL code from this assembly during native code initialization
    This indicates a bug in your application. It is most likely the result of calling an MSIL-compiled (/clr) function from a native constructor or from DllMain.
      R6032
    - not enough space for locale information
          R6031
    - Attempt to initialize the CRT more than once.
    This indicates a bug in your application.
      R6030
    - CRT not initialized
      R6028
    - unable to initialize heap
        R6027
    - not enough space for lowio initialization
        R6026
    - not enough space for stdio initialization
        R6025
    - pure virtual function call
       R6024
    - not enough space for _onexit/atexit table
        R6019
    - unable to open console device
        R6018
    - unexpected heap error
        R6017
    - unexpected multithread lock error
        R6016
    - not enough space for thread data
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
       R6009
    - not enough space for environment
    R6008
    - not enough space for arguments
       R6002
    - floating point support not loaded
        Microsoft Visual C++ Runtime Library   
      ... <program name unknown>  Runtime Error!

  • How can I compile an AIR app from the Flex-OEM Compiler?

    Hi all.
    As i've read in http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_1.html, you should run amxmlc or pass +configname=air param to mxmlc in order to compile an air application. Is there a way to do this with the OEM Compiler?
    Thanks

    I ran across this article, however it's for an earlier version of AIR. A version that used publisherID, however that is not required in the new air versions.
    http://blog.everythingflex.com/2009/06/08/open-an-air-application-from-a-2nd-air-applicati on/
    I tried creating this app without the pub id, didn't seem to work. I've got to get a certificate and get the pub id from that.

  • Adobe AIR app running fine on Adobe Flash CC but crashes when published

    Hi,
    I am developing an app for Adobe AIR. The app works fine when I compile it on Adobe Flash CC when I run it through the ADL. When I publish the app for Desktop and run it, I get the following error:
    VerifyError: Error #1014: Class flash.filesystem::File could not be found.
    This is strange, because it seems that actually, when I run the app outside Adobe Flash, the app is run through Flash Player.
    Any ideas?
    Thanks!

    Is the Intel your only graphics adapter, or are you running an ATI or nVidia card as well?

  • Error when trying to install any air application from my flex builder project

    I have a serious problem, I am unable to install any exported air file created in my AppTest project. I just keep getting an error saying: "Sorry, an error has occurred. The application could not be installed because the AIR file is damaged. Try obtaining a new AIR file from the application author."
    I am using FlexBuilder 3 to build and export my app release build. If anyone can help me I would greatly appreciate it.
    Adam

    I'd try un-then-reinstalling and making sure any overlay that you're applying (update of SDKs, etc.) are done correctly.

  • AIR apps won't launch from flex builder

    Hi,
    I am currently working on my first AIR app inside of Flex
    Builder 3. For some reason, when I try to launch, profile, or debug
    the app, it does it's normal "Loading.." message in the
    bottom-right corner, but will never launch. The loading message
    just disappears and the app never shows up. I do have the AIR
    runtime installed. I receive this message when trying to profile
    the application:
    Process terminated without establishing connection to
    debugger.
    Command:
    "C:\Program Files\Adobe\Flex Builder
    3\sdks\3.0.0\bin\adl.exe" "C:\Personal\Freelance
    Projects\MyBoatData_Prototype\bin-debug\MyBoatData-app.xml"
    "C:\Personal\Freelance Projects\MyBoatData_Prototype\bin-debug"
    Output from command:
    invocation forwarded to primary instance
    Can anyone help?

    If you are using mx:Application, you need to set visible as
    true in the app.xml file.
    Also make sure that no instance of adl is already running. If
    so kill that instance via task manager.
    Thanks,
    Gaurav

Maybe you are looking for