# Accessing children in containers

**URL:** <https://forum.kirupa.com/t/accessing-children-in-containers/253739>\
**Category:** Uncategorized\
**Created:** [March 4, 2008, 5:31pm UTC](https://forum.kirupa.com/t/accessing-children-in-containers/253739 "2008-03-04T17:31:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubbeat](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@dubbeat](https://forum.kirupa.com/u/dubbeat)\
**Post date:** [March 4, 2008, 5:31pm UTC](https://forum.kirupa.com/t/accessing-children-in-containers/253739/1 "2008-03-04T17:31:44Z")

</div>

Hi I have a container sprite in my movie and I add a list to it.

```
ActionScript Code:
[FONT=Courier New][LEFT]clipListBox=[COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]List[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
        Container.[COLOR=#000080]addChild[/COLOR][COLOR=#000000]([/COLOR]clipListBox[COLOR=#000000])[/COLOR];
        loadClipData[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

```

[/LEFT]  
[/FONT]

I’m having trouble accessing the properties of the list using this code

```
ActionScript Code:
[FONT=Courier New][LEFT]Container[COLOR=#000000][[/COLOR]clipListBox[COLOR=#000000]][/COLOR].[COLOR=#000080]addItem[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]{[/COLOR]label:d,[COLOR=#0000FF]data[/COLOR]:s[COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];

```

[/LEFT]  
[/FONT]

I get an error saying

“Error #1069: Property [object List] not found on flash.display.Sprite and there is no default value.”

I dont really under stand the error because “Container” is a Sprite?

Im still trying to get used the the difference between attachMovieClip in as2 and drilling down into clips and the equivalents in as3.

Thanks,  
dub
