Can’t understand why the first hitTestPoint works only at the intersection of figures.
Please help.
import flash.geom.ColorTransform;
var color:ColorTransform = new ColorTransform();;
//Align with ss1
higlight.x = ss1.x;
higlight.y = ss1.y;
//Check mouse hit and highlight figure
if (higlight.hitTestPoint(mouseX,mouseY,true)) {
color.redOffset = 50;
ss1.transform.colorTransform = color;
} else {
color.redOffset = 0;
ss1.transform.colorTransform = color;
}
//Align with ss2
higlight.x = ss2.x;
higlight.y = ss2.y;
//Check mouse hit and highlight figure
if (higlight.hitTestPoint(mouseX,mouseY,true)) {
color.redOffset = 50;
ss2.transform.colorTransform = color;
} else {
color.redOffset = 0;
ss2.transform.colorTransform = color;
}