jemtan990
jemtan990

Reputation: 453

Find all points along a path AS3

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)?

Upvotes: 1

Views: 1482

Answers (1)

Marcela
Marcela

Reputation: 3738

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.

Upvotes: 4

Related Questions