Web application open in Adobe AIR

Hello

I am trying to download an XML file using a web application using an ajax submit to a hidden iframe form, as a manager of a button:

                        if (!Ext.fly('frmDummy')) {
                            var frm = document.createElement('form');
                            frm.id = 'frmDummy';
                            frm.name = id;
                            frm.className = 'x-hidden';
                            document.body.appendChild(frm);
                        }
                        Ext.Ajax.request({
                                url: ajaxurl,
                             method: 'POST',
                            disableCaching     : false,
                            isUpload          : true,
                            params: {
                                  action          : 'extjs_export_alloc'
                             },
                            form               : Ext.fly('frmDummy'),
                            scope               : this,
                            success: function(response){
                                  
                            },
                            failure: function(response){
                                
                            }
                        });

and my backend php headers are:

Header ("Content-Type: application/octet-stream"); Header ("Content-Transfer-Encoding: binary"); Header ("Content-Disposition: attachment;") filename = export. XML; ») ; Header ("Content-Type: text/xml"); header ("Pragma: non-cache");    header ("Expires: 0");

This works in any browser, including IE, but does not not on Adobe AIR.
I searched the Web for the answer and it seams that Adobe AIR can not handle very well with the headers:

Content-Disposition: attachment;

Can you please tell me if there is a solution for this?

Thank you

I think that you need to implement the function "save under" yourself. Please refer to the following code:

function download (): void
{
var request: URLRequest = new URLRequest ("http://help.adobe.com/en_US/air/admin/air_admin_guide.pdf");
var loader: URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener (Event.COMPLETE, completeHandler);
Loader.Load (request);
}
  
function completeHandler(event:Event):void
{
var loader: URLLoader = URLLoader (event.target);
var fileRef:FileReference = new FileReference();
fileRef.save (loader.data, "air_admin_guide.pdf");
}

I hope this can help!

Thank you

Yang

Tags: Adobe AIR

Similar Questions

  • Muse does not open. Adobe AIR the required native extension is missing for this application...

    Muse does not open. "Adobe AIR the required native extension is missing for this application...". »

    Any ideas?

    Hi Curt,.

    Please try after the sequence of steps to make it work.

    1. uninstall any version of AIR on your computer using the Adobe AIR * remove Adobe AIR

    2 uninstall Muse to your machine using cleaning tool CC use the Adobe Creative Cloud cleaning tool to solve installation problems

    3 uninstall the applications Manager Adobe as well use the Adobe Creative Cloud cleaning tool to solve installation problems

    4. install AIR runtime 19.0 https://helpx.adobe.com/air/kb/archived-air-sdk-version.html

    5. install the applications Manager Adobe Download Adobe Creative Cloud apps | Adobe Creative Cloud free trial

    5. once the MAO is installed then install muse and launch it.

    Kind regards

    Vivek

  • Web banner of Adobe Air

    Hello

    I'm developing a desktop application in flex, Adobe Air, I want to show an ad.

    The announcement must come from a website... If they change the announcement in this wesite it should change automatically in the office appication...

    Is this possible to do?

    Thank you

    Shanthi.

    Yes. Just check each time you start the application or in certain intervals of time ad in the website. You can compare the ads in the website and announcement in your application in sizes in bytes or more security - set some (highly variable) flag on the Web site. If size in bytes or just changed flag download this image/swf in your application.

    Best way:

    Just write audit work side server in php (or anything else) and call this function. If the true return just download this image/swf. There are millions of ways to do

  • FLV support in Adobe AIR application

    Hi all

    I am very new to Adobe Air application. Using Adobe AIR is possible to read .flv files... Any help will be appreciated.

    Yes, they're going to play.

  • Help! Run any AIR Applications without Adobe AIR.

    Hello, I wanted to ask that is it possible to run AIR applications without having Adobe AIR on your computer. It is really annoying when you have to give your application to use someone, and then the person needs Adobe Air to run it. Any suggestions?

    Where to start...

    AIR is a bit like Java, in the sense that it requires a runtime must be installed. This engine has all the "stuff" that allows the application to run. Similarly, applications like 3DMax or Word require the operating system to be present for them to run. These programs are written using the API calls that are in the target operating system. Similarly, AIR and Java apps are written using the API calls that are present in their execution. To bring a full turn, the AIR is an application written in C, that uses the API for the target operating system. Thus, when you perform certain functions within the AIR, he knows how to execute the necessary functions of the operating system (if necessary). AIR also provides a large number of higher level and management features that make your life as a programmer much easier.

    Look at iOS or Android, we have the occurrence of the thing. Some developers write applications using Objective-C (iOS) or Java (Android) which are using the APIs specific to these operating systems. It's the same as writing your application in C like 3DMax.

  • Composite Application in Adobe AIR?

    Hi all

    We are trying to build a Composite Application solution that could be deployed in the desktop and mobile. We believe that such a request should be an air package that work seamlessly.

    We have a few issues on the Applciation Composite frame:

    1. How can we package Composite Applications run in Adobe AIR?
    2. If composite applications running in the AIR, then we can create projects mobile application to run Android, iOS, etc...
    3. are there any sample that we could cross? Is there a way we can run the current College samples in the AIR and also on IPad?

    Kind regards

    Séverine

    The ability of the Composite Applications in AIR is currently available

    as a limited version, so if you are interested you will need to contact your

    sales channel for more information.

    The technology includes a library (mosaic - mxml.swc) that contains the user interface

    Components that allow developers to control the loading and the establishment of

    Tiles or whole Applications of AXML within the AIR application. There are

    samples and documentation.

    With respect to mobile, there is ongoing work to support Mobile AIR applications

    planned for a future release.

    Matt

  • (1) acrobat cannot send the DDE command. (2) adobe air does not download the latest version

    (1) adobe acrobat pro can not open and always send message fatal errow "Acrobat cannot send the DDE command '.

    (2) one.    Adobe Acrobat cannot open because adobe air cannot successfully download the latest version
    Reader adobe b. cannot create PDF because adobe air cannot successfully download the latest version

    Hello

    ·         What operating system is installed on your computer?

    ·         Did you do changes on the computer before the show?

    Question 1: Acrobat could not send DDE command

    Try to launch acrobat in safe mode, follow the steps:

    a. press on and hold the SHIFT key and double click on the acrobat icon and open a pdf file.

    b. If it opens without crashing after about 15 seconds, then you have a faulty plug in, locate and remove it from your plug-ins folder.

    c. to remove the plug-ins, you can contact the Support of Acrobat

    Question 2: Adobe air download does not last

    You can try to Uninstall and reinstall the program.

    Let us know if this information useful.

  • Maximum file size for Adobe air for iOS and Androind update apps

    Hi all

    I'm working on a project that has a few videos I need to group in my mobile application for an Ipad app that I created using Adobe Air for iOS. My question is simple there at - it a maximum file size limit on applications compiled using Adobe air for iOS? And if yes what is it? Any help would be great.

    best regards Mike

    It is not a limit.

  • problem downloading mobile app built with Adobe AIR at the Apple Store

    We have built our mobile application using the Adobe AIR platform not Apple XCode.  Everything went very well throughout, we were able to create all the required certificates and provisioning profiles for development and test the application on real iPhones (3GS and 4) and cross the whole iTunes Connect meta data entry process, but now, when we try to download the binary file into the Application Loader, we keep getting this error when we try to download :
    "Application has no codesign verification.  The signature was invalid, or it was not signed with a certificate of presentation of Apple. »
    Would like to understand how to solve this problem...
    Thank you very much
    Birgitte

    Kept the com.company part? It is normal not to use numbers at the beginning, but I am surprised if you ran it without using the com.company bit.

  • Adobe AIR applications open to black screen in iOS 8

    Adobe AIR for iOS apps that I've published using Flash Professional CS6 more to properly run on iOS 8. They worked well in the iOS 7.

    After opening, they just cling to a black screen (probably the launch screen - I don't have an image for this).

    Is this a known issue? Are there solutions?

    I found an answer--applications have been published using the AIR SDK 3.4, which I think does not support iOS 8.

    Republished with 15 latest AIR SDK and it works properly.

    Guess I'll have to republish everything.

  • Visit a website in Adobe Air Application behind the scenes...

    Hi all

    I need to find a way in Actionscript 3 for an Adobe Air application to visit a url of a website (e.g. example.com) in the background without Adobe Air by opening a web browser.

    Once the website is loaded in the background, I would get all the URL link that can see the Adobe Air application. For example, maybe when you visit "example.com" it redirects to "google.com", so I want my application to send me any URL it sees after it loads the page.

    Is this possible, and is there an example of code anywhere?

    Thank you guys!

    I think that you can get the information you want using URLLoader with a listener for HTTP_RESPONSE_STATUS and check the responseHeaders and responseURL properties:

    HTTPStatusEvent - Adobe ActionScript® 3 (AS3) QAnywhere

    -Aaron

    http://abeall.com

  • Cannot open the Muse due to issue with Adobe Air

    Mac OS 10.6.8 on a 2.4 GHz Intel core Duo w 4 MB of ram

    Muse v.7.4.30, worked well until - while trying to open, I was prompted to update Adobe Air. I have so much and now cannot open Muse.

    A warning window says:

    "This application requires a version of Adobe Air, which is not found."

    • I uninstalled the 'new' version (from AA)
    • downloaded an older version on the adobe website - v.17.
    • restart the computer.
    • v.17 installed
    • restarted the computer and still could not open the Muse - with the same alert pop up.

    anyone?

    Try to download and install version 19 instead of 17.

    More info: Re: what version of Adobe Air is required for running what version of Muse?

  • Someone else is having their iOS Adobe AIR app crash in the first second of its opening?

    Someone else is having their iOS Adobe AIR app crash in the first second of its opening?

    I use the iPhone 6, iOS 8.1.3, with a development certificate.

    With Adobe AIR SDK 16.0.0.283 and now with 17.0.0.93, after compiling the application (whether release or debug mode), before the getTimer() app can never reach 999 milliseconds the app will crash. Any code that I have, it just hangs before the runtime can never reach the first second.

    Anyone else having this kind of behavior?

    Chris,

    Thanks for your quick response. I found a way to reproduce. It is on the interfaces, and when I try to call a method with an interface of the application hangs. I think it's related to interface with several parameters. I have connected the bug here:

    Bug #3935199 - iOS App crashes when you call a method of objects via interface

  • Installation of Adobe Air Application Installer error office history

    It's really driving me crazy already.

    Whenever I try to install the Application from the website of history, it says I have to install Adobe Air. So I click on Install, it shows the progress bar on 100%, then an error window. The header of the window reads "Adobe AIR installer" and the main section of the window has "couldn't write the application on the hard drive. Please check that the disk is available and try again. "- there's a retry and cancel. Retry does it all again with the same results.

    No, I had not previous versions of Adobe Air. So I tried to install direct AIR from the Adobe website, and he moved very well. So I return to the page Web Story and try to reinstall the Desktop Application and the exact same game events as described above occurs. I uninstalled the installation of AIR, tried again, same result.

    I previously had Production Premium CS3 and installed UPGRADING Production Premium CS5. All the programs work like a charm!

    I'm on Windows 7 64-bit with 208 GB free on my C drive, as well as more than 500 free gig over two other disks. 8 gig memory and two video cards Nvidia Rechaudia FX 3500 (if that matters at all). Full administrator rights to the PC, without this is limited in any way.

    A quick search on Google shows many other people having the same problem, just not known miracle I found!

    Help!

    PS - I have a picture of the error message, but the insert image link is grayed out and won't let me add anything to this post.

    Hello

    We are sorry that you are facing this problem.

    Could you please try it one more time with an extra step of refresh the page of history after the installation of AIR.

    ...

    So I tried to install direct AIR from the Adobe website, and he moved very well. So I return to the Web Story page (REFRESH the page of history here) and try to reinstall the Desktop Application and the exact same game events as described above occurs. I uninstalled the installation of AIR, tried again, same result.

    ....

    History of the controls for AIR install status on the machine at the time of the launch. So, if the application was launched first, and then the AIR installed, the application won't know the update AIR install status. As a result, refresh the page of history should work. Another way would be to install the soft AIR first and then launch the application.

    Thank you for reporting the problem and we'll work on fixing it soon.

    In case still face you any problem, feel free to post back: sunny at adobe dot com.

    Kind regards

    Sunny

  • How to convert the code to the CAA for adobe air applications

    Hello

    I have developed an application using the CAA and now wt I want is I want to convert this application in adobe air desktop application so is it possible if yes please help me so that it can be useful to me

    Hello

    When you create a project, you can select Desktop application (AIR) instead of the Web Application. If you have already built the project, you can then use the parameter similar just create a new Desktop Application and copy the files.

    Thank you

    Hironmay Basu

Maybe you are looking for