Hello
For example, say I have 3 movie clips… I want the easiest way to do a hitTest with them… The easiest way I thought of was this but it doesn’t work :puzzle:
[AS]
onClipEvent (load) {
mouse.hide();
walls = _root.one or _root.two or _root.three;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this, hitTest(walls)) {
this._x = 10;
this._y = 10;
}
}
[/AS]
It’s just a quick example of what im trying to do. one, two, and three are movieclips. Is the way I am trying possible? Or is there some easier way I could go about doing this besides writing it out for each movie clip?