Hello,
I am getting below error while trying to call a action script function from mxml. When I click on the "Login" button, the function "private function login (loginIDParam:String,loginPasswordParam:String):void" generates this error. I am not able to find out which object reference is null here. Anyone has faced this issue earlier, please reply me. Regards, Priya Error --------------------------------------- TypeError: Error #1009: Cannot access a property or method of a null object reference. at components.biltrs::LoginForm/::login() at components.biltrs::LoginForm/__login_login_click() ---------------------------------------- Code Start ---------------------------------------- <?xml version="1.0" encoding="utf-8"?> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="100%" height="100%" title="Login"> <mx:Metadata> [Event(name="OnUserLogIn", type="flash.events.Event")] </mx:Metadata> <mx:Script> <![CDATA[ import mx.controls.Alert; import model.Login; import services.Components; import util.CommonFunctions; import controller.BTSController; import controller.IBTSController; [Bindable] public var loginObject:Login = new Login(); private function login(loginIDParam:String, loginPasswordParam:String):void { loginObject.loginID = loginIDParam; loginObject.loginPassword = loginPasswordParam; Components.instance.controller.authenticateUser(loginObject); } public function resetLoginText(event:Event):void { login_userid.text = ""; login_password.text = ""; } ]]> </mx:Script> <mx:Label id="lbl_copyright" text="Priya" x="10" y="5"/> <mx:Form height="50%" width="100%"> <mx:FormItem label="User ID"> <mx:TextInput id="login_userid" text=""/> </mx:FormItem> <mx:FormItem label="Password"> <mx:TextInput id="login_password" text="" displayAsPassword="true"/> </mx:FormItem> </mx:Form> <mx:HBox width="100%" height="50%" horizontalAlign="center" verticalAlign="middle"> <mx:Button label="Login" id="login_login" click="login(login_userid.text, login_password.text)"/> <mx:Button label="Reset" click="resetLoginText (event)"/> </mx:HBox> </mx:Panel> --------------------------------------------- Code End

