Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch

Seite von 86
44
Chapter 5:  New FSCommand and FSCommand2 commands
Return value
A value of 
-1
 if the function is not supported; otherwise, the current signal level, returned as a 
number.
Device user settings
The commands in this section provide the mobile phone’s language setting to Flash content on 
the mobile phone. 
GetLanguage()
The 
GetLanguage()
 function sets a parameter that identifies the language currently used by the 
mobile phone. The language is returned as a string in a variable that is passed in by name..
This function is executed immediately upon invocation. If 
GetLanguage()
 is not supported, a 
value of 
-1
 is returned.
Syntax
status = FSCommand2( "GetLanguage”, “language”)
Return value
A value of 
-1
 if the function is not supported; 
0
 if it’s supported.
Resultant values for the 
language
:
cs
: Czech.
da
: Danish.
de
: German.
en-UK
: UK or international English.
en
: USA English.
es
: Spanish.
fi
: Finnish.
fr
: French.
hu
: Hungarian.
it
: Italian.
jp
: Japanese.
ko
: Korean.
nl
: Dutch.
no
: Norwegian.
pl
: Polish.
pt
: Portuguese.
ru
: Russian.