# Flash/XML loading

**URL:** <https://forum.kirupa.com/t/flash-xml-loading/232675>\
**Category:** flash\
**Created:** [July 16, 2007, 8:28pm UTC](https://forum.kirupa.com/t/flash-xml-loading/232675 "2007-07-16T20:28:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevoTheWise](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@StevoTheWise](https://forum.kirupa.com/u/StevoTheWise)\
**Post date:** [July 16, 2007, 8:28pm UTC](https://forum.kirupa.com/t/flash-xml-loading/232675/1 "2007-07-16T20:28:15Z")

</div>

I read your tutorials about loading XML into Flash and I pretty much copied it word for word and for some reason, my XML document is not loading correctly. Did I do something wrong/type something incorrectly? Neither trace message appears.

```auto
var profile_xml = newXML();
        profile_xml.ignoreWhite=true;
        xmlpercent = (profile_xml.getBytesLoaded())/(profile_xml.getBytesTotal())*100
        profile_xml.onLoad = function(success){
    if (success){ 
    trace("Yup, it loads")
    } else { 
    trace("Error loading XML file")
        }
        }
        profile_xml.load("profiles/mshtien.xml");

```
