PDA

View Full Version : tweeening using just Actionscript


erikheerlein
02-16-2001, 07:10 PM
Is it possible to perform a 'tween using Actionscript alone?

For instance, clicking on a button changes an MC's color from red to green over the time span of two seconds.

I know how to change the property of an MC using Actionscript but I don't want the change to be instantaneous. I would like the change to happen over time like a traditional 'tween but without using the
traditional method.


[:] Erik Heerlein
[email protected]

Jesse
02-16-2001, 11:28 PM
We have two tutorials on this issue:

http://www.actionscripts.org/tutorials/intermediate/actionscripted_movement/index.shtml

http://www.actionscripts.org/tutorials/intermediate/Motion_using_Actionscript/index.shtml

You could probably adapt either of them to change the color using getRGB and setRGB.

Cheers

Jesse

erikheerlein
02-17-2001, 03:24 AM
Thank you Jesse. That was very helpful.