# Xml not loading after preloader

**URL:** <https://forum.kirupa.com/t/xml-not-loading-after-preloader/224814>\
**Category:** Uncategorized\
**Created:** [May 5, 2007, 8:07pm UTC](https://forum.kirupa.com/t/xml-not-loading-after-preloader/224814 "2007-05-05T20:07:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosanna](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@rosanna](https://forum.kirupa.com/u/rosanna)\
**Post date:** [May 5, 2007, 8:07pm UTC](https://forum.kirupa.com/t/xml-not-loading-after-preloader/224814/1 "2007-05-05T20:07:13Z")

</div>

My xml was loading fine until I made a preloader( not made, did it with a tuto).  
The preloader is on frame 1 and the xml + all items on my stage are on frame 3.  
I traced the xml but it comes out undefined…  
What is happening ??Do I miss something else to launch my xml loading ?  
Here is the code for the preloader in case :  
stop();  
this.onEnterFrame = function() {  
var amount:Number = this.getBytesLoaded()/this.getBytesTotal()\*100;  
loader.\_xscale = amount;  
if (amount == 100) {  
this.gotoAndPlay(3);  
delete this.onEnterFrame;  
}  
};  
Thank you for your opinions!
