![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 25](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553025.webp)
Compiler Directives
25
Parameters
[path]filename.as
-
filename.as
The filename and optional path for the script to add to
the Actions panel or to the current script;
.as
is the recommended filename extension.
Example
The following examples show various ways of specifying a path for a file to be included in
your script:
// Note that #include statements do not end with a semicolon (;)
// AS file is in same directory as FLA file or script
// or is in the global Include directory or the First Run/Include directory
#include "init_script.as"
// AS file is in a subdirectory of one of the above directories
// The subdirectory is named "FLA_includes"
#include "FLA_includes/init_script.as"
// AS file is in a subdirectory of the script file directory
// The subdirectory is named "SCRIPT_includes"
#include "SCRIPT_includes/init_script.as"
// AS file is in a directory at the same level as one of the above
directories
// AS file is in a directory at the same level as the directory
// that contains the script file
// The directory is named "ALL_includes"
#include "../ALL_includes/init_script.as"
// AS file is specified by an absolute path in Windows
// Note use of forward slashes, not backslashes
#include "C:/Flash_scripts/init_script.as"
// AS file is specified by an absolute path on Macintosh
#include "Mac HD:Flash_scripts:init_script.as"
#initclip directive
#initclip
order
—
Do not place a semicolon (;) at the end of the line that contains the
#initclip statement.
Compiler directive; indicates the beginning of a block of initialization actions. When multiple
clips are initialized at the same time, you can use the
order
parameter to specify which
initialization occurs first. Initialization actions execute when a movie clip symbol is defined. If
the movie clip is an exported symbol, the initialization actions execute before the actions on
Frame 1 of the SWF file. Otherwise, they execute immediately before the frame actions of the
frame that contains the first instance of the associated movie clip symbol.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...