AS2: can someone write: getNextHighestDepthUnderComponentDepth()
I have a site that has a few components on it (comboboxes).
I have need to add in another screen of components over this first one. I made the screen up as a movieclip in the library and then attach and move it into position with a button.
Everything works okay except 'getNextHighestDepth()' returns a depth higher than the max because of the components already present in the file. I forget the number, but components occupy the highest depth allowable by commands like swapdepths, etc.. I think it is 32000 and change.
Attaching this new menu and setting the depth as _root.getNextHighestDepth() gives me a depth ABOVE the comboboxes. So my comboboxes on this new movieclip slide open UNDER the background.
Is there a way to write a function that will quickly give me the next highest depth LOWER than the combobox depth?
I have heard that the depth manager should be used when using components, but frankly I can't find much help on that class in the helpfiles so I have no clue how to use it.