EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE - Page 131

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE
162 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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":
/: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;

Table of Contents

Related product manuals