2 Replies Latest reply on Jun 29, 2011 1:55 PM by Scott_001

    HTTPService error in actionscript


      I am attempting to make a HTTPService connection to a XML file as follows:


      import mx.rpc.http.HTTPService;

      public var myService:HTTPService = new HTTPService();

      myService.url = "assets/demographic.xml";



      However, it does not seem to be recognizing any of the properties of the created object. I am getting the following error:

      Description Resource Path Location Type

      1120: Access of undefined property myService. sandbox_2.mxml /sandbox_2/src line 11 Flex Problem

      Any idea where I am going wrong? Thanks.