Developing for both AIR and Flash Player

I'm developing an application that will be deployed on the desktop as well as the net, so I've got a number of interfaces at points of differentiation (such as file access) where I can swap between the different implementations using the following technique:
switch(Capabilities.playerType) {
     case "Desktop":
          fileAccessInterface = new AIRFileAccess();
          break;
     default:
          fileAccessInterface = new NetFileAccess();
          break;
This works fine, especially when compiling for AIR, however, when publishing for the Flash Player, I'm still importing the AIR implementations of every interface even though they'll be unused. And of course, when I try to import an AIR-specific class (such as File, FileStream, etc.) when compiling for the Flash Player, Flash will give me an error:
"1046: Type was not found or was not a compile-time constant: FileStream."
This is obviously what you would expect to happen because it's an AIR-specific class. My question is, is there a way I can define a conditional import (such as pragma comments in other languages) depending on compile conditions? Or will I be forced to comment out all my import code for AIR-specific classes when compiling for Flash Player, and then uncomment again for AIR, etc.?
Any help would be appreciated, thanks.

Problem solved.
I found the config constants section of the ActionScript settings to allow for conditional compiling. Exactly what I needed.

Similar Messages

  • [svn] 854: Update AIR and Flash Player builds

    Revision: 854
    Author: [email protected]
    Date: 2008-03-18 13:43:42 -0700 (Tue, 18 Mar 2008)
    Log Message:
    Update AIR and Flash Player builds
    AIR: 031608apms
    Player:r119
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/libs/player/playerglobal.swc
    flex/sdk/branches/3.0.x/in/air/air_version.txt
    flex/sdk/branches/3.0.x/in/air/mac/AIR Integration Kit.tbz2
    flex/sdk/branches/3.0.x/in/air/win/AIR Integration Kit.zip
    flex/sdk/branches/3.0.x/in/player/lnx/flashplayer.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/install_flash_player_9_linux.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/libflashplayer.so.tar.gz
    flex/sdk/branches/3.0.x/in/player/mac/Flash Player.app.zip
    flex/sdk/branches/3.0.x/in/player/mac/Install Flash Player 9 UB.dmg
    flex/sdk/branches/3.0.x/in/player/win/FlashPlayer.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 ActiveX.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 Plugin.exe

    http://blogs.adobe.com/rgalvan/2011/11/adding-fp11-support-to-flash-pro-cs5-and-cs5-5.html

  • [svn] 936: Update AIR and Flash Player builds

    Revision: 936
    Author: [email protected]
    Date: 2008-03-26 12:43:50 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Update AIR and Flash Player builds
    AIR: 20080325apms.2
    Player:r124
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/libs/player/playerglobal.swc
    flex/sdk/branches/3.0.x/in/air/mac/AIR Integration Kit.tbz2
    flex/sdk/branches/3.0.x/in/air/win/AIR Integration Kit.zip
    flex/sdk/branches/3.0.x/in/player/lnx/flashplayer.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/install_flash_player_9_linux.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/libflashplayer.so.tar.gz
    flex/sdk/branches/3.0.x/in/player/mac/Flash Player.app.zip
    flex/sdk/branches/3.0.x/in/player/mac/Install Flash Player 9 UB.dmg
    flex/sdk/branches/3.0.x/in/player/win/FlashPlayer.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 ActiveX.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 Plugin.exe

    http://blogs.adobe.com/rgalvan/2011/11/adding-fp11-support-to-flash-pro-cs5-and-cs5-5.html

  • [svn] 862: Update of AIR and Flash Player builds

    Revision: 862
    Author: [email protected]
    Date: 2008-03-19 11:31:19 -0700 (Wed, 19 Mar 2008)
    Log Message:
    Update of AIR and Flash Player builds
    AIR: 031708apms
    Player:r120
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/libs/player/playerglobal.swc
    flex/sdk/branches/3.0.x/in/air/mac/AIR Integration Kit.tbz2
    flex/sdk/branches/3.0.x/in/air/win/AIR Integration Kit.zip
    flex/sdk/branches/3.0.x/in/player/lnx/flashplayer.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/install_flash_player_9_linux.tar.gz
    flex/sdk/branches/3.0.x/in/player/lnx/libflashplayer.so.tar.gz
    flex/sdk/branches/3.0.x/in/player/mac/Flash Player.app.zip
    flex/sdk/branches/3.0.x/in/player/mac/Install Flash Player 9 UB.dmg
    flex/sdk/branches/3.0.x/in/player/win/FlashPlayer.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 ActiveX.exe
    flex/sdk/branches/3.0.x/in/player/win/Install Flash Player 9 Plugin.exe

    (Released 4/16/2014) Flash Player 13.0.0.201 (Mac only) (44.67 MB)
    That has the fixed Flash 13.0.0.201 plug-in and the debugger. in it. You just need to run the regular installer from that zip file.

  • Samsung - Flash Air and Flash Player will no longer be supported from February 4, 2014 ?

    What are peoples thoughts on this?
    We have been alerted that Adobe will no longer continue to support Flash on Samsung Smart TVs and BluRay players. As a result, Flash engines will not be supported in 2015 Samsung products. Going forward, Flash-related features will be excluded from SDKs released. Although Flash engines will remain to be equipped on existing Samsung products, including 2014 models, there will be no technical support from either Samsung or Adobe. Accordingly, any applications developed with Flash Air or Flash Player will no longer be acceptable. Samsung recommends using either HTML 5 or Javascript based applications if the application in question is Flash-based. Beginning on February 4, 2014, any Flash-based application, including any updated versions of such will not be acceptable for submission.
    http://samsungdforum.com/SamsungDForum/NewsView?newsID=45
    Not being able to deploy Adobe Air in Samsung devices is a huuuuuge kick in the teeth suley?

    I'm not an Adobe or Samsung expert, but it seems to me that...
    on Samsung Smart TVs and BluRay players
    ..is not the same as (all) "Samsung Devices".

  • About installing adobe air and flash player

    How do I get the adobe flash player and air on my Iphone 5C from a public computer//

    You don't need AIR runtime on iOS; see http://www.adobe.com/devnet/air/articles/air-on-ios-faq.html#b

  • Why is the color offset on Flash Player in my Firefox, even after reinstalling both Firefox and Flash Player?

    I have the latest version of Flash Player, the latest version of Firefox and my system is a Windows 7 64-bit. Every time I view a Flash Player window, the green color is offset down about one-quarter of the window. This makes it difficult to use Firefox to watch Flash content. This does not happen on any other browsers I have.

    When I click that link, it goes (as it should from a U.S. IP Address) to the hyperlinked page 87, which is where the English portion begins.
    Your browser or International settings may prevent it from doing so, but I have nine machines that ALL parse the link the same way.

  • Is there any other solution for Adobe Flash plugin crashing than the posted one about updating Flash and Mozilla? I cannot open any PDF files online and updated both Mozilla and Flash player to most recent with no change in the crashing.

    I was able to open PDFs online until version 8. Since upgrading to version 9 and now 10, I have crashes every time I try to open a PDF online and can see the form briefly for about two seconds before the plugin crashes. I followed instructions on the solution to update Adobe Flash and Mozilla, and they are both to the most recent version and it still crashes every time, no dent in the symptoms with the upgrades. I tried also downgrading to version 3, and it sill crashes. Although in some cases I can get around by saving the PDFs for reading them through Acrobat on my PC, it is a hassle as I do not want to save everything to my drive just to see what it is, plus sometimes forms are generated on a click and I cannot see these forms at all.
    I had to migrate to Chrome as I needed the PDFs and could not wait any longer - any suggestions to make Mozilla work again would be appreciated.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode] after enabling only the PDF plugin in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''' > '''Plugins'''. You can also '''Disable''' the PDF plugin and try an alternative, for eg. [https://addons.mozilla.org/en-US/firefox/addon/pdfjs/?src=cb-dl-created pdf.js]. Please also go through the add-on reviews, ratings, help and FAQ.
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    [http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on Cannot Uninstall Add-on]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • How can we update or manage the Adobe Product for example Adobe Reader and Flash Player in a enterprise environment.  Enterprise lifecicle management

    We want to maintenance the adobe products in the enterprise environment. Specially Update for he reader and players.
    Thanks

    You will need to apply for both Reader and Flash Player Distribution agreements if you intend on enterprise deployments of these products.
    Adobe - Adobe Runtimes / Reader Distribution License Agreement
    If you are using SCCM and SCUP then use the available catalogs for both products.
    11   SCCM-SCUP — Enterprise Administration Guide
    Flash Player enterprise deployment | Adobe Developer Connection

  • Silent Install Parameters For Reader And Flash Player

    Does anyone know the silent install parameters for Adobe Reader and Flash Player? I actually need the download link for the offline installers and the parameters for those installers. Thanks!

    You probably also need a distribution license, then.
    http://www.adobe.com/products/flashplayer/distribution3.html

  • Cannot open grooveshark due to a supposed problem loading flash. (I have the latest version of both (Mozilla and Flash)

    Everything with firefox works ok except Grooveshark. An error message appears saying: We had problems loading flash, you might have any blocker etc etc.
    I don´t have any blocker and as a matter of fact i have the latest versions for both mozilla and flash. Neither version of flash test nor reinstallation process nor checking add ons or firewall settings solved my problem.
    Thanks for the attention. Regards

    To double-check your Flash permissions for the site, you can click the globe or padlock icon to the left of the address, click More Information, then click the Permissions tab. The "Activate Plugins" section would be the one to check.
    I understand you have checked your add-ons, but in case there is an unexpected interaction, could you test the page in Firefox's Safe Mode just to confirm that extensions are not the problem? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    ''Not all add-ons are disabled: Flash and other plugins still run''
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • For some reason, the Flash Player on my MAC Pro stopped working, I've checked the install on my Adobe Flash Player and the are current, but the plug-ins don't seem to be working.  Can anyone help me get it working?

    For some reason, the Flash Player on my MAC Pro stopped working, I've checked the install on my Adobe Flash Player and the are current, but the plug-ins don't seem to be working.  Can anyone help me get it working?

    It happened w/ my MacPro 2.66 GHz Dual-Core Intel Xeon about 5 months ago; tried everything I could think of including multiple downloads of Flash, and hadn't seen any solutions here.  Adobe insisted many times that I download & update, but the newest vers. wouldn't work on the computer.
    On checking Adobe/Flash was reading the computer as being an earlier model. So the new version of Flash wouldn't work w/ it.  Snow Leopard 10.6.8 was being read correctly but not the computer model (can't remember what MP model  it was reading).
    Nothing worked. So -- a very old PC trick: If nothing else works get the hammer out and bludgeon it-- might work. So I reset everything by putting the Snow Leopard  install disk in, held down 'C' on restart and let it run. 
    Didn't take anything off the HDD first, just ran the install disk over everything.
    The experts on the forums are probably cringing right now & I'd like very much for them to jump in. Love to know how my computer model was being mis-read. All I can say is, for the brave and desparate, it worked for me. Something to keep in mind.
    It helped that I had a new computer on order & have 2 backups, one being mandatory. Might work only the one time but worth a check.
    Good luck on working this one out.

  • Acrobat reader 10.0.x for windows and flash player update

    i don't understand why my client require the update of reader (update of 10.0.1), but in the download page (.msp file) i can't find nothing. the other problem was about the update of flash player....i need to distribute the update over GPO, but adobe doesn't release from download page....is because the update are integrated in acrobat reader new release?
    the metod is wrong! security is very important and release the updated version of software is also foundamental! IT Pro need an update (.msp or .msi) for the reader and for player.....faster not when you want
    so....how you think to resolve this problem? how i can resolve my problem about the update?

    Here you'll find the msi and msp files for the Acrobat Reader ("reader" folder on ftp) and Acrobat Pro ("acrobat" folder on ftp). ftp://ftp.adobe.com/pub/adobe/ . Save the link to your bookmarks.
    For updating/installing Flash Player you'll have to go over here: http://www.adobe.com/products/flashplayer/fp_distribution3.html
    There's a distribution license needed to deploy the flash player (don't ask my why the hell you'll have to get a license to deploy it in internal environments, although you can download and install it without the license).
    Best of luck, i needed a hole day to preparing deployment of cs5.5 and flash player etc. because of lack of information or consistency at the adobe pages and different methods for diffrent products. There should be a way to charge adobe the time it needs to get started, because they earn a damn lot of money with their cs products so they should provide better methods to do these tasks... but thats an endless story, because they're a monopolistic global player i think they aren't really interested in the needs of customers. There's not a real alternative, especially in education you're bound to use it, so you're gonna buy it anyway...

  • Have one WiFi signal into the apartment for my Air, and another wifi signal for my 5c phone plan. Both from the same provider. Expensive. Is there a way to 'combine' WiFi signals so I pay only for one, but can get on the Internet with my Air?

    Have one WiFi signal into the apartment for my Air, and another wifi signal for my 5c phone plan. Both from the same provider. Expensive. Is there a way to 'combine' WiFi signals so I pay only for one, but can get on the Internet with my Air?

    Roamingnome, thanks for your response. Although I have been a Bell (Canada) customer for my WiFi signal for years, the 5c and its necessary mobility plan, is very recent. Some years ago, Bell supplied its own ‘router’ for my computer, and claimed that it was possible to get their WiFi signal only with the router they supplied. When I recently received the 5c, I wondered if the plan it requires, which is within the much wider, overall Bell zone, could be used somehow to get my Air online - some sort of tethering? - that allows me to give up the Air WiFi service and router all together, but still get the Air connected. Here in Canada, Bell Mobility and other Bell services are very separate. Any suggestions appreciated.

  • I like to play games on facebook and for some reason I keep getting an error message saying that the shockwave player and flash player has crashed I use firefox could someone please give me step by step instructions to fix this issue?

    I have Windows 8.1, my adobe player is the most updated version also.... hope this helps

    Yeah, Firefox and Flash Player isn't a super stable combination on Windows 8.1 at the moment.  We're collaborating closely with Mozilla to improve that, but that effort is going to happen over several months.
    In the meantime, you might want to take a look at the other options.  Microsoft invested a lot of time and effort into making the Flash experience on Win8.1 really good in IE, as did Google with Chrome.

Maybe you are looking for

  • Automaticly sync photos from iphone to shared folder on windows server 2012 r2

    Hey, I'm making photo's of cars for a company and we got a server running locally. I make photo's with my iPhone and i used to use dropbox for auto syncing pictures with the dropbox cloud and access from my pc. Since dropbox is too slow and we got a

  • Upgraded to CC 2014 and Media Encoder doesn't work now.

    Using a mac with mavericks, all updated. Upgraded to Premiere Pro CC 2014 and Media Encoder CC 2014. But when I want to launch it... it won't open. Help?

  • Order by range? mysql Question

    hi all ! I need to know if this is possible in sql. I have a table with a Column called Hours, what I want to do its to count objects that are in a certain Hour range. Something like: Select Count(citas.Protocolo),citas.Hora,citas.Protocolo FROM cita

  • Frame 7.2 will not install under Windows 7 Ultimate

    HELP: FrameMake2 7.2 does not install under Windows 7. Almost at the end of the install it crashes with an empty dialogbox and a warning. Nothing else. Any one seen this, Keep smiling Thomas

  • Flash Banner Ad

    Hi All, I am facing a weired problem in my webpage. I am having a html page, which embeds the windows media player object and one banner ad. This banner ad i am getting from another vendor. In my page i have to call this ad like the below code. <scri