Example
The following code example assigns the device identifier to the
then updates a text field with the generic device name.
These are some sample results and the devices they signify:
A Mitsubishi 506i phone.
D506i
A Mitsubishi FOMA1 phone.
DFOMA1
A Fujitsu 506i phone.
F506i
A Fujitsu FOMA1 phone.
FFOMA1
An NEC 506i phone.
N506i
An NEC FOMA1 phone.
NFOMA1
A Nokia 3650 phone.
Nokia3650
A Panasonic 506i phone.
p506i
A Panasonic FOMA1 phone.
PFOMA1
A Sharp 506i phone.
SH506i
A Sharp FOMA1 phone.
SHFOMA1
A Sony 506iphone.
SO506i
statusdevice = fscommand2("GetDevice", "devicename");
switch(devicename) {
case "D506i":
/:myText += "device: Mitsubishi 506i" add newline;
break;
case "DFOMA1":
/:myText += "device: Mitsubishi FOMA1" add newline;
break;
case "F506i":
/:myText += "device: Fujitsu 506i" add newline;
break;
case "FFOMA1":
/:myText += "device: Fujitsu FOMA1" add newline;
break;
case "N506i":
/:myText += "device: NEC 506i" add newline;
break;
case "NFOMA1":
/:myText += "device: NEC FOMA1" add newline;
break;
case "Nokia 3650":
/:myText += "device: Nokia 3650" add newline;
break;
variable, and
statusdevice
fscommand2()
131
Need help?
Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?