# Preloader and Transition for Dynamic Files

**URL:** https://forum.kirupa.com/t/preloader-and-transition-for-dynamic-files/97491
**Category:** Uncategorized
**Created:** [December 23, 2003, 2:58am UTC](https://forum.kirupa.com/t/preloader-and-transition-for-dynamic-files/97491 "2003-12-23T02:58:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mdere](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mdere](https://forum.kirupa.com/u/mdere)
#### Post date: [December 23, 2003, 2:58am UTC](https://forum.kirupa.com/t/preloader-and-transition-for-dynamic-files/97491/1 "2003-12-23T02:58:53Z")

</div>

I used the “preload with transition” tutorial([http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)) bu it doesn’t work if the movie in an another level. my movie loads in a clip called “popup”.

//////////OLD CODE://///////////  
b1.onRelease = function() {  
if (\_root.section != “bijouterie/gal01/01.jpg”) {  
\_root.section = “bijouterie/gal01/01.jpg”;  
\_root.transition.gotoAndPlay(“closing”);  
}  
};

///////////NEW CODE://////////////////  
b1.onRelease = function() {  
if (\_root.popup.section != “bijouterie/gal01/01.jpg”) {  
\_root.popup.section = “bijouterie/gal01/01.jpg”;  
\_root.popup.transition.gotoAndPlay(“closing”);  
}  
};

but the problem is in the next code (placed into the “content” clip, it loads the JGPs files):

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

helme!

anybody could help me? thanks
