fscommand2()
131
Example
The following code example assigns the device identifier to the
statusdevice
variable, and
then updates a text field with the generic device name.
These are some sample results and the devices they signify:
D506i
A Mitsubishi 506i phone.
DFOMA1
A Mitsubishi FOMA1 phone.
F506i
A Fujitsu 506i phone.
FFOMA1
A Fujitsu FOMA1 phone.
N506i
An NEC 506i phone.
NFOMA1
An NEC FOMA1 phone.
Nokia3650
A Nokia 3650 phone.
p506i
A Panasonic 506i phone.
PFOMA1
A Panasonic FOMA1 phone.
SH506i
A Sharp 506i phone.
SHFOMA1
A Sharp FOMA1 phone.
SO506i
A Sony 506iphone.
statusdevice = fscommand2("GetDevice", "devicename");
switch(devicename) {
case "D506i":
/:= "device: Mitsubishi 506i" add newline;
break;
case "DFOMA1":
/:= "device: Mitsubishi FOMA1" add newline;
break;
case "F506i":
/:= "device: Fujitsu 506i" add newline;
break;
case "FFOMA1":
/:= "device: Fujitsu FOMA1" add newline;
break;
case "N506i":
/:= "device: NEC 506i" add newline;
break;
case "NFOMA1":
/:= "device: NEC FOMA1" add newline;
break;
case "Nokia 3650":
/:= "device: Nokia 3650" add newline;
break;
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...