# Question re: Random Movement in AS3 Tutorial

**URL:** <https://forum.kirupa.com/t/question-re-random-movement-in-as3-tutorial/324648>\
**Category:** flash\
**Created:** [September 1, 2011, 10:30am UTC](https://forum.kirupa.com/t/question-re-random-movement-in-as3-tutorial/324648 "2011-09-01T10:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kubik](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kubik](https://forum.kirupa.com/u/kubik)\
**Post date:** [September 1, 2011, 10:30am UTC](https://forum.kirupa.com/t/question-re-random-movement-in-as3-tutorial/324648/1 "2011-09-01T10:30:52Z")

</div>

Getting back into Flash development after a prolonged absence, I was playing around with kirupa’s excellent “[Random Movement in AS3](http://www.kirupa.com/flash/random_movement_as3_pg1.htm)” Tutorial.

So far, so good. This bit of code adds the instances of blueCircle on my stage

```auto
[COLOR=#000000]this[/COLOR].[COLOR=#000000]addChild[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]blueCircle[/COLOR][COLOR=#000000])[/COLOR];

```

What has me stumped now, because I can not remember for the life of me, is how I control on what layer within the stage my circles get created. How would I have to formulate the code above if I wanted to have all instances of blueCircle created on a layer called “circles”?

Thanks much!
