# XML Preloader - XML.getBytesLoaded

**URL:** <https://forum.kirupa.com/t/xml-preloader-xml-getbytesloaded/108036>\
**Category:** Uncategorized\
**Created:** [April 21, 2004, 7:55am UTC](https://forum.kirupa.com/t/xml-preloader-xml-getbytesloaded/108036 "2004-04-21T07:55:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neworder](https://avatars.discourse-cdn.com/v4/letter/n/848f3c/32.png) [@neworder](https://forum.kirupa.com/u/neworder)\
**Post date:** [April 21, 2004, 7:55am UTC](https://forum.kirupa.com/t/xml-preloader-xml-getbytesloaded/108036/1 "2004-04-21T07:55:57Z")

</div>

I can not build a XML preloader that works.

I am making a project that grabs some information from an XML file. The problem I am having is the document runs before the XML data loads so the text field is blank. If I create a bunch of blank frames before my movie clip needs it, it works fine.

I have tried using XML.getBytesLoaded and XML.getBytesTotal but can not get it to work. Does anybody have an example of how to do this?

Thanks.
