Skip to main content
Participant
October 8, 2006
Question

click on MovieClips

  • October 8, 2006
  • 2 replies
  • 247 views
in buttons by using on(release) i can know when i pressed on the button object, but when i use the function onClipEvent(mouse down) it act when i press anywhere, is it possible to limit it to the MovieClip area?
This topic has been closed for replies.

2 replies

Inspiring
October 9, 2006
Hello,

You can use a check to know the hit area as
-----onClipEvent(mouse down)----
if(movieClip name.hitTest(_xmouse,_ymouse){

//your executable code here --it will work only when your mouse clicked over thaat particular movie clip
}
}
Thanks,
Gunjan
kglad
Community Expert
Community Expert
October 8, 2006
if you want to limit it a movieclip area, use an on(press) hander.