Converting Flex app into Air?

i wonder is there a way to convert a Flex 3 application into an Air app for desktop distribution?
thanks
krs

You can easily do this by changing the <mx:WindowedApplication> tag of the main app file to <mx:Application>.
Any other code that is AIR only, such as accessing the local hard driver with FileSystemTree, etc. must be removed, disabled, or modified as appropriate.
If this post answers your question or helps, please mark it as such.

Similar Messages

  • Converting the web app into AIR app leads errors

    Hi all,
    I am new to flex, i am trying to convert a web app into air app.
    I changes the tags and when i complie i get the below 3 error popups with dismis and continue buttons on the bottom right..
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Any help would be greatly appreciated.
    Thanks in advance.

    Thanks peter.
    commenting those lines avoids the first 2 errors but still i am getting the below errors.
    this is a microstrategy flex project.
    Error #1009: Cannot access a property or method of a null object reference.
    at com.microstrategy.web.vf.viewer::MstrWindowedApplication/handleCreationComplete()[Z:\Flex \projects\VisFrameworkAIR\src\com\microstrategy\web\vf\viewer\MstrWindowedApplication.as:9 9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9298]
    at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as :1169]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:718]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]

  • Existing Flex App With Air

    I have been working on a large Flex App using CFM as the db
    access layer. Essentially I understand that AIR will allow my RIA
    which is currently solely used in a browser run off line as a
    desktop app. However, my question is what's involved in modifying
    this application to push 'new' data added while off line back to
    the db when a connection becomes available.
    Some guidance on this subject would be great, or is this
    something which should require no modification?

    AIR doesn't give you any synchronization mechanisms. It's
    entirely up to you how you manage offline operation.
    What AIR actually does is provide an out-of-browser runtime
    environment for Flex apps, plus some additional APIs that Flex
    couldn't give you due to its browser-based nature. Among them are
    access to a local database, plus more generalized local filesystem
    access. Between these two things, you can store local changes while
    offline, then work out some way to push them to the server at a
    later time.
    You might make your first step into the AIR world just a
    simple port of the existing application to run under the AIR
    framework. This won't give you any new offline capability, but it
    will let the app run as a desktop app, outside a browser. This may
    make more sense for your type of application. Then once you get
    that going, you can worry about synchronization.

  • Reuse a Flex App as AIR application

    Hi!
    I've developed a Flex application and now I want to use it
    again with the same codebase as an AIR application.
    But there are several factors that don't work as expected.
    The Flex App uses some advanced features that make reuse a
    little bit complicated:
    I use the latest Cairngorm.swc in the app.
    I use ResourceBundles in the app.
    I often use "Application.application" in the app.
    These are the three things, which make porting to AIR a
    little bit complicated.
    Are there any "Best practices" for sharing the same codebase
    for Flex and AIR?
    I've tried to make the Flex app a module and reuse that, but
    then I get troubles with ResourceBundles, also the addressing
    doesn't work correctly anymore (I've refactored the
    Application.application.<element> calls to say:
    Application.application.app.<element> where "app" is the ID
    of the ModuleLoader). But I get the error that
    <ApplicationType> cannot be converted to ModuleLoader.
    Then I've tried to make a SWC out of the App, didn't work
    either.
    Has someone already done things like that?
    What's the best way to accomplish that?
    Thanks a lot for replies!
    Bye,
    Fritz

    Hi.
    Based on Adobe's document
    http://www.adobe.com/devnet/air/flex/articles/flex_air_codebase.html
    which I haven't found earlier, I got the project working with all
    my special things lik Cairngorm and ResourceBundle.
    Currently I'm writing a tutorial how this works, I'll post it
    for further use on monday :-)
    Bye,
    Fritz

  • How to convert Web app into a channel?

    To whom it may concern,
    Does anyone know how to convert a Web app into a channel inside the Portal server 6.0?
    I developed the web app and tried to create a provider and a channel for it, but the Portal server did not recognize the WEB-INF folder and give me errors saying that it couldn't locate the class files.
    I also have a problem with URL inside my jsp page (channel).
    For example, I have two jsp pages:
    /etc/opt/SUNWps/desktop/default/MyCustomProvider/test1.jsp
    /etc/opt/SUNWps/desktop/default/MyCustomProvider/test2.jsp
    and when I try to put a link from test1.jsp to test2.jsp using
    ... and make a channel based on test1.jsp. The channel will display the link as "http://mydomain/portal/test2.jsp" and result in "Error: page not found". I want the link to point to
    /etc/opt/SUNWps/desktop/default/MyCustomProvider/test2.jsp
    To summarize my questions,
    1) Where should the web app be located in the Portal server?
    2) How to make a link inside one jsp page (channel) to point to another page inside the same folder?
    Thank you in advance

    Hello Karthik,
    I just tried to solve my problem with your suggestions, unfortunately, my JSP channel still doesn't work :(
    The portal server keeps reporting "Server Error..." when I tried to add query at the end of the href.
    Do you still have any other suggestions?
    Thank you

  • Import Flex App into Another

    I have a yahoo maps application in Flex 2 that I would like
    to import into another project that I'm building. I want to use the
    program in my tabnavigator in my new program. Ideally, all I would
    have to do is import it and drop it in place.
    Is this possible and how can do it? I haven't seen anything
    in google on importing a whole project.
    Thanks.
    Mark F.

    YES! Integration is one of the major aims of adobe, so why is this missed? If I want to merge 4 projects together, I have to re-author at least 3 of them. That is ridiculous.

  • How to convert non-unicode app into unicode ASO app

    I am using hyperion 11.1.1
    I would like to convert ASOsamp app into unicode app. can someone give me some direction. I have looked into DBAG but couldnt find anything useful.
    thanks in advance.

    thanks John,
    Also i would like to know about the Alias table in multiple language ? In Samp_U i see *.alt files on the server, how do we create that ? and then how do we view using those alias table. I set the Japanese alias table as active on the Samp_U database...and i was trying to view the retrieve in Japanese in Web Analysis but it didn't work. What wrong am I doing ?
    thanks for the help again.

  • Adobe AIR Needed on Android / iOS to Run Adobe Flex Apps

    Hi all,
    I want to confirm if the user has to install Adobe AIR before launching Adobe Flex apps on Android and iOS Devices. Is there any way that we could embedd Adobe AIR setup in the app file so that the user dont have to hastle in installing Adobe AIR.
    Taimur

    It gives you only three options:
    Signed packages for each target platform.
    Signed AIR package for installation on desktop.
    Intermediate AIRI package that must be signed later.
    For mobile apps, we need to select the first option to get the .apk and .ipa file as the second option would generate .air file. None of the options offer to package AIR runtime. Only the first option gives you the option on NEXT window to include the download link of AIR Runtime.
    If i am wrong, kindly point me to that specific checkbox.
    OR do i have to put Runtime.apk in the assets folder of my source code so that it gets packaged?

  • Loading purchased swf into Flash Builder 4 Flex app

    I have purchased a Flash "fundraising thermometer" from an online Flash components site. It takes input from an xml file and displays a thermometer with the goal at the top and the current amount raised indicated. It came with the following files:
    thermometer.swf
    thermometer01.fla
    thermometer01.html (A sample that works.)
    xml/thermometer.xml (The source file: goal amount, current amount, mark interval, etc.)
    caurina/transitions (Mostly .as files.)
    Since the test html (thermometer01.html) works fine, I thought this would be a no-brainer.
    I first unzipped the files into a "thermometer" folder in my current project. I then went into Flash Builder and created a SWFLoader object as follows:
    <mx:SWFLoader 
    id="myLoader" source="../thermometer/thermometer.swf" complete="initThermometer();" autoLoad="true" scaleContent="false"/>\
     private function initThermometer():void { 
         Alert.show('Thermometer loaded');
    The Design view looks fine. I can see the thermometer default image (see below).
    When I run the app, I get no errors, just a broken image link in a box (see below). The alert box also never shows up.
    I'm new to Flex, so I may be doing something stupid that keeps this from working. I contacted the author of the thermometer widget but he doesn't know anything about Flex.
    Any help figuring out how to get this to work in a flex app would be appreciated.

    You should probably add more event handlers to see what's going on.  Especially "ioError". The complete list is below.  For coverage, add a handler for each event. You can also use in MXML
         complete="initThermometer(event)
    and add an argument to your Actionscript method, to find out details about the event.
    private function initThermometer(event:Event):void { 
         Alert.show('Thermometer loaded ' + event.type);}
    Events
        complete="No default"
        httpStatus="No default"
        init="No default"
        ioError="No default"
        open="No default"
        progress="No default"
        securityError="No default"
        unload="No default
    General info here:
         http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
    I did not test my code suggestions, but it's probably close.

  • Need HTTPService and play video in flex 4.6 Air Mobile App

    We are porting a flex 3.2 app to mobile app. The 3.2 app uses mx.rpc.http.HTTPService to send XML requests for data and launch video web pages. Will a flex 4.6 Air Mobile app be able to do the same? If so, what replaces mx.rpc.http.HTTPService? I read that mx components will not work in Flex mobile apps.

    HI,
    Its working fine.And the mxml components which are displayobject should not be used in the mobile application except the chart.
    So nothing wrong with using "mx.rpc.http.HTTPService",you can also use  <s:HTTPService/>
    Also there is a nice way to see which components should be used or which not for the mobile application.
    Simply mouse over on the component when you have used it.You can see a message on that if that is not optimized for the mobile application like for the combobox you can see this message:-
    "Adobe discourages using ComboBox when targeting profiles: mobileDevice."
    While this is not the case with <s:HTTPService/>.
    with Regards,
    Shardul

  • How to Convert Oracle Apps Report into XML Publisher

    Hi
    How to Convert Oracle Apps Report into XML Publisher?
    Thanks

    In Brief :
    Re: XML Publisher
    In Details :
    http://www.oracle.com/technology/products/xml-publisher/docs/XMLEBSRep.pdf

  • I just bought a new iPad air and have not been able to download kindle app to read my books. When I type kindle on my iPad app page, kindle app does not appear. What do I do to get this app into my iPad air?

    I just bought a new iPad air and have not been able to download kindle app to read my books. When I type kindle on my iPad app page, kindle app does not appear. What do I do to get this app into my iPad air?

    Hi norlowski,
    Do you already have the Kindle app downloaded to an iPhone or another iPad? Do you have "Automatic Downloads" turned on under Settings>iTunes & App Store for Apps on your iPad?
    You might want to try touching and holding the Kindle App option in your Purchased list, and when it highlights, let go, and it will go to a a detail page for the app with another "Open" option on it. See if it will open from there.
    If you do have Automatic Downloads turned on on the iPad, turn it off, and then go back to purchased to see if the Kindle is still showing as "Open".
    Post back with results!
    Cheers,
    GB

  • Can I load a swf into my Flex app that loads other swf's?

    The code below loads an AS2 swf into my Flex mobile for IOS app and it works.  If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     initialize="init()">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.UIComponent;
                                  private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
                                  private var loader:Loader = new Loader();
                                  private var myComponent:UIComponent = new UIComponent; 
                                  private function init():void{
                                            myComponent.percentHeight = 100;
                                            myComponent.percentWidth = 100;
                                            loader.load(request);
                                            myComponent.addChild(loader);
                                            player.addElement(myComponent);
                        ]]>
              </fx:Script>
              <s:Group id="player"
                                   height="100%" width="100%"/>
    </s:Application>
    But if that AS2 swf loads other swf's, they don't load or display.  My FlashBuilder debugger reports no errors or security sand box violations.   I'm using the most elemental code in my AS2 swf so as to not cause problems.  This is it in its entirety:
    this.onLoad = function(){
              _root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
    The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app.  They also load and run fine if I cut out the AS2 swf and access directly from my Flex code.  So I know there isn't a path issue.  More likely not accessing the right layer in the AS2 swf from Flex or something.  Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console.  When run console just reports:
    [SWF] SwfMobile.swf - 2,639,761 bytes after decompression
    [SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
    Is there something inherently wrong with loading swf's that load other things?  Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue.  Just the act of embedding a swf that loads other things seems to be the problem.

    Ah, yes. Using an AVM1 SWF could prove difficult...
    I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
    Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
    That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
    But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
    *a few moments later*
    Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
    To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
    So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
    Keep me posted!

  • 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

  • Wizard to convert EPMA planning app into ASO cube thorugh EPMA

    Hi All,
    I came to know that in 11.1.2.1 there is a wizard to convert epma planning app into ASO app. I have a requirement and I looked into the oracle documents for more information on this but could not find the right document where I can get more information. Please share any information that you have on converting to ASO app.
    Thanks a lot!

    No John, it is not in EAS and it is through planning. I came to know that it is a wizard that we can navigate thorugh planning and I went through the different documents of 11.1.2 and 11.1.2.1 looking for it but I was not able to find the path.
    Please let me know if you came across this before..

Maybe you are looking for

  • Black thumbnails when importing scanned photos

    Recently began a large scanning project using an Epson V200 scanner, Image Capture, and iPhoto 8. Worked fine for over 200 black and white photos, but suddenly iPhoto began creating (mostly) black thumbnails with traces of color (even though I am sca

  • Live Streaming Using my Webcam As a secruity camera

    I'm lost here someone please help, : \ im trying to use my isight as a security camera over the internet so i can watch my dog i just got her. So the question is what software out there i can use to put my webcam as a camera ( again my powerbook is k

  • Why can the goods not be picked?

    Hi, experts, I have created the sales order and try to create the delievery. However, in the delievery document and in its picking tab the column "picked quantity" allows no changes(default 0) with color blue instead of white. How can this happen? be

  • Ipod touch cant on  and cant do anything.

    it happen when i was playing it suddenly it turn white....the screen turn white and then it off....i tried to on it but still it did not respond...then it started to fell hot...very hot....till now my ipod still could not on.... help me!!!!!!!!!!!!!

  • Slow Speed 200k Down 700k Up

    I have a connection that is a few months old and I started having this problem a few weeks ago.  The down speed is running around 200k and up is at around 700k which is very strange.  The verizon speed tests are the same even if I am connected direct