Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch
Controlling Flash playback
31
Syntax
status = FSCommand2( "SetInputTextType", variableName, type )
In the preceding example,
variableName
is the name of the variable associated with the input
text field and
type
is one of the following values:
Numeric
: sets the FEP to numbers only mode [0-9].
Alpha
: sets the FEP to alpha characters only mode [A-Z, a-z].
Alphanumeric
: sets the FEP to alphanumeric characters only mode [0-9, A-Z, a-z].
Latin
: sets FEP to Latin characters only mode [Alphanumeric and punctuation].
NonLatin
: sets FEP to non-Latin characters only mode [example: Kanji and Kana].
NoRestriction
: sets no restriction on the FEP—the FEP is started in default mode.
Return value
A value of 0 upon failure; 1 upon success.
Example
status = fscommand2("SetInputTextType", "input1", "Numeric");
Controlling Flash playback
The commands in this section control the playback of Flash content on mobile phones.
Display
The commands in this section control the display aspect of Flash content on mobile phones.
FullScreen()
The
FullScreen()
function sets the size of the display area to be used for rendering. The size can
be either full screen or less than full screen. Set the
size
argument to
true
to indicate full screen
and to
false
otherwise.
The
FullScreen()
function is executed immediately upon invocation. If this function is not
supported, a value of -1 is returned.
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).
supported when the player is running in the context of another application (for example, as a
plug-in to a browser).
Syntax
status = FSCommand2( "FullScreen", size )
In this example,
size
is either a defined variable or a constant string value (for example,
"true"
).
Return value
A value of -1 if the function is not supported; 0 if it’s supported.