Skip to main content
Inspiring
October 13, 2006
Question

include?

  • October 13, 2006
  • 1 reply
  • 145 views
I am using an include to this .as document I have that someone gave me.
I am wondering if there is a way to test if that include worked or not.
I have a trace in one of the fuctions and it never fires and it seems
like the function never gets called, even though I think I am calling
it. So I am assuming it is not included right, but not sure how to test
that?

Thanks for any help with this!
Brian

This topic has been closed for replies.

1 reply

Inspiring
October 13, 2006

"Brian" <brian@agilitygraphics.com> wrote in message
news:egofgs$94c$1@forums.macromedia.com...
>I am using an include to this .as document I have that someone gave me. I
>am wondering if there is a way to test if that include worked or not. I
>have a trace in one of the fuctions and it never fires and it seems like
>the function never gets called, even though I think I am calling it. So I
>am assuming it is not included right, but not sure how to test that?
>
> Thanks for any help with this!
> Brian
>

//in main Flash timeline add:

#include "main.as"

//////////////////////////

//in main.as

trace(this);

---------------------------------

the #include directive takes your file and sticks the code in right where
the include is. So, if instead of trying to fire off a function, just add a
trace outside of any function and when it is included it will trace.