How can I maximize my AIR app's resolution?

I build games with Adobe AIR.  Until now, I've always used a resolution of 1000x725 for these games, since this fits a screen of resolution 1024x768. 
Is there a better way to do this?  Is there an ideal resolution that I should be using, that would please the majority?  Are there settings within AIR that will detect the user's resolution, and size it accordingly?
Ken

Hi Ken,
there are different ways to get required information:
- flash.system.Capabilities > screenResolutionX/screenResolutionY
- flash.display.Stage (instance) > fullScreenWidth/fullScreenHeight
- flash.display.Screen (instance) > bounds
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/Capabilities.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Stage.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Screen.html
- the last one is Air - runtime only addition which could be useful for fine-tuning your game setup.
See also:
http://www.adobe.com/devnet/flash/articles/authoring_for_multiple_screen_sizes.html
Btw: if talking desktop: all main all-in-one iMacs has screen resolution much larger then 1024x768
regards,
Peter

Similar Messages

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

  • How can I keep Adobe AIR app window in focus at all times?

    Hi There,
    I have an AIR application that displays HTML links that launch an external browser when clicked.  When the browser is launched, the AIR application loses focus.  Is there any code out that that will allow me to keep the AIR application ontop of all windows?
    Thanks,
    Laz

    You can use alwaysInFront:
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/NativeWindow.h tml#alwaysInFront

  • How can I close an Air app with a key ?

    keyEnter = new Object();
    keyEnter.onKeyDown = function() {
      if (Key.getCode() == 69) // E,e = 69
           //other coding
          NativeWindow.close()
    Key.addListener(keyEnter);
    Does not work..

    Btw, I am using Adobe Flash CS4 AS2

  • I bought a used macbook air, with reinstalled the OS without iMovie. How can I get iMovie on App free of charge as a default in macbook air ?

    I bought a used macbook air, with reinstalled the OS without iMovie. How can I get iMovie on App free of charge as a default in macbook air ?

    Unfortunately, as recommended by the lady from CA, as long as the Mac is still associated with the Apple ID of the original owner, you can't even buy those iLife apps with that Mac. You will always get the alert to download them with the original owner's Apple ID.
    As suggested by the chavo from España, you need the original owner to contact Apple Care* and request that the OS and the iLife apps be disassociated from his Apple ID. Then you should be free to OS X Recovery to resinstall the most recent version of OS X that shipped with the Mac and install the iLife apps. Afterward, before using any of the iLife apps you need to open the Mac App Store (MAS) to the Purchases pane and Accept these apps into your MAS account's Apple ID. If you use any of the iLife apps before you have accepted them into your account, as per the app's Terms of Use, they all become one-trick-ponies that can not be downloaded onto another Mac or updated.
    OS X Recovery -
    http://support.apple.com/kb/HT4718
    *If you bought the Mac from a 2nd hand shop and don't have access to the original owner, you may need to provide Apple a purchase receipt to offer proof of sale.

  • Updated to an iphone 4s from iphone 4. Did backup and sync but some apps have not been copied to the 4s although they do show up on the iphone4. How can I get my missing apps?

    Updated to an iphone 4s from iphone 4. Did backup and sync but some apps have not been copied to the 4s although they do show up on the iphone4. How can I get my missing apps?

    Download Past Purchases
    http://support.apple.com/kb/HT2519
    Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes...

  • How can I open an Apple App account for downloading free apps?  I will not let me open a new account without a sim card.

    I just bought a used 1st Generation Apple iPad 64 GB, 3G. How can I open an Apple App account?  I am trying to download a free app and it says I have to have an account, however, everytime I try to set up a new account I can fill only fill out some of the information but then the screen goes black and I cannot proceed with the account.  At one point it said "no sim card" and I am not sure where one would go if I had one.  Do you need a sim card to download free apps?  Why won't it let me set up an Apple Account?  Any suggestions?

    I can think of no reason at all why you need a sim card to creat an Apple ID. Try this first - reboot the iPad and reset the memory.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Afte the iPad starts up again, follow the directions in this support article - exactly - to creat the account without a credit card.
    http://support.apple.com/kb/HT2534
    IF ... You are signed into another Apple ID on the iPad you will have to sign out of that ID in order to create a new one. Settings>Store - you can sign out there.
    You MUST try to download a free app in order to start the process off correctly. If you were using an email address with another ID that you already created, you will have to have another email address to associate the new ID with.

  • How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased from the ibook store.

    How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased books from the ibook store. The problem is, once I create a document in Pages and turn it into an ePub to be opened in iBooks, I delete the document in Pages, because I don't need two copies taking up space on my iPad. Before Maverick, iTunes would backup everything in my iBook app on my iPad. If something ever happened to my iPad, all of my created ePubs would be lost and I would be screwed. I suppose I could keep everything on Pages and go to iCloud and download my documents to my Mac, but that is a lot of steps. I may have to do that if there is no other way, but I am hoping someone will have the answer for me. Pretty disappointed in iBooks app for Mac at this point.

    iBooks only syncs purchased books. Others must be synced in iTunes.

  • I have two iPhones on my iTunes account. How can I find out what apps go to which phone?

    I have two iPhones on my iTunes account. How can I find out what apps go to which phone?

    I don't believe that there is a way to do that.  I would sugest using automatic downloads to keep your apps synced across both phones.  You might also want to note that just about any app you have ever download will be available for free download via icloud.
    Wish I could be more help.

  • How can I use the Gmail app on the Watch?

    I do not use the Mail app on any of my Apple devices.  How can I use the Gmail app on the Watch?

    Since Google has not added watch support to the gmail app, you don't. You should be able to get notifications, but at this time, there is no gmail app for the watch.

  • How can I use my eprint app on my iPad ?

    How can I use my eprint app on my iPad ?

    Hello Bulbuljan,
    If you want to use an app to print to your printer on your iPad you need to make sure you have downloaded the HP ePrint home & biz app. There are numerous ePrint apps available, but this is the best one for printing to an HP printer that is ePrint enabled.
    Here is more information about the App and how to use it:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01923321&cc=us&dlc=en&lc=en#N824
    Hope this helps.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • I have two cell phone, different numbers.  Each has their own apple id.  How can i merge them so apps on one show on the other but keep their emails addresses separate on their own phone?

    Have two cell phones, different numbers.  Each has their own apple id.  How can I merge them so apps purchased on one phone show on the other.  But.as each has their own email address, I want to keep these email addresses separate on their own phone?  Thanks.

    We do this in my family now.  We have one account for purchases, so it is used to share music and apps (I think that is in Settings/iTunes & App Stores).  Each iDevice has this configured.
    Then, each of us has our own iCloud account that is configured under Settings/iCloud.  That then allows us to have our own Mail/Contacts/Calendars/Reminders/Safari Bookmarks/Notes/Passbook/Photo Stream/Documents & Data/Find My iPhone/and Backup.  That Backup piece is pretty sweet and comes in handly if you replace your iDevice.  You can just restore from it.
    So we all share the Apple Store account but we all have our own iCloud accounts to keep the rest seperate or things like you mentioned are a nightmare.
    In answer to what iCloud does for you: http://www.apple.com/icloud/features/
    Think of it as an internet based ("cloud") area for all of those items listed in my response.  What you need to remember is photo stream only maintans the last 1000 pictures so don't count it as a complete backup solution for your pictures.  Even though I rarely sync with a computer these days, I do still try to sync my phone with iPhoto (I have an iMac) so that I have copies of all of my pictures.  1000 may not stretch as far as it sounds.
    Message was edited by: Michael Pardee

  • How can i move my purchased app from apple id in russia to ukrainean app store when i change country

    I had my apple id in Russia and had a lot of purchased apps there. Recently i had to change a country of my apple id to Ukraine. So i have a question how can i move my purchased apps to apple id in Ukraine?

    You have been mislead. Other users report that what you have been told by the Hack is not true. The apps will appear to have disappeared, but if you try to update an app at first the MAS will appear to be selling you the app, but if you continue, as if to buy the app, the MAS will realize that you previously purchased the app and download it for free. You can test this for yourself using a free or inexpensive app.

  • HT1203 Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? Do I need a home computer,

    Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? How do I sync all the devices to have the same music and apps?

    You can set up an iCloud account on each one (the SAME iCloud account using the same AppleID on each) and then sync via iCloud.
    http://support.apple.com/kb/HT5262\
    However, an iCloud backup nor sync contains purchased content - that is available for redownload from the iTunes and App stores (so no need to waste iCloud space storing it for you).
    So, for purchased content, you will have to download it on each device - just use the same AppleID and download each item on each device.
    Without a computer to aid the sync'ing, downloading the purchased content on each device is the only way.
    P.S  audiobooks cannot be re-downloaded once purchased (all other content can be), so without a computer to save, store and move the audiobook files around, you will only be able to put those on one device - the one you first purchase it on.

  • How can I re-set the App Store so the Updates will again appear under the Updates tab?

    Hi,
    I am running a Macbook Pro (retina). Lately when I launch App Store and click on Updates the software updates for the software on the Macbook do not show up under the Updates tab. However, when I go to the Purchased tab I see there Update buttons next to programs that have updates ready to download.
    How can I re-set the App Store so the Updates will again appear under the Updates tab?
    Many Thanks,
    David

    Wanna know this too

Maybe you are looking for