• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 684
  • Last Modified:

Jerky movements in Flash

I'm noticing more and more how jerky the motion looks in Flash. Take a look at this file to see what I mean:
http://www.discretedata.com/Ex-Ex/FlashTests/RedSquare.swf   The red square makes it look really obvious and awful but I notice the same thing with all movement.  This file is at 24 fps, but it's noticeabl even at 120 fps.
I'm using Flash CS3.  Could there be something wrong with my version or my computer?

Thanks, John
0
John Carney
Asked:
John Carney
  • 4
  • 2
1 Solution
 
MMDeveloperCommented:
it's jerky on mine too.. it's probably being scrolled via code and the x coordinate is being incremented by a large number, such as 50, so even at 120fps, it's still jumping 50 pixels per movement, hence, jerky.
0
 
John CarneyReliability Business Tools Analyst IIAuthor Commented:
There's no code in my SWF,  just a tween on the timeline.  Do you have any examples of smooth motion for which you could send me a link to the FLA file?  

John
0
 
MMDeveloperCommented:
It might also be the distance it has to travel and the time it has to do it in which causes the larger "jumps" on each frame. I'll make a small animation with a given distance to travel and plenty of time to do it, it should be smooth.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
MMDeveloperCommented:
http://www.mechanicmatt.com/temp/ee/Q_2381431/

I can replicate the jerkyness on command..

The top movie is 40 frames per second, and the movie is 100 frames long (movie is 2.5 seconds long)

The 2nd movie is 20 frames per second and 20 frames long (one second movie)

the bottom movie is 40 frames per second and 200 frames long (5 second movie)


in each movie, the  box covers the same distance. It's all a matter of the framerate and how much time it has to cover the distance. The flash player does the math to calculate how much of a "jump" for the box to make on each frame to accomplish the distance given the speed and time limit.
0
 
John CarneyReliability Business Tools Analyst IIAuthor Commented:
RE: ... and the x coordinate is being incremented by a large number, such as 50 ...

This is intriguing. Since I'm not using code, hoe would I set the x coordinate?  Better still how what would the AS look like that would produce the same rolling ball?  If that requires more than two minutes to figure out, let me know and I'll post a new question.

Thanks again.

John


0
 
MMDeveloperCommented:
You'd just need to give it more time to make the move. Set the last frame further down the timeline. It will slow it down but it will also smooth it out.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now