6/27/2010 4:47:57 PM
Title:
.as files (motion)
I have a whole pile of .as files. How do I use these on another .fla I am creating?
I have gone into the movie clip properties (via the library panel) but it is not working. Do I embed it using AS3?
Can you please email me some generic code to use?
6/27/2010 11:14:02 PM
please mention details for precise answer.Mention actionscript version that you are using (AS1, AS2 or AS3) and are you using Flash cs or Flex
you can use include statement to include the actionscript files like this:
#include "actionscriptFile.as"
6/27/2010 11:20:12 PM
for including external Actionscript 3.0 file use the include statement without #
include "myscriptsFolder/myActionscript1.as"
note that ";" is not required in the end and remember that include is used for actionscript code files only not for classes.