flash (macromedia):
[quoted text, click to view] > webpage do they show the problem. I doubt that the use of SWFobject script has
> anything to do with it. I did try using bitmap caching with a view to making
> the scroll smoother and wonder if this is provoking the behaviour. If someone
> would like to take a look at one of the FLA files, they can download it from:
>
> Please help!
http://elizayoung.com/downloads/lodge2.fla.zip I recommend getting rid of the timeline tween. It's not smooth for big bitmaps. If you keep bitmaps landed on whole pixels they
don't jump so much. If you tween bitmaps, they will land on uneven pixel numbers like 77.4 instead of 77. A bitmap displayed at
77.4 would be displayed at 77. If it was at 77.7 it would shift to 78. (because you can't spit pixels)
That decimal shift makes tweening bitmaps jump sometimes.
To get smooth tweening bitmaps, keep them on whole numbered pixels at all times. To do that requires just a little bit of code.
Make a single frame movieclip of your image. Give it an instance name like mc. Then use some actionscript to make sure that the
movements stay on whole pixels all the time like this..
// code at frame 3 after your preloader.
stop();
ypos = 0; // set initial value of zero
dir = -1; // initial direction is up (negative)
// once per frame, run this code
this.onEnterFrame = function()
{
if ( (ypos - dir) < -348) // after it goes up to pos -348 start down again
dir = 1; // will add 1 to the ypos now
else if ((ypos + dir) > 0) // has reached the bottom, start up again
dir = -1; // direction is now negative
ypos += dir; // change the ypos value by the direction number
mc._y = ypos; // and apply it to the bitmap movieclip
}
The variable ypos is used to keep the position numbers even. If you used the code directly on the clips y value, it will soon be
off the whole numbers.
Use higher frame rate, like 30 for improved smoothness.
This code is AS1.. you may have to change it a little bit for AS2.
tralfaz