Smooth Flash Bitmap animation
- Started
- Last post
- 7 Responses
- nosaj
Any tips on creating smooth scaled bitmpa animation for Flash player 6 and 7? Similar to this:http://www.newzealand.com/t...
THe Flash 8 bitmap smoothing is not supprted.
- jpea0
in flash 7 you can use _quality="BEST" in the first keyframe. not sure if it's supported in 6 though.
- fliplike90
make sure you're not resizing the photo over 100%
- nosaj0
Thanks for the tips so far.
_quality="BEST" doesn't seem to do the trick.
I'm looking to get rid of the pixel shifting that occurs when during an animatied scale or rotation of a bitmap.
- jpea0
me wonders if you're using _quality in the wrong way because it always clears up that specific prob for me.
- dbloc0
scale it with actionscript instead of tweening. usually works better.
- alloyd0
No, do scale it over 100%.
Scale it to 100.2%. It gets rid of all of those ugly pixel shifts.
Place img on even X and Y integers, not floating point nums.
set _quality = "best";
Works like a charm, do it all the time.
- ********0
The solution for the Bitmap-Shift bug, according to Flash Hacks 2004:
Summary:
create a symbol of your bitmap amd set the registration point to the bottom right.The paragraph from the book:
On careful examination, you'll notice this bug occurs only when your image's X and Y positions within the clip or on the Stage are positive. An easy solution then, is to move your image to the area of a movie clip in which the Flash Player has to deal with negative numbers to calculate each pixel position. Doing this is easy: after placing your image on the Stage in the desired position, convert it to a movie clip symbol by pressing F8. In the Convert to Symbol dialog box, shown in Figure 3-46, give it a name, and, more importantly, select the bottom-right box as being the position for the registration point. This positions the movie clip contents—your image—on the top-left side of the middle axis (i.e., in the quadrant for which X and Y positions are negative).