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

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

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

Parameters<br />

[path]filename.as - filename.asThe filename <strong>and</strong> optional path for the script to add to<br />

the Actions panel or to the current script; .as is the recommended filename extension.<br />

Example<br />

The following examples show various ways of specifying a path for a file to be included in<br />

your script:<br />

// Note that #include statements do not end with a semicolon (;)<br />

// AS file is in same directory as FLA file or script<br />

// or is in the global Include directory or the First Run/Include directory<br />

#include "init_script.as"<br />

// AS file is in a subdirectory of one of the above directories<br />

// The subdirectory is named "FLA_includes"<br />

#include "FLA_includes/init_script.as"<br />

// AS file is in a subdirectory of the script file directory<br />

// The subdirectory is named "SCRIPT_includes"<br />

#include "SCRIPT_includes/init_script.as"<br />

// AS file is in a directory at the same level as one of the above<br />

directories<br />

// AS file is in a directory at the same level as the directory<br />

// that contains the script file<br />

// The directory is named "ALL_includes"<br />

#include "../ALL_includes/init_script.as"<br />

// AS file is specified by an absolute path in Windows<br />

// Note use of forward slashes, not backslashes<br />

#include "C:/Flash_scripts/init_script.as"<br />

// AS file is specified by an absolute path on Macintosh<br />

#include "Mac HD:Flash_scripts:init_script.as"<br />

#initclip directive<br />

#initclip order — Do not place a semicolon (;) at the end of the line that contains the<br />

#initclip statement.<br />

Compiler directive; indicates the beginning of a block of initialization actions. When multiple<br />

clips are initialized at the same time, you can use the order parameter to specify which<br />

initialization occurs first. Initialization actions execute when a movie clip symbol is defined. If<br />

the movie clip is an exported symbol, the initialization actions execute before the actions on<br />

Frame 1 of the SWF file. Otherwise, they execute immediately before the frame actions of the<br />

frame that contains the first instance of the associated movie clip symbol.<br />

Compiler Directives 25

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

Saved successfully!

Ooh no, something went wrong!