Script

The Script node represents the root of an ActionScript 2 file.

Script

Syntax
Script :
   TRIVIA? ScriptItemList TRIVIA?

ScriptItemList :
   {
         ScriptItem
      | ScriptItem ScriptItemList
   }

ScriptItem :
   {
         Directive
      | Statement
      | Declaration
   }

Directive

Syntax
Directive :
   {
         IncludeDirective
      | InitDirective
   }

Include⁠Directive

Compile-time textual inclusion of a file content.

Syntax
IncludeDirective :
   #include TRIVIA StringLiteral TRIVIA? \n

Example

#include "lib.as"

Adobe documentation

Init⁠Directive

Block of initialization actions.

Syntax
InitDirective :
   #initclip TRIVIA StringLiteral TRIVIA? \n
   #endinitclip TRIVIA StringLiteral TRIVIA? \n

Adobe documentation