Skip to main content
April 9, 2013
Question

smooth movement in hd and 60fps

  • April 9, 2013
  • 1 reply
  • 1853 views

Hi,

I often have the situation that an application runs on my dual core Pentium E8500 (with Nvidia 550 ti in fullscreen) in wmode direct very smooth. Setting it in window mode makes display objects moving from right to left over the screen look choppy. And if the pc and gpu of the customer isn't top notch the application does not look good anymore.

Here is a simple example. Just moving a line of text over the screen. After some frames moving smooths it just have small unsmooth movements running from Flash Professional in a window. I seems that the text jumps one frame back sometimes.

https://dl.dropbox.com/u/1271962/textShiftTest.zip

How would I prevent such display errors?

This topic has been closed for replies.

1 reply

Chipleh
Inspiring
April 9, 2013

I tried to open your .fla, but I only have Flash CS5. Regardless, my first question to you is: How are you animating? Time line tweens, a tween class? The only way I animate anymore is using Greensock's TweenLite and TweenMax: www.greensock.com

That does everything I need to do when it comes to Flash animations, and a WHOLE lot more. If you'd like to save your .fla as a CS5 file, I'd be happy to take a lok.

~Chipleh

April 9, 2013

CS5 Version

https://dl.dropbox.com/u/1271962/textShiftTestCS5.zip

Here I use the simplest script by substracting a value to the x position on an Enterframe event. I tried using the frame time dependent movement but it still looks bad on my pc in a window (not fullscreen).

Chipleh
Inspiring
April 9, 2013

There are entire classes written to make something move on the x coordinate, which is much more efficient and much more elegant. Check out this page: http://www.greensock.com/tweenlite/

If you like, you can try the code below, all you need to do is download the AS3 version of  Greensock's TweenLite(100% free) classes and drop the com folder in the root directory along with your .swf.

Try replacing your code with the code below, which will tween your test_txt to a the 0 x coord over a period of 10 seconds.

import com.greensock.*;
import flash.events.Event;

this.addEventListener(Event.ENTER_FRAME,onEF);


function onEF(e:Event)
{
TweenLite.to(text_txt, 10, {x:0});
}

Using tweenMax, there are easing types, and many other options.

~Chipleh