PDA

View Full Version : ComboBox and swapDepths: drops behind containing MovieClip!


FlashBulb
11-05-2007, 04:14 AM
Hi, I have a ComboBox that is within a MovieClip which is placed on the Stage manually - no dynamic loading. At first, everything is fine.

BUT, when I perform a swapDepths on my MovieClip, the ComboBox within it drops its dropdown behind the MovieClip that contains it! I tried swapping the ComboBox to a higher depth than the MovieClip (even though it's within that clip, so that solution would not make sense), but that didn't help.

How can I solve this problem?

FlashBulb
11-05-2007, 04:20 AM
I figured it out. I was swapping the MovieClip to a depth that was too high! It seems glitchy, but whatever. I was putting it up to a depth of 10000000 - overkill, it is true. I didn't think it mattered; I just wanted the MovieClip to be above everything else, and there's a lot of dynamic loading with getNextHighestDepth going on below it.

I toned it down to a depth of 10000, and the ComboBox behaves.

:rolleyes: I'll try to keep it real with my depths from now on.