PDA

View Full Version : drawing and swapDepths


FlashBulb
08-16-2005, 03:02 PM
I have a drawing board, with a couple of buttons on it. My problem is that the lines of the drawing draw on top of the buttons, and I want it to draw underneath.

Here's the pertinent code:


this.createEmptyMovieClip("canvas",100);
canvas.lineStyle(3,0x000000,100);
canvas.moveTo(10,10);

save_btn.swapDepths(500);

As I understand it, 'save_btn' should be over top of any drawing on 'canvas', but the lines still get drawn on top of it. What is the solution??

FlashBulb
08-16-2005, 03:05 PM
Oh, never mind... swapDepths is just for movieClips, not Buttons. Bah, I never liked Buttons anyways.... :cool:

finchou
08-16-2005, 03:06 PM
It would be much simpler to use different layers for canvas and save_btn...