# Easy answer for someone? error #1009

**URL:** <https://forum.kirupa.com/t/easy-answer-for-someone-error-1009/328741>\
**Category:** Uncategorized\
**Created:** [June 12, 2012, 11:01pm UTC](https://forum.kirupa.com/t/easy-answer-for-someone-error-1009/328741 "2012-06-12T23:01:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackmonterey](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jackmonterey](https://forum.kirupa.com/u/jackmonterey)\
**Post date:** [June 12, 2012, 11:01pm UTC](https://forum.kirupa.com/t/easy-answer-for-someone-error-1009/328741/1 "2012-06-12T23:01:27Z")

</div>

[COLOR=#000000][FONT=arial]got a quick as3 coding question, which someone might be able to answer just by looking at this.[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]  
[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]child.swf needs to load into a parent.swf; child.swf is a game that relies on an external class called “GamePackage”[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]  
[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]child.swf plays fine standing alone, even if you move it to a new folder/location, etc, b/c the class script “GamePackage” is compiled at runtime – but it becomes a problem when you attempt to open it by loading it through parent.swf[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]  
[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]this is the error it generates in the output window:[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]  
[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]  
[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at GamePackage()

any ideas on how to resolve this? is it a matter of defining the class in the parent.swf? i imagine any code would have to be added to the parent file. i’ve 3-4 approaches, none of which work. yes, there are a few threads related to error 1009, but none that seem to pertain to this case.

[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]  
[/FONT][/COLOR]  
[COLOR=#000000][FONT=arial]thanks!

rob[/FONT][/COLOR]
