Home » Uncategorized

Error 1006: … not a function

7 May 2010 One Comment

Ok, seems that many people have had this issue before but, as always in this kind of situation, it seems that I’m the only one having this specific issue on the entire web…

If you google it, you’ll find plenty of people telling about their story and how they solved it.

Here is mine:
I tried to call a static function from a static class with other functions working perfectly well. When I created this new function and tried to call it, I would get this 1006 “… not a function” error.
The trick was that I was using this class in a externally loaded movie clip. I didn’t think to recompile the main (parent) movie clip with the new static function in the class.
It’s always the classes from the main movie clip that are used.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • E-mail this story to a friend!
  • LinkedIn
  • TwitThis

One Comment »

  • Tony said:

    thankx man! solved my headache. I knew this is how it worked but needed a reminder after staring at code for hours and then wondering why my function isn\’t existing. Thanks.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

Security Code: