Thank you everyone for all of your great help, I think I know now enough
to be able to resolve the issue. Complexities arise in my MC because I
need bitmapcaching on to get correct alpha's to work, so I'm thinking up
solutions and workarounds...
:P
All the best,
Sebastian.
Zeh Fernando wrote:
Modern tween engines (including the one used on his example) by default
do not use the framerate as the base for calculation but rather the time
spent since the animation has started (even if they only update on frame
events). Replacing it with a timer class will produce the same result.
His problem is with asset and not with calculation of the new position
or with time accuracy.
Zeh
Cor wrote:
Loose the tween.
Use the Timer class and update your x or whatever at a amount of
milliseconds.
Framerate is never reliable
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of sebastian
Sent: donderdag 4 september 2008 5:04
To: Flash Coders List
Subject: Re: [Flashcoders] smooth animations? AS3
ok I don't normally ask this, but I have made a very simple test flash
file with just one vector graphic and with Tweener I am moving it
across the screen; it doesn't move smoothly.
The code you will find in my flash file is just this:
package {
import flash.display.MovieClip;
import caurina.transitions.Tweener;
//main timeline AS file:
public class testas extends MovieClip {
public function testas () {
setAnimation2 ();
}
private function setAnimation2 () {
Tweener.addTween (testMC, {x:-1800, time:8000,
transition:"linear"});
}
}
}
the file with my FLA, which like I said has only one vector-item of a
square on the timeline is:
http://www.fountain-city.com/archives/test/testMotion.zip
Can anyone help me fix this?
Much appreciated!
thanks!
seb.
sebastian wrote:
also I tried replacing my PNG with a simple vector of a square, but
it STILL skips as it moves every pixel... surely I am still missing
something simple here...
hmmm
sebastian wrote:
Thanks Jack and Zeh,
I have the bitmap smoothing on on the image's properties in the
library, and I also turned on for every MC it is placed in 'use
runtime bitmap caching' but i STILL get staggered movement...
:(((
It's nothing complicated, aside from using the Tweener AS3 class,
I'm trying to move PNG's [with transparencies] over a BG image. The
blend mode on all layers is set to 'normal'. No alpha is being used
except for the inherent PNG's alphaness. I've also tried setting the
bitmapCaching at runtime to the holding MC, but none of this is
helping...
Any other suggestions? Am I still missing something? Is the PNG the
problem?
Thanks,
Sebastian.
Zeh Fernando wrote:
I have tried basic timeline motion tween, and also the AS3 Tweener
class; but in both cases I get the issue that the slow animation
makes the image do little 1 pixel jumps that are VERY visible and
break the effect I am going for [which needs to be extremely subtle].
If that's an image, set its anti-alias to antialias for animation.
If it's a bitmap, turn on smoothing on it (on the library). If it's
a loaded bitmap, turn on the Bitmap's antialias.
Zeh
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders