# \#include path problem \[MX\]

**URL:** <https://forum.kirupa.com/t/include-path-problem-mx/12638>\
**Category:** flash\
**Created:** [February 2, 2003, 11:28pm UTC](https://forum.kirupa.com/t/include-path-problem-mx/12638 "2003-02-02T23:28:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)\
**Post date:** [February 2, 2003, 11:28pm UTC](https://forum.kirupa.com/t/include-path-problem-mx/12638/1 "2003-02-02T23:28:49Z")

</div>

I am using a #include file with flash and all is working except when I give a path to the include file like

…/includes/db\_constants.as

Flash does not see the file. If I just use db\_constants.as as the path or render the flash file locally from my desktop flash sees the file.

So, question, is there a path issue when using the #include command? Does the includes file have to be in the same directory?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 12:28am UTC](https://forum.kirupa.com/t/include-path-problem-mx/12638/2 "2003-02-03T00:28:57Z")

</div>

```auto
#include "./voiture/variable.as"

```

works for me, and so does

```auto
#include "voiture/variable.as"

```

pom 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 12:35am UTC](https://forum.kirupa.com/t/include-path-problem-mx/12638/3 "2003-02-03T00:35:51Z")

</div>

Maybe it has something to do with the “…” as you know this takes you back one directory from where you are at.

This works in flash right?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 12:39am UTC](https://forum.kirupa.com/t/include-path-problem-mx/12638/4 "2003-02-03T00:39:25Z")

</div>

```auto
#include "../variable.as"

```

works perfectly too :moustache

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 12:58am UTC](https://forum.kirupa.com/t/include-path-problem-mx/12638/5 "2003-02-03T00:58:24Z")

</div>

Strange, I went ahead and tried it again and it’s working. Would not work a couple of days ago, but who cares, IT WORKS.

Thanks pom  
😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 1:47am UTC](https://forum.kirupa.com/t/include-path-problem-mx/12638/6 "2003-02-03T01:47:44Z")

</div>

a common problem with using #include is that sometimes people, by habit, include a semicolon (😉 at the end of a #include statement. Doing so will generate an error. So thats one thing to keep an eye out for in the future (though the error usually tips you off easily enough)
