-
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
-
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?
-
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.
-
FL1.1 code for softkey events:
// Handle right soft key event
on(keyPress "<PageDown>") {
//code
}
// Handle left soft key event
on(keyPress "<PageUp>") {
//code
}
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|