How do I combine the preloader transition with the preloader percentage bar?

Thanks for the reply,

But it the AS i’ve got trouble with, i’m trying something like this:

onClipEvent (enterFrame) {
 bytes_loaded2 = Math.round(this.getBytesLoaded());
	bytes_total2 = Math.round(this.getBytesTotal());
	getPercent2 = bytes_loaded2/bytes_total2;
 if (!loaded && this._url != _root._url) {
   this.loadBar2._height = getPercent2*80;
		 this.loadText2 = Math.round(getPercent2*100)+"%"
  if (bytes_loaded == bytes_total) {
   loaded = true;
   _root.transition.gotoAndPlay("open");
  }
 }
}

I can’t get the AS to read how much is left of the external .swf and convert into a bar.

Thanks