Flasher Archive

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


Subject: Re: FLASH: animating with Actionscript
From: Helen Triolo
Date: Sun, 7 May 2000 23:14:13 +0100

"T.R. Henigson" wrote:
>
> I receive the digest-mode but I haven't seen my post come up so I'm going
> to resubmit it. I hope you all aren't receiving multiple copies.
>
> Does Flash have a problem with accuracy of coordinates? I wrote some
> Actionscript to animate an icon over a bar to rest and it rests at
> different coordinates depending on whether it's coming from the left
> or the right. It's animating by comparing the difference in its position
> with the position of the resting point and then slowly adjusting its
> position. From the right, it rests right on the mark. From the left,
> it's about a tenth off. Have you heard of this? What's the problem?

Are you talking about a tenth of a pixel? I can't understand why you're
trying to move something *slowly* over a 1 or 2 or 3-pixel distance in
the first place--how could Flash move something less than one pixel at a
time and how would you tell if it's moving quickly or slowly over such a
small distance? The only suggestion I can offer, since I don't quite
get what you're trying to do, is to start with bigger numbers--ie,
multiply your initial start and stop numbers by something like 100 or
1000 before you divide (and then set them back before you do the move),
so you're not doing operations that depend on ever-more-exact decimal
precision, which maybe Flash's floating point operations are not set up
to handle.

Regards,
Helen
----------------------------------------
helen triolo � http://i-technica.com
designerati-technica [dot] com � 301-424-6037
----------------------------------------

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: animating with Actionscript, T.R. Henigson

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