Create Air Project from Existing Flex web project

LaunchPad rocks!  Love the whole concept of using Air apps to supplement the Eclipse-based IDE.
Often I have a need for two versions of the same app in Flash Builder: One web project and one desktop project.  It would be great if you can point to an existing Flex web project, and use LaunchPad to create the new air version.
Anyway, PLEASE keep expanding your vision!  One day I would love to see a 100% Air app for building Air apps and scrap Eclipse! OK, maybe a little out of scope.
Nice work!
Don Kerr
UGM, Space City AUG

Turn the body of your application into a component and embed an instance of that component in both a Flex and an AIR application.
1. Create a new Library project
2. Set the Library path (e.g. external library references) for the new library project so the match the original project
3. Copy the /src/ from the original project to the new library project
4. Copy the original project's main mxml file to the library src/. Name it as a component (e.g. MyProjectBody)
5. modify the copied mxml file by replacing the <Application>  with <Canvas> elements and removing application-specific stuff
6. compile the new library
7. add the new library to the original project's Library Path
8. Modify the original project's main mxml file by _removing_ everything inside the <Application> tags and removing the attributes that set event handlers, etc.
9. Add an instance of the new library's component MyProjectBody (see step 4)
10. Create a new AIR project
11. add the new library to the original project's Library Path
12. Add an instance of the new library's component MyProjectBody (see step 4) to the <WindowedApplication> tag
You can do fun things like create a standard I/O interface and have web and desktop-specific implementations so your main code does not know if it is running in a browser or not.
Desktop drag-and-drop will fire normal DragEvent, etc., but with different payloads. You can have code in the library that handles both kinds of dropping.\
Cheers

Similar Messages

  • 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.

  • How do I create a DVD from an iMovie '08 Project?

    How do I create a DVD from an iMovie '08 Project? I followed the directions in the help section but when I open iDVD, my project is "grayed out" and I cannot open it in iDVD.
    Rich Rector

    In general, in imovie Share to Media Browser or Share to iTunes.
    Then open iDVD. Open the Media Browser in iDVD (at bottom right of window). Navigate to your movies and you should see the movie you made. Drag it in to the iDVD project.

  • [svn:osmf:] 11292: Removing 'libs' as a library path from the Flex Builder project properties.

    Revision: 11292
    Author:   [email protected]
    Date:     2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Removing 'libs' as a library path from the Flex Builder project properties.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/.flexLibProperties

    Revision: 11292
    Author:   [email protected]
    Date:     2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Removing 'libs' as a library path from the Flex Builder project properties.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/.flexLibProperties

  • Unable to Create Entity Model from existing oracle database

    Hi,
    I am using Visual Studio 2013, .net framework 4.5, entity framework 5.0 and oracle 11g database.
    Issue Description: I need to develop WCF service to exposing the account information which needs to get the data from 20 oracle tables. Trying to create entity model from existing oracle database. first i tried creating just two tables it
    was created but it took more than 30 minutes. then i selected remaining few tables it took more than a days but nothing created just showing spinning the wheel. then i tried with fresh project and selected all the tables but same issue nothing created and
    also there is no error. during this process i checked database query monitoring there is a big sql statement collection tables metadata. i don't know what was wrong the query taking too much time to complete the  process.
    we tried multiple machine and different oracle database all are same issue.
    Sql server database -looks good no issues.
    Any help/tips/ideas welcome to overcome this issue.

    Hi Sakthimp,
    Welcome to MSDN forum.
    Your issue is out of support range of VS General Question forum which mainly discusses the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue only occurred with oracle database, moreover Oracle developed the Entity Framework for Oracle itself, I suggest that you can consult your issue on Oracle forum/community:
    you will get better solution and support there.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [svn] 1038: Reverting Eclipse compiler projects to use 'flex-asc' project

    Revision: 1038
    Author: [email protected]
    Date: 2008-03-31 14:39:55 -0700 (Mon, 31 Mar 2008)
    Log Message:
    Reverting Eclipse compiler projects to use 'flex-asc' project
    * Now that we are using builds of asc from trunk/modules/asc, we can/should build/debug in Eclipse using the same sources.
    Modified Paths:
    flex/sdk/trunk/development/eclipse/java/flex-compiler/.classpath
    flex/sdk/trunk/development/eclipse/java/flex-jars/.classpath
    flex/sdk/trunk/development/eclipse/java/flex-swfutils/.classpath

    This is really becoming a pain since every time I get into FlexBuilder, I have to hit my project and set the required version back to 10.0.0. (It keeps reverting to 9.x) Since I am using the new FileReference enhancements in Flash10, this is mandatory to avoid compiler errors.
    I still have no way to automate the build process since there is nothing on the build machine to perform this action.
    Any help would be greatly appreciated

  • I have Iphoto library in Aperture.  Can I move the projects from iPhoto to aperture project by dragging?

    I have Iphoto library in Apeture.  Can I move the projects from iPhoto to aperture project by dragging (within the apeture program)? Is this making a duplicate of all the photos? It seems to work??  It then leaves my Iphoto library in apeture empty.  I would like to do this just to reorganize the photos between the two.  I feel that I may have doubles and would like all pictures of one year in same project in Aperture instead of going between both.

    Tell us more, please. I am not quite sure, what you want to do and how you are using Aperture and iPhoto?
    Which versions of Aperture and iPhoto are you using?
    Do you have separate photo libraries for Aperture and iPhoto, or are you opening your iPhoto libraries in Aperture?
    I have Iphoto library in Apeture.
    Did you import an iPhoto library into Aperture?  And now you are seeing a section "iPhoto Library"  in the Aperture projects list in the Inspector?
    Events and albums you imported from iPhoto (Import > Library > Some iPhoto Library) will be imported as Aperture projects and albums, and they will behave exactly as other Aperture projects and albums.
    Can I move the projects from iPhoto to aperture project by dragging (within the aperture program)? Is this making a duplicate of all the photos? It seems to work??  It then leaves my Iphoto library in apeture empty.
    You can drag images from any project in Aperture to other projects and that will move (not duplicate) the images and all its versions to that project. And when you drag all images from the project to another project, the remaining project will be empty and can be deleted.  (Caution: Photos that you have hidden in iPhoto will not be visible in Aperture. If you are not sure, if you have hidden photos, open the library again in iPhoto and unhide all photos).
      I feel that I may have doubles and would like all pictures of one year in same project in Aperture instead of going between both.
    There should be no problem with moving all photos from the same years to the same projects. You can also drag projects in "Projects" view on top of each other. That will merge them.
    You could also define smart albums in Aperture to search for images taken at a specific period of time:
    File > New > Smart album:
    Then, in the Smart Settings HUD, click "Add Rule" and add a Date or Calendar rule.
    For example, to find all images taken in 2010, use a rule "Date > Capture Year is > 2010"
    To search for Photos taken at a specific date or at several dates, use a "calendar" rule. This way, you do nat have to type the date, but can pick it from a mini calendar.

  • Error message in creating EBP users from existing SU01 users

    I am getting the following error messages when i try to create EBP users from existing SU01 users using users_gen: Error during creation of user: User not created or error(s) occurred during user creation. ``Central person`` already exists for user (BBPU_MESSAGES 042). Pls what does it mean and how do i solve this?

    Babalola-
    The message is indicating that the user you are attempting to create was previously created in the EBP system.
    First I would try to correct the user via users_gen using the "check users" option.  This may repair the user, but if the user has lost the association to the org then you will need to take some manual steps to re-establish the links for the user in the org details.
    If this doesn't correct it, then use transaction PP01 to correct/verify the following relationships for the user.  Start with the org unit and work your way down looking for the broken link/s.
    Here are the required relationships for the objects:
    ORG UNIT:
    Relationship     Object
    B 003          Position(of user)
    POSITION:
    Relationship     Object
    A 003          Org Unit
    A 008          Central Person (of user)
    A 008          User
    CENTRAL PERSON:
    Relationship     Object
    B 008          Position
    B 207          Business Partner
    B 208          User
    USER:
    NONE
    BUSINESS PARTNER:
    NONE
    Hope this helps you.
    b

  • How to create file system datagrid in flex web application

    how to create file system datagrid in flex web application

    Hi,
    Check this out:
    http://shigeru-nakagaki.com/flex_samples/FileReference/FileUploadExample2/FileUploadExampl e2.html
    Johnny
    Please rate answer.

  • Creating a Dynamic Web Project from existing source?

    I don't see this option in OEPE like there is in Workshop for Weblogic. All I can choose from is "Create Dynamic Web Project" which creates a new project from scratch, or "Create Java Project" which has an option in the wizard to import existing source.. however this makes it a vanilla Java project instead of a Dynamic web project.
    Did the concept of importing existing code into a project not cross anyone's minds when this plugin was developed? It's as if the expectation was that everyone would use this on their own private projects and there would be no collaborative/parallel development.
    What is the recommended way for creating a Dynamic Web project off of existing source code without stomping all over the existing web.xml weblogic.xml?

    There are many "import" scenarios, so let's break them down and lay out the support expectations:
    1. A java ee project created with base Eclipse using Web Tools Platform project types. This scenario includes both the case where the project creator had OEPE installed as well as the case where there was no OEPE installed. In this case, one should use the import existing projects wizard as the project being included already has metadata that can be read directly.
    2. A java ee project created with a non-Eclipse IDE or perhaps completely by hand with rudimentary tools such as notepad. Currently, the way this case is supported is by creating new projects and copying application source into them. Advanced users may be able to configure support in place, but we cannot support users with this approach as the possibility of corruption is high. We are currently working on a set of wizards that will help automate this case. These wizards will be available in the release of OEPE that's slated to ship around the end of 2009 or early 2010.
    3. A project created with BEA Workshop. This case is not supported as there are a number of technologies in Workshop that have been end-of-lifed (such as Apache Beehive). Users with Workshop applications should stay with Workshop until they are able to remove dependencies on end-of-lifed technologies. At that point moving to OEPE is recommended. Unofficially (this option is not supported but may work), advanced users may be able to migrate a Workshop app to OEPE, by stripping out all Workshop metadata (.project, .classpath, .settings, etc.) and by pretending that this is scenario #2 (import of a non-Eclipse application). Don't try this if your application still have dependencies on end-of-lifed technologies.
    - Konstantin

  • How to create new solution from Existing solution in integration services on TFS project?

    Hi,
    I am working on SSIS Project and it is created in VS 2008 .I opened the solution in VS 2010 and it is upgraded and unfortynately i don't have the back up to re open it in VS 2008.I am thinking of creating new solution from the existing one and open the new
    solution in VS 2008.I was struck how can we copy existing solution to new solution on TFS.
    Please let me know will this process work? and also how can we create a new solution without losing any files.
    Any help is appreciated.

    Hi moh1kumr,
    As Joost said, you can try to revert the changes back for the checked in files in TFS. For more information, please see:
    http://msdn.microsoft.com/en-us/library/ee371161(v=expression.40).aspx
    http://stackoverflow.com/questions/2694644/how-to-revert-roll-back-a-checkin-in-tfs-2010
    If it doesn’t work, I am afraid you have to design the package in VS 2008 from scratch.
    Regards,
    Mike Yin
    TechNet Community Support

  • Facing Problem while adding Azure Project to existing C# web application

    Hi,
    I have a web application with 5 projects under one Solution. I want to publish this web application on Windows Azure, for that I have tried to add Windows Azure Cloud Service Project but this option is not appear in option list. But when I create new web
    application add Windows Azure Cloud Service Project option appeared. I didn't understand why this happened. I have also tried to migrate old code to new project but having error
    " The type or namespace name 'DataAnnotations' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?)"
    If I add this dll then more than 18000 error occures like control not found(The name 'lnkbtnNew' does not exist in the current context).
    Please help me out, I am struggling since couple of days.
    Thanks in advance.

    Hi,
    Please try the following steps, see if it helps.
    1. create new azure cloud service project (it is better to choose the same version of .netframework with your web application );
    2. right click the solution, add your web application as Existing Project
    3. Right click on the “Roles” node in the Cloud Service project and select “Add | Web Role Project in solution…”
    Please try to set the “Copy Local” to “True” in order to avoid assembly missing issue, see more at:
    http://blogs.msdn.com/b/asiatech/archive/2013/01/09/how-to-resolve-the-could-not-load-file-or-assembly-issues-on-windows-azure-web-sites.aspx
    If this post doesn't give you help, please follow up with more detailed information.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Connecting to SQL Server2000 from WSAD for Web project

    I have WSAD 5.1 installed and i have to create a web project which uses sql server 2000 as data base how do i do that / can any one help me with this or atleast sent me some links from which i can get useful information

    I have WSAD 5.1 installed and i have to create a web
    project which uses sql server 2000 as data base how
    do i do that / can any one help me with this or
    atleast sent me some links from which i can get
    useful informationGoogle for Websphere documentation

  • Overlaying adobe air sdk 13 for flex mobile project gives me error

    After overlaying adobe air sdk in flash builder 4.6 i am getting this error in my flex mobile project "Could not resolve <s:ViewNavigatorApplication> to a component implementation.". I have followed the steps mentioned on adobe site. Can anyone please suggest me what i need to do in order to get this work.

    You are probably missing the updated flash debug player that describes all the new methods to the application.
    There is a good walkthrough of how to upgrade flash builder to a new library version, this is described in the first video of hsharma's starling tutorials.
    Its very annoying though, i wish adobe would really build in a feature like this to update libraries.

  • 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.

Maybe you are looking for

  • Two finder icons in my dock and other issues

    For some reason, in my dock, two finder icons are appearing. The default finder icon, which is not running and has no white indicator under it, and a default application style icon that launches right after login with the label "Finder" which is basi

  • I am receiving configuration error 16 when attempting to start any ot the CS6 trail apps. Help?

    I am about halfway through my trail period using Creative Suite 6 on my new MacBook Pro using Mountain Lion 10.8.3 (the newest version). I keep recieving the "Configuration Error 16" message. What should I do to finish the remainder of my trial perio

  • Installing Visual c++ express and plugin wizard

    Hi I am new to SDK and trying to get everything set up so I can begin development of an acrobat plugin in visual c++ studio express 2008. I found the plugin wizard in the acrobat 7 sdk (absent from sdk 8) but I am having difficulty running it. I am g

  • "Create Object " statement gives error: statement is not accessible

    Hi All U must b doing good. I am new in ABAP Objects. I have writeen a simple Class definition n Implimentasion code. but whenever i write statement "Create object", it gives error. 'm working on SAP Dev 4.7. the code was like this:- class counter de

  • Sender MDM PI Adapter Communication Channal Problem

    Hi All, I am doing (MDM >PI>R/3) Material Master Outbound scenario; while doing syndication process xml file is generated in MDM ready folder. But, in ths PI system RWB  Communitation channel monitoring  each time (wheneve new file placed in Ready fo