×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    100

    Lock orientation in FlashLite 4

    Is it possible to lock the screen orientation in FlashLite 4 apps.

    I would like to lock the orientation to Landscape/portrait mode, no matter in which orientation user opens the app.



  2. #2
    Regular Contributor
    Join Date
    May 2007
    Location
    Finland
    Posts
    134

    Re: Lock orientation in FlashLite 4

    Depending a bit on how you are embedding the swf, you can disable autorotation in Flash Lite 4 inside the WRT widget:
    http://library.forum.nokia.com/topic...1823A4534.html

    Or are you embedding in a Symbian app or perhaps NFL?

    The only other way in Flash Lite 4 seems to be this:
    Code:
    var stageSizeListener:Object = new Object();
    stageSizeListener.onResize=function()
    {
    if(Stage.width > Stage.height) {
    _root.main._rotation = -90;
    _root.main._x = 0;
    _root.main._y = 360;
    } else {
    _root.main._rotation = 0;
    _root.main._x = 0;
    _root.main._y = 0;
    }
    }
    Stage.addListener(stageSizeListener);
    Last edited by Risalmin; 2011-03-28 at 08:37.

Similar Threads

  1. how to lock orientation in meego with QT
    By linlin_0 in forum Nokia N9
    Replies: 3
    Last Post: 2010-11-16, 08:57
  2. Lock orientation change in N97
    By darshan.gandhi in forum Symbian User Interface
    Replies: 7
    Last Post: 2010-08-09, 04:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •