1 Reply Latest reply on Oct 13, 2006 11:05 AM by Newsgroup_User

    include?

    Level 7
      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

        • 1. Re: include?
          Level 7

          "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.