PDA

View Full Version : brush MC always on top?



rlLife
December 2nd, 2004, 04:23 PM
I am making a draw toy, and it is mostly all worked out. I am just adding finishing touches... like a brush that takes the place of the mouse. My problem is that when drawing as the screen starts to get filled up the brush will be under the drawing pen lines.

Is there a way to make that one mc named "brush" always be on top of everything else. If i cant figure this out, i will just not do the whole hide mouse and attach clip, because naturally the mouse will go on top so i could just keep it plain

rL

kode
December 3rd, 2004, 12:04 AM
If you have FMX 2004 (you should have stated which Flash version you use), you can use the getNextHighestDepth() and swapDepths() methods to ensure that the movie clip is always on top.

rlLife
December 3rd, 2004, 12:40 AM
i am using flash 2004.

rL