Help with preloading HTML formatted external text files

I’m making a dynamic web site all in flash, and I need all the content to be dynamic, so it’s all being loaded from external text files with HTML formatted text.

The problem is: I want to make a preloader that caches the files before we enter the site, and what it does currently, is it caches the text part of the files, but not the pictures.

for example:

<b>hello world</b><img src="photo.jpg">

would just cache the hello world part and not the photo. and let’s say the photo is 2 MBs, we miss the point right… :}

does anyone have an idea of how to cache the photos **inside **the html formatted text?