Initclip Directive - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Parameters
-
The filename and optional path for the script to add to
[path]filename.as
filename.as
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

— Do not place a semicolon (;) at the end of the line that contains the
#initclip order
#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
parameter to specify which
order
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.
Compiler Directives
25

Advertisement

Table of Contents
loading

Table of Contents