03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Usage 1: To use fscomm<strong>and</strong>() to send a message to Flash Player, you must use predefined<br />

comm<strong>and</strong>s <strong>and</strong> parameters. The following table shows the values that you can specify for the<br />

fscomm<strong>and</strong>() function's comm<strong>and</strong> <strong>and</strong> parameters parameters. These values control SWF<br />

files that are playing in Flash Player, including projectors. (A projector is a SWF file saved in a<br />

format that can run as a st<strong>and</strong>-alone application—that is, without Flash Player.)<br />

Comm<strong>and</strong> Parameter Purpose<br />

quit None Closes the projector.<br />

fullscreen true or false Specifying true sets Flash Player to<br />

full-screen mode. Specifying false<br />

returns the player to normal menu<br />

view.<br />

allowscale true or false Specifying false sets the player so<br />

that the SWF file is always drawn at its<br />

original size <strong>and</strong> never scaled.<br />

Specifying true forces the SWF file to<br />

scale to 100% of the player.<br />

showmenu true or false Specifying true enables the full set of<br />

context menu items. Specifying false<br />

hides all of the context menu items<br />

except About Flash Player <strong>and</strong><br />

Settings.<br />

exec Path to application Executes an application from within<br />

the projector.<br />

trapallkeys true or false Specifying true sends all key events,<br />

including accelerator keys, to the<br />

onClipEvent(keyDown/keyUp) h<strong>and</strong>ler<br />

in Flash Player.<br />

Availability:<br />

■ None of the comm<strong>and</strong>s described in the table are available in web players.<br />

■ All of the comm<strong>and</strong>s are available in st<strong>and</strong>-alone applications, such as projectors.<br />

■ Only allowscale <strong>and</strong> exec are available in test-movie players.<br />

The exec comm<strong>and</strong> can contain only the characters A-Z, a-z, 0-9, period (.), <strong>and</strong> underscore<br />

(_). The exec comm<strong>and</strong> runs in the subdirectory fscomm<strong>and</strong> only. In other words, if you use<br />

the exec comm<strong>and</strong> to call an application, the application must reside in a subdirectory named<br />

fscomm<strong>and</strong>. The exec comm<strong>and</strong> works only from within a Flash projector file.<br />

Global Functions 59

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

Saved successfully!

Ooh no, something went wrong!