1136: Incorrect number of arguments. Expected 1
hello to all.
am new to this and am trying to call a function from a .as file and am getting this error
.AS FILE
package
{
import flash.events.MouseEvent;
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.display.SimpleButton
public class displayNumbers extends Sprite
{
private var result_txt:TextField;
private var display_txt:TextField;
private var showSign_txt:TextField;
private var zero_btn:SimpleButton;
public function displayNumbers ():void
{
zero_btn.addEventListener(MouseEvent.CLICK, callZero);
}
//-----------------ADD NUMBER ZERO--------------------------------------------
public function callZero(e:MouseEvent):void
{
result_txt.text = "";
result_txt.text= String(display_txt.maxChars - display_txt.length);
if (result_txt.text > "1")
{
display_txt.appendText("0");
showSign_txt.appendText("0");
}
else
{
result_txt.visible = true;
result_txt.text = "MAX INPUTS";
}//if else statement
}//function callZero
}//class displayNumbers
}//package
The ACTION FILE
import displayNumbers;
var noOne:displayNumbers = new displayNumbers();
noOne.callZero();
Thank you in advanced!