Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User Batu's Avatar
    Join Date
    Oct 2009
    Posts
    3
    I'd like that my game automaticly starts from orientation "Landscape"
    I have tried codes like these:
    Code:
    screenOrientation = "LandScape";
    fscommand( "Launch", screenOrientation = "LandScape");
    fscommand( "Launch", "Landscape");
    Thanks!

  2. #2
    Registered User fevos's Avatar
    Join Date
    Sep 2008
    Posts
    27
    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""
    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);
    if thats not what are you looking for tell me exactly what you so i could help you ...

    code from http://ptm.fi/?p=65

  3. #3
    Registered User Batu's Avatar
    Join Date
    Oct 2009
    Posts
    3
    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:
    Code:
    The class or interface 'com.nokia.lib.Device' could not be loaded.
    My code:
    Code:
    import com.nokia.lib.Device;
    var deviceObject:Object = new Device();
    deviceObject.DisableAutoRotation(true);
    fscommand2("fullscreen", true);
    fscommand2("SetQuality", "high");
    stop();
    Maybe I downloaded wrong fle, if I made that could someone send me right link?
    Thanks

  4. #4
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    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

  5. #5
    Registered User Batu's Avatar
    Join Date
    Oct 2009
    Posts
    3
    Well now it works, but how can i make my game start from orientation "landscape"?
    Thanks!

  6. #6
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Quote Originally Posted by Batu View Post
    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

  7. #7
    Regular Contributor earamsey's Avatar
    Join Date
    Mar 2003
    Location
    IL/USA
    Posts
    341
    Hi, does this require that one updates Nokia XpressMusic 5800 to Flash Lite 3.1? We don't have that option unless this can be done via an installtion .sis file along with application.
    Quote Originally Posted by fevos View Post
    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""
    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);
    if thats not what are you looking for tell me exactly what you so i could help you ...

    code from http://ptm.fi/?p=65
    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

  8. #8
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Quote Originally Posted by earamsey View Post
    Hi, does this require that one updates Nokia XpressMusic 5800 to Flash Lite 3.1? We don't have that option unless this can be done via an installtion .sis file along with application.
    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

Similar Threads

  1. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved