[FMX] External AS Files+Flash Actionscript Bible

Hey all,
I was going to buy the flash actionscript bible, but i thought i might come here and ask you guys first, so if anybody has it, is it good, is it worth the huge amount i costs?!?!?
But alas, i have another query with this new thread,
External AS files, what are they, how can you make them, and how do you use them, any tips definitions or general help is wanted, as i am still learning AS,
many thanks,
Ben (flashy22)

external AS files are simple text files (usually with the extension .as) that contain only actionscript which can be included in your Flash movies at any place you would write it within the FLA. They’re included through the #include action. Example:

#include “scripts/myactions.as”

(not that no ; follows a #include action).

When Flash publishes your Flash movie into a SWF, it will go through all your scripts and find all #include actions. It then takes the script in the quoted file (myactions.as) and puts it in place of the #include line - kind of like an instance copy & and paste - so that the code is available within your swf movie ready to be played. Since the script is included in the final SWF, it is no longer needed to make the SWF function properly (i.e. you wouldn’t have to upload it to the server with the SWF for it to play right).

External .as files help in organization and make it easy to reuse code across projects. Its also required for all AS 2.0 class scripts. They need to be in external .as files, however, #include are not used for them (just for other non-class scripts).

Hey senocular,
So basiclly, i just open Notepad type in a code lets say

on (press){
gotoAndStop(2);
}

and save it as an all files “gostop.as”, then go onto a button’s actions and type in #include "AS/gostop.as"
and it would work?
if so thanks alot,
Ben (flashy22)
oh btw, hear any good/bad things about AS bible?