Appendix B: Tweening in Code
The easiest way to tween a graphic or a movie clip is by right-clicking on a frame layer in the timeline and choosing ‘Create Motion Tween’. Unfortunately the results are not always fantastic. In this appendix we look at how you can use ActionScript to provide dynamic tweening that gives a much smoother and more flexible result. In the first part we will simply look at how ramping (easing) in and out of a move gives a more natural feel. Later we will look at how several keyframes can be linked together to create a smooth and curved motion, the same kind of motion you would get in a CG animation package.
A Bit of Background
Traditional cell animation was, until relatively recently, shot on a camera that was mounted ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access