How do I develop for multiple screen resolutions using Adobe Air

Hi,
I'm looking at developing mobile apps using Adobe Air but there's something I'm not quite sure. Sorry if this is a newbie question or has been repeated but I have looked at tutorials, etc but just want to get a general idea on how to prepare the assets. Here are some of my questions:-
1) If I want to develop for the iPhone non-retina and retina resolution, do I actually need to only write the code and layout the graphics in retina(960 x 640) stage size and it will automatically scale down for non-retina resolution?
2) How do I cater for iPhone 5 resolution? Do I actually need to swap say the background images through code by detecting the resolution size it was in? or do I actually just leave the background image longer it exceeds the stage height so when it's iPhone 5 it will show everything?
thanks for the help!

If you are talking about regular Flash work, and not your own code-layout application, then what happens depends on the scale mode of the stage. Typically, when doing code layout the stage is set to no_scale, and you have to do all the hard work yourself, calculating the size of things, and laying them out with ActionScript.
If it's more of a typical Flash graphical scene there are two other scale modes that make life easier for you.
The default scale mode is show_all. With that you will be certain to see all of the content of your original Flash stage, and if the screen is a wider ratio than your stage, the content that is off the sides of the stage will be revealed. See this app I made, that uses that technique:
https://itunes.apple.com/us/app/meet-heckerty-funny-interactive/id514220257?mt=8
It works well enough, I have enough extra background graphics to go out to a 16:9 screen, including iPhone 5. That particular stage is 1024x768, and it will scale all the way from iPad 3 Retina down to iPhone 3gs.
The other scale mode that is useful is no_border. In that mode you are certain to not have any black borders around the stage. It achieves that by cropping into either the left and right, or the top and bottom, of the stage. See these apps I made, that work that way:
https://itunes.apple.com/us/app/milkshake-mayhem/id556962979?mt=8
https://itunes.apple.com/us/app/p.s.-snowflake-yourself/id571384475?mt=8
In both of those cases I have content that is correct for half way between the ratio limits of 16:9 and 4:3 (or 9:16 and 3:4 for the portrait case). When the app runs on your device, some amount of the left and right, or the top and bottom, of the stage is cropped. I have enough background content for that to be ok, and all of the important content is within the middle 14:9 or 9:14 area of the screen. The stage size for the landscape app is 1680xx1080, exactly 14:9. This approach is better than the show_all one, in that the user doesn't feel like they are seeing a lot of blank space, as can be the case when viewing a 4:3 stage on a 16:9 screen.
One last thing, even with either of those techniques the app won't fill the iPhone 5 screen. To get that to work you have to include a splash screen that is 640x1136, and name [email protected]. With that in place iOS knows to make your app use the full width or height of the iPhone 5.

Similar Messages

  • How to design FXML for all screen resolution

    hello
    I am designing a page in FXML using scene builder,and I want that my fxml runs good on few screen resolutions,for that there is need for relative positioning but in FXML there is nothing like % and all.
    Please do any one have worked on this then help me out.
    thanks in advance.

    See this blog, it doesn't answer your question, but I hope it helps:
    http://blog.randahl.dk/2012/12/javafx-designing-for-multiple-screen.html

  • How to programmatically resize vi for different screen resolutions ?

    Hi,
         I have been struggling with this,How can i built a vi that should run for different screen resolutions (on different pc's).
    There are several threads on forum , But i dont find the exact solution for it.
    I have already tried with VI properties in the VI but i dont think its working.
    Can someone please help me ?
    Thanks and regards,
    Shivkant Paswan

    Yup it is a pain to use panes, but that is the easiest method I've found which meets my requirements.  Learn to use panes and splitters effectively, and then learn their limitations and workaround when you find those limitations.  In general LabVIEW should handle multi-resolutions, and resizing better but these are the tools we have today.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to get more independent of screen resolution

    Read already a number of topics about this in this forum. But I still wonder
    how to set up ones Swing components for different screen resolutions. What
    I did up to now is checking for the current screenwidth and setting sizes for
    each resolution. Worked OK. But nowadays there are so many different
    screen sizes, this is getting too complex.
    I mean, one has to set the component's size, its location, the fonts used,
    possible Icons in the Toolbar, the size of the components internal panels,
    the insets, border sizes, and many other things. So, assuming ones window
    with all the components looks great in one resolution, the developer still has
    to check whether it all looks so great as well in any other thinkable screen
    resolution. Even in those which the developer isn't even able to create using
    his graphics card.
    So, my question is: Is there somewhere a clever tool inside Java which makes
    the total layout of components and their sizes inside the user's main window
    more independent of the screen resolution?
    For instance, it would be great to be able to define the component's size,
    location, and so on, using the actual size it should appear on any screen.

    You are right. For those using advanced high resolution
    monitors, this will be a disadvantage. However, I'm quite
    sure, the average user I'm aiming for, still uses rather
    standard type of monitors. Of, course, in the (near?)
    future, everybody may be using high resolution (same
    progress as with our tv-screens). So I may have to include
    these screen sizes as well later.
    Your presentation made me aware of the great need for
    everybody in the graphics business for a solution for this.
    Still think, this can be automated in a not too difficult way.
    I mean, if I can hard code this in such a way, that nobody
    is able to see the difference of the program running on a
    different resolution, it must be possible to include an
    option in whatever programming language, to create ones
    graphics components in a resolution independent way.
    At least, I think. May be a good starting point for my next
    project.
    Thanks anyway for your help an remark. I think you still
    deserve your dukes. Here they are.

  • I have problems with office for mac  screen resolution, specially with excel

    I have problems with office for mac  screen resolution, specially with excel ?

    For starters, make sure to Check for Updates on any of the Help menus, and make sure the product has all the latest patches. MS did come out with a patch addressing the display issues on Retina Macs. Latest patchlevel is 14.3.2.
    We are talking about Office:Mac 2011, right?

  • Are there any mac screen savers for multiple screens

    Are there any mac screen savers for multiple screens? like the one in the swordfish movie with john travolta haha

    screensaver +, free from the apps store, will do two monitors.  It does not do three monitors . 

  • Design and Testing Suggestions for Different Screen Resolutions

    Intermediate Dreamweaver CS3 user, in need of "Design and Testing Suggestions for Different Screen Resolutions".
    Thank you, J. Chavez

    Adobe Browser Labb and BrowserShots.org

  • How to create variant for selection screen which is in subscreen

    Hi,
    How to create variant for selection screen which is in subscreen in a module pool program?
    it is very urgent.
    Thanks in advance.

    Hi,
    You can create the 'Parameter Transaction' so that whenever you run the particular transaction it will run with the initial value given when the Tcode was created and hence you can skip the initial screen of the module pool program.
    To create Parameter transaction from SE93 you have to choose the last option i.e Parameter Transaction.
    Regards
    Sudheer

  • "CLOSED":How to plan inventory from multiple orgs simultaneously using MRP?

    Hello everybody,
    How to plan inventory from multiple organizations simultaneously using SCP?
    My customer found that in supply chain planning (MRP) system always plans in single manufacturing organization, say, ATC, firstly. If set in organization item master, the source type as 'Inventory' and the source organization as another trading organization name, say, ANX. if there is insufficient inventory in ATC, SCP-MRP would plan in ANX, disregard of the inventory exist in ANX for the item.
    But for some items, there are both inventory in ATC and ANX and we want plan BOTH their inventory simultaneously instad of firstly ATC and then ANX.
    Is there any standard function in Oracle that can do so? I found that the sourcing rule cannot help in this case.
    A simple test case is described in
    https://gtcr.oracle.com/gtcr-dir/gtcr_4607/5580425.992/Alternative_to_plan_multi-org_MRP.doc
    Thanks
    Catalina
    Message was edited by:
    user447176

    Catalina,
    Net the inventory simultaneously? Its not quite clear what your client wants.
    Even in the old SCP, you can use sourcing rules to first net inventory in org1 and then net the inventory in org 2 via a transfer from rule. The key point is it is always incremental based on where you place teh demand and then you provide source to fill that demand.
    One restriction that ASCP still has up to 11.5.10 is that you can only have sourcing rules going in one direction. This means that you can't have a rule that sources ORG1 from ORG2 for item A, then have the revers in ORG2 sourcing from ORG1. That won't work, ASCP will randomly ignore one of the rules.
    The best choice may be to use GOP with a sourcing split % so that yo do consider the inventory in both orgs when demanding the order, but it would still be done by checking ORG1 then ORG2.
    Hope this helps.
    Kevin Creel

  • Developing and using Adobe AIR native extensions for Android devices

    I was using this tutorial:
    "Developing and using Adobe AIR native extensions for Android devices"
    http://www.adobe.com/devnet/air/articles/ane-android-devices.html
    When packing the Flex mobile ANESampleTest to deploy on an Android device, the below error happens
    Error occurred while packaging the application:
    aapt tool failed:invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/drawable-xxhdpi
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw600dp
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw720dp-lan
    Does anyone know what the issue might be?

    Did you find a workaround for the Error? I'm getting the same and I can't seem to find any solution.

  • How to set value for trim and bleed using jsx script?

    I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
    Following is the code I am trying with:
    var _saveName = new File ( root_path +_strFileName+".pdf");
        var _saveOpts = new PDFSaveOptions();
        _saveOpts.printerResolution = 300; 
        var bleedarray = new Array();
         bleedarray[0] =9.00;
         bleedarray[1]=9.00;
         bleedarray[2]=9.00;
         bleedarray[3]=9.00;    
        _saveOpts.bleedOffsetRect = bleedarray;

    I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
    var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
    Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds.

  • Hi i dont have a wifi broadband n i just bought the new ipod touch can anyone tell me how 2 download apps for my ipod without using wifi

    hi i dont have a wifi broadband n i just bought the new ipod touch can anyone tell me how 2 download apps for my ipod without using wifi

    Download the apps on your syncing computer and then sync to the iPod. Note that you can only sync apps for the one syncing computer you use with the iPod. You can manage music and videos among different computer.

  • How do I pay for my trial version of adobe premiere 6

    how do I pay for my trial version of adobe premiere 6

    Trial versions are free, well, for 30 days at least and then they stop to work. That's the whole point. Not sure what you are asking beyond that. If you want the product, purchase it from Adobe or whatever reseller you deem suitable.
    Mylenium

  • WRT54GL V 1.1 : how to reserve IP for specific MAC address using DHCP

    My !free! made in China router have this functionality. And yet I have been banging my head with this new reasonably expensive wireless router from Linksys. Anyway I lug my notebook around. I need my home router to be able to automatically configure notebook IP address using DHCP. At the same time I need the ip given by home router through DHCP to be the same IP all the time. So "static" ip is not the solution. Alternative "static" ip is also not a solution. Anything with the word "static" in it is not a solution. I know about third party firmware (wrt or tomato) and I know WRT54GL can be flashed with this third party firware. But I'm not going to void my warranty. This will be my last option but not the solution that I seek. I would like to know how to reserve ip for specific mac address using DHCP for WRT54GL V1.1. If this version have no way to make such configuration, I would like to know if there is official firmware upgrade that address this. Thanks in advance!

    LDK-Anc wrote:
    Tonik - For the life of me, I cannot find DHCP Reservation on the WRT300N. I'm currently configuring one and it would be really useful if I could fine it. Maybe LinkSys calls it something else, but I don't really see anything resembling it. Help!
    Maybe these could help. (Images extracted from the User Guide)
    Setup tab: Basic Setup
    DHCP Reservation
    Message Edited by denman_v2 on 03-25-2008 05:11 PM

  • How do I create a watermark for my website logo using Adobe Photoshop CS4?

    Hello!  I need help creating a watermark for my website logo using Adobe Photoshop CS4.  Thank You!

    MFS APPLE PRO wrote:
    Hey Don,
    This is a pretty straight forward process, in settings on your phone go to general>network>personal hotspot. As SP has said most likely you will have to contact your wireless provider to set it up. I know for at&t you can set up this option through att.com/wireless or dial 611. It will cost you around 45 dollars per month and this gets you the ability to tether up to 4 wireless devices and alots you 4GB per month data. Hope this helps.
    Mike
    I've heard that it will also cancel your current contract.  That isn't such a huge deal unless your current contract is an unlimited one--you can never get it back.
    Does anyone know for sure?  I've asked AT&T and received a "Yes it will cancel your current contract." and "No, it is a new contract--you keep your old contract if you wish."  I suspect it is the former but it would be good to know for sure before ordering the service.

Maybe you are looking for

  • How to remove a stuck CD/DVD in drive

    I recently purchased a new to me MacBook. I had a new hard drive installed, and I told the technician that I'd install the system software. I guess I forgot to tell him to format the drive. I went to install Snow Leopard, and nothing happened! I trie

  • [SOLVED] lib32-printproto on AUR

    Hi, I'm trying to install lib32-libxp from AUR, and I can't because its depency (lib32-printproto) gives me an error: └─>$ yaourt -S lib32-libxp ==> Resuming previous build ==> Downloading lib32-libxp PKGBUILD from AUR... tar: Record size = 6 blocks

  • It is possible to install the AppleTalk protocol on the sbs2011 essentials server

    Hi, I have apple II(very old ) and having SBS 2011 essentials domain controller. I just wanted to know that is it possible to install AppleTalk protocol on the SBS 2011 essential server? If yes then how? Thanks, Sagar.

  • Message not sent from BPM

    Hi, I have modeled a BPM in which Idoc is received from ERP and it is sent to CRM. When I see in SXMB_MONI, I find a message with PE as outbound. The Workflow shows it is completed and the last step in Workflow is "Send message Asynchronnously" with

  • Having trouble downloading CC apps

    I have a MBP from early 2011 and just upgraded the OS to the latest 10.9.1 and signed up for CC. However, after downloading Creative Cloud app onto my desktop, I haven't been able to add any apps onto my computer I see a spinning wheel on the App pag