×

Discussion Board

Results 1 to 11 of 11

Hybrid View

  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

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
  •