Basically, I want to randomly add a movie clip to any point along a bezier curve. Is there a way to find all points along a path? Or maybe there's a way to find the equation (it's a quadratic curve)? If all else fails, is there a way to find the points along a straight line (that isn't perfectly horizontal or vertical)?
Asked
Active
Viewed 1,472 times
1
-
How is the line or curve being created? Is it a vector, is it bitmap? – Marcela Mar 18 '13 at 17:05
-
Honestly, if it's possible one way, I'll switch to that. Right now I just drew some paths with the pen tool. – jemtan990 Mar 18 '13 at 17:20
-
1http://en.wikipedia.org/wiki/B%C3%A9zier_curve – The_asMan Mar 18 '13 at 17:48
-
Some answers that may be helpful also: http://stackoverflow.com/questions/8935117/how-can-i-convert-curveto-to-a-list-of-points – Marty Mar 18 '13 at 22:39
1 Answers
4
If you are using the pen tool, this is creating a Shape
. You can access the path of this shape by reading the result from Shape.graphics.readGraphicsData()
See the reference for readGraphicsData.

Marcela
- 3,728
- 1
- 15
- 21
-
+1 this pretty handy, easier than manually computing x,y for traversal(0.0 to 1.0) on the bezier curve – George Profenza Mar 19 '13 at 16:09