Help loading text off internet

Hello,

I am working on an flash project that requires that I load several XML files off the internet and this seems to be working great.

Also, I am wanting to load the html code of a webpage into a string variable and I can not seem to figure out how to do this.

loadText = new LoadVars();
cant get this to work because the html source code doesnt start out with ‘code=’ or something like that. Cant seem to convert it to a string and the only real result i get is a jarbled mess.

**loadText = new XML();
**This too does not seem to work. Results in only minimal parts of the html page being shown. Leaves out HUGE sections when compared to ‘View Source’ in browser on same page. I need info from the parts left out.

getURL(“http://www.weather.com/”, fileLoaded);
I had thought that GetURL might do the job, but all I seem to get it to do is pop open the link instead of retrieving the link html and putting it in a variable.

Sample of what I am trying to do:[INDENT]map_xml = new XML();
map_xml.ignoreWhite = true;
map_xml.onLoad = function(success) {
[INDENT] if (success) {
xtemp = string( this );
trace( "The loaded html text is: " + xtemp );
}
[/INDENT] };
map_xml.load(“http://www.weather.com/”);

[/INDENT]Note: settings are Flash 6, actionscript 2.

I imagine there is an easy solution to this, but i can not seem to find it.

Any help is greatly appreciated.

Thanks
chris j