In Flash ActionScript, you may receive error like:
ArgumentError: Error #1063: Argument count mismatch on… Expected 0, got 1.
If you receive the above error message while compiling your Flash movie, most probably you have an event handler callback function does not contain event parameter. The fix is easy. If you forgot to add in the event object, adding that in will fix the problem.
For instance, if you have script like the one below:
_txt.addEventListener(FocusEvent.FOCUS_OUT, txtFocusOut);
public function txtFocusOut():void {
// do something
}
change it to:
_txt.addEventListener(FocusEvent.FOCUS_OUT, txtFocusOut);
public function txtFocusOut(event:FocusEvent):void {
// do something
}