1 Reply Latest reply on Sep 27, 2010 6:22 AM by Gurdeep Singh

    Button click throwing a 'supportClasses' error

    oskouidev Level 1

      I am not sure how to explain the problem.

       

      I am using a button which has few mouse event listeners. Whenever I am trying to click on that button it randomly throwing these errors.

       

      These are the two errors the application is throwing (2 different errors at 2 different times):

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at spark.components.supportClasses::ButtonBase/addSystemMouseHandlers()[E:\dev\4.0.0\framewo rks\projects\spark\src\spark\components\supportClasses\ButtonBase.as:831]
          at spark.components.supportClasses::ButtonBase/mouseEventHandler()[E:\dev\4.0.0\frameworks\p rojects\spark\src\spark\components\supportClasses\ButtonBase.as:1039]

       


      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at mx.controls::Button/mouseDownHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ controls\Button.as:2701]