title: Constructor arguments problem ActionScript 3
body: <p>I have a custom class defined in Actionscript and I want to make an instance of it in the main document of Flash application. However, after calling the constructor with one argument, Flash gives me this error:</p>
  
  <pre><code>Error #1063: Argument count mismatch on coa.application::MenuItem(). Expected 1, got 0.
  </code></pre>
  
  <p>This is my class:</p>
  
  <pre><code>public class MenuItem extends MovieClip{
      var button:SimpleButton;
  
      public function MenuItem(buttonLoc:uint) {
  
          button = new InvBtn();
          this.addChild(button);
          button.x=-81;
          button.y=buttonLoc*33;
          button.addEventListener(MouseEvent.CLICK, mybringToFront);
      }
  }
  </code></pre>
  
  <p>And this is my attempt to call its constructor:</p>
  
  <pre><code>var menu1:MovieClip = new MenuItem(3);
  </code></pre>
  
  <p>Any idea, whats wrong?</p>