Depth question please

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