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);

April 9, 2009

Flash Lite Tip: Disabling Virtual Keypad on S60 5th devices

Filed under: Flash Lite Tips — Tags: , , , , , , — Li YongFei @ 8:07 am

Dale posted a flash Lite tip: Disabling Virtual Keypad in FL3 on Nokia 5800, the S60 5th Edition touch screen devices display a virtual keypad in the Flash Lite 3.0 standalone player. Even if you have included the ActionScript for playing the SWF at fullscreen [fscommand2("FullScreen", true");], the virtual keypad will break full screen and take up screen real estate in the player, as you can see in the image below.


The way to avoid this is to add another line of ActionScript immediately before the fullScreen command -

fscommand2("DisableKeypadCompatibilityMode");

Adobe Flash Lite 2008-2010 All rights reserved.