Linked class constructor

I have a movieclip in my library that I have linked to a class with a constructor that takes a parameter. But I can’t instantiate the library clip with the class constructor. It says the constructor should not take any parameters. Is it using the movieclip constructor instead of the linked class? Is it possible to get around this?



public class MessageBox extends Sprite
{
    public function MessageBox(txt : String)
    {
    }
}




//   MsgBox is the library clip that has linked the above class (MessageBox).
var msg : MsgBox = new MsgBox("blablablabablab");