Port AIR project to FlashPlayer

Hello,
I have developed a mobile project in AIR, and was wondering if there was any easy way to port or embed the project into a HTML file for web.
I run into problems trying to output in flash, for instance not recognizing StageWebView and other incompatibilites.
Anyone have any methods to go about this easily? Seems like it would be common need to publish a developed mobile app for web use.
Thank you.

you're welcome.
(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

Similar Messages

  • How do I use Embed with an environment variable in an Actionscript AIR project Flash Builder 4.7

    I am using Flash Builder 4.7 to build an Actionscript AIR project.  The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
    I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
    My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive).  I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
    [Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
    I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile.  The Actionscript compiler just won't find the png files however I specify the path.  I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
    [Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"]  works with FLEX but not Actionscript.
    So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?

    I managed to find a solution on Windows which was to use symlinks and absolute paths.  You an basically point one directory to another so I did something like:
    mklink c:\developer_resources c:/the/local/path/to/my/resources
    and then reference all resources as c:\developer_resources\...
    Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work. 
    This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows

  • Air project works in test but fails when installed.

    I have a little project I'm trying to put together as a stand-alone widget.  It loads some sounds that are set up in sets and saved in a subdirectory of the application directory.  I have a movie clip in the library that appears when the "Config" button is pressed.
    Works great in test mode.  The sounds are loaded and play.  The config screen shows up when the button is pressed.  The components (two sliders) work and their listeners fire.  Wonderful!
    But when I pack it up as an installable AIR file and then actually install it on my poncuter, epic fail.  The sliders don't appear, the config button doesn't call up the configure movieClip and no sounds are played.  The buttons that I placed on the stage at design time appear but don't appear to function.  Nothing I added programmatically appears.
    Is this an Adobe CS3 problem or did I miss something in the security sandbox?  No files are being written to,  I'm getting a directory listing of ./sets and then opening the files in that directory where .isDirectory comes up false.  The files are XML and point to a folder off the ./sets folder and the files in that set.
    I could probably track this but I have no experience debugging an AIR project.  Trace is not working in development.  How do people debug the final?  Output to a dynamic text field?

    Sorry to hear you are having a tough go of it...
    there should be no reasons that your application functions differently debugging than when you install the application so the behavior you are seeing is likely something easy to fix (as opposed to having to re-write a bunch of AS code :D).
    Couple of Questions:
    1.) Are you using CS3 as-is out of the box - or did you manually upgrade your AIR SDK inside Flash Professional to target a later version?
    2.) What version of AIR are you targeting?
    3.) What version of AIR do you have installed on your system?
    4.) What OS are you running on?
    5.) Can you install any AIR applications on your machine and have them run properly? (Bunch of AIR apps here: http://www.adobe.com/go/airmarketplace)
    6.) It sounds like you are likely using CS3 and not the command line tools - but if you are using the command line tools (ADT) to create your AIR package what command line do you use to create it?
    That should help get things rolling...but likely the best course of action is for you to send us your project so we can take a look. You can send your project to cthilgen at adobe.com - please do not send a zip as our mail system will auto-reject it.
    Also, you should be able to get trace output. If you are using CS3 the trace output goes to the output panel. (Windows->Output) If you are using the AIR command line tools (ADL) - debug output is enabled by default (you have to manually pass -nodebug to turn it off).
    Hope this helps.
    Thanks,
    Chris Thilgen
    AIR Engineering

  • Converting Air Project to Web Project in Flash Builder 4

    I have an Air project that I need to convert to a web project to post online.  I've looked online with no luck so far, but perhaps someone can point me in the right direction.
    The closest thing I see to being what I want is if I go to Properties > Run/Debug Settings.  In there I tried going to New > Web Application but when I browse for Project it comes up empty, and so is the "Application file" dropdown.  I tried screwing around int he Source tab in the same window but it doesn't seem to help much.
    Other things that look close to what I want but don't work are when I right click my project, there's a "Add/Change project type" but all options are greyed out and I don't see anything web related in the options anyway.
    Also there's Properties > Targeted Runtimes, but there's nothing there I can do.
    Then in Properties > Flex Compiler I have "Generate accessible SWF file" checked.  But when I try to use that file it won't work in the browser flash player.
    So... is there an easy way to convert an Air project to a Web project?
    Thanks!

    I'm glad (but at the same time sad) someone has had the exact same problem I had.
    I've tried a few things (though none successful).
    - creating a flash pro project from the fb project
    - creating an AS3 project from the as3 mobile project (which runs on air). now this one I thought would work, and it does in Flash Player, however, when I try to run it with the generated html file, all I get is a string of errors.
    Here is something that does work.
    If you create an AIR project in Flash Pro (I've only tried this in CS5.5), when you publish the project, it will generate the swf and html files and the html file works and the swf runs great. Unfortunately you have to start that way (which sucks for programmers that want the benefits of Flash Builder). I haven't found anything to properly convert it yet.
    I hope this is some insight, even a year later.

  • AIR projects broken SDK 4.5.0.18623 to SDK 4.5.0.19786

    Hero SDK 4.5.0.18623 works in Flash Builder 4 with AIR 2.5   With the release of SDK 4.5.0.19786 I can no longer compile an AIR project in Flash Builder 4, I receive the following error:
    Process terminated without establishing connection to debugger.
    error while loading initial content
    Launch command details:  "/Applications/Adobe Flash Builder 4/sdks/4.5.0.19786/bin/adl" -runtime "/Applications/Adobe Flash Builder 4/sdks/4.5.0.19786/runtimes/air/mac" "/Users/mritchie/Documents/Adobe Flash Builder 4/TestProject/bin-debug/Main-app.xml" "/Users/mritchie/Documents/Adobe Flash Builder 4/TestProject/bin-debug"
    However, SDK 4.5.0.19786 does work with AIR applications in Flex Builder Burrito.  I should mention that AS3/Flex web projects do compile in Flash Builder 4 with 4.5.0.19786 if you have Flash 10.2 installed and set on the project settings.  This seems to break just AIR projects.

    I know it was awhile ago, but I'm struggling right now with all this...
    How do I add Air 2.6 to my currently 1.5.3 version?
    I updated to Flex SDK 4.5, and it throws connection to debbuger error...

  • How to import SQLite .db file from AIR project

    hi friends..
    how to import SQLite.db file from AIR project. and i want use this in my application.
    after importing can i update and delete the recordS?

    There's no import needed. You just open it using the AIR SQL APIs. If this database file was created outside AIR, it's not necessarily compatible, though. There are SQLite features and extensions that aren't supported in AIR.

  • Configure AIR project to enable Stage3D, Context3D

    Hi,
    I've been struggling with configurations all the afternoon. I can't find Stage3D, is not defined!!
    I created an air project with:
         -> -swf-version=13 in compiler arguments
         -> wmode=direct in html-template
         -> also tried -target-player=11
    I am using Air 3.0 (I copied the files downlaoded air3_b2_sdk_mac..). What could I be missing??
    Thanks a lot

    Sorry to hear you are having a tough go of it...
    there should be no reasons that your application functions differently debugging than when you install the application so the behavior you are seeing is likely something easy to fix (as opposed to having to re-write a bunch of AS code :D).
    Couple of Questions:
    1.) Are you using CS3 as-is out of the box - or did you manually upgrade your AIR SDK inside Flash Professional to target a later version?
    2.) What version of AIR are you targeting?
    3.) What version of AIR do you have installed on your system?
    4.) What OS are you running on?
    5.) Can you install any AIR applications on your machine and have them run properly? (Bunch of AIR apps here: http://www.adobe.com/go/airmarketplace)
    6.) It sounds like you are likely using CS3 and not the command line tools - but if you are using the command line tools (ADT) to create your AIR package what command line do you use to create it?
    That should help get things rolling...but likely the best course of action is for you to send us your project so we can take a look. You can send your project to cthilgen at adobe.com - please do not send a zip as our mail system will auto-reject it.
    Also, you should be able to get trace output. If you are using CS3 the trace output goes to the output panel. (Windows->Output) If you are using the AIR command line tools (ADL) - debug output is enabled by default (you have to manually pass -nodebug to turn it off).
    Hope this helps.
    Thanks,
    Chris Thilgen
    AIR Engineering

  • Can a Flash Builder AIR project be Catalyst compatible?

    So, I'm trying to figure out my best workflow.
    I have FB 4.5 and Catalyst 1.5. I'm trying to create a desktop app.
    I'm looking at Adobe's article on creating a Library project, and it seems that a Catalyst library project and an AIR project are mutually exclusive. Meaning, if I choose Catalyst compatibility I can't choose "Include AIR Libraries" and vice-versa.
    Is there some other route I should take?
    Thanks
    Kristin

    Yes, FC does not accept projects which has AIR libraries. You might have to separate out the code using AIR APIs into a separate library and then use the original library project to round trip with FC.
    Thanks
    -Sunil

  • 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

  • Inserting/manipulating PDF in Flex 3 AIR project?

    I've read as much as I can find about dropping a PDF into my
    Flex 3 AIR project, but the information is scarce and I understand
    it's a very new (not fully baked) feature.
    Can anyone describe what component to use to drop a PDF into
    my AIR project? I need to manipulate the PDF from within AIR and
    would prefer not to abstract through the HTML Container object
    (e.g. calling JS through the HTML Container object).
    Thanks,
    Mike

    looks like your equipmentArray is empty. Put a breakpoint inside that method to see if there is any data.

  • Error when creating new AIR project

    Hi,
    I just downloaded the next Flex Builder 3 with included
    support for the Abode Integrated Runtime.
    I am trying to get an AIR project started which uses
    LiveCycle Data Services, as we are using RemoteObjects and
    DataServices.
    So on the first screen I enter
    Project name
    Server Type
    Server Location
    and I click Next>
    This creates an error message “Server SDK does not
    support Apollo” . When I click Configure Flex SDK’s and
    I select Flex 2.0.1 HotFix 2 the eror message changes to a warning
    message “Project is being compiled with Flex 3.0, but server
    has Flex 2.0.1
    How can I circumvent this problem, so that I create AIR
    projects that use Live Cycle Data Services?

    Hi Rogier,
    There is a bug logged for this issue in our bugbase:
    https://bugs.adobe.com/jira/browse/FB-7239.
    thanks,
    Sharon

  • [Flash Pro] Best way to create multi FLA/SWF AIR project

    So I have my main FLA all setup as an AIR project. Great.
    Now I want to create another SWF which is called Panel. I've got a separate FLA which is coded to work with the main FLA/AIR project, I include this SWF in the "included files" of the main AIR app, and it all works fine. However, I seem to face two unpleasant options when working in the Panel FLA:
    1. Set the target as Flash Player 11.x, and get all sorts of compile errors about missing AIR stuff.
    2. Set the target as AIR and end up with a whole separate AIR project with mostly throw-away output (I just care about the SWF, not the app.xml, .air, etc.)
    Is there a cleaner way to do this?
    Thanks!
    -Aaron

    I tried adding the airglobal.swc to the project but still compiling the SWF using option 1 above was unable to recognize AIR APIs.
    Opetion 2 turns out isn't quite as bad as I though, if I use Test Movie it generates the SWF without the AIR stuff, only the app.xml is generated.
    -Aaron

  • FB3 refuses to launch AIR project now.

    I was trying to add a style to a Flex AIR project and it hit a runtime error, so i went to task manager and killed adl.exe like i always do because it doesn't end itself .....but then now I am unable to launch my AIR project anymore. Every time I click the green triangle button, it just launches adl.exe and conhost.exe, but it does NOT launch my project
    I need this fixed NOW. the last time this happened, I was in a meeting with my BOSS, and I could not show her my progress becuase flex builder 3 decided to not launch my project for the same exact reasons and symptoms. The way i fixed it before was reinstalling flex builder 3, and I don't want to go through the hassle of redoing all of my settings and plugins again.
    I tried right clicking on flas content and say connect to 127.0.0.1 but it just says "The connection could not be established by flash player 10", and it gives the smae message if i click local host as wel.
    How do i fix this? It amazes me how adobe expects people to pay for flex builder 3 with problems like this.

    You know what, never mind.
    Honestly, this is BS. Flex Builder 3 costs like what 200 dollars ? I got it for free because I'm a student yes but that doesn't excuse FB3 from SUCKING!
    this is the THIRD time this has happened to me, where FB3 just refuses to run my air project, and like i said in my first post, the second time was in a meeting with my BOSS! I had to say "Uhh yeah, trust me, it does exist....its just compiling at the moment".
    So I had to make myself look like an idiot because somehow Adobe managed to take Eclipse, which works fine for java (I use eclipse with my java projects for my school and I have 0 problems) and somehow make it WORSE!. No code formatting, no TODO or FIXME highlighting, none of the cool features that eclipse includes, and they make it worse by having this BS that if the program crashes it doesn't even try to kill the processes that is still running in the background.
    Flex is nice. Flex Builder 3 is the worst IDE experience I have had in my short time as a programmer so far. I would honestly be more productive with notepad or something, but I need Flex Builder 3 due to me using the charting components and I need FB3 to compile them without the ugly watermark.
    Eclipse has it right. Everything works out of the box and works as its supposed to. FB3 is an example of how NOT to make an IDE. I have had nothing but problems and bugs with it, but sadly I am required to use it for my job.
    So here I am reinstalling FB3 for the fourth time, having to go search out for all of my plugins and reset all my preferences, all just cause I somehow FUBAR'd the flex debugger by having a runtime error....its not like that is the whole point of having a debugger or anything, right?
    <-- Angry.

  • Air project into air installer

    i made a air project. How can i made  a air installer of this project

    Hi savz,
    Follow the steps below:
    1) Select your Project in FlexBuilder and ---then go to Project >> Export Release Build in FlexBuilder IDE You will see a window getting opened as shown below
    2) In the window leave all the options same and click next you will see the below window.
    3) In the window now click Create..button . You will get the below window. Fill the information in the TextBoxes given(Any dummy info).
    Give any name for the Save as option and save the certificate in some location by clicking the browse button and then click OK and then click Finish.
    That's it you are done...You can now see the installer being created in your application project folder as yourappname.air
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Missing NativeApplication for AIR project

    Hey
    today I wanted to build an AIR project and I wanted it to
    appear without the usual WindowsChrome.
    So I started reading how I could do that and I found some
    sources that didnt show the chrome.
    They all used the class "flash.desktop.NativeApplication;"
    ... but flex brings up an error.. that class is missing. and
    indeed, when I try to import the class, flex shows me the following
    clases under "flash.desktop"
    Clipboard
    DragActions
    and so on..
    but on
    http://livedocs.adobe.com/labs/flex3/langref/flash/desktop/package-detail.html
    you can read, that there is supposed to be a totally different set
    of classes, including the NativeApplication. Whats wrong there? I
    installed Flex 3 B2
    Do I have to install something separetly?

    Flex 3 B2 has been updated to Beta 3. Try installing Flex 3
    B3 and you should be able to access the NativeApplication property
    as you want.
    Vygo

Maybe you are looking for