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

**URL:** <https://forum.kirupa.com/t/need-help-with-as2-to-as3-preloader-and-transition-for-dynamic-files-by-claudio/328141>\
**Category:** Uncategorized\
**Created:** [April 22, 2012, 12:39pm UTC](https://forum.kirupa.com/t/need-help-with-as2-to-as3-preloader-and-transition-for-dynamic-files-by-claudio/328141 "2012-04-22T12:39:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mafiaq](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mafiaq](https://forum.kirupa.com/u/mafiaq)\
**Post date:** [April 22, 2012, 12:39pm UTC](https://forum.kirupa.com/t/need-help-with-as2-to-as3-preloader-and-transition-for-dynamic-files-by-claudio/328141/1 "2012-04-22T12:39:35Z")

</div>

Hi

I’ve found this tutorial on [kirupa.com](http://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](http://www.kirupa.com/developer/mx/preloader_transition.htm)

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

I can’t do anything with this:

```auto

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 ~!
