# forceSelectionToFront issue

**URL:** https://forum.kirupa.com/t/forceselectiontofront-issue/273795
**Category:** flash
**Created:** [October 21, 2008, 2:02am UTC](https://forum.kirupa.com/t/forceselectiontofront-issue/273795 "2008-10-21T02:02:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kerepuki](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kerepuki](https://forum.kirupa.com/u/kerepuki)
#### Post date: [October 21, 2008, 2:02am UTC](https://forum.kirupa.com/t/forceselectiontofront-issue/273795/1 "2008-10-21T02:02:58Z")

</div>

Hi,

I am using the freeTransform class but I am having trouble with the forceSelectionToFront bit.

I am not using:

var manager\_obj = new TransformManager({targetObjects:[outline\_mc], bounds:{xMin:0, xMax:600, yMin:0, yMax:600}, forceSelectionToFront:true, eventHandler:onAnyEvent});

I am using:

\_root.selectedElement.addFreeTransform(\_root.customStyle);

I have tried putting forceSeletionToFront everywhere but everytime I select an element it always forces it to the front.

Does anyone have info about what I need to change to keep the depths in tact?

Many thanks
