How to include As(Flash Action Script File) file in Flash.

satheesh

New Member
Messages
883
Reaction score
0
Points
0
How to Run As(Flash Action Script File) file in Flash.

Create a new AS file Flash 8 and Type your Program.

Example:

_root.createTextField("text",this.getNextHighestDepth(),0,0,100,50);
_root.text.text="Test";

Save as "Script-1.as".

Come to Flash, Select the first frame and Press F9.

Type like below:

Syntax:
#include "[path]filename.as":String

#include "Script-1.as"

Save and run it.

Note: AS file and fla saved in a same directory.
 
Top