1 Reply Latest reply on Dec 7, 2009 3:10 PM by cyber0897

    Error: #1010: A term is undefined and has no properties, but the term is in my code!!


      hey guys... just like the error says

      i get error 1010, but what baffles me is that i have that term in my code...


      here is the code



          import mx.rpc.events.ResultEvent;
          import mx.rpc.http.HTTPService;
          import mx.collections.XMLListCollection;


          private var userOpProv:XMLListCollection = new XMLListCollection();
          private var troubleShootProvider:XMLListCollection = new XMLListCollection();


          private function myXml_resultHandeler(event:ResultEvent):void{
              var resultData:Object = event.result;
              xmlReturn = resultData;
              userOptions.dataProvider = resultData.menu.apx32.userOptions.item;
              trouble.dataProvider = xmlReturn.menu.apx32.troubleShooting.item;


              userOpProv.source = event.result.apx32.userOptions.children();
              troubleShootProvider.source = event.result.apx32.troubleShoot.children();


      and as you can see the userOpProv is defined right above the function....


      any suggestions??