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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

The following statement resets the color of the focus rectangle:<br />

status = fscomm<strong>and</strong>2("SetFocusRectColor, , , );<br />

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

SetInputTextType<br />

Specifies the mode in which the input text field should be opened.<br />

Flash Lite supports input text functionality by asking the host application to start the generic<br />

device-specific text input interface, often referred to as the front-end processor (FEP). When<br />

the SetInputTextType comm<strong>and</strong> is not used, the FEP is opened in default mode.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

SetInputTextType variableName Name of the input text field. It can<br />

be either the name of a variable or a string value<br />

that contains the name of a variable.<br />

Note: A text field's variable name is not the same<br />

as its instance name. You can specify a text field's<br />

variable name in the Var text box in the property<br />

inspector or by using ActionScript. For example,<br />

the following code restricts input to numeric<br />

characters for the text field instance (numTxt)<br />

whose associated variable name is "numTxt_var".<br />

The following table shows what effect each mode has, <strong>and</strong> what modes are substituted:<br />

InputTextType<br />

Mode<br />

224 ActionScript language elements<br />

var numTxt:TextField;numTxt.variable =<br />

"numTxt_var";fscomm<strong>and</strong>2("SetInputTextType",<br />

"numTxt_var", "Numeric");<br />

type One of the values Numeric, Alpha,<br />

Alphanumeric, Latin, NonLatin, or NoRestriction.<br />

Sets the FEP to one of<br />

these mutually exclusive<br />

modes<br />

Numeric Numbers only (0 to 9) Alphanumeric<br />

Alpha Alphabetic characters only (A<br />

to Z, a to z)<br />

Alphanumeric Alphanumeric characters only<br />

(0 to 9, A to Z, a to z)<br />

0: Failure.<br />

1: Success.<br />

If not supported on current<br />

device, opens the FEP in this<br />

mode<br />

Alphanumeric<br />

Latin

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

Saved successfully!

Ooh no, something went wrong!