1 Reply Latest reply on Aug 11, 2010 3:01 AM by Flex Rock

    TypeError: Error #1009: Cannot access a property or method of a null object reference.?

    flex4 Level 2

      Hi All,

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at TestProgram/handleAddBg()[D:\FlexJavaPrograms\TestProgram\src\TestProgram.mxml:42]
      at TestProgram/__addBG_click()[D:\FlexJavaPrograms\TestProgram\src\TestProgram.mxml:99]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core \UIComponent.as:12528]
      at spark.components.supportClasses::ButtonBase/keyUpHandler()[E:\dev\4.x\frameworks\projects \spark\src\spark\components\supportClasses\ButtonBase.as:987]

       

       

       

      Please help me why this error occur when i calling this method handleAddBg()