15 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
MaximusCript says

Hello, its me again.

I searched all over the web, but i couldn’t find answear to this issue… And i ran out of ideas too.

So i got an animation of JPG picture, that is jumping at the end of Tween. Here’s link

I presume that problem is related with picture rendering. Here’s list of some things,(that i still remember) i did:

- I tried this animation with one picture - I checked this animation on some VERY powerfull computer, with good graphics card too. But jumping effect was still there. And CPU usage was even lower then with 360p videos on youtube. - I tried this animation with lowest possible image quality (0 in photoshop JPG save mode) - I tried with different image resolution (72 and 36), still no effect. - I tried to set BitMap.PixelSnapping = PixelSnapping.NEVER and all other options. NO effect. - Embeding image inside movie and making BitMap instances = no offect. - Loading from disk/web no effect - Allow smoothing / 100% quality from embedded JPG = no effect

I got on some clue anyways. When i try this animation with simple objects (rectangles, and some brush dots, lines) i get some jumping too!

To be exact only STROKES are jumping. Somewhere i read one day, that strokes must always be set on half pixel’s like 1,5 / 54,5 / 99,5 etc.

Any suggestions please?

PS: Does anybody knows how Bitmaps are rendered in Flash? A link to a lecture perhaps?

3788 posts Community Moderator
  • Helps us moderate the forums
  • Contributed a tutorial on Tuts+
  • Located in Netherlands
  • Made it to the Authors' Hall of Fame
+9 more
Joost Moderator says

Moved your thread – the Site Feedback section is for feedback on this site, the Envato marketplaces ;)

15 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
MaximusCript says

Sorry Joost, my bad.

Hey i think i found a solution to that!

All i needed to do is add few lines of code:

var up:Bitmap = new Bitmap(new Picture);
var down:Bitmap = new Bitmap(new Picture);

up.pixelSnapping = PixelSnapping.NEVER;
down.pixelSnapping = PixelSnapping.NEVER;

up.smoothing = true;
down.smoothing = true;

up.scaleX = up.scaleY = down.scaleX = down.scaleY = 0.999;

upHolder.addChild(up);
downHolder.addChild(down);

startAnimation();

I just read somewhere on internet, that image’s automaticly snaps to full pixel, and only changing it’s pixelSnapping property to NEVER won’t make it. You also have to change scaling to something diffrent then full 1.

Hope it will help someone, someday… Bye.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by