# Loading external SWF: Error #1009: Cannot access a property or method

**URL:** <https://forum.kirupa.com/t/loading-external-swf-error-1009-cannot-access-a-property-or-method/259232>\
**Category:** Uncategorized\
**Created:** [May 2, 2008, 9:48am UTC](https://forum.kirupa.com/t/loading-external-swf-error-1009-cannot-access-a-property-or-method/259232 "2008-05-02T09:48:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![estroina](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@estroina](https://forum.kirupa.com/u/estroina)\
**Post date:** [May 2, 2008, 9:48am UTC](https://forum.kirupa.com/t/loading-external-swf-error-1009-cannot-access-a-property-or-method/259232/1 "2008-05-02T09:48:14Z")

</div>

Hya,

I’ve tryed to split my animation into several files, each button has it’s own content and animation.  
I made all my swf for each button and I can load them on flash player or on any browser.  
But loading them from my main SWF it’s a diferente thing… They are loaded like this:

```auto
var loader:Loader = new Loader()
var request:URLRequest = new URLRequest(goz.target.parent.name+".swf");
loader.load(request);
addChild(loader);

```

there goz.target.parent.name goes from botao0 to botao9, and this should load but it gives me this error:

> TypeError: Error #1009: Cannot access a property or method of a null object reference.  
> at personal$iinit()  
> Any advice?
