PDA

View Full Version : tweening question - having a line grow along a path


carlhusic
02-01-2003, 01:13 AM
I want to do a tween where a line starts
as a point (or very short line segment)
and in the course of a tween grows
along an arc. Shape tweening from the
very short segment drawn in the first
keyframe to an arc drawn in the last
keyframe doesn't give me the effect I
want, because in any given frame the
moving endpoint of the graphic is still
basically following a straight line from
the first point to the last point, instead
of along the path of the full arc.

Is there a trick, maybe using a path
layer, that will give me the effect that
I want?

Carl

tost
02-01-2003, 07:02 AM
shape tweening can't really do this the right way, you can drag your lines for hours and add just as many (buggy) shape hints, you'll never be happy with the result
been there :)
imho, to achieve this you could
- set the layer with the line on it as a mask, and motion tween one or more squares in the layer below, revealing the squares only under the line
- use a mask layers with tweened forms above the line layer, the other way around.

a much faster way to do it might be doing it completely in AS, using the math object and the drawing api, if you work in mx.
rgdz
tost