Check for iPad/iPhone does not

I tried

If (Capabilities.screenDPI > 300) {}

make iPhone stuff here;

}

else {}

do things iPad here.

}

And that works fine except that it won't work on a retina not display phone.

I tried

If {(Capabilities.screenResolutionX < 1000)

make iPhone stuff here;

}

else {}

do things iPad here.

}

But it does not work. The iPad displays the version of the iPhone, even if the horizontal resolution of the iPad is 1024 (more than 1000).

What I am doing wrong? How can I check to see if I'm on an iPad or iPhone?

Thank you very much! I found the problem, in case someone else is Googling it later:

Functions does not pay attention to the portrait vs landscape, so I need to use screenResolutionY screenresolutionX not because it assumes a portrait regardless of the publication settings.

Thank you!

Tags: Adobe Animate

Similar Questions

  • the apple remote app installed on my air of 6s and iPad iPhone does not work to control the apple tv

    the apple remote app on my iPhone 6s and iPad Air, home sharing is enabled on all devices and the MBP, airplay works for mirroring via tv application, however, I have over the display of the remote app to control the apple tv, though the library, iI figure on my MBP

    Hello Pmilkes,

    Thank you for using communities Support from Apple!

    I understand that Remote on your iOS devices does not longer work to control your Apple TV. To begin troubleshooting this situation, I recommend you to read on the following article and through the implementation of the process to ensure that your network and devices are configured correctly.

    Set up remote for your iPhone, iPad or iPod touch - Apple Support

    See you soon!

  • "Error - disk should be checked for consistency", computer does not complete check of the disk system.

    Original title: computer refuses to perform disk full system check.

    After that I turned on computer always run a check disk systems saying 'need to drive to check for consistency', it stops at 82%, the disc makes noise.  It is said that he replaced bad clusters in file and after checking the window/options/install/win_18.CAB, it stops there.  She always checks the drive C. Checked for viruses, no.  Any ideas?

    Hi DanaCox,

    You did it of any material changes or software on the computer before this problem?

    I suggest you chkdsk from the Recovery Console and check if the problem persists.

    At the Recovery Console prompt, type which Suits, and then press ENTER:

    CHKDSK [/ p]: [/ r]

    Note: At first, try to run chkdsk/p & check if it helps. Later, you can run chkdsk/r.


    Reference:
    How to install and use the Windows XP Recovery Console

    To start the computer and use the Recovery Console

    Hope the helps of information.
    Please post back and we do know.

  • export to Ipad, Iphone does not export audio

    I export a video with wma files mp4 file

    Audio is not exported

    Hello

    Have the first 12.0 OS W 8.0

    I was using the audio of my SIN and exporting also to my NAS

    Now, using all the audio and export to the c drive, it works

  • my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    Hello

    Follow the instructions here:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • My Ipad air2 does not start.  Tried hold it together switch with on/off switch.  Apple logo appears for about 15 seconds and then turns off again.

    My Ipad air2 does not start.  Tried hold it together switch with on/off switch.  Apple logo appears for about 15 seconds and then turns off again.

    Is there another way to start the IPAD?

    Try the steps here:

    https://support.Apple.com/en-us/HT201412

  • iPhone does not appear in iTunes when connected

    iPhone does not appear as a device in my iTunes window, although it connects and works perfectly with the IMAGE CAPTURE.  IAM using an iPhone 6 with a Mac running OS 10.8 and iTunes 12.2.2

    Check this

    If iTunes does not recognize your iPhone, iPad or iPod - Apple Support

    Hope this helps, good luck to you.

  • my iphone does not allow me to use, because it asks me to insert aSim card

    I never use Sim Card in my iphoe 4 s and now my iphone does not allow me to use, because it asks me to insert aSim card then what can I do to make my iphone working properly again

    < object edited by host >

    You must use a sims card to set up your phone and continue to make calls. If you just want to use the Wi - Fi you can exit the sims, but you will need initially. Contact your operator for more details.

    Remove or change the SIM card in your iPhone or iPad - Apple Support

  • Is there a Firefox app for iPad/iPhone?

    Is to see an app for Android. Is there a Firefox app for iPad/iPhone?

    Hello Sid1, due to the restrictive policy of apple, it is unfortunately not possible to put in place and offer independent third-party browsers for idevices.

    Mozilla is against bringing the rendering motor & javascript in firefox on iOS, because apple only allows the use of its own webkit in terms for developers - as long as it does, Firefox and its ecosystem of the addon can be ported to iOS devices unfortunately.

    http://www.PCMag.com/Article2/0, 2817,2416461,00.asp

  • my iphone does not work 6.

    my iphone does not work 6. Noting happens.

    I try everyting.

    Hello

    Follow the instructions here, as the case may be:

    If your iPhone, iPad or iPod touch won't turn on - Apple Support

    If your iPhone, iPad or iPod touch won't charge - Apple Support

  • Android, iPhone does not work (calls phone mode only)

    I just Android where I got a simple application/widget for calls only mode for the night because I need to

    Keep the emergency of grandparents and a few other numbers.

    You just put it up, choose the contacts to include, and it was a simple pressure on the widget at bedtime.

    They said iPhone isn't a similar option? How is that possible?

    I think that you have only Favorites call with no other notifications (can someone clarify?) but I also

    of many favorites for this as a viable option for me.

    Someone said also you can plug headphones during the night and it must allow that phone calls (can someone clarify?)- but

    It's worse than the favorite options because it allows anyone in my contacts list to call.

    So is there an app or an easy way to do this?

    And if not, how BB and Android figure this out and not iPhone?

    We might think of the billions of dollars and great talent could not understand a work around?

    There is no app for this, but do not disturb, that's what you're looking for. It does not work exactly as you describe for the other operating system, but you have a little understanding of how it works for favorites. You can set do not disturb, and it will not have any type of notification. Another option is to prevent anything but calls Favorites, while the other would be to block all calls, but turn on repeated appeals, which would then allow a second call to the same person within 3 minutes to come through. If you do not use your Favorites list because it is too large, then you will need to use repeated calls. If it's important for you, you can return to your Favorites list to see if you could reduce the list to conform to what you want at the times Do not bother or because you want to just family, possibly teach them the capability of repeated calls.

    Back to Apple would go to http://www.apple.com/feedback and click on the box in this area.

  • updated my iPad to 9.3 air activate iPad display does not not my account information, but the Mac computer accepts my Apple ID and password

    updated my iPad to 9.3 air activate iPad display does not not my account information, but the Mac computer accepts my Apple ID and password

    A lot of people is affected by this problem, and Apple has worked on the issue.  Some found the following steps useful for this issue:

    Go to iCloud.com and select settings once you are connected.  Click on your device listed there and remove them from the account (not typing not erase or lost mode).  Restart your device and must ignore this lock of Activation screen because you actually disabled the lock by removing the device for iCloud.com

    I hope that helps!

  • My iPhone does not to import! How can I appear in the Photos and delete those that are already imported?

    My iPhone does not to import! How can I appear in the Photos and delete those that are already imported?

    My iPad appears fine with an option to import the 'new' photos and then delete them once they are imported. However my iPhone appears not at all on the pictures. Although most is already imported via the cloud, some are not, but more importantly, I would remove at least half of 30 000 photos that are taking place on my phone and a "clear items after button import" would be nice right now! I tried to turn off photo stream on my phone, but it still does not appear in the application.

    What can I do?

    Thank you!

    If you use iCloud photo library you cannot delete pictures after the import (or) - deletions on any device will be on all devices - if storage is a question about a device set to use optimized photos

    LN

  • The SIM card inserted in this iPhone does not appear to be supported.

    The SIM card inserted in this iPhone does not appear to be supported.

    The SIM card that you have currently installed in this iPhone is a carrier that is not supported in the title of the activation policy that is currently assigned by the activation server. This isn't a problem with the hardware with the iPhone. Please insert a different SIM card of a carrier supported or to ask that this iPhone be unlocked by your operator. For more information, contact Apple.

    < re-titled by host >

    Not sure what your question is. The error message is clear: the device is locked to another carrier. It must be unlocked before you can use the SIM card, you try to use. Contact the carrier to get it resolved. Only they can help you with this.

    See you soon,.

    GB

  • Windows Fax and Scan for Windows Vista does not appear under all programs

    Windows Fax and Scan for Windows Vista does not appear on my computer under all programs - where he might or he is still in charge?

    If you have Vista Home Basic and Vista Home Premium, they do not come with Fax software included.

    You will need software 3rd party Fax:

    http://www.SnapFiles.com/reviews/Snappy_Fax_2000/snappyfax.html

    Snappy Fax 2000 allows you to send and receive faxes from your computer. You can use your scanner to scan documents and then sent a fax to any fax machine, or use the print command other applications to use the virtual fax printer, allowing you to send faxes directly from most Windows applications. In addition, the program also supports faxes sending via the internet, filtering of unwanted faxes and transfer incoming faxes to other fax or e-mail addresses. Additional features include import address book, faxes by email (with zip for images support), OCR, spell checking and much more.

    See you soon. Mick Murphy - Microsoft partner

Maybe you are looking for