# Help adjusting as file

**URL:** <https://forum.kirupa.com/t/help-adjusting-as-file/255864>\
**Category:** flash\
**Created:** [March 27, 2008, 5:54pm UTC](https://forum.kirupa.com/t/help-adjusting-as-file/255864 "2008-03-27T17:54:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schammy79](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@schammy79](https://forum.kirupa.com/u/schammy79)\
**Post date:** [March 27, 2008, 5:54pm UTC](https://forum.kirupa.com/t/help-adjusting-as-file/255864/1 "2008-03-27T17:54:33Z")

</div>

I have an all flash webpage that features a newsletter button… It is supposed to load an external newsletter module, fairly simple in itself. While the module works great on its own, when I load it from the main swf, I get an error message:

**TypeError: Error #1009: Cannot access a property or method of a null object reference.**  
**at Main/init()**  
**at Main()**

FYI, Main refers to Main.as, which is my module’s document class. I have attached a link to upload a zipped file of a much simplified version of what I have right now. You guys can see what happens… I understand the error message, but I am not sure of how to tweak my code… So if you could help, it’d be much appreciated !!! :pleased:  
[http://www.box.net/shared/eus0vupogs](http://www.box.net/shared/eus0vupogs)
