Modifying a Flex application to an AIR application

Hi,
    I am currently developing a prototype application which runs locally and not all functionality need be working, especially the file uploading/downloading and file browsing capabilities, due to  time constraints. In working I setup a flex application, and now realize that same functionality could be handled in a  more gracious fashion by AIR.
     My question is how much more work is it modifying my prototype into a full AIR app when the time comes?  I have a feeling it is not as easy as just including some AIR classes into my current prototype, right? And would I be better off, creating a new flex 3 project altogether, and repurposing what code needs to be re-purposed? 
    For example, I might need the ability to import custom artwork to be displayed in the application, which comes from the local filesystem, but can be saved or sent to a remote server. Initially, I used the FileReference class, but now am pondering if using adobe AIR would cut my development time, now and in the future.
Any enlightenment would be helpful, since from reading the documentation on Adobe AIR, I'm not quite sure of where the line in the sand is drawn between its framework and flex's framework is drawn.
vErGo_O

It could be as easy as changing the Application tag to WindowedApplication and creating an application descriptor file.
I'm not sure if you can change a Flex web project into a desktop project, so you might have to create a new project in the F. Builder IDE. (If you are using the command line tools, that's not an issue.)
As to the "line in the sand," AIR is at the same level as Flash Player (in the browser or standalone). The Flex framework runs in either. There are a handful of features in Flex that work in AIR , but not in Flash Player (because they use AIR-only APIs).

Similar Messages

  • Flex application running under AIR takes a long, long time to start.

    I have a flex application which runs on a desktop under AIR. The application has an assets folder with 3,500 mp3 soundclips totalling about 50MB. The problem is, the application takes around 90 seconds to load. I'm sure that AIR is scanning the application folder and doing something with the contents because if I delete the assets folder it loads in about 5 seconds. Does anyone know why AIR/Flex would do this, and why it doesn't exhibit the same problem if I run or debug in Flexbuilder on eclipse? It's making my killer app unusable!
    Thanks
    Paulo

    Well, I've spent a bit longer looking at this now, and the problem appears to lie with my encrypted local store. The first thing that happens is for the app to read the product key from the ELS. But, it fails (for some unknown reason). So, the app seems to hang there for 90 seconds until it eventually renders the welcome screen. If I remove the assets folder it still fails to read from the ELS, but only takes a couple of seconds to start the welcome screen. This is where the scanning of the application folder seems to come into play, because if I remove the code which reads from the ELS the app starts within 2 seconds whether the asset folder is there or not.
    I think the slow startup and the scanning of the assets folder are just symptoms of a different problem, i.e. a problem with the ELS. I don't have the same problem with my development environment though - it's only when I test deploy the application.
    Thanks for your help on this problem EgorKDie. I think I should be able to resolve it once I can sort out why the ELS is being awkward.

  • How to Call a AIR application from Flex Application

    Hi,
        I have Used AIR (Desktop application) in Flex Builder to Upload a File from a local path and save it it a server path.
    I need to Call this AIR(Desktop application) from my Flex Application.... i.e
    I am using a link button to send a event using Script and Forward that Desktop application  from Flex Screen
    But it doesnot load that (Desktop application)  in Screen. Only Balnk screen is loaded from path
    Here is the code
    AIR(Desktop application)
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="openBrowseWindow();">
    <mx:HTTPService id="urlpath" showBusyCursor="true" useProxy="false" method="
    POST" url="http://localhost:8080/nat/FlexAction.do?method=UrlPath"result="pathresult(event)"
    fault="faultHandler(event)"
    >  
    </mx:HTTPService> 
    <mx:Script>
    <![CDATA[
    import mx.events.FileEvent; 
    import mx.rpc.events.ResultEvent; 
    import mx.rpc.events.FaultEvent; 
    import mx.utils.ObjectUtil;  
    import mx.controls.Alert;
    private  
    var openFile:File = new File() 
    private  
    function openBrowseWindow():void{openFile.addEventListener(Event.SELECT, onOpenFileComplete);
    openFile.addEventListener(Event.OPEN, load);
    openFile.browse();
    private  
    function load():void{Alert.show(
    "load"); 
    var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png"); 
    //var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf"); 
    var allTypes:Array = new Array(imageTypes);openFile.browse(allTypes);
    private  
    function faultHandler(event:FaultEvent):void { 
    //Alert.show("Fault")Alert.show(ObjectUtil.toString(event.fault));
     private  
    function pathresult(event:ResultEvent):void{Alert.show(
    "res") 
    //Alert.show(ObjectUtil.toString(event.result));}private  
    function onOpenFileComplete(event:Event):void{ 
    //mx.controls.Alert.show("event: "+event.target.nativePath +"UR!!!"); 
    var pPath = event.target.nativePath; 
    var parameters:Object = {FlexActionType:"PATH",path:pPath};  
    // Alert.show("Image Selected from Path : "+pPath); urlpath.send(parameters);
    //Alert.show("Passed.."+parameters);}
    ]]>
    </mx:Script>
    <mx:Button click="openBrowseWindow();onOpenFileComplete(event)" name="Upload" label="Upload" x="120.5" y="10"/> 
    Here is Mxml Code for Flex Application
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="http://ns.adobe.com/air/application/1.0.M4" >
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert; 
    private function Upload():void{ 
    // CursorManager.setBusyCursor();  
    //var url:String = "HomeAction.do?method=onLoad"; 
    //var url:String = "assets/Air.swf"; 
    var url1:URLRequest = new URLRequest("assets/Air.swf");navigateToURL(url1,
    "_self"); 
    // CursorManager.removeBusyCursor(); }
    ]]>
    </mx:Script>
    <mx:LinkButton id="up" click="Upload()" x="295" y="215" label="UpLoad"/>
    In this code i forward using s url to Open tat  Desktop application but a blank screen appears with out the proper output...
    Please Help me in this to forward AIR from Flex Screen..
    Thanks in Advance
    With Regards
    Gopinath.A
    Software Developer
    First Internet Systems Pvt. Ltd.,
    Chennai

    try this
    http://www.leonardofranca.com/index.php/2009/09/17/launching-an-installed-air-application- from-the-browser/
    regards
    Leonardo França
    Adobe Certified Expert Flex 3 with AIR
    Adobe Certified Expert Rich Internet Application Specialist v1.0
    Adobe Certified Expert Flash CS3 Professional
    Certified Professional Adobe Flex 2 Developer
    Adobe Certified Professional Flash MX 2004 Developer
    http://www.leonardofranca.com
    http://twitter/leofederal
    Manager AUGDF - Adobe User Group do Distrito Federal
    http://www.augdf.com.br
    http://twitter/augdf

  • How to load a FLEX application in an AIR desktop application.

    I am creating an AIR desktop application (mx:WindowedApplication). I need to load another remote FLEX application (mx:Application) inside my AIR application.Is it possible ? If then ,please mention how to achieve this ..

    If it is bundled with the air app, then it's as easy as using the SWFLoader class.
    If it's loading from a remote host, you need to load it into your app as a ByteArray first.
    More info here: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
    The example is for Modules, but the principal is the same I believe.

  • Consuming toPDFA and isPDFA methods in DOCConverterService in Flex Builder 3.0 AIR Application

    Hi All,
    Does anyone have sample code how to consume and use the Docconverter service from Adobe Livecycle 8.2 ES in Flex Builder 3.0 AIR Application. I want to consume both the methods 1) toPDFA and 2) isPDFA methods to convert a PDF to PDFA and to check the compliance after conversion. If any one could help me in this, would be very grateful.
    Thanks in advance
    Umashanker.K

    I think the problem you are experiencing is this one:
    http://subclipse.tigris.org/issues/show_bug.cgi?id=511
    You probably have Subclipse 1.2.4 installed, which is the
    latest official release. But the new release based on Subversion
    1.5 has been in development for over a year. It will be version
    1.4.0 and probably released next week when Subversion 1.5 is
    released.

  • Flex 4.5.1 AIR 2.6 android mobile application

    I am trying my first Flex(4.5.1)/AIR(2.6) mobile application for android. I am using Flash Builder 4.5.1. I am able to run the application on desktop selecting the Target platform as Google Android and Google Nexus One as device to simulate. But I am facing problem in running the application on device. I exported the application for Google Android, it resulted in a HelloWorld.apk file. Then I installed it on device, it was installed with Success. When I tried to launch the application, I was getting blank screen. As my device was attached to my PC, I collected the logs. The logs were as follows:
    01-12 06:54:45.625: INFO/ActivityManager(95): No longer want   android.process.media (pid 7237): hidden #16 01-12 06:54:47.205:   INFO/ActivityManager(95): Starting: Intent {   act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]   flg=0x10200000 cmp=air.HelloWorld/.AppEntry } from pid 178 01-12   06:54:47.595: INFO/ActivityManager(95): Displayed   air.HelloWorld/.AppEntry: +343ms 01-12 06:54:52.665:   DEBUG/dalvikvm(178): GC_EXPLICIT freed 23K, 52% free 3122K/6407K,   external 5443K/6797K, paused 60ms
    Please help me out I am unable to see the application after launch.
    Thanks in advance.

    Hi,
    Earlier it was not installed. So it prompted me to install AIR. Then I installed it. So AIR runtime is installed on device.
    The code i tried to was:
    http://devgirl.org/files/ViewTransitionsSample/ViewTransitionsSample.fxp
    Thanks for trying to help me out.

  • Adobe Air+ Flex applications to build from database

    Hi,
    I know how to create a Flex application from database.But
    when we are developing a flex application from database using Adobe
    AIR,i'm not able to run the application.It is throwing an error
    saying .xml file is missing.Can anyone help me out with
    this?

    In Flex, an application can be created from database by
    following the steps as follows:
    STEP 1. Create a new Flex Project and name it as for example,
    “FLEXDB”. Select the
    application type as “Web Application (runs in Flash
    Player)” and Application server type as
    “ASP.Net”.
    STEP 2. Go to Data->Create application from database.
    Select the project as
    FLEXDB”.Create a new Connection to SqlServer 2005 and
    specify the database and name that connection
    as”TestConn”. Then select any table (for example
    DashboardRegion) from the list of tables and click
    “Next” button.
    STEP 3. Select the Server language as “C# with Web
    Services”. Click “Finish”.
    STEP 4. Then the following files and folders will be created
    under the project “FLEXDB”
    automatically.
    • DashboardRegion.mxml -- is a design page.
    • DashboardRegionScript.as -- defines web service
    object and capture the results and assigns the results to the
    corresponding UI Component.
    • DashboardRegionConfig.as -- calls the Web Service
    file.
    • DashboardRegion.asmx -- calls the Class Files
    (DashboardRegion.cs file).
    • Web.config – defines the Connection string
    • App_Code is a folder which contains the following
    files
    o DashboardRegion.cs that interacts with SQL Server 2005 and
    return the results.
    o TestConn.cs that defines connection to SQL Server 2005.
    STEP 5. Run the application “DashboardRegion.mxml
    ”.We can see the Database results
    Fetched and displayed in the corresponding UI Component in
    the output.
    Now we are trying to create a Similar Flex Application using
    Adobe AIR.
    For this, we have to follow similar steps mentioned as above
    with a slight modification in STEP 1. It will be as follows:
    STEP 1. Create a new Flex Project and name it as for
    example, “FLEXDB”. Select the
    application type as”Desktop Application (runs in Adobe
    AIR)” and Application server type as “ASP.Net”.
    The remaining steps are same as above.
    When we try to run the application
    “DashboardRegion.mxml”, it is throwing an error saying
    “DashboardRegion-app.xml” file is missing. To solve
    this issue we tried creating “DashboardRegion-app.xml”
    file manually, the application is running but, again throwing an
    error saying “Unable to load WSDL. If currently online,
    please verify the URI and/or format of the WSDL
    (../DashBoardRegion.asmx?wsdl)”.
    Can any one please suggest a solution for this?
    Or Help me how to connect sql server 2005 in the Adobe AIR
    application that are buid using Flex builder.

  • Air application loading flex applications(no Air) with flex linked as RSL.

    Hello
    I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
    The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
    public class CrossDomainRSLItem extends RSLItem
         override public function load(progressHandler:Function,
                                      completeHandler:Function,
                                      ioErrorHandler:Function,
                                      securityErrorHandler:Function,
                                      rslErrorHandler:Function):void

    Hi again.
    Is there any way to reliably edit the trust files with AIR application?
    As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
    Thanks in advance for you help.
    Ps: Right now I am trying to patch this.
    I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application)

  • Regarding Flex application in Adobe Air

    I> I developed a flex application using FLEX BUILDER3. My
    main.mxml and background image file was under src directory in flex
    project. There was a folder named history under which
    index.template.html was present. I inserted the javascript code
    inside this html file. I want to convert the same flex application
    to a desktop application. So I created a new project as a desktop
    app and copied the mxml file and background image file under the
    src directoy of the project. I am not able to see a folder named
    history. I dont know where and how to insert the javascript and
    html code for creating desktop air application
    > Also the backgroundimage file is not getting display in
    the window. Not sure why is it so. I had inserted the JPEG

    The ability to package Composite Applications in AIR is currently available
    as a limited release, 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 UI
    Components that allow developers to control the loading and placement of
    Tiles or entire AXML Applications within the AIR application. There are
    samples and documentation available.
    As for mobile, there is work underway to support Mobile AIR applications
    scheduled for an upcoming release.
    Matt

  • Loading pdf file in flex application (not in AIR)

    Hi,
    Could any one suggest opening pdf file within flex application with blazeds.
    we have used the following code to open pdf file in the same window
    navigateToURL( new URLRequest( "http://localhost:8080/PdfSample/jsp/PdfContent.jsp" ),"_self");
    But we want to load the pdf file in a vbox.Similary to the below image
    Is it is possible to load pdf file in flex application,if so how can we achieve it

    Hello Mariush,
    I have to display the content of the PDF in the flex application. If not PDF directly, is there other workaround for this. Or can I display the content of the MS word file, if not PDF.
    Thanks and Regards
       Khalid Chaudhary

  • New Adobe AIR  + Flex Application

    Hey Folks,
    We are excited about the launch of our app built on Adobe AIR. The Public Beta of it was launched yesterday.
    It's a backup software/service with free local backups to your disk/drives and online backups to the Amazon Cloud.
    Check it out at http://home.vembu.com/
    The UI is Flex-based and Adobe AIR
    -Dhamu

    Hi,
    Try setting myhtml.htmlText = "" before doing the removeAllChildren.

  • Adobe AIR  + Flex Application

    Hey Folks,
    We are excited about the launch of our app built on Adobe AIR. The Public Beta of it was launched yesterday.
    It's a backup software/service with free local backups to your disk/drives and online backups to the Amazon Cloud.
    Check it out at http://home.vembu.com/
    The UI is Flex-based and Adobe AIR
    -Dhamu

    Is there any other way to install PDT?
    Thanks.

  • Workspace no longer works when using flex application as Form

    Hi,
    I've got a problem in the Workspace with one of my process that use a flex application as form.
    I used the tutorial "Creating Flex® Applications Enabled for LiveCycle® Workspace ES" to create the flex application and it works well in the workspace (displays ok and datas well passed to the process).
    The task completes well because my process fires the next step with all the datas filled in the task.
    But after the end of the task (when I click on the submit button of the form) the Workspace is no longer usable.
    I can no longer access preferences, messages, starting process panel... when a click on an item in any Menu nothing occurs. Everything is blocked.
    I must restart the Workspace to be able to use it again.
    Can someone help me please?

    I think I have it solved, will check...
    When modifying, the P3 in the go url was left out. what was P2 should be P3 and the correct P2 would have the table.column name.

  • Create a folder in desktop with flex application?

    Hi,
    i want to create and save a folder in my computer using my flex application, so is there an actionScript function to do this?
    Thank you,
    Celine

    I do not believe this is possible to do with a browser based application.
    But, if you run your app in AIR you can do use the Flash.filesystem
    class to create a directory:
    http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html

  • HTML page in a Flex Application

    Hello !
    is it possible to insert an HTML page into a flex application
    i don't know where to search about the component HTML (Adobe
    AIR) and how use it ...
    Nicolas "The Newbie "

    Here's a link for you to start with:
    http://www.codeapollo.com/showthread.php?p=3367
    enjoy =)

Maybe you are looking for

  • Looking for a client side JAXP-RPC HandlerChain example

    I would like to add a handler to the client side of a RPC call using 7.0.1. I can't find any examples to follow for this logic in WebLogic or at Sun's site. Does anyone know of some sample code I can browse to? I believe I want to add some files as a

  • MobileMe Gallery Widgets - 3 Curious Questions

    Have created and published an iWeb site which basically consists of one page, onto which I’ve positioned six MobileMe Gallery widgets. In the window for each of those widgets I’ve selected a particular MobileMe Gallery published from Aperture, each o

  • How do I check what photos are in the cloud?

    I just replaced my iPhone and I dont know how to push photos & videos from the cloud to the new phone.

  • How do I log in to Creative Cloud within Photoshop CC?

    I'm a CC subscriber. I'm logged into Creative Cloud Mac desktop application. In Photoshop I need to access my libraries but it says I'm not logged into CC. Under preferences, Sync Settings, it also shows I'm not logged in but it provides no place to

  • Custom Selection Listener not getting fired

    I am using JDeveloper 11.1.1.4 and have been trying to follow the advice given in the ADF Code Corner example 68. The only difference in my application/project, is that I am trying to develop the master table on a page fragment with a task flow attac