This content has been marked as final. Show 6 replies
yes, it's true that you cannot shape tween using actionscript alone. you could use a combination of actionscript and timeline tweening and that would probably be the easiest for the situation you're describing.
you could utilize the drawing methods and sequentially draw the shapes that you want but that would be more involved that combining actionscript of timeline tweening.
So you're saying that I have to practically draw all the possibilities (square to circle, square to triangle, circle to square and so on)...? Does it mean that if the shape is dynamic (e.g. drawn by the user in real time) there is no way of displaying a tween between it and another shape?
you have to draw all intermediate "tweens", not just practically all.
and there is no easy way to do that but it is doable using the bitmapdata class.
Create all the n * (n-1) possible tweens and just display the appropriate
one the user selects. You don't have to do EVERYTHING in script :)
So, digging up an old topic here.
Is this still the case where you would need to generate every possible tween up front between the shapes that are available in order to use actionscripting to generate tween effects between 2 different shapes in the library dynamically?
no. you can use actionscript to create a tween between two shapes. but it's not easy.
check www.kglad.com/code snipets/shape tween for an example using a.s. to tween arbitrary shapes.