# Depth question please

**URL:** <https://forum.kirupa.com/t/depth-question-please/273756>\
**Category:** Uncategorized\
**Created:** [October 20, 2008, 1:22pm UTC](https://forum.kirupa.com/t/depth-question-please/273756 "2008-10-20T13:22:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oxyde\_mac\_com](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@oxyde\_mac\_com](https://forum.kirupa.com/u/oxyde_mac_com)\
**Post date:** [October 20, 2008, 1:22pm UTC](https://forum.kirupa.com/t/depth-question-please/273756/1 "2008-10-20T13:22:13Z")

</div>

Hi,  
I have a dynamicly generated photo gallery and I’ve been trying to find a way to have a menu on top of it.

if i use  
onClipEvent (enterFrame) {  
import mx.behaviors.DepthControl;  
mx.behaviors.DepthControl.bringToFront(this);  
}  
it seems to work but its buggy as I use “enterFrame”  
Do anyone have an other clean method to have my menu in a higher depth than my galley so my menu is not hidden by the gallery.

cheers
