Setsoftkeys Fscommand2 Command - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

The following table shows what effect each mode has, and what modes are substituted:
InputTextType Mode
Numeric
Alpha
Alphanumeric
Latin
NonLatin
NoRestriction
NOTE: Not all mobile phones support these input text field types. For this reason, you must
validate the input text data.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following line of code sets the input text type of the field associated with the
variable to receive numeric data:
status = fscommand2("SetInputTextType", "input1", "Numeric");

SetSoftKeys fscommand2 Command

SetSoftKeys
Remaps the soft keys of a mobile device.
When the user presses a soft key, any ActionScript associated with the soft key event is
executed. The Flash Lite player executes this function immediately upon invocation. This
command is supported only when Flash Lite is running in stand-alone mode. It is not
supported when the player is running in the context of another application (for example, as a
plug-in to a browser).
Sets the FEP to one of
these mutually
exclusive modes
Numbers only (0 to 9)
Alphabetic characters only
(A to Z, a to z)
Alphanumeric characters
only (0 to 9, A to Z, a to z)
Latin characters only
(alphanumeric and
punctuation)
Non-Latin characters only
(for example, Kanji and
Kana)
Default mode (sets no
restriction on the FEP)
If not supported on current
device, opens the FEP in this
mode
Alphanumeric
Alphanumeric
Latin
NoRestriction
NoRestriction
N/A
fscommand2 Commands
input1
241

Advertisement

Table of Contents
loading

Table of Contents