-
on mouse down
for example i have 5 mcs (hitter_mc1,hitter_mc2....) on stage in a row (on x axis) at small distance.
i ve added this script to each hitter_mc
onClipEvent (mouseDown) {
if (this.hitTest(_root.d2.hit)) {
this._visible = false;
}
}
because a wanted to make them disappear when they collide with "_root.d2.hit" (its mc also).
Its only working when i press mouse button in case when "_root.d2.hit" is over "hitter_mc" but not when i press button some where outside "hitter_mcs" and then drag holding mouse button down over "hitter_mcs".
I need to make this working like this> press and hold mouse click somewhere outside hitters and than drag pressed over them and make them disappear as you pass over them without releasing mouse click.
Last edited by brankomaster; 11-26-2011 at 09:03 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|