# Loading SWF problem

**URL:** <https://forum.kirupa.com/t/loading-swf-problem/321376>\
**Category:** Uncategorized\
**Created:** [April 18, 2011, 3:35pm UTC](https://forum.kirupa.com/t/loading-swf-problem/321376 "2011-04-18T15:35:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jany](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jany](https://forum.kirupa.com/u/jany)\
**Post date:** [April 18, 2011, 3:35pm UTC](https://forum.kirupa.com/t/loading-swf-problem/321376/1 "2011-04-18T15:35:08Z")

</div>

So loading an SWF is pretty simple.

```auto
var swfLoader:Loader = new Loader();
var swfURL:URLRequest = new URLRequest("freeway-fury.swf");

swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
swfLoader.load(swfURL);
function onCompleteHandler(e:Event) {
	addChild(e.currentTarget.content);
}

```

This method works to load SWFs on a domain or locally. I am running into a problem though, trying to load one for a particular game. I downloaded the SWF locally just to see if I can load it, and I still can’t and get an error:  
"TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at org.flixel::FlxPreloader()  
at Preloader()  
"

Here is where I grabbed the SWF - [http://www.primary-games.org/game/249/Freeway-Fury.html](http://www.primary-games.org/game/249/Freeway-Fury.html)

I can load nearly everything else, just not this. Any ideas?

Thanks! 😁
