waffe
February 2, 2003, 11:28pm
1
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?
system
February 3, 2003, 12:28am
2
#include "./voiture/variable.as"
works for me, and so does
#include "voiture/variable.as"
pom
system
February 3, 2003, 12:35am
3
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?
system
February 3, 2003, 12:39am
4
#include "../variable.as"
works perfectly too :moustache
system
February 3, 2003, 12:58am
5
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
system
February 3, 2003, 1:47am
6
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)