03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InputTextType<br />

Mode<br />

Sets the FEP to one of<br />

these mutually exclusive<br />

modes<br />

Latin Latin characters only<br />

(alphanumeric <strong>and</strong><br />

punctuation)<br />

NonLatin Non-Latin characters only (for<br />

example, Kanji <strong>and</strong> Kana)<br />

NoRestriction Default mode (sets no<br />

restriction on the FEP)<br />

NoRestriction<br />

NoRestriction<br />

Example<br />

The following line of code sets the input text type of the field associated with the input1<br />

variable to receive numeric data:<br />

status = fscomm<strong>and</strong>2("SetInputTextType", "input1", "Numeric");<br />

SetSoftKeys fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

If not supported on current<br />

device, opens the FEP in this<br />

mode<br />

NOTE: Not all mobile phones support these input text field types. For this reason, you must<br />

validate the input text data.<br />

SetSoftKeys<br />

Remaps the soft keys of a mobile device.<br />

When the user presses a soft key, any ActionScript associated with the soft key event is<br />

executed. The Flash Lite player executes this function immediately upon invocation. This<br />

comm<strong>and</strong> is supported only when Flash Lite is running in st<strong>and</strong>-alone mode. It is not<br />

supported when the player is running in the context of another application (for example, as a<br />

plug-in to a browser).<br />

For backward compatibility with Flash Lite 1.1, the SOFT1 soft key is always mapped to the<br />

left key on the h<strong>and</strong>set, <strong>and</strong> the SOFT2 soft key is always mapped to the right key on the<br />

h<strong>and</strong>set. For the SOFT3 soft key <strong>and</strong> higher, the locations are dependent on each h<strong>and</strong>set.<br />

The arguments for this comm<strong>and</strong> specify the text to be displayed for the corresponding soft<br />

keys. When the SetSoftKeys comm<strong>and</strong> is executed, pressing the left key generates a SOFT1<br />

keypress event, <strong>and</strong> pressing the right key generates a SOFT2 keypress event. Pressing the<br />

SOFT3 through SOFT12 soft keys generates their respective events.<br />

N/A<br />

fscomm<strong>and</strong>2 Comm<strong>and</strong>s 225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!