actionscript 3 - how to get a tolerance for mouseOver behaviour in as3? -


i'm making application draws curves as3 , ant curves highlight when mouse over.

i managed mouseover, interaction not natural because have on curve (1px wide) highlight it. wondering if possible have sort of 'tolerance' on mouseover behaviour.

i know use enterframe event , check there distance between curve , cursor, seems me lot of calculations such simple task.

thanks.

ps: curves not real curves (like bezier), succession of lineto commands.

there no tolerance in mouse_over, quickest solution can imagine draw thicker line alpha set 0, , addeventlistener thicker invisible line.


Comments