# AS 3 Access child created by document class

**URL:** <https://forum.kirupa.com/t/as-3-access-child-created-by-document-class/321267>\
**Category:** flash\
**Created:** [April 14, 2011, 4:23pm UTC](https://forum.kirupa.com/t/as-3-access-child-created-by-document-class/321267 "2011-04-14T16:23:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![molkman](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@molkman](https://forum.kirupa.com/u/molkman)\
**Post date:** [April 14, 2011, 4:23pm UTC](https://forum.kirupa.com/t/as-3-access-child-created-by-document-class/321267/1 "2011-04-14T16:23:10Z")

</div>

Hello,  
I am new to AS 3 and I tried to solve this (probably really simple) problem, but I couldn’t, so I gotta ask here.

All I did was create a child through a function in my document class. It is in fact an altered version of the rotate circles tutorial from kirupa.

```auto
        function makeCircle (e:Event):void {
            var circle:BlueCircle=new BlueCircle ;
            circle.x=Math.random()*this.stage.stageWidth;
            this.addChild (circle);
        }

```

Now all I want to do is increase the child’s x value by another function in the document class. But I don’t know how I can “adress” the created child. What do I need to write instead just “circle.x ++”.

Thank you. 🙂
