A simple solution could be to create a sprite to draw the line onto, and
add a listener to the sprite to see if it was clicked on.

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  Innovative Learning Blog & subscribe. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Weyert
de Boer
Sent: Saturday, August 30, 2008 8:19 AM
To: Flash Coders List
Subject: Re: [Flashcoders] pythagoras question

May I ask a related question? How can I detected if a user has clicked 
on a line (or later a bezier path) ? I am having the starting and ending

coordinates of this line and so also the distance.
Now I am would like to check if the user has clicked within this line 
with/or without a specific radius. I am currently a bit clueless how to 
solve this problem.

I know it's close what you have given earlier.

Yours,
Weyert
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to