Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: bird animation - breaking up tweens
From: John Croteau
Date: Thu, 20 May 1999 13:40:12 +0100

Hi Gabriel,

> >Note, shape tweening is a great tool for constructing animation. If the
> >components are fairly simple it can work wonderfully. But sometimes it
> >should be used to create the animation but not display it.
> >Sometimes a shape tweeen should be turned into frame-by-frame
> >animations. First the file size may actually be smaller. Second, the
> >frame by frame usually takes less CPU resources and may play smoother
> >and faster as a frame-by-frame. In general the shape tween is smaller
> >but takes more CPU resources to display while the frame-by-frame usually
> >uses less CPU resources but is larger. But it is best to check.
> >
> >It is a simple matter to convert any tween to frame-by-frame. Just
> >highlight the frames, right click and select Insert Keyframes. Check on
> >slower computer and compare byte sizes. Undo if frame-by-frame is not
> >better.
> when breaking up shape tweens into keyframes,
> it sometimes happened, that the new keyframes
> are NOT showing the same vectors as the tween did,
> f.e. curves are replaced by straight lines,
> so I had to adjust them manually again.
This definately is a real pain. Fortunately, it doesn't happen every
time, but it is the reason not to worry about whether the animation
should remain as a shape tween or frame-by-frame until the visual part
of the animation is realized.

> On the other hand I found that shape tweens are not very reliable:
> all of a sudden they stop working
> when the .fla is saved or exported as .swf
2 points if you move anything you may have to rehint. I always place
complicated shape tweens in MCs as this helps. The other problem is that
sometimes even without moving something Flash rounds off things slightly
differently and you have to add another hint to stablize the tween.
In my Diamond morph
http://www.FlashTek.com/DiamondMorph2.swf
I don't have to hint each facet (about half are) but ever so often while
I developed it I found a facet would behave weirdly and I would have to
add hinting for that facet even though it didn't appear to need it
before. Even a very small move oe adjustment of one facet may turn it
from a facet not needing hints to one that does. Always start hinting in
the upper left corner and try going CCW first, if it doesn't work try
CW. For circles and rectangular objects the magic number of hints is
often 4. Though you can sometimes get by with less it's best not even to
bother. Go for the 4 'corners' and add more as needed.

Don't get mislead by Flash auto-hinting working on complex or multiple
segmented items and assume it should work without hinting.
See http://www.canfieldstudios.com/flash3/tweenbug/index.html
This is incorrectly descibed
[http://www.canfieldstudios.com/flash3/#textzoom] as a bug (see the A),
when it is just a fact of life that you should either separate the 2
halfs of the 'A" into separate shape tweens or hint them. The fact that
Flash is able to auto-hint in one place and size on the canvas does not
mean that this should be expected of Flash in all cases. It is a
fact-of-life that hinting may or may not be required, separating shapes
make it easier for Flash and hinting (or not hinting) needs vary with
the exact size and position of objects on canvas.

> So mybe I will use the keyframe method when I am finished.
If it's in a MC it should be pretty stable but looks for weird actions
and eliminate them by hinting. Move the MC around to be sure it is
stable. And determine whether it should be frame-by-frame by size and
performance when you are done.

> BTW: often Im in doubt wether to use symbols for
> simple shapes like circles, or not.
> I wonder what needs more bytes in the file, some
> curves or the refernce to a symbol
If you can use symbols and motion tweening it is ALMOST always better
than shape tweening and drawn shapes. If you convert to frame-by-frame
you will want to symbolize many of your repeating or motion tweenable
shapes.

> What a bout the 'shape-hints' ?
> Do they enlarge the swffile or need additionl calculating time ?
MM says it reduces calculation time in display if hints are added.
Of course it takes some bytes for the hints.
By using hints correctly you will have smoother transitions and thus
less file size and faster rendering to the screen because the
intermediate shapes are much less complicated.

> Or do they just rearrange some information that is
> stored anyway ?
All tweens are calculated on the fly. This is why they generally are
much smaller but take more CPU time.

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: bird animation - breaking up , Gabriel

Replies
  Re: FLASH: bird animation, Gabriel
  Re: FLASH: bird animation - breaking up , Gabriel

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]