[font=Arial]My issue isn’t with including several different .as files, but rather, having to include one .as file more than once. Here’s the situation:
functions.as - has some functions that are used commonly
myClass.as - has class definition whose member functions require some procedures from functions.as
myFlash.fla - Flash application which has instances of myClass and also requires use of functions.as
However, myClass.as doesn’t like to include functions.as…
ActionScript 2.0 class scripts may only define class or interface constructs. (no matter where I place #include)
although myFlash.fla can include it and will work without error.
Is there some convention I’m not aware of where I can use #include in a class definition file? And if so, will it create a problem with multiple declaration of the functions in functions.as? As far as I know, there is no equivalent to C++'s #define and #ifndef preprocessor directives in Actionscript 2.0… a possibility for future development? [/font]