This content has been marked as final. Show 3 replies
My guess is that you have the UIScrollbar and then you use duplicateMovieClip() with a getNextHighestDepth()?
The built in Flash components place a depth manager something or other at a very high depth. After that getNextHighestDepth() starts returning depths that are out of the dynamic range. So your clips can't be removed.
Try using getDepth() on your instance before you try and remove it. It should be something bigger than 1,048,576. Here is a tutorial all about depths.
The solutions are (more or less in the order I would suggest):
Don't use getNextHighestDepth() when duplicating. And manage them yourself.
Not to duplicate things in the same scope as your UIScrollbar.
Swap the depth manager to a lower depth after instantiating your UIScrollbar.
Swap your clips back to a lower depth before trying to remove them.
Don't use the UIScrollbar and make your own.
Try and use the DepthManager class to manage the depths.
Thanks for that RothRock.
Think I'll handle the depth values myself from now on; maybe write a little handler function to do this.
Thanks again :)