# Help with loading an external .swf from a Class in AS3

**URL:** <https://forum.kirupa.com/t/help-with-loading-an-external-swf-from-a-class-in-as3/316387>\
**Category:** flash\
**Created:** [November 20, 2010, 2:53am UTC](https://forum.kirupa.com/t/help-with-loading-an-external-swf-from-a-class-in-as3/316387 "2010-11-20T02:53:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MossyStump](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MossyStump](https://forum.kirupa.com/u/MossyStump)\
**Post date:** [November 20, 2010, 2:53am UTC](https://forum.kirupa.com/t/help-with-loading-an-external-swf-from-a-class-in-as3/316387/1 "2010-11-20T02:53:49Z")

</div>

Alright, so from using both my Actionscript 3 Bible and a friendly tutorial here on Kirupa… and another online, I attempted to create a class to load an .swf. I worked through the Kirupa tutorial, and it worked, but I wanted it to be in a class! This is where the problems come, when I run it, I get no errors, the bar flashes as if it’s full, and it loads the content. When I try to simulate download however, the screen stays white and I receive an error  
“Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.”

Does anyone know what might be causing this/how to fix?

Also, It’s been quite a long time since I have posted here, so if anyone could tell me the tags for code, I would greatly appreciate it!

Until then,  
[http://pastebin.com/xAsNCVQu](http://pastebin.com/xAsNCVQu)
