Need help with AS2 to AS3 - Preloader and Transition for Dynamic Files by claudio

Hi

I’ve found this tutorial on kirupa.com and i can’t use it in flash as3 ( its as2 source code) . Dont know how to transform it into as3.

http://www.kirupa.com/developer/mx/preloader_transition.htm

I’ve change _root. with MovieClip(root).

I can’t do anything with this:



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


and the rest of tutorial.

Can someone please do this whole tutorial in as3 ?
Or just post .fla with solution.

Thanks ~!