Flash Lite 1.1
Contents |
Nokia devices support multiple screen orientation. Some devices provide dedicated softkey for each screen orientation.(like N93, N95)
Mobile devices where the screen orientation and softkey location can be easily changed.
Create flashlite 1.1 game or application, where the screen orientation and softkey location can be changed.
The fscommand2("GetSoftKeyLocation") command to obtain the current softkey location. Add key listener
// The screen orientation has changed by give an Insert key event.
On(KeyPress"<Insert>")
{
//Define a variable
lc=fscommand2("GetSoftKeyLocation")
}
The lc contains a value that represents the location of the softkey as follows:
// The screen orientation has changed by give an Insert key event.
On(keyPress"<Insert>")
{
//Define a variable
lc=fscommand2("GetSoftKeyLocation")
}
//when the device screen orientation changed the softkey location also changed.
if(lc==2){
tellTarget("txt_function"){
call("bottom")
}
} else if (lc==3){
tellTarget("txt_function"){
call("right")
}
}
Command support on real device, not support in test device emulator. (like N93, N95)
you can download an example with source code here:
--Narender Raul
No related wiki articles found