Page 1 of 1

Script of a graphic

Posted: Wed May 26, 2010 10:10 am
by tal
Hi,

I have a graphic with, for example, this points :

440,520
621,520
621,351
1000,351
1000,520

This graphic has a script, but the script is called when clicked everywhere in the rect of the grc, and I would like to restrain the call of the script only if I click on the real graphic and not on its rect, do you think it is possible?

Thank you

Re: Script of a graphic

Posted: Wed May 26, 2010 10:42 am
by bn
Hi tal,
actually for a polygon graphic (the one you do with the points) if the opaque is set to true only the line and the filled area should get a mouseUp, if the opaque is set to false only the line should get the mouseUP. Not the rect of the graphic.
Could you explain a little and maybe post some of the code?
regards
Bernd

Re: Script of a graphic

Posted: Wed May 26, 2010 11:18 am
by tal
Finally I found a solution using a restriction with points of my graphc and sending mousedown to the low layers of the other graphics... thank you

Tal