External file preloader WITH percentage

Anybody finished Claudio’s preloader tutorial?? Great tutorial… preloader works fine for me. However, I tried tweaking it a bit and cant get a part to work. Maybe someone can suggest a fix. I’m pretty sure its a simple thing I’m not seeing. Basically, I adapted the design totally, but chose to display a percentage along with the animated “loading…” thing there.

One difference is that my buttons are located in the Transition movie clip and the loadText dynamic text field(where the percentage is displayed) is also in the Transition movie clip.

Here’s the code I attached to Content movie clip:

onClipEvent (enterFrame) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadText.text = Math.round(getPercent*100)+"%";
if (!loaded && this._url != _root._url) {
if (bytes_loaded == bytes_total) {
loaded = true;

If you visit http://www.brendonblake.com you’ll see the busted result.

For a deeper look the fla is downloadable at: http://www.brendonblake.com/bb7.fla

I’ve spent the past week trying different things and cant seem to fix it.