2 Replies Latest reply on Nov 5, 2007 2:26 PM by TheDesigners

    XML Variable returning Error 1009

    TheDesigners
      I'm trying to set a variable with data returned from an XML node. The following example returns an Error #1009: Cannot access a property or method of a null object reference. There are no error markers when viewing the code in Flex. I'm new to this and could use a bit of help.

      <mx:Script>
      <![CDATA[

      [Bindable]
      private var _myLastData:XML = checkUserRequest.lastResult.users.user.existsResults;

      public function myLastData():String
      {
      return _myLastData;
      }

      ]]>

      </mx:Script>
      <mx:Text x="350" y="340" text="{myLastData}" horizontalCenter="0"/>