I'd like that my game automaticly starts from orientation "Landscape"
I have tried codes like these:
Thanks!Code:screenOrientation = "LandScape"; fscommand( "Launch", screenOrientation = "LandScape"); fscommand( "Launch", "Landscape");
I'd like that my game automaticly starts from orientation "Landscape"
I have tried codes like these:
Thanks!Code:screenOrientation = "LandScape"; fscommand( "Launch", screenOrientation = "LandScape"); fscommand( "Launch", "Landscape");
hi
this may help you if u cant find the exact code for it , after you design for landscape mode rotate your game /app and it will looks like it lunch in landscape mode and using this code it will remain in landscape (disable Flash Lite auto screen rotation )..
"" Remember install the corresponding AS 2.0 class files to your Flash IDE before you create Flash Lite applications that use the Device Object""
if thats not what are you looking for tell me exactly what you so i could help you ...Code:// use Device Object import com.nokia.lib.Device; // create a new Device Object var deviceObject:Object = new Device(); // disable auto rotation deviceObject.DisableAutoRotation(true);
code from http://ptm.fi/?p=65
I downloaded it from here: http://library.forum.nokia.com/topic...ibrary_1_0.zip
And extracted it to right place and set class path, but now i always have message:
My code:Code:The class or interface 'com.nokia.lib.Device' could not be loaded.
Maybe I downloaded wrong fle, if I made that could someone send me right link?Code:import com.nokia.lib.Device; var deviceObject:Object = new Device(); deviceObject.DisableAutoRotation(true); fscommand2("fullscreen", true); fscommand2("SetQuality", "high"); stop();
Thanks
You got the right file. where u extract it ? .One of the easy way to test it is to extract it to the folder having ur fla file (in which the above code is written).![]()
Best Regards,
SajiSoft
Well now it works, but how can i make my game start from orientation "landscape"?
Thanks!
There is no direct method i think but u can get some hints from this post :
Setting the default orientation for flash app
Best Regards,
SajiSoft
Erica A Ramsey / Mobile Apps Developer /
Resume ~ http://home.comcast.net/~erica.ramsey/CV
Some Project Screenshots ~ http://home.comcast.net/~erica.ramsey/CV/screens.html
Yes the DeviceObject needs to have Flash Lite 3.1 install and if u dont have that option then simply use a rotation technique (first one) discussed here :
How_to_avoid_auto_rotation_of_Flash_Lite_content_on_Nokia_5800
Best Regards,
SajiSoft