While working on a recent project, I ran into a bug where a custom component/class (based on MovieClip) wouldn’t re-initialize if re-attached consecutively. Meaning, if I had the movieclip attached with certain init params, and re-attached that same clip with another user interaction, it would fail to initialize. I partially traced the problem back to using getNextHighest() depth with some basic clips I was attaching internally with the component. Because one of the clips was the ScrollPane component, it wouldn’t remove properly when the same clip was re-initialized. More specifics about problems with getNextHighest() can be found in the livedocs:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002934.html