1 Reply Latest reply on Dec 4, 2006 1:44 PM by jfillman

    Error Help

    jfillman Level 1
      I get this error "TypeError: Error #1009: Cannot acces a property or method of a null object reference.
      at main/validateForm()
      at main/__btnFormSign_click()"

      Code sample:

      <mx: State name="Forms">
      <mx:AddChild position="lastChild">
      <mx:Canvas width="200" height="31" right="10" top="39">
      <mx:Button label="Submit" id="btnFormSign" click="falidateForm();">
      <mx:Script>
      <![CDATA[
      [Bindable]
      public var validationAC:ArrayCollection;

      public function validateForm() :void {

      if (text1.text.length < 3) {
      validationAC.addItem({label:"Text1", data:false});
      }
      }
      </mx:Script>
      </mx:Button>
      </mx:Canvas>