Preload MC created at runtime

Hi,

I am working on a site and I am new to AS3, but I am starting to get a grip of it. I have a class Page.as. This class creates a background and loads xml from a drupal module and loads the xml data into textfields and so on. This works great and uses no external assets, all is created on the fly.

I initiate a page by doing so…

var frontpage:Page = new Page("home");
this.addChild(frontpage)

The thing I want to do is make a preloader for the page loading, cause everytime i load a new page there is some loading time because of the xml loading and loading of pictures inside and so on…

How can I listen to the loading progress of the Page class? If i can get the loading information I now how to make the preloader, but how do I collect loading data? I know how to do it with external assets (swfs) and so on, but how to do it like this?

Sincerly Espen