# Multiple #includes

**URL:** <https://forum.kirupa.com/t/multiple-includes/54558>\
**Category:** flash\
**Created:** [June 15, 2004, 7:20pm UTC](https://forum.kirupa.com/t/multiple-includes/54558 "2004-06-15T19:20:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbuff](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbuff](https://forum.kirupa.com/u/kbuff)\
**Post date:** [June 15, 2004, 7:20pm UTC](https://forum.kirupa.com/t/multiple-includes/54558/1 "2004-06-15T19:20:03Z")

</div>

[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]
