Solved

Jerky movements in Flash

Posted on 2008-10-14
6
676 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Video sharing with user login 3 221
Crash with shockwave flash 8 259
Rotating Adobe pdf document 4 339
Running Mp4 or Flash Video 1 149
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

752 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