Compatibility: Flash Lite 2.x
Some S60 3rd edition devices permit to switch between portrait and landscape orientations, natively (like N93, N95) or using a third party application (like N73, N80 using an application as rotateMe).
By default, Flash Lite applications only support one screen size (defined in the Document Properties dialog box).
If an application is launched in a screen size other than that defined, flash player will resize the document and add borders on two sides of the application.
stop();
fscommand2("FullScreen", true);
/* Set scaleMode to "noScale" setting: the SWF will not be scaled
when the size of the screen device changes*/
Stage.scaleMode = "noScale";
//Set the current alignment of the Flash movie to "Top Left"
Stage.align = "TL";
// Create a new movie Clip
this.createEmptyMovieClip("container",this.getNextHighestDepth());
container._x = 0;
container._y = 0;
//Detect the screen size and load the correct file
if (Stage.width == 240) {
container.loadMovie("file://E:/Others/myApp_portrait.swf");
} else {
container.loadMovie("file://E:/Others/myApp_landscape.swf");
}
In your two swf's files, don't refer to the _root level. Change all your references to _root by the movie clip instance name given in the main SWF (here container)
This method is similar to the preceding one, but instead loading external SWF files, it will load internal movie clips.
stop();
fscommand2("FullScreen", true);
/* Set scaleMode to "noScale" setting: the SWF will not be scaled
when the size of the screen device changes*/
Stage.scaleMode = "noScale";
//Set the current alignment of the Flash movie to "Top Left"
Stage.align = "TL";
//Detect the screen size and load the correct movieclip
if (Stage.width == 240) {
_root.attachMovie("portrait_mc","portrait",10);
} else {
_root.attachMovie("landscape_mc","landscape",10);
}

You can download an example with source code here:
This Flash Lite 2.x application get and show informations about the 5 five latest Nokia devices.
It use RSS feeds and XML Flash Lite methods.
Latest_Nokia_Devices supporting portrait/landscape modes
No related wiki articles found