Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: animating with Actionscript |
From: | T.R. Henigson |
Date: | Sun, 7 May 2000 22:43:34 +0100 |
Cheri - thanks for your reply. I can't really start the left position at a
different
point because it's based on the user's mouse coordinates. As for trying
dividing by
2 instead of 3, I still get the same problem. Everything works from the
right. But
from the left, I always end up with a repeating number for the difference
and then
adjusting the logoX variable by the difference stops working. It's as though
the
Set Variable function quits. I mean, you'd expect that it would continue to
update
logoX, but it just stops. Look at logoX: it stops changing and difX goes to
a
repeating number (whether I use 2 or 3). I'm really stuck. Any ideas?
FROM THE RIGHT using a factor of 2: (GOOD)
logoX: 557.4 difX: -2.69999999999993 thisX:554.7
logoX: 556.05 difX: -1.35000000000002 thisX:554.7
logoX: 555.35 difX: -0.650000000000091 thisX:554.7
logoX: 555 difX: -0.299999999999955 thisX:554.7
logoX: 554.85 difX: -0.150000000000091 thisX:554.7
logoX: 554.75 difX: -0.0500000000000682 thisX:554.7
logoX: 554.7 difX: 0 thisX:554.7
logoX: 554.7 difX: 0 thisX:554.7
logoX: 554.7 difX: 0 thisX:554.7
logoX: 554.7 difX: 0 thisX:554.7
FROM THE LEFT using a factor of 2: (TROUBLE)
logoX: 552.75 difX: 1.94999999999993 thisX:554.7
logoX: 553.7 difX: 1 thisX:554.7
logoX: 554.2 difX: 0.5 thisX:554.7
logoX: 554.45 difX: 0.249999999999886 thisX:554.7
logoX: 554.55 difX: 0.149999999999977 thisX:554.7
logoX: 554.6 difX: 0.100000000000023 thisX:554.7
logoX: 554.65 difX: 0.0499999999999545 thisX:554.7
logoX: 554.65 difX: 0.0499999999999545 thisX:554.7
logoX: 554.65 difX: 0.0499999999999545 thisX:554.7
logoX: 554.65 difX: 0.0499999999999545 thisX:554.7
> Date: Sat, 6 May 2000 10:55:02 -0700
> From: "Cheri Harder" <chericahome [dot] com>
> Subject: Re: FLASH: animating with Actionscript
>
> It does seem like I've seen something about this being a problem, but was
> unable to locate anything on the MM Technotes. Seems like it has
> something
> to do with rounding (and I do realize you are starting the same distance
> both times...). Perhaps you could either start your "left"
> position a 10th
> or .5 or something off from where it is, or change your division
> to be by 2
> instead of 3, so there is not the rounding problem?
>
> ~~~~Cheri Harder~~~~~
> charderawsolution [dot] com
> Advantage Web Solution
> www.awsolution.com
> >
> > Does Flash have a problem with accuracy of coordinates? >
> > MORE DETAILS: I am dividing the distance between the icon and it's point
> > of rest by 3 to introduce some latency into the animation.
> "logoX" is the
> > icon, "thisX" is the resting point in the following trace output
> >
> > FROM THE RIGHT, WORKS NO PROBLEM - "difX" goes to 0 and "logoX" equals
> > "thisX"
> > logoX: 431.9 difX: -0.800000000000011 thisX:431.1
> > logoX: 431.6 difX: -0.5 thisX:431.1
> > logoX: 431.4 difX: -0.300000000000011 thisX:431.1
> > logoX: 431.3 difX: -0.199999999999989 thisX:431.1
> > logoX: 431.2 difX: -0.100000000000023 thisX:431.1
> > logoX: 431.15 difX: -0.0500000000000682 thisX:431.1
> > logoX: 431.1 difX: 0 thisX:431.1
> > logoX: 431.1 difX: 0 thisX:431.1
> > logoX: 431.1 difX: 0 thisX:431.1
> > logoX: 431.1 difX: 0 thisX:431.1
> >
> > FROM THE LEFT, TROUBLE - "difX" never makes it to 0 and "logoX" never
> quite
> > equals "thisX"
> > logoX: 430.3 difX: 0.800000000000011 thisX:431.1
> > logoX: 430.55 difX: 0.549999999999955 thisX:431.1
> > logoX: 430.7 difX: 0.399999999999977 thisX:431.1
> > logoX: 430.8 difX: 0.300000000000011 thisX:431.1
> > logoX: 430.9 difX: 0.199999999999989 thisX:431.1
> > logoX: 430.95 difX: 0.14999999999992 thisX:431.1
> > logoX: 431 difX: 0.100000000000023 thisX:431.1
> > logoX: 431 difX: 0.100000000000023 thisX:431.1
> > logoX: 431 difX: 0.100000000000023 thisX:431.1
> > logoX: 431 difX: 0.100000000000023 thisX:431.1
> > logoX: 431 difX: 0.100000000000023 thisX:431.1
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 helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]