# Optimization pls

**URL:** <https://forum.kirupa.com/t/optimization-pls/325410>\
**Category:** flash\
**Created:** [October 13, 2011, 10:17pm UTC](https://forum.kirupa.com/t/optimization-pls/325410 "2011-10-13T22:17:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tenchy](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@tenchy](https://forum.kirupa.com/u/tenchy)\
**Post date:** [October 13, 2011, 10:17pm UTC](https://forum.kirupa.com/t/optimization-pls/325410/1 "2011-10-13T22:17:12Z")

</div>

I got 23 boxes (box1, box2…) inside two movieclips (Circle.SizeableCircle). I need to bring all these to the front, using localToGlobal. This brings box1 to the front (or whatever it’s called):

```php
var cpBox1:Point=new Point(Circle.SizeableCircle.box1.x,Circle.SizeableCircle.box1.y);
var gpBox1:Point=Circle.SizeableCircle.box1.parent.localToGlobal(cpBox1);

```

What can I do instead of making 23x that code?
