Hi,
If you have download the fla that is available from the link in the first post, then I can help you fix it.
It is still in AS3 but I'm sure you could try to convert it to AS2 if needed.
Find in the code:
PHP Code:
function stopDrawing(e:MouseEvent):void {
doDraw=false;
resumeDrawing = false;
}
and swap with this
PHP Code:
var topColor:uint = 0xFFFFFFFF;
var emptyColor:uint = 0x00000000;
function stopDrawing(e:MouseEvent):void
{
doDraw = false;
resumeDrawing = false;
var bounds:Rectangle = erasableBitmapData.getColorBoundsRect(topColor,emptyColor,false);
if (bounds.width == 0 && bounds.height == 0)
{
trace("empty");// no visible pixels on top
}
}
This will tell you if the top bitmap has disappeared totally or not when mouse up