0 Replies Latest reply on May 14, 2007 2:12 AM by thedex1

    Read HTML Source


      How are all of you? I have a very simple but urgent question. I just want to know if it is possible to read the page's HTML source and store it in a String type variable. For example,
      If I have this function

      public function GetHTML():void
      HTMLService = new HTTPService();
      HTMLService.url = " http://foreign-drugstores-online.com/order.htm";
      HTMLService.addEventListener(ResultEvent.RESULT, ServiceHandler);

      Now can you please let me know how to store the page source as a String. I tried to use var str:String = event.result.toString(); but it display "[object][/object]"

      Any suggestion and help will be greatly appreciated.

      I shall be very thankful to you.

      Best Regards