Re: [Flashcoders] working out a point on a squiggly line

2008-08-20 Thread allandt bik-elliott (thefieldcomic.com)
I've decided that i probably don't need to measure the curves - simply plotting over the top of a drawing will probably be fine a On Wed, Aug 20, 2008 at 3:48 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > Hi > > okay i read that but without the grounding in advanced c

Re: [Flashcoders] working out a point on a squiggly line

2008-08-20 Thread allandt bik-elliott (thefieldcomic.com)
Hi okay i read that but without the grounding in advanced calculus it meant very little to me do you have something that is a little easier to understand? On Wed, Aug 20, 2008 at 3:25 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > lol re-read antony's post - ignore

Re: [Flashcoders] working out a point on a squiggly line

2008-08-20 Thread allandt bik-elliott (thefieldcomic.com)
lol re-read antony's post - ignore my last question thanks On Wed, Aug 20, 2008 at 3:22 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > hi guys > > thanks for the response. I've come to a similar conclusion myself. > > as the maps are fairly simple, i'm going to draw th

Re: [Flashcoders] working out a point on a squiggly line

2008-08-20 Thread allandt bik-elliott (thefieldcomic.com)
hi guys thanks for the response. I've come to a similar conclusion myself. as the maps are fairly simple, i'm going to draw them in the api, saving the total length as i go and then follow the route with a quick 'is this closer to the point clicked than the last point i drew' check and save that

Re: [Flashcoders] working out a point on a squiggly line

2008-08-20 Thread Anthony Pace
If anyone else has a better way I would love to hear it. Totally curved lines? or zig-zag with corners? or both? Try breaking the path travelled down to points. If you can calculate the distance between the last point and a new point made, you just need to sum up the values. example map/ pat

Re: [Flashcoders] working out a point on a squiggly line

2008-08-20 Thread Ivan Dembicki
Hello allandt, http://bezier.googlecode.com and especially http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=3 -- iv http://www.bezier.ru http://bezier.googlecode.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chatt

[Flashcoders] working out a point on a squiggly line

2008-08-20 Thread allandt bik-elliott (thefieldcomic.com)
Hi guys I have a bit of maths problem to solve here and I've not found any answers on the Googles. I have several squiggly lines (they will be maps) and I need to find out, if a user clicks somewhere on one of the lines, how far along the line they've clicked. I also need to find out how long the