Skip to main content
Participant
June 7, 2007
Question

problem with MouseDown event..

  • June 7, 2007
  • 2 replies
  • 211 views
heya, i am creating dinamically MovieClips, i draw a 2 lines and attach "onRelease" event,
when i click the movie click i trace the message: "yea", everything is good now...

the problem is when i set onMouseDown event, when i click on the line (or on the screen) i get the message 2 times! (as the number of the movie clips i created), how can i fix this problem?

i attached the code... (just replace "onRelease" with "onMouseDown":

This topic has been closed for replies.

2 replies

Inspiring
June 7, 2007
Why are you replacing onRelease with onMouseDown?

Anyways, I think you want onPress.
JaffaPortAuthor
Participant
June 7, 2007
thx its work, and i want onPress because i resize columns, i build a Columns Graph that the user can resize the columns...
kglad
Community Expert
Community Expert
June 7, 2007
onMouseDown executes every time the mouse button is pressed, no matter the location of the cursor (as long as your swf has focus).
JaffaPortAuthor
Participant
June 7, 2007
so.. there is a solution for my problem?
i want to get the object(movie clip) that clicked...