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:
