prevent the landscape

So I know that I can add this code to avoid the portrait mode

import flash.display.StageOrientation;

var startOrientation:String = stage.orientation;

If (startOrientation == 'default' | startOrientation == 'upside down')

{

stage.setOrientation (StageOrientation.ROTATED_RIGHT);

}

on the other

{

stage.setOrientation (startOrientation);

}

stage.addEventListener (StageOrientationEvent.ORIENTATION_CHANGING, orientationChangeListener);

function orientationChangeListener(e:StageOrientationEvent)

{

if (e.afterOrientation == 'default' | e.afterOrientation == 'upside down')

{

e.preventDefault ();

}

}

What is the landscape equivalent of preventDefault? I cs5.5 then uses air 2.6. I know before there was a workaround solution where you can set the orientation to publish in landscape mode but I guess you don't need to do it now?

While what you say is true, it is a requirement of the iPad applications that you support changes in the necessary guidance. In other words, you may not penalize a person who likes to exploit their iPad with button at the top at home.

Regarding the verification of landscape, you can either use the controls for the portrait and do nothing, but make a preventDefault in the Else part of the If statement, or you can use the constants instead of the string for the audit. So, look for StageOrientation.ROTATED_RIGHT and StageOrientation.ROTATED_LEFT instead of "rotatedRight" and "rotatedLeft". Just in case where channels are not what you think they are.

Tags: Adobe AIR

Similar Questions

  • how the firefox prevented the obsolete plugin 'adobe flash' race

    What reasons that make firefox prevented the obsolete "adobe flash" plugin a few times running on Web sites.

    Hi ersad, firefox only will block both old & vulnerable plugins to be executed by default on any page you visit for your protection. Please update your plugins to safer versions!

  • Firefox prevented the site of the opening of the pop up how do I open?

    On a Japanese site, I got this message
    "Firefox prevented the site opening pop up.

    The identity button (grey Globe). See attached screenshot

    I wonder how I could open web page even if the identity button is dimmed.

    Any help in this regard will be appreciated.

    Thank you

    Said ArtMark

    Have you tried to add the address to the list of exceptions FF popup blocker?

    Paste (without the quotes) "subject: preferences #content" in the url bar and press ENTER
    Click on the "Exceptions" button... »
    type/paste the address of the page, click on leave and then save the changes.

    reload the page

    pop-up windows should not be blocked on the page that you have added to the exceptions list.

    Hello, I followed your advice, and now the site could be opened.
    Thank you for your help.

  • I get a message saying that firefox has prevented the dangerous 'adobe flash' plugin of the race

    my flash player IS up-to-date, but firefox crashes and I get this error message
    Firefox prevented the dangerous 'adobe flash' plugin of the race (some im webpage on)
    Let me know how I can fix this? AS SOON AS POSSIBLE

    Hi Janetc69,

    I had the same problem, after having informed me with a few mags of PC online, I simply uninstalled Adobe flash player in my laptop.
    Since then, I got no problem with playback of videos with firefox browser. What more, it seems to work better than before.
    Anyway most of the browsers are slowly remove Adobe flash player on their systems.
    If this does not work you can always reinstall Adobe, try it.

    Good luck!

  • How can I prevent the Thunderbird goes directly to the next message after you delete that I read?

    How can I prevent the Thunderbird goes directly to the next message after you delete that I read? I want to return to the list of all incoming mail, so I can choose what email I open then. I could see something that I don't want to open at all, but the way it is set up right now, it opens the following email automatically.

    Thank you. I don't want to download an add-on, so I tried the messages pane, and I guess it will do. I used Thunderbird a few years ago and he used to have an option where it would go after deleting a message during the consultation in its own window. But I think I can live with this option. so thank you once again.

  • How to prevent the creation of 15000 files for 300 MB each day Firefox

    Firefox creates files of 'file' in C:\Users\LeRicain\AppData\Local\Mozilla\Firefox\Profiles\dnm04rk5.default\cache2
    There are about 10,000 and 20,000 files I have to remove to get about 300 MB of space each day

    How to prevent the creation of these files in Firefox

    Here are the files from cache. Basically, it takes Web sites that access you a lot and records bits of them so they'll load faster the next time you visit them. FOR EXAMPLE if you visit Google.com much, Firefox will save some elements of this page in the cache so that the next time visit you Google.com, it will not have to re - download.

  • How to prevent the add-on compatibility checking whenever he opens Firefox?

    How to prevent the add-on compatibility checking whenever he opens Firefox?

    Which can be a problem with the compatibility.ini file in the Firefox profile folder.
    Try to rename (or delete) the file compatibility.ini in the profile folder of Firefox to see if that helps.

    You can use this button to go to the Firefox profile folder currently in use:

    Alternatively, you can check for problems with preferences.

    Delete possible user.js and files numbered prefs-# .js and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

  • How to prevent the launch automatically plug-ins Firefox on Mac?

    Is there an extension that prevents the launch automatically the Firefox plug-ins? When I open a new link, any video on the page automatically begins to play, usually after that I scrolled before the video to read that I'm here for, while I have to scroll upwards or downwards to find in order to stop - slow and slows down my browser - at least it seems to do. Can you help me? Thank you

    Individual plugins can be set to "Click to play" so that they do not start automatically. You can give permission to sites allows to run plugins on a page by page basis or on a site-by-site basis.

    Open the Add-ons page for the Plugins section:

    Tools menu > Modules > in the left column, click on Plugins

    Then for Shockwave Flash, for example, or for QuickTime, change the selector "Always enable" to "ask to activate.

    When you reach a page that wants to use one of these plugins, you will see at least one of them:

    • icon in the address bar that looks like a piece of Lego
    • notification on a gray rectangle dark where video normally would appear
    • information bar slides between the toolbar and the top of the page

    In the dialog box, you can approve the plugin for the current page, or "remember" who approves all pages of the site.

    Try it and see what you think.

  • My IPhone6 does not move to the landscape portrait on pictures, photos or videos

    MY Iphone6 no longers moves to the landscape portrait seen on photos, video or screens in all?

    Make sure that the portrait lock is not active. Implement the control center of the bottom of the screen. Turn off the toggle of the far right on the top row, and your problem should be solved!

  • Is it possible to prevent the right click context menu of the combination of Stop/Reload?

    Is it possible (subject: config tweak or something) to prevent the context menu of the combination of Stop/Reload?

    Screenshot of what I mean: http://picsend.net/images/873089StupidReloadSto.png

    Try to add this code in the file userChrome.css below default @namespace.

    Customization files (interface) userChrome.css and userContent.css (Web sites) are located in the chrome folder in the user profile folder.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #context-stop,#context-reload[hidden="true"] { display: -moz-box!important; }
  • lovely better does not work with windows vista home Premium what another program removes LSO and HOW to prevent the trackers?

    Question
    better privacy does not work with windows vista home Premium that another program removes LSO and HOW to prevent the trackers? Edit
    Details

    In current versions of Flash you can also do this via the control panel.

    • Control Panel > Flash Player, click on remove and erase data
  • iPhone 6 Gets a white screen on the landscape

    I have an iPhone 6 that gets a white of the screen when you use the camera or watch videos ONLY if I'm on the outside (under the Sun). Inside, it is normally. Any ideas?

    I freakin ' finally realized what's wrong with my phone... nothing.

    I was today for my lunch break and decided to watch HBO NOW. Right now it's really sunny. Vertical, now I have everything well see. When I switched the screen for the film look at one, I see again the screen. When I removed my sunglasses SUN POLARISEES, alto... I can see perfectly. Apparently, for some reason, a Polarized Sunglasses offers 0 visibility when the screen is on the landscape.

  • When I run firefox it takes about 30 seconds and it prevents the functioning of my mcafee? It started after I updated to version 10!

    When I run firefox it takes about 30 seconds and it prevents the functioning of my mcafee? its has started after I updated to version 10!

    Hello

    You can try to update the add-on of McAfee. The latest version is reported to be less problematic. See also this.

  • I use to manage my DSL modem via an ip address. When I enter FF8 I wonder where to save the file. Why and how can I prevent the FF8 to do this?

    I use to manage my DSL modem via an ip address. When I enter FF8 I wonder where to save the file. Why and how can I prevent the FF8 to do this?

    And now, whenever I'm in an ip address that I wonder if I want to download the file.

    This happens when the modem server does not send the file in text/html, but with a different MIME type.

    I tried adding index.html in the event that the server can send this file as text/html.

    If your DSL modem has a support Web site, then you can try asking it there advice on how to configure the server modem.

  • Y at - it an option to prevent the contact requests?

    I was wondering what is the best solution for the problem of "spam contact requests. An option for preventing people from send you contact requests would solve this problem entirely.

    Is there such an option?

    Unfortunately there is no option to prevent the contact requests.

Maybe you are looking for