Navigation based on screen orientation (landscape or portrait) in Flash CS6

I'm creating an app that will have a different menu if the phone is held landscape, or portrait.
I figure I have to tell flash to move to a new frame when the phone moves from landscape to portrait or vice versa, but I'm not sure the exact code to after creating the orientation event listener.

your orientation listener should call a function that executes a gotoAndStop.
the stage has an Stage.OrientationEvent.ORIENTATION_CHANGE event you can use:
stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE,changeF);
function changeF(e:StageOrientationEvent):void{
trace(e.afterOrientation.toString());

Similar Messages

  • How can I change video screen from landscape to portrait.  It is set to landscape since I updated to IOS 6.  TY

    How can I change video screen from landscape to portrait.  It is set to landscape since I updated to IOS 6.  TY

    Is the screen-rotation lock on? If it is then there is a padlock shown in the upper right by the battery icon. To turn off double click the Home button and fully swipe the bottom row fully right past the music controls and tap the padlock.
    Otherwise
    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • IPhone 5 with updated ios8 won't change orientations (landscape vs portrait).

    My iPhone five with updated ios8 won't change orientation between landscape and portrait. Does anybody have any suggestions?

    Hi lmilesfromnowhere, 
    Welcome to the Apple Support Communities!
    There may be a couple of different things I would suggest here. The first thing I would do would be to check and make sure the orientation lock is off. 
    iOS: Screen does not rotate
    If the lock is off and the issue continues, I would recommend restarting your device. If the issue continues after the restart, reset the device. 
    Turn your iOS device off and on (restart) and reset
    Have a great day, 
    Joe

  • Change View State Based On Screen Orientation?

    I'd like my app to change layouts based on the current screen orientation.  I believe this is done through view states.  I have three questions...
    1) How do I check the current orientation?
    2) Is there an event listener that will tell me when the orientation changes?
    3) How do I toggle between view states?
    Thank in advance!
    UPDATE: I figured out the answer to question 3...
    currentState = 'yourStateName';
    UPDATE II: I figured out the answer to question 1 as well.  I simply used the Capabilities object to determine the screens current width & height, then compare the two.  All of this is in a function that gets called when the app launches:
    public function checkOrientation():void
         var screenWidth:Number = Capabilities.screenResolutionX;
         var screenHeight:Number = Capabilities.screenResolutionY;
         if (screenWidth > screenHeight) {currentState='yourStateName1';}
         else if (screenWidth < screenHeight) {currentState='yourStateName2';}
    Now all I have to do is figure out how to call this function when there is an orientation change.  I tried the code below but get the included error:
    stage.addEventListener(Event.RESIZE, checkOrientation); // ERROR: Access of undefined property stage
    Why can't access the "stage" property???

    Hi,
    I work on platform using flash bulider 4, later i finsh the platform but i meeting one problem is resize project to work with diffrent size screen, but i can't solve the problem, i need platform work with diffrent Screen Orientation without problem could some help  please, this that what i done in code please help.
    Thanks,
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:rtc="http://ns.adobe.com/rtc" width="100%" height="100%" backgroundColor="#51575D">
           <fx:Style source="Client.css"/>
             <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                import flash.events.FullScreenEvent;
                protected function txtUsername_enterHandler(event:FlexEvent):void
                    // TODO Auto-generated method stub
                    connectRoom.login();
                    labelUsername.visible = false;
                    txtUsername.visible = false;
                function fullScreenRedraw(event:FullScreenEvent):void
                    if (event.fullScreen)
                        width  = Capabilities.screenResolutionX;
                        height = Capabilities.screenResolutionY;
                    else
                        width = stage.stageWidth;
                        height = stage.stageHeight;
            ]]>
        </fx:Script>
           <fx:Declarations>
             <s:Move duration="500" id="moveEffect"/>
            <s:Resize duration="500" id="resizeEffect"/>
        </fx:Declarations>
                  <mx:Image x="0" y="0" width="100%"  height="100%" scaleContent="false" autoLoad="true" source="greenbackground.png"/>
                                     <rtc:ConnectSessionContainer horizontalScrollPolicy="off" verticalScrollPolicy="off" id="connectRoom" autoLogin="false"
                                           roomURL="https://collaboration.adobelivecycle.com/account/yourroom"
                                           y="20" width="95%" height="90%" backgroundColor="#212D4B" contentBackgroundColor="#F6F6F0" borderAlpha="1.0" cornerRadius="30" contentBackgroundAlpha="1.0" backgroundAlpha="0.4" x="33" dropShadowVisible="true" borderVisible="true">
                        <rtc:authenticator>
                                <rtc:AdobeHSAuthenticator userName="{txtUsername.text}"/>
                     </rtc:authenticator>
                          <rtc:SimpleChat width="293" height="258" x="2" y="165" chromeColor="#384D91"/>
                           <rtc:WebcamSubscriber y="4" displayUserBars="true"  width="292" height="158" x="2"/>
                     <rtc:AudioSubscriber id="audioSub" width="0" height="0"/>
                                         <rtc:FileShare height="135" width="290" x="5" y="425" chromeColor="#284C79"/>
                        <rtc:ScreenShareSubscriber id="scrShare" width="81%" height="99%" y="4" x="299"/>
        </rtc:ConnectSessionContainer>
        <s:Label id="labelUsername" y="230" text="   Enter a username and press Enter:&#xd;" color="#B5C40D" fontWeight="bold" horizontalCenter="0"/>
        <s:TextInput y="250" width="229" textAlign="center" id="txtUsername" enter="txtUsername_enterHandler(event)" color="#090909"
    horizontalCenter="0" height="27" fontWeight="bold" borderAlpha="0.99" contentBackgroundColor="#989A9C"/>
    </s:Application>

  • Flash CS6 crashing on loading screen - everytime.

    Hi All,
    Ive just purchased Adobe Design and Web Premium.
    Ive managed to run other applications without any problem, like Photoshop 64bit, Illustrator 64bit, InDesign and Dreamweaver.
    However, everytime I tried to run Flash Professional CS6 it crashes when the loading screen appears.
    It says "Adobe Flash CS6 has stopped working"
    My system is running on Win 7 64bit
    Ive also updated my windows and ran Adobe Updates.
    Oh also tried uninstalling and clean up using the Adobe Creative Suite Cleaner
    Still it crashes... only Flash Pro. The rest aint got any problem.
    Would appreciate if there's any help or tips you can give.

    Is anyone esle still having this problem? I tried removing preferences and still got the error. I also uninstalled the entire CS6 install, ran the Adobe CS6 cleaunup tool and removed everything, reinstalled. I can get it to run if I run it as Admin, but that's annoying to click away the UAC prompt all the time and I don't like running programs as admin if I can avoid it for general security reasons..
    I thought it might be like Photoshop where it's incorrectly setup to run from a multi- hard disk environment like mine where the registry is setup to have user folders and files on a separate drive ( see this photoshop thread) but there doesn't seem to be any way of changing scratch disks in InDesign like the photoshop work-around.
    Anyway, here's my system info:
    Windows 7 Ultimate x64
    xeon x5550 ht
    8gb RAM
    ATI Firepro 1gb
    2 disks
         C: = windows system and software files
         D: = users folder

  • Why are my apps changing when i change the orientation from landscape to portrait

    Recently, on my ipad mini retina, when i change the orientation from landscape to portrait, the apps change. For example, when i enter a game like impossible and change to landscape to play it and then exit the screen has shifted to either the right or left and shows the first line of the next pages apps. Its kind of like when im in the middle of changing from one page to another but it only changes back to normal when i tough the screen. Im not sure if this has anything to do with the new 7.1 ios but it is becoming really annoying

    I know it is not a specific app problem because it happens when i come out of some of my apps, it doesnt happen all of the time, only sometimes. Also if any of you could help me with another issue with the same device, when i connect to wifi/hotspot i get static on the screen, it is very noticable when i show a dark picture or a large amount of the screen is a dark colour but i wanted to know if this was normal with the ipad mini retina. I have seen discussions about this device having problems connecting to wifi but i havent found any discussions on this. Does anyone know could cause this?

  • [Android 4.3] Unlock screen orientation *always* turns to portrait mode - why?

    After booting the tablet, the unlock screen orientation is in landscape mode for some seconds but turns to portrait mode. And when screen turns off (or is turned off with the power button) the tablet wakes up in portrait mode - always. Very annoying, since I have to turn it 90°, enter my PIN, and turn it back again.
    Any help?

    So here is what I've found:
    - The installed lockscreen does support landscape mode. Since it is in landscape mode after booting the tablet for some seconds.
    - Some users report that editing build.prop and set 'lockscreen.rot_override = 1' should help. Didn't help in my case
    - Finally I bought a screen rotation lock app (Rotation Control). That did the trick. 

  • Since backing up my iPad air and installing IOS 8.1.2 the screen doesn't move between landscape or portrait when I turn it. Any tips for getting it to do so?

    Since backing up my iPad air and installing IOS 8.1.2 the screen only shows the portrait view and won't change to landscape view when I turn the device. Any tips for getting back both views?

    If you see a lock icon in the upper right corner of the screen - then the screen orientation is locked.
    Try the side switch above the volume rocker first and see if that unlocks the screen. If that didn't work, swipe up from the bottom of the screen to get to the control center and the lock icon is in the row of icons at the top all the way to the right.
    If the screen is unlocked but still will not rotate, reset the iPad.
    Reset 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 button

  • Landscape and Portrait Orientation Problems

    Hello everyone,
    I am working on my first iBook using iBook Author. I am having a heck of a time understanding how to make something look good in both Landscape and Portrait orientation.
    For example, I am curious how to make the spaces between paragraphs disappear in portrait view, if I had to use them in order to make the landscape view look proper in terms of formatting. In depth, if I have a text for a section in the book that I need to have at the top of the next column, I am putting my cursor before the text and pressing enter a few times in order to move it along and onto the next column so it is at the top of the page.
    Here is a picture of what I am talking about:
    The highlighted text has been shifted down so it will be at the top of the next page.
    Now this is what it looks like in Portrait orientation:
    There are way too many empty lines between them. Also, you will notice at the top that Not Getting In the Way is also too close to the text above it. Correcting that by putting a space between the lines will screw up the Landscape formatting.
    Also, adding pictures makes it even MORE difficult to keep both formatted properly and clean.
    Any advice would be INCREDIBLE.
    Thank you everyone!

    Layout in landscape. Edit in portrait....assuming you've not disabled support for it.
    Preview/check in both.
    See the tips in this forum and
    Publishing With iBooks Author
    http://shop.oreilly.com/product/0636920025597.do 

  • Screen orientation is locked in landscape mode

    Screen orientation is locked in landscape mode.

    Swipe up with 4 fingers, slide to the right, and tap the orientation lock button on the left of the music controls. If this button is not present, and instead replaced with a button with a speaker icon, slide the switch above the volume controls on the right side of your iPad. If that does not work, put your iPad into DFU mode (hold down sleep/wake button for 3 seconds, in addition to the sleep/wake button, hold down the home button for 10 seconds, and then, let go of the sleep/wake button, and hold the home button for 20 seconds, or until you see the "Plug in to iTunes" screen), plug into your computer, and force restore. Then, it should be fixed. Good luck!
    Thanks,
    frickiewolf

  • After upgrading my IPad to IOS7 the orientation is default portrait and I would like landscape?

    After upgrading my IPad to IOS7 the orientation is default portrait and I would like landscape? How do I change it
    .I have gone to Settings and rotation lock, does not change it and also to Control Panel with the same result?

    Do you have a toggle switch on the side of your ipad, next to the volume? If so, try that.......it took awhile for me to find that answer by googling.......hope it works for you.

  • Printing landscape and portrait orientations in LR

    I have usually been printing from Qimage or QTR for my black and white, despite having heard good things about LR's print module.
    This afternoon I thought I would give LR a whirl at printing. I had a series of 4 photos (3 portrait orientation, 1 landscape) selected which I wanted to print one per page. In Print they all appeared oriented in the most logical fashion as I paged through the 4 pages (i.e. the longest dimension of the image ran down the longest dimension of the paper).
    I then selected my profile for my paper and hit Print... to go into my printer settings (Epson 3800) for that paper. These latter settings exist for both landscape and portrait orientations of my papers. As I had both landscape and portrait images I wished to print and the settings for the printer driver dialog are identical for both apart from the media orientation, I chose the landscape to get a quick feedback on whether LR would be able to handle a mixed bag of portrait and landscape images.
    As I feared, my first print (which was an image in portrait orientation) came out with the long axis of the image squeezed into the short dimension of the paper....so LR saw the choice I had made of a landscape orientation within the printer driver as a hard and fixed choice. Does this mean one can only do print runs of either portrait or landscape oriented images in LR and never combine the two?
    I realize there may be an easy answer to this as I've really not used LR for printing till now.
    Thanks for input,
    Dave M

    Thanks DJ-G....I can't swear but I am almost positive I had Rotate to Fit checked....indeed that would explain why when paging through the 4 pages in LR they were rotated to fit in the correct orientation. I'll check again. I do understand with Custom Package etc. we can print landscape and portrait when printing multiple images on the same page but my specific concern is printing one image per page and whether LR can handle a series of such prints in one print job if the images are a mix of landscape and portrait orientations.
    DM

  • How do I create both a landscape and portrait display for my landing page?

    I am using dreamweaver with phonegap to create an app.
    I want to have two options for the landing page; one optimized for portrait, one optimized for landscape, that will change based on device orientation.
    How do I do this?
    Thank you

    Have a look at this article http://voormedia.com/blog/2012/11/responsive-background-images-with-fixed-or-fluid-aspect- ratios

  • How to strictly lock screen in landscape mode by Agentry editor?

    Hi
    I am using SSM 3.0, Agentry client v6.0.38.1.
    How can I lock Android device screen in strictly landscape mode for our customized Agentry app through Agentry editor?
    If I lock device screen in landscape mode then it will affect other applications too.
    So is there any way to just lock the screen for particular Agentry application?
    Regards
    Prit

    Prit,
    There is no setting in the Agentry to force the application to only landscape or only portrait.
    However, you can through the Android branding process force the orientation.
    After you unzip the SMPAgentryClientFramework-Android-6.0.38.x.zip, in the AgentryAndroidClientSolution folder there is a file AndroidManifest.xml
    You will need to edit this file to add the following directive to the activity tags (12) in the file where the android:name starts with ".ui."
    android:screenOrientation="landscape"
    Here is one example from my file.
    <activity android:name=".ui.screensets.OverlayScreenSetActivity"
                   android:configChanges="orientation|keyboardHidden"
                   android:theme="@style/AgentryActivityDialog"
                   android:screenOrientation="landscape"/>
    After editing and saving the file simply build the branded client and when you launch the new client on the device it should automatically go into landscape mode no matter what orientation the device is in.
    --Bill

  • Change landscape-and-portrait-folio to landscape-only

    Is it possible after mistakenly having produced a folio with landscape-and-portrait-mode setting it back to landscape-only?
    In the new content viewer, if a folio is set for both landscpae and folio, but only one layout exists, it shows a grey empty page in the second alignment (before it didn't change the alignment and the picture wasn't changed when turning the iPad).
    Now, when you create a new folio, you are asked if this is landscape-and-portrait or portrait-only respectively landscpae-only. We mistakenly have chosen both-alignments and are now having the problem of the empty grey mode in portrait.
    Can this be changed after upload the layouts? Is this also happening within the app itself?

    Hi Bhaskar,
    thanks for your help. My intention is to create a single-orientation layout, but I created a both-orientations-layouts. Before v20 (or 19?) when just uploading one of the orientation into that folio, content viewer and the branded app just showed one orientation and fixed the layout within the iPad. Now, if you choose both-orientations and just upload a single one, you are getting a grey screen in the missing orientation.
    I wasn't aware of this fact (maybe because german customers weren't invited to sprint v20 presentation) but I'm afraid that you are right an  have to created the folio completely from the ground (which is a lot of more work with import function not running )
    Maybe this solves my push notification error with one of my folios I have
    Richard

Maybe you are looking for

  • NEED HELP GETTING NEW SOFTWARE AND ITUNES

    Hello. I recently updated my iphone 4s to the most recent update. I don't know what it's called, sorry. Anyways, once I did this, my iphone was no longer recognized by itunes. It was recognized by my computer, however. Because of this I tried to down

  • HELP: License for Adobe Bridge!

    Hi, I am trying to find information on Adobe Bridge's license. I am wondering if you can purchase this as a stand-alone for use as a DAM. Many of our non-creative departments require access to our assets so need a central management console everyone

  • Sun One application server connection problem for Oracle DB

    On our project in live environments we have six Sun One application servers that have been configured to connect to RAC Oracle database using OCI drivers. ( JDBC thick driver) Sun one application server : Version 7.0.0 Oracle Database : Version 9.2.0

  • Batch report of indesign docs

    Hi, Does anyone know if there is a solution for this scenario: I have about 2,000 indesign documents and I need to insure that horizontal/verticle scaling is not applied to any of the text inside text boxes. Is there anything that can interegate a fo

  • IPlanet Message installation problem

    hi, I am getting the following error while installing iPlanet Message Server. Anyone encoutered this problem please help. ERROR A serious problem occurred while installing the iPlanet Messaging Server Domain Component Tree (msg.ugldap.dctree.inf). It