Air 2.6 screen orientation

I'm trying to get this Air 2.6 functionality to work again.

http://kb2.Adobe.com/CPS/891/cpsid_89107.html

Changes in AIR 2.6

Orientation changes in the namespace 2.6 screen

According the doc of liberation, he says"the swf file is required to be compiled with the flag '- target - Player = 11" to make use of the supportedOrientations API. »

How to "compile with the flag"?

I use Flash CS5 to publish the .swf

I got the job of adt command line.

My AS3 script:

addEventListener (StageOrientationEvent.ORIENTATION_CHANGE, onOrientationChange);

function onOrientationChange(event:StageOrientationEvent):void {}

trace("onOrientationChange:"+Event.afterOrientation);

.. .and result of process.

}

}

Thank you

Alfred

StageOrientationEvent.ORIENTATION_CHANGE and StageOrientationEvent.ORIENTATION_CHANGING are not part of the supportedOrientations API. If you want to prevent the Portrait, you can do it like this:

stage.addEventListener (StageOrientationEvent.ORIENTATION_CHANGING, orientationChanging);

private void orientationChanging(e:StageOrientationEvent) {}

If (e.afterOrientation == 'default' | e.afterOrientation == 'upside down') {}

e.preventDefault ();

}

}

This trick works with AIR 2.0, but also AIR 2.6 and without the need for player 11.

Tags: Adobe AIR

Similar Questions

  • 21.5 inches a month old iMac had a pink line down the screen-oriented...

    21.5 inches a month old iMac had a pink line down the screen-oriented...

    Return it to the store for assessment.   It is in the warranty period of 12 months, so it could be replaced if you insist that you are in the United Kingdom.   Otherwise it is covered by your warranty and is either replaced or repaired according to the countries.

  • My screen orientation is implemented alone

    This is all portrait view and I can't understand how files to see landscape. Help!

    Hello

    Try this link:
  • Desktop screen orientation

    How can I change my screen orientation? This isn't for printing, simply look at one. Press the wrong button and now have to turn on the computer side to read.

    Wednesday, August 11, 2010, 23:49:38 + 0000, mtngardenlady wrote:

    How can I change my screen orientation? This isn't for printing, simply look at one. Press the wrong button and now have to turn on the computer side to read.

    The ability to rotate the screen image is a feature of your video card, to help work with instructors who rotate the portrait orientation. Almost certainly you accidentally pressed Ctrl-Alt, and
    an arrow key.
    Rotate using these keys.

    Ken Blake

  • To adapt to the screen orientation by using javascript (for playbook)

    Hi all

    I know that the subject of the screen orientation has been crossed many times already, but I've searched and searched in the webworks put on an answer and can't find it.

    My application is made for the landscape. I have 2 options. ((1) lock app in landscape which I think still can be done using webworks (but please correct me if I'm worng) or 2) to scale the app for the portrait.

    Because to my knowledge 1) cannot be done, I'll focus on 2). Has anyone seen or written a javascript/css script that checks if the user holds the tablet in landscape or portrait and adapt to the 2 on-the-fly switching of b/w? My app is made for 1024 x 600. I know it can evolve using CSS 0.6 starting to adapt to the screen, but I don't know how to check and then re - evolve afterwards with javascript.

    Any help, please and thank you.

    In fact, you can lock in landscape orientation with

    your config.Xml file. Just remove the space after "rim:" because I added it to prevent the Bulletin Board to return as , haha.

  • The lock screen orientation

    How to lock the screen orientation in application of 10 Blackberry webworks? I want my app to always remain in fashion portrait.

    See the element of config.xml param/guidance here:
    https://developer.BlackBerry.com/HTML5/documentation/param_element.html

  • Image of the scale when screen orientation change

    I'm putting an image when screen orientation change, I put the logic based on sublayout. However, it is called no effect. It works fine the first time. Then, when I incline simulator, not touch.

    BitmapField private;

    protected void sublayout (int maxWidth, maxHeight int ) {}

    Super.sublayout (maxWidth, maxHeight);

     

                 if (width == Display.getWidth ())

    {

                    return;

    }

    on the other

    {

    width = Display.getWidth ();

    ctrHeadImg = ctrHeadImg.scaleImage32 (scaleXFixed32, scaleYFixed32);

    a = new BitmapField();

    a.setBitmap (ctrHeadImg.getBitmap ());

    loaded;

    layoutChild (, a.getBitmapWidth (), a.getBitmapHeight ());

    setPositionChild (, bitmap1.getLeft () + bitmap1.getBitmapWidth (), 0);

    ...................................

    setExtent (w, h);

    Can you elaborate on what you see?  What does not work?  Is called the scaleImage32 method?  The field is not be added to the screen or is the image not adjusted as desired?  What values are the scale by?

    I recommend having a look at this post.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=41782&query.ID=18...

  • I use photoshop elements 12 on Macbook air and the screen freezes when I try to use the tools. Then I have to force quit if I lose my job. someone knows how to fix this?

    I use photoshop elements 12 on Macbook air and the screen freezes when I try to use the tools. Then I have to force quit if I lose my job. someone knows how to fix this?

    What version of Mac OS X are you using? If the Yosemite, you will need to upgrade to 10.10.1 or higher version.

    In any case, start by going in the editor preferences > general, click this button and the restart of the Editor:

  • Question of screen Orientation

    I can't understand how to change how the screen orientation changes when I move my x 201 laptop mode to Tablet mode. As it is, when I close it for a Tablet, the screen becomes portrait, however I would like to change to make it reverse landscape (i.e. the computer mode unlike portable 180 degrees).

    I studied the topic online and I can't find answers, does anyone know how to do this?

    -chris

    There are 2 methods to configure (assumes that you are using Windows 7):

    1. Go to control panel > Lenovo Tablet utility > Auto Screen Rotation.
      (be sure to this Menu Popup Tablet is installed, http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-67219 )
    2. Go to control panel > Tablet PC settings > display (tab) > click on 'Go to Orientation', then you can see "Orientation sequence settings" there.
  • A bad start ios IPAD Landscape Mode screen orientation

    Dear developers, I hope that someone has encountered the same problem I have and has a solution.  When the application opens, initially, I get the correct start in landscape mode screen showing upwards, but then a split second later, it seems that the same splash screen is rotated 90 degrees and appears distorted in portrait mode.  The application was designed for the landscape mode ONLY and apart from this problem, works perfectly well.

    I created a single app for IPAD.  I use cs6.  I use the latest version of AIR 16.0.0.250.  I created a file ipa ADHOC with the following publication

    Landscape format

    Fullscreen is checked

    Auto orientation checked

    Make the Mode: GPU

    Resolution: Standard, although I had the same problem with HIGH resolution

    Files included

    Default - Landscape.png

    [email protected]

    I have created several applications in the past with different versions of AIR and have never had this problem.

    Thanks for any help/hint, you can provide.

    Justin

    I logged this bug yesterday. You could go and vote or add notes:

    Bug #3915279 - launch image twitches from landscape to portrait

    For now, use build 222.

  • IPad air 1 white screen after update?

    I had recently updated my Ipad (16 gb, Wifi) 1 air to ios 9.3.5. After using it for a day now the ipad screen is empty.

    Can anyone help or problem similar face?

    Hello

    Try a reboot press and hold the power button / stop and menu button hold both down until you see the apple logo

    It may take up to 30 seconds.

    See you soon

  • Lines that appear in folders on the Air iPad home screen

    I have an iPad Air. Yesterday when I open a folder of apps on my home screen, lines appeared. It's never happened before.  This continues to happen.  I changed the display settings, restarted iPad, still no change.  Any suggestions?

    See attached picture.

    If you already have a Reset, try a restore.

    Reset: hold the Home and Power buttons until you see the logo Apple (10-15 seconds).

    If this does not help, you may need to restore your iPhone: https://support.apple.com/en-us/HT204184

    If your backup in iTunes, make sure that it is an encrypted backup.

  • MacBook Air 13 inch screen keyboard brands

    I just bought a macbook air for the College and as anyone who has already purchased an expensive product, I want to take good care of it, then it will last me a good amount of time (at least until I've finished law school). After some research on the web, it has come to my attention that the keyboard can scratch the screen when the laptop is a full backpack (quite a typical scenario in the lives of students). Should I put a cloth Microfiber between the keyboard and the screen when I close the laptop or should I invest in a screen protector or is my stupid just afraid with no. anchor in reality? Thank you in advance!

    Do not use Palm or Cap covers on a MacBook Pro with Retina - Apple Support display here, is what Apple thinks about it actually, I guess that the cloth would increase the pressure and it can cause more damage, especially if it's the MacBook Air. And I also think that a cheap and quality product should not damaged so easily. Worry is not about this, your MacBook is self-sufficient

  • iPad, screen Orientation change without moving the iPad? An application perhaps? Is this possible?

    I would like to have the ability to change the orientation of the screen without physically rotate the iPad vertically.

    Here's what I mean.

    I have the iPad on the desktop and I want to check the email in landscape mode, I move on the table horizontally to landscape mode and orientation should change. It is not for the moment. I have to raise the iPad on the table and to change the direction from Portrait to landscape and when I go back to an application demanding in portrait mode, I have to again raise the iPad on the table.

    I was wondering if there is a utility app that allows the switch without raising the iPad and turning to change direction.

    Hello amitkapila2,

    Yes a few apps will change your orientation when you start them. Try roating your iPad in landscape ounces landscape enable locking focus on the home screen (in the last control center) and then launch the application of it rotates so it's the app.

  • MacBook air 13 "2014 - screen replacement cost

    Hello!

    I need to change my screen (display and rear part) of my macbook air 13 "at the beginning of 2014 (accidental damage ;(

    Anyone know how much it costs in an Apple Store?

    (actually im in Italy)

    TNX

    d.

    You better appointment Genius Bar to inquire of the replacement cost. It's free.

Maybe you are looking for

  • Drivers from the HP site

    All of a sudden I can't drivers from HPs website - I use a Paviliion DV9700 with windows Vista - and all the software updates.  I can find detect my machine through the car, but when I click on the software/driver updates, I am sent to the main suppo

  • Control of data rows Excel (write on a file of measure)

    Hi all Objective: Get a bit of a live waveform of two pressure sensors, as well as calculate the differential pressure. The LabVIEW VI is intended for students for an exercise in module, in which data are exported to an excel file for the students to

  • Beep in Outlook Express

    Until yesterday, I used to get a sound audible in Oulook Express warning sign when I decides to delete an e-mail message from her remove the folder. I still get the warning message beep. What could have happen overnight? I would appreciate help on ho

  • Windows Media Center won't download guide ads when net framework 4 is installed

    Whenever I want to download Guide listings for Media Center, I uninstall NETFramework 4.  So, I have to re - install to run other programs, such as the of Garmin GPS map updates. I am running Windows XP SP3. Is there an update or patch to fix this pr

  • The library panel does not properly

    Hello!I have trouble using the library in Photoshop CC Panel (and other applications that use the library panel as well). At first glance of the Panel library seems to work very well: I see my libraries, can create new sections and drop the items in