-
Hi Guys,
I want to make a simple hittest but I've forgotten the syntax.
I want the variable 'solo' to be true on mousedown on an object - not on a button!
It's goes something like ...
onClipEvent (mouseDown) {
if (hitTest( _root._xmouse, _root._ymouse, true));
solo = true;
}
}
Do I need a 'this' somewhere?
TIA
POD
-
That looks fine;
It should set solo to true when the mouse is clicked while
over the MC. I notice that you didn't set solo to false beforehand.
-
One other thing because you specified true in hitTest() it will only return true if you click on a filled portion of the MC. For example if your MC contains an unfilled rectangle, then it will only return true if you click on the very edge of the rectangle
Hope this helps!
BlinkOk
-
dooooooouuuuuu
Thanks for replying BlinkOk,
Everything was fine - I mistakenly targeted the variable 'solo' with the wrong path. I got help from a '_parent' :)
/POD