External AS - Why/How?

perhaps someone could explain how and why to use external actionscript files (*.as) or is it not necessary?


#include "fileName.as"

Say you’re writing something with a lot of scripting, you might want to include different AS files to keep it more organized…

thanks for the reply macneilslt

so does that become global or do you have to #include them wherever you need them and if so does it have to be a relative path?

something to keep in mind is that if you are perhaps distributing the final program on disk, since you have to include all those files and they are just regular text files, you could potentially give away all your hard-worked code to anyone.

That right there might be a good reason to keep stuff internal.