Hey guys,
heres the problem im working on. I have a layer(graphic) which gets "erased"(coved up) by clicking and holding down the mouse.
and I have a custom mouse cursor.
The problem is when you "erase" it creates a mask which also covers the custom mouse cursor.
Everything is perfect except i want the mouse cursor to not be affected by the mask or have it be above the mask which is created.
Anyone know how to fix it? I cant seem to figure it out.
Thanks!
ActionScript Code:
L = {};
L.onMouseMove = function() {
My_mc._x = _xmouse;
My_mc._y = _ymouse;
updateAfterEvent();
};
Mouse.hide();
Mouse.addListener(L);
paint_mode = "erase";
i = 0;
this.onEnterFrame = function() {
if (pr) {
if (paint_mode == "paint") {
this["mc"+i].lineTo(_xmouse, _ymouse);
} else {
m = this["mc"+i];
n = random(10000);
m.attachMovie("dot", "dot"+n, n);
m["dot"+n]._x = _xmouse;
m["dot"+n]._y = _ymouse;
}
}
};
this.onMouseDown = function() {
i+=2;
pr = true;
this.createEmptyMovieClip("mc"+i, i);
this["mc"+i].lineStyle(10, 0xFFFFFF, 100);
this["mc"+i].moveTo(_xmouse, _ymouse);
if (paint_mode == "erase") {
attachMovie("pic", "pic"+i, i+1);
this["pic"+i].setMask(this["mc"+i]);
}
};
this.onMouseUp = function() {
pr = false;
};
b_paint.onRelease = function() {
paint_mode = "paint";
};
b_erase.onRelease = function() {
paint_mode = "erase";
};