Adobe Flash Lite

April 23, 2009

Flash Lite Tips: How to disable Flash Lite auto screen orientation/rotation on Nokia 5800

Filed under: Flash Lite Tips — Tags: , , — Li YongFei @ 9:14 am

ugur has posted a new tip, how to disable auto rotation / orientation change from a Flash Lite project for Nokia 5800 (360×640 screen). It simply rotates the main Movieclip to rotate -90 degrees and back whenever an orientation change is detected. It’s not the perfect solution, however will keep you going until Nokia or Adobe fixes the real problem.

The following is the 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);

If you like this post then please consider subscribing to my full feed RSS. You can also subscribe by Email and have new posts sent directly to your inbox.

  • Facebook
  • Digg
  • TwitThis
  • E-mail this story to a friend!
  • Technorati
  • Sphinn
  • Mixx
  • Google
  • blinkbits
  • del.icio.us
  • BlogMemes
  • blogtercimlap
  • Book.mark.hu
  • Live
  • Reddit
  • YahooMyWeb
  • MyShare
  • N4G
  • Webnews.de

Related Posts

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

CAPTCHA Image
Refresh Image

Adobe Flash Lite 2008-2010 All rights reserved.