×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Unhappy Nokia 5800 Bug - Auto rotation and textfield

    Hello again guys,

    I'm using this code to avoid the auto rotation

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


    It's working fine, except for one situation, when the user put his name on textfield and after come from the O.S. screen with the textfield is still selected and he rotate the device.

    I've tried to workaround with onChanged event and setting the focus to other component, but it doesn't work.

    txtRecord.onChanged = function() {
    Selection.setFocus(btnOk);
    };


    Is there an event on textfields to check when you get back from the OS screen?

    Best regards,
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Nokia 5800 Bug - Auto rotation and textfield

    Quote Originally Posted by atilacorreiacunha View Post
    Is there an event on textfields to check when you get back from the OS screen?
    Unfortunately, Flash Lite doesnt provide On Focus event i.e when ur application get a focus trigger the event thats why i do not find the same for textfield but native languages like Symbian C++ & Python do (which means it can be implemented in Flash Lite by integration ).Moreover, m sure u know that Flash Lite 3.1 provides a device object which locks the screen for you & it may not have any such issue.


    Best Regards,
    SajiSoft

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Nokia 5800 Bug - Auto rotation and textfield

    Hello again Saji,

    Unfortunatelly I can not use the version 3.1 because OviStore only permit submitions on 3.0 or lower.

    I was using device object before read the OviStore rules.

    Regards,
    Last edited by atilacorreiacunha; 2010-02-02 at 22:35. Reason: Complement
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Nokia 5800 Bug - Auto rotation and textfield

    Thats sad. Then the developer left with few options :
    1- Design your own keyboard with dynamic text to get input from end-user. (I see this in many offscreen symbian apps where it is more difficult to create a keyboard then flash lite)
    2- Support multiple (both) resolutions . (It is quite good but yes ! time consuming )
    3- Left it as it is. (If u dont have time)

    Best Regards,
    SajiSoft

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Nokia 5800 Bug - Auto rotation and textfield

    I think I'll get the number 3, .

    I have to translate to spanish yet.

    regards,
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  6. #6
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: Nokia 5800 Bug - Auto rotation and textfield

    Hi,
    If you turns off anti-aliasing by using "Bitmap Text (No Anti-Alias)" (in Property inspectorunder the Anti-Aliasing pop‑up menu) and embed only the neccesary fonts it will solve your problem.
    Good luck,
    Ranco

  7. #7
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Nokia 5800 Bug - Auto rotation and textfield

    Hello ranco,

    thanks for the tip, but it didn't work.
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  8. #8
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: Nokia 5800 Bug - Auto rotation and textfield

    Quote Originally Posted by atilacorreiacunha View Post
    Hello ranco,

    thanks for the tip, but it didn't work.
    Sorry, that's what solved my problem when I was stuck with this issue for at least week - use Bitmap text and embed the chars!

    Ranco

  9. #9
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Nokia 5800 Bug - Auto rotation and textfield

    Wow, it happens when the application come back from a pause-resume (External event, e.g phone call) too.
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  10. #10
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Unhappy Re: Nokia 5800 Bug - Auto rotation and textfield

    Ok guys, I would like to bring this thread back.

    I did a small app trying to fix this problem and nothing seems to work.

    It's not a FONT problem. So, doesn't matter if the InputText uses Embed Fonts or Device Fonts or any other method.

    The delegate onResize is not called when the InputText has the focus. That's the problem.

    If you guys have any idea to workaround this problem, I would like to hear.

    Just to remember, It's Flash Lite 3.0, so, I cannot use disableAutoRotate.

    Best Regards,
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  11. #11
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: Nokia 5800 Bug - Auto rotation and textfield

    Quote Originally Posted by atilacorreiacunha View Post
    Ok guys, I would like to bring this thread back.

    Just to remember, It's Flash Lite 3.0, so, I cannot use disableAutoRotate.

    Best Regards,
    OVI store now allows FL3.1, so you CAN you disableAutoRotation.
    (see the new publisher guide from Jan2010: http://nds2.fds-download.nokia.com/f...A1D63WEFOESBFR)

    Ranco

  12. #12
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Nokia 5800 Bug - Auto rotation and textfield

    Thanks a lot Ranco.


    Best regards
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  13. #13
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Thumbs down Re: Nokia 5800 Bug - Auto rotation and textfield

    Ok guys, here is the report

    Tests

    Flash Lite 3.0 Packaged in a sis file with Auto Rotation activated in my phone and using onResize event:
    - The game runs normally, but there is the Input Text issue mentioned in this thread.

    Flash Lite 3.0 Packaged in a sis file with Auto Rotation Deactivated in my phone and using onResize event:
    - The game runs a little bit slower than the previous version, but it's not critical.

    Flash Lite 3.1 Packaged in a sis file with Auto Rotation Deactivated by DisableAutoRotation method:
    - The game runs very slow and it leads to an Action Script Stuck error.

    Conclusion

    I cannot use Nokia Lib features.
    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

  14. #14
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Talking Re: Nokia 5800 Bug - Auto rotation and textfield

    Best of the 2 worlds,

    I'm still using onResive event and when the user have to put his name at the Input Text

    txtRecord.onSetFocus = function():void{
    _root.deviceObject.DisableAutoRotation(true);
    }

    txtRecord.onKillFocus = function():void{
    _root.deviceObject.DisableAutoRotation(false);
    }

    Atila Correia
    SCJP, SCWCD, SCJA and MCP C#
    Game Developer and 3D Modeller
    www.atilacorreia.com
    www.linkedin.com/in/atilacorreia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×