03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

The following example assigns the device identifier to the device variable:<br />

status = fscomm<strong>and</strong>2("GetDevice", "device");<br />

Some sample results <strong>and</strong> the devices they signify follow:<br />

D506i A Mitsubishi 506i phone. DFOMA1 A Mitsubishi FOMA1 phone. F506i A Fujitsu 506i<br />

phone. FFOMA1 A Fujitsu FOMA1 phone. N506i An NEC 506i phone. NFOMA1 An NEC<br />

FOMA1 phone. Nokia3650 A Nokia 3650 phone. p506i A Panasonic 506i phone. PFOMA1 A<br />

Panasonic FOMA1 phone. SH506i A Sharp 506i phone. SHFOMA1 A Sharp FOMA1 phone.<br />

SO506i A Sony 506iphone.<br />

GetDeviceID fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetDeviceID<br />

Sets a parameter that represents the unique identifier of the device (for example, the serial<br />

number).<br />

Comm<strong>and</strong> Parameters Value Returned<br />

GetDeviceID id A string to receive the unique identifier of the<br />

device. It can be either the name of a variable or a<br />

string value that contains the name of a variable.<br />

Example<br />

The following example assigns the unique identifier to the deviceID variable:<br />

status = fscomm<strong>and</strong>2("GetDeviceID", "deviceID");<br />

GetFreePlayerMemory fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetFreePlayerMemory<br />

Returns the amount of heap memory, in kilobytes, currently available to Flash Lite.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

Example<br />

The following example sets status equal to the amount of free memory:<br />

status = fscomm<strong>and</strong>2("GetFreePlayerMemory");<br />

-1: Not supported.<br />

0: <strong>Support</strong>ed.<br />

GetFreePlayerMemory None -1: Not supported.<br />

0 or positive value: Available kilobytes of<br />

heap memory.<br />

fscomm<strong>and</strong>2 Comm<strong>and</strong>s 213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!