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.

parameters:String - A string passed to the host application for any use, or a value passed to<br />

the Flash Lite player.<br />

Example<br />

In the following example, the fscomm<strong>and</strong>() function opens wap.yahoo.com on the services/<br />

Web browser on Series 60 phones:<br />

on(keyPress "9") {<br />

status = fscomm<strong>and</strong>("launch",<br />

"z:\\system\\apps\\browser\\browser.app,http://wap.yahoo.com");<br />

}<br />

fscomm<strong>and</strong>2 function<br />

fscomm<strong>and</strong>2(comm<strong>and</strong>:String, parameter1:String,...parameterN:String) : Void<br />

Lets the SWF file communicate with the Flash Lite player or a host application on a mobile<br />

device.<br />

To use fscomm<strong>and</strong>2() to send a message to the Flash Lite player, you must use predefined<br />

comm<strong>and</strong>s <strong>and</strong> parameters. See the "fscomm<strong>and</strong>2 Comm<strong>and</strong>s" section under "ActionScript<br />

language elements" for the values you can specify for the fscomm<strong>and</strong>() function's comm<strong>and</strong>s<br />

<strong>and</strong> parameters. These values control SWF files that are playing in the Flash Lite player.<br />

The fscomm<strong>and</strong>2() function is similar to the fscomm<strong>and</strong>() function, with the following<br />

differences:<br />

■ The fscomm<strong>and</strong>2()function can take any number of arguments. By contrast,<br />

fscomm<strong>and</strong>() can take only one argument.<br />

■ Flash Lite executes fscomm<strong>and</strong>2() immediately (in other words, within the frame),<br />

whereas fscomm<strong>and</strong>() is executed at the end of the frame being processed.<br />

■ The fscomm<strong>and</strong>2() function returns a value that can be used to report success, failure, or<br />

the result of the comm<strong>and</strong>.<br />

Note: None of the fscomm<strong>and</strong>2() comm<strong>and</strong>s are available in Web players.<br />

Deprecated fscomm<strong>and</strong>2() comm<strong>and</strong>s<br />

Some fscomm<strong>and</strong>2() comm<strong>and</strong>s from Flash Lite 1.1 have been deprecated in Flash Lite 2.0.<br />

The following table shows the deprecated fscomm<strong>and</strong>2() comm<strong>and</strong>s:<br />

Comm<strong>and</strong> Deprecated By<br />

Escape escape global function<br />

GetDateDay getDate() method of Date object<br />

Global Functions 45

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

Saved successfully!

Ooh no, something went wrong!