×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    11

    Softkey disabled when using text input Flash Lite 2.1 E72

    I am developing an application that works perfectly on except when the user is entering data into a text field.

    For some reason, to trigger a text field, my settings softkey crashes and return to avail the unique device.

    When the focus leaves the text field, my softkey again work perfectly.

    The code I use is:

    Code:
    Key.removeListener(oListener);
    var oListener:Object = new Object();
    oListener.onKeyDown = function():Void 
    {
    	var keyCode = Key.getCode();
    	if (keyCode == ExtendedKey.SOFT1) {
    		fscommand2("Quit");
    	} else if (keyCode == ExtendedKey.SOFT2) {
    		// Obtem os valores
    		var user:String = usuario.text;
    		var pass:String = senha.text;
    		Login(user,pass);
    	}
    }
    Key.addListener(oListener);
    Someone has experienced this kind of problem?

    Now, thank you all for your help.

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Ciao,

    did you reset the softkeys? Also the E72 has Flash Lite 3.0 not 2.1
    Alessandro

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    11

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Quote Originally Posted by biskero View Post
    Ciao,

    did you reset the softkeys? Also the E72 has Flash Lite 3.0 not 2.1
    Alessandro
    I made a change, I created a function that is called on each frame of the application.

    Code:
    function SetMyKeys(){
    	fscommand2("ResetSoftKeys"); 
    	fscommand2 ("DisableKeypadCompatibilityMode");
    	
    	Key.removeListener(oListener);
    	var oListener:Object = new Object();
    	oListener.onKeyDown = function():Void 
    	{
    		var keyCode = Key.getCode();
    		if (keyCode == ExtendedKey.SOFT1) {
    			fscommand2("Quit");
    		} else if (keyCode == ExtendedKey.SOFT2) {
    			// Obtem os valores
    			var user:String = usuario.text;
    			var pass:String = senha.text;
    			Login(user,pass);
    		}
    	}
    	Key.addListener(oListener);
    }
    Unfortunately, nothing has changed. When the text field is enabled, the phone's buttons prevail.

    Just take the focus of the text field that controls my work again.

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Ciao,

    do you have the following line of code on 1st frame?
    fscommand2("SetSoftKeys", "", "");

    Alessandro

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    11

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Quote Originally Posted by biskero View Post
    Ciao,

    do you have the following line of code on 1st frame?
    fscommand2("SetSoftKeys", "", "");

    Alessandro
    Yes, I already placed but still not obeying.

    Could it be some bug in this device?

    The sintaxy is correct, right?

    Thanks

  6. #6
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Ciao,

    you have fscommand2("ResetSoftKeys"); and not fscommand2("SetSoftKeys", "", "");

    Also this code go on the very first line of the first frame or code not inside a function:

    fscommand2 ("DisableKeypadCompatibilityMode");
    fscommand2("SetSoftKeys", "", "");


    Alessandro

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    11

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Quote Originally Posted by biskero View Post
    Ciao,

    you have fscommand2("ResetSoftKeys"); and not fscommand2("SetSoftKeys", "", "");

    Also this code go on the very first line of the first frame or code not inside a function:

    fscommand2 ("DisableKeypadCompatibilityMode");
    fscommand2("SetSoftKeys", "", "");


    Alessandro
    I made another application to perform some tests.

    This new application has only one frame

    First, reset the keys, then Set the labels you want to use and then have the function that will get the clicks.

    But, unfortunately, simply activate the text field the buttons back to the original device.

    I tried to do the same experiment using the componetne TextInput and a normal text input type. In both cases, the result was the same.

    Follow the new code:

    Code:
    fscommand2("ResetSoftKeys"); 
    fscommand2 ("DisableKeypadCompatibilityMode");
    fscommand2("SetSoftKeys", "Fechar", "Entrar");
    Key.removeListener(oListener);
    var oListener:Object = new Object();
    oListener.onKeyDown = function():Void 
    {
    	var keyCode = Key.getCode();
    	if (keyCode == ExtendedKey.SOFT1) {
    		fscommand2("Quit");
    	} else if (keyCode == ExtendedKey.SOFT2) {
    		// Obtem os valores
    		var user:String = usuario.text;
    		var pass:String = senha.text;
    		retorno.text = "Usuário: "+user+" senha: "+pass;
    	}
    }
    Key.addListener(oListener);
    Thanks.

  8. #8
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Ciao,

    ok, oode now is correct but the behavior you are seeing is a know bug in Nokia implementation for Flash Lite.
    On an input text field, the Flash Lite player looses control and phone softkeys control are handed over to the phone system.

    Sorry for the confusion but looking at a code sample sometimes is not enough to figure out what is happening. I was trying to have the confirmation that you were having the same issue on the simple code example. Debugging on Flash Lite is not always the easiest job !!!

    We have asked to fix the issue since Flash Lite 3.0 Adobe beta program but nothing happened.

    Alessandro

  9. #9
    Registered User
    Join Date
    May 2009
    Posts
    11

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Thinking of an alternative, which would be extreme. Perhaps having to make my own keyboard, to appear in the application rather than using a text field ...

  10. #10
    Registered User
    Join Date
    May 2009
    Posts
    11

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Quote Originally Posted by biskero View Post
    Ciao,

    ok, oode now is correct but the behavior you are seeing is a know bug in Nokia implementation for Flash Lite.
    On an input text field, the Flash Lite player looses control and phone softkeys control are handed over to the phone system.

    Sorry for the confusion but looking at a code sample sometimes is not enough to figure out what is happening. I was trying to have the confirmation that you were having the same issue on the simple code example. Debugging on Flash Lite is not always the easiest job !!!

    We have asked to fix the issue since Flash Lite 3.0 Adobe beta program but nothing happened.

    Alessandro
    Alessandro, thanks for the help.

    Perhaps the alternative is really to create a keyboard for text entries, or create buttons in the application, which inhibits the user from using the keys, especially the right to close the application.

    Again, thanks!

  11. #11
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Softkey disabled when using text input Flash Lite 2.1 E72

    Ciao,

    try to put the buttons inside the app layout instead of using the soft keys, so the user will be :tricked" to use those buttons !
    It's a workaround not a solution !

    Alessandro

Similar Threads

  1. Flash Lite and Text decoration
    By Noeff2002 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2009-10-22, 07:32
  2. Flash CS3 + Flash Lite 1.x + dynamic text + embedded fonts = broken?
    By robchis in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-02-28, 13:04
  3. How to receive softkey events in Flash lite application embedded in HTML
    By keerthivasanp in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-09-30, 14:27
  4. Input method close my flash lite app
    By sxknight in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2008-08-20, 20:16

Posting Permissions

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