Flash Depths


I don’t know if any of you dabble with Flash at all, but I just finished debugging a fiendish issue that really could have been avoided with the addition of one comment to one of the Flash help pages.

MovieClips that are attached to the stage at depths outside the range of 0 to 1048575 cannot be removed using removeMovieClip(). You will first need to swapDepths() to put the clip in that range if you want to remove it.

By chance I had changed my depths to negative values when I was experimenting early on but left them there because it didn’t make any difference at the time. Well. Now I know better and I thought I’d share with others.

Written by Colin Bate