For some reason when I use LoadVars in actionscript 2 to load cbsnews.com, I sometimes properly get the html for the page and other times I get GIF89a
. I'm not sure what this means, so any help or suggestions would be appreciated. Here is some sample code to test it yourself.
var foo:LoadVars = new LoadVars();
foo.onData = function(bar) {
trace(bar);
}
foo.load("http://www.cbsnews.com/");
Edit: I tried to follow the advice of Chris Shaffer, but it seems that there is no simple way of writing response into a gif file in flash. I feel like this is strange so I'll keep looking for a way to write the response into a gif file, but if anyone knows how or has another suggestion please let me know.