A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Flash Lite SoftKeys

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    10

    Flash Lite SoftKeys

    Hi

    I'm new to Flash Lite.
    I'm developing a Flash Lite Application and I would like to known how to use the left and right softkey for my application.

    What is the code? I know it starts with FSCommmand but what is the full code? Where so I place the code? on the button ot on the timeline section?

    Thank in advance

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    Place this in a frame, not in a button.

    status = fscommand2("SetSoftKeys", "Left key label", "Right key label");

    The 2nd and 3rd arguments are the text labels that the phone will display on screen above the softkeys, if your application does not run in full screen. You can set these strings to be whatever you want.

    If your application runs in fullscreen then the user will not see any these values, and you will need to create your own labels in Flash Lite using a text box or a graphic.

    The code for detecting keypress events depends upon which version of Flash you are developing for. Are you developing for Flash Lite 1.1 or Flash Lite 2.0 AS2?

  3. #3
    Junior Member
    Join Date
    Mar 2008
    Posts
    10
    I'm using Flash Professinal 8 so I can only run the application on FLash Lite 1.1,

    Althouigh I'm testing the application on a Flash Lite 2.0 phone Nokia 5300.

  4. #4
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    FL1.1 code for softkey events:

    // Handle right soft key event
    on(keyPress "<PageDown>") {
    //code
    }

    // Handle left soft key event
    on(keyPress "<PageUp>") {
    //code
    }

  5. #5
    Junior Member
    Join Date
    Mar 2008
    Posts
    10
    Thnks for your help hp3!


Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center