# Works fine as a standalone SWF, but when preloaded

**URL:** https://forum.kirupa.com/t/works-fine-as-a-standalone-swf-but-when-preloaded/283998
**Category:** Uncategorized
**Created:** [March 13, 2009, 3:20pm UTC](https://forum.kirupa.com/t/works-fine-as-a-standalone-swf-but-when-preloaded/283998 "2009-03-13T15:20:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)
#### Post date: [March 13, 2009, 3:20pm UTC](https://forum.kirupa.com/t/works-fine-as-a-standalone-swf-but-when-preloaded/283998/1 "2009-03-13T15:20:01Z")

</div>

I have a SWF file, and it accesses an XML file. It works just fine when debugged or published into a standalone SWF. HOWEVER, when I add a preloader to it, I get the following error, every single time:  
**TypeError: Error #1009: Cannot access a property or method of a null object reference.**

It works just fine when running on it’s own, but when it runs through a preloader, it will not work.

Has anyone had this problem before?

:block: \< Does this shirt make me look square?
