Flasher Archive

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


Subject: RE: FLASH: Tween along a path
From: Len Harrison
Date: Thu, 10 Sep 1998 18:38:12 +0100

This discussion is an excellent example of a picture being worth a 1000
words per my previous post on small binary attachments. Upon reading John's
msg., I took about 20 minutes of company time to experiment. What John says
is somewhat true, but not completely. I have a sample file with 8 crossovers
(5120 bytes) several of which are definitely not 90 degrees or near 90. A
couple of them form obtuse angles at the crossover. One loop looks almost
like a separate graphic attached to the line but the symbol follows the path
anyway.

It would be nice to firmly quantify the "rules" here, but that seems a bit
difficult without moving back and forth between Illustrator or CorelDraw (or
a similar program) and fine-tuning the crossovers. It's difficult to do too
many sophisticated things with lines in Flash itself since there are no
Bezier controls or the equivalent. There's only so much you can do nudging
line segments. Plus there's no way to measure angles. The angle at the
crossover does not seem to be a prime determiner, though. I've played with
simple paths featuring both acute and obtuse angles at crossover with no
apparent difference.

However, loops inside of loops seem to cause the ignore path syndrome even
when they are clearly defined and would otherwise work. If the spiral in
question consisted of loops which overlapped each other instead of a line
that merely crossed over itself, it would unquestionably not work. More
fuzzy syntax when a picture would be clear; let's try again: Assuming a
two-dimensional side view of a spiral, such as we might see looking at a
tornado in the distance from the ground, we can abstract a repeating curve
which crosses over itself near the point where its angle sharpens and it
begins to double back on itself. If the spiral is stretched out, this is the
only crossover point. But if it is tight, the flat parts of the curve also
cross over each other and can do so multiple times depending of the amount
of compression. The former case should cause no problems as far as I can
determine. The latter would not work.

The bird's eye view of a spiral would have no crossovers at all and would
pose no problem.

If anyone is interested in my 8 crossover experiment, I'll email it upon
request. It's interesting to deform the lines and make the crossovers more
complex and observe when path following breaks. Might be fun to see how
complex one could make this. I'd be interested myself in seeing significant
"improvements" to this.

len harrison
instructional designer
lenhatabtcorp [dot] com



-----Original Message-----
From: owneratshocker [dot] com [owneratshocker [dot] com]On">mailto:owneratshocker [dot] com]On Behalf Of John
Croteau
Sent: Wednesday, September 09, 1998 11:13 PM
To: flasheratshocker [dot] com
Subject: Re: FLASH: Tween along a path


Hi Chris and all,

Since I haven't seen the spiral in question I am just going to assume
that the problem relates to lines crossing each other.
First make sure the start and end objects are both the same symbol.
Use snap and grid to make sure alignment of the ends is exact.
Flash allows crossing of lines in the path of the Motion Layer path
but they should be close to 90 degrees when crossing.
If you create a perfectly good path with crossing lines, then stretch
the intersect so the lines are no longer near a 90 degree intersection
then Flash will do one of two things. It may ignore that path since it
can not determine a legal path and will go straight ignoring the path
completely. Another possibility is that it will take the wrong path and
not go along the path as intended. Putting the intersection back closer
to right angles will correct the problem showing it wasn't a problem
with connecting the objects to the end points of the path.
Another problem with paths has to do with needing end points. Figure
8 tweens can be created but the motion path's curver must be segmented
into 2 overlapping pieces.
One more problem is that sometimes Flash doesn't recognize
multi-segmented lines as continuous. The solution is to redraw the line.

So there are 3 solutions to the spiral problem.

1) Redraw it because the spiral line is too complex and Flash doesn't
recognize it as a continuouus line.
2) Change the dynamics of the spiral slightly to insure that
intersections are closer to 90 degrees (right angles).
3) Segment the spiral into overlapping sections and Tween the individual
segments.

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
FlashTeK(Advanced Websites with Flash) http://www.CrownMall.com/Flash/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
Need a PC ? -- Computer King -- http://www.crownmall.com/computers/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
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


------------------------------------------------------------------------
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: Tween along a path, John Croteau

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