Solved

Jerky movements in Flash

Posted on 2008-10-14
6
672 Views
Last Modified: 2012-08-13
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
Comment
Question by:gabrielPennyback
  • 4
  • 2
6 Comments
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22715556
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
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 22716609
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
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22716708
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 15

Accepted Solution

by:
MMDeveloper earned 500 total points
ID: 22716768
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
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 22723427
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
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22730255
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now