title: Error #1006: value is not a function. made a function through movieclip.Function and call it in eventlistener
body: <p>I got piece of code:</p>
  
  <pre><code>gameholder.addChild(crocodile);
  crocodile.Function = this["croccheck"];
  crocodile.addEventListener(MouseEvent.CLICK,animalclick);
  private function animalclick(evt:Event):void
      {
          if(!evt.currentTarget.addEventListener(Event.ENTER_FRAME,evt.currentTarget.Function))
          {
              evt.currentTarget.name.addEventListener(Event.ENTER_FRAME,evt.currentTarget.Function);
          }
      }
  private function croccheck(evt:Event):void
      {
          if(evt.currentTarget.currentLabel == Info.ANIMALS_READY)
          {
              evt.currentTarget.gotoAndPlay(Info.ANIMALS_ACT + "1");
              evt.currentTarget.removeEventListener(Event.ENTER_FRAME,evt.currentTarget.Function);
          }
      }
  </code></pre>
  
  <p>Even i got this error</p>
  
  <p>TypeError: Error #1006: value is not a function.
      at main/animalclick()</p>
  
  <p>it still work fine but i wonder why?</p>