Keep Custom Cursor At the Highest Depth
Posted on 2010-09-12
I'm adding a custom cursor, and I need it to stay at the highest depth. Currently, whenever I add new movie clips to the screen, the custom mouse shows up behind the movie clips, which looks terrible. I have to add movie clips regularly during runtime, but I need the custom cursor to stay above them, just like the regular mouse would.
Here's how I'm adding the custom cursor:
var cross= new crosshairs();
cross.depth = 999999;