package asas
{
public class main extends EventDispatcher
{
private static var instance:main =new main;
// This method returns the instance of the class.
public static function get instance() : main {
if(_instance == null){
_instance = new main();
}
return _instance;
}
public function doCheck():void {
}
I have this class and a MXML file... how will i call the function doCheck in button. When i call like this, it throws me an error.
<mx:Button
styleName="LoginButton"
id="loginButton"
click="main.instance.doCheck();"
x="160"
y="261"
/>