Help with Preloader and Transition for Dynamic Files

Hi,
I’ve just used this tutorial and its great,
here is the link for this tutorial
http://www.kirupa.com/developer/mx/preloader_transition.htm

but the problem is I’m trying to add a dynamic text field to show the Percentige being loaded to it too
and I’ve been at it for a good while and just can’t get round to it to solve it

this is the code used on the MovieClip that I’m trying to add dynamicText to show percent being loaded

onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay(“opening”);
}
}
}

can anyone help to tell me what to do please ?

Thanks in advance…