# Error when loading 6 children but not 5

**URL:** https://forum.kirupa.com/t/error-when-loading-6-children-but-not-5/298627
**Category:** Uncategorized
**Created:** [October 22, 2009, 3:30am UTC](https://forum.kirupa.com/t/error-when-loading-6-children-but-not-5/298627 "2009-10-22T03:30:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oluc](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@oluc](https://forum.kirupa.com/u/oluc)
#### Post date: [October 22, 2009, 3:30am UTC](https://forum.kirupa.com/t/error-when-loading-6-children-but-not-5/298627/1 "2009-10-22T03:30:55Z")

</div>

Thanks for looking at my post!

Do you know of why it would be that I can only load 5 assets from the library and not 6?

I have a main class in which I load a StageElements class. the StageElements class has the 6 objects. when I take out one of the objects it loads fine. but I put it back and it tells me:

```auto

TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at asFiles.projectOne: :StageElements/loadBackground()
      at asFiles.projectOne: :StageElements()
      at asFiles.projectOne: :ProjectOne/loadStageElements()
      at asFiles.projectOne: :ProjectOne()

```

when addChild for 5 different objects they load fine onto the stage when I publish. but then I add a 6th object and it tells me that error. this has been driving me bonkers all day! ☹

any help much much appreciated!!!

PS: each of the children work because they all work independently.
