PDA

View Full Version : shape tweening with actionscript



Mike
April 28th, 2003, 05:06 PM
Hello, just trying to figure how to shape tween with actionscript.

ahmed
April 28th, 2003, 05:33 PM
hm.. there's no way to do an actual 'shape tween', but you can simulate that with the drawing API :)

pom
April 29th, 2003, 12:44 PM
No way to simuate a shape tween with AS, even with the drawing API I'm afraid.

pom :)

Mike
April 30th, 2003, 01:13 AM
Thanks guys.

upuaut
April 30th, 2003, 01:29 AM
why Pom?

draw a curve, then the next frame, redraw the curve with new coords. Shouldn't that be similar to a shape tween as long as the changes are small enough?

pom
April 30th, 2003, 05:05 AM
Of course, David, but that's not a shape tween then. What I mean by shape tween is: I have a starting symbol S1, I have an ending symbol S2, and all I would have to do is shapeTween(S1,S2). Redrawing the whole thing all the time doesn't count in this perspective, I'm sure youll agree :)

upuaut
April 30th, 2003, 05:10 AM
hmm.. I don't think you're getting my meaning.

say you use drawCurve between two points, and you use a loop to change those two points, and the nature of the curve, each enterFrame.

I'm not saying it would be easy.. but it seems to me like it can be done.

pom
April 30th, 2003, 05:55 AM
I did understand what you meant :), and you're right, but I'm just saying that it's not a shape tween, technically (because you don't manipulaet symbols). It could look like a shape tween, at best :)

upuaut
April 30th, 2003, 06:57 AM
:).. ok fair enough. I have just been calling anything in which the computer generates frame by frame differences for me, tweening.. but I guess you are correct that it is not.

pom
April 30th, 2003, 07:10 AM
Well, David, I've read in my first Flah book (and that was probably the only valuable info I found there, you know, the kind of teach yourself Flash in 5 lessons, really crappy stuff) that the term tween come from the cartoons world. Usually, the lead artists would only draw the characters in certain positions, without properly animating them, and then the other guys would do the in-between drawings, to go from one position to the other. Hence the TWEEN. Nice story, isn't it? :P

pom :)