Technology
 

Tweening

From Flash Wiki

Tweening is when Flash calculates the movement of an object between two or more keyframes, based on the object's position on the keyframes. "Tweening" is a short term for "in-betweening". There are two types of tween: Motion and Shape. Shape tweening is usually frowned upon, because it often looks messy.

Contents

[edit] Motion tweening

Motion tweening can be used on graphics, movieclips, and buttons to achieve a variety of effects, which can be seen in the below image. What motion tweening can do

  1. Movement - Flash will calculate side-to-side and up-and-down movement, and create an image on the frames of the tween to give the illusion of movement.
  2. Rotation - Rotation is calculated in a similar way to movement. The object will rotate around it's given point of rotation, represented (while editing) by a small transparent circle. This point of rotation is in the middle of the object by default, and can be moved using the free transform tool. Rotation will automatically be less than 180 degrees, but the direction or number of rotations can be changed in the properties menu.
  3. Scale - The object can be enlarged or stretched, and a tween will capture all the in-between stages.
  4. Colour - If the objects colour settings change from one keyframe to another, all the colours and alphas in-between will show up on the tween.
  5. Filters - On Flash 8 or better, filters can be applied such as Glow and Blur. These will also be incorporated into the tween.

If you try to motion tween a vector shape which is not a graphic or a movieclip, only the basic movement will be tweened, and the shape will be automatically converted to a graphic called "Tween 1", "Tween 2", etc.

Only one object can be tweened per layer, or else they'll all be converted into one large graphic.


[edit] Motion tweening in Animation

Motion tweening can be used as an easy way to animate, as it only requires drawing each piece (such as arms, legs, etc) once, and simply tweening it around the stage to give the illusion of movement. Each body piece of the character would need its own layer. Popular Flash animations which have used Motion Tweening as the main method of animating include The Decline of Video Gaming series by The Super Flash Bros, Tankmen by JohnnyUtah, Xombie by James Farr, and just about every flash ever created by LegendaryFrog

[edit] How to make motion tween

First make a retangle with Rectangle tool. Then right click on frame 20 in the timeline on select Insert Keyframe. Then move your retangle to right and right click somewhere in the timeline and select Create Motion Tween. Now click Ctrl+Enter to see you motion tween!

[edit] Shape tweening

Shape tweens are basically functions that allow the developer to change a certain shape to another in a certain period of time. The shape tween can tween basically anything to anything.

please add stuff about creating tween, and shape tweens. i'm too lazy. --Edit-undo 12:26, 16 November 2006 (MST)