PDA

View Full Version : Tween between two shapes created with drawing api.


orangemonkey
07-10-2009, 01:06 AM
Hi all,
I have 2 shapes drawn with the drawing api - the points are stored in an array like this...

private var shape_points : Array = [ [81,61],[81,46],[84,43],[84,0],[11,0],[0,5],[0,48],[69,48],[81,61 ] ];

Both shapes have the same number of points. I need to tween the points from one shape to the other using tweenlite/max or tweener.

Can somone point me in the right direction.

Many thanks.
Monkey

TomMalufe
07-10-2009, 04:23 PM
I remember Fuse could tween array values, but it was only AS2 and I'm not sure if any of the AS3 engines include that kind of functionality.
If you were to store the values in an object as proterties that I know you can use any of them that you like.