# Stupid displayList problem: Sprites added to Sprites appear as "not found..."

**URL:** <https://forum.kirupa.com/t/stupid-displaylist-problem-sprites-added-to-sprites-appear-as-not-found/255555>\
**Category:** flash\
**Created:** [March 24, 2008, 6:46pm UTC](https://forum.kirupa.com/t/stupid-displaylist-problem-sprites-added-to-sprites-appear-as-not-found/255555 "2008-03-24T18:46:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stickeroo](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Stickeroo](https://forum.kirupa.com/u/Stickeroo)\
**Post date:** [March 24, 2008, 6:46pm UTC](https://forum.kirupa.com/t/stupid-displaylist-problem-sprites-added-to-sprites-appear-as-not-found/255555/1 "2008-03-24T18:46:36Z")

</div>

I’m creating an unholy mess of sprites because I clearly hate myself. With that out of the way, here’s what I’m running into.

I’ve created a class that in turn generates a bunch of sprites for itself. This all works as it should. However, I’m trying to put some of those sprites on other sprites within the class, like this:

```auto

classInstance=this; // extends Sprite
sprite1=new Sprite();
sprite2=new Sprite();

sprite1.addChild(sprite2);
classInstance.addChild(sprite1);

trace (classInstance.sprite1.contains(sprite2)); // returns true

trace (classInstance.sprite1.sprite2); // returns "Reference error: Error #1069: Property sprite2 not found on flash.display.Sprite and there is no default value.

```

It seems as though Flash doesn’t give a rip that sprite2 is a Sprite which happens to be a child of sprite1 which happens to be a child of classInstance…

What am I doing wrong? (All of this stuff is declared in the class: I left it out for clarity, but I’m happy to post more craptastic code if necessary). Thanks in advance for any help!
