Ultrashock Forums > Flash > ActionScript
AS3 - Tweening bitmapData or alternative?

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS3 - Tweening bitmapData or alternative?
Old 2009-07-09

Hello,

I am working on a kind of pro bono site right now that I could use some advice on.

You can see the site here.

My problem is when you hit the books button and the site scrolls to the right it's a little bit jerky.

I know it is because I am using a bitmapdata fill for the background and bitmap data only like whole pixels. I am using TweenMax.

I tried building a simple tween engine using the Timer making the bitmapdata land on whole pixels but for some reason it is even more jerky.

If anyone could offer suggestions for a good method to make this happen it would be greatly appreciated.

Thanks in advance.
postbit arrow 2 comments | 134 views postbit arrow Reply: with Quote   
Registered User
ericscott is offline
seperator
Posts: 22
2008-07-29
ericscott lives in New Zealand
ericscott's Avatar
seperator

Ultrashock Member Comments:
Nutrox's Avatar Nutrox Nutrox is offline Super Moderator Nutrox lives in United Kingdom 17 Creative Assets 2009-07-09 #2 Old  
I don't think there is much you can do apart from increasing the frame rate. The image tearing/ripping can't be avoided, Flash's refresh rate isn't synced to the system graphics card so they don't redraw at the same time.
Reply With Quote  
ericscott's Avatar ericscott ericscott is offline ericscott lives in New Zealand 2009-07-09 #3 Old  
Thanks Nutrox,

It's not to bad, but I was just wondering if there was a trick to smooth it out or even an alternative to using the bitmap fill. I could just use a png, but the books are added dynamically through an xml file so I need the background to be the length of the tweened movie clip no matter how long it is.
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: