×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Question [N97] Unable to capture event for RadioButton

    Hi,
    I have added a RadioButton and am trying to find user selection on it. But I have not been able to capture the appropriate even, I tried the following code and also on() but nothing gets fired when RadioButton is selected ? can someone please help with sample code ...Since its N97 I think FlashLite 3 and ActionScript 2 are applicable.

    ------------------ Sample Code ------------------
    // Create the object for the key listener
    var keyListener:Object = new Object();

    // Define the onKeyDown events to listen to
    keyListener.onKeyDown = function() {
    if (Key.getCode() == Key.ENTER) {
    trace("Selection key pressed");
    }
    else if (Key.getCode() == ExtendedKey.SOFT1) {
    trace("Left softkey pressed");
    }
    else if (Key.getCode() == ExtendedKey.SOFT2) {
    trace("Right softkey pressed");
    }
    else if (Key.getCode() == Key.UP) {
    trace("Up direction key pressed");
    }
    }

    // Enable the key listener
    Key.addListener(keyListener);
    ------------------ END ------------------

    -Thanks in advance

  2. #2
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: [N97] Unable to capture event for RadioButton

    Are you using the Flash's UI components ? If so I wish to inform that Adobe doesn't support them.
    I also don't see any codes relevant to RadioButton here. can you please elaborate on your case ?

    This link describes the usage of a RadioButton component..
    http://wiki.forum.nokia.com/index.ph...for_Flash_Lite
    Twitter - manikantan_k
    Just in --

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Re: [N97] Unable to capture event for RadioButton

    yes I am using the RadioButton from Flash > Windows > Components. Using Flash Lite 3 and ActionScript 2. It shows up on Adobe Device Central N97 Emulator but does not behave properly nor does it fire any events.

    Also is there a list of things that work & those that don't instead of spending days figuring them out ? Thanks
    Last edited by mchulet; 2010-06-22 at 17:17.

  4. #4
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: [N97] Unable to capture event for RadioButton

    The components that come in Flash are for the desktop and not optimised for mobile consumption.
    So, I suggest you to use the RadioButton component that I linked you in my previous post. The article also tells you how to use the same..
    Twitter - manikantan_k
    Just in --

Similar Threads

  1. Not getting event for N97 key
    By rajivmodh in forum Mobile Java General
    Replies: 3
    Last Post: 2010-03-23, 05:16
  2. Slide in/out event in N97 using J2me
    By rajivmodh in forum Mobile Java General
    Replies: 11
    Last Post: 2010-03-12, 10:20
  3. green button event in N97
    By noam.segal in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-10-15, 15:31
  4. Unable to capture key press/event
    By narendar_discover in forum Symbian
    Replies: 3
    Last Post: 2009-09-04, 08:17
  5. How to capture mobile ringing event or call connected event
    By nitin.84india in forum Mobile Java General
    Replies: 4
    Last Post: 2009-09-03, 06:19

Posting Permissions

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