Jump to content
Search Community

Image gets blurred when rotating [SOLVED]

nitech test
Moderator Tag

Recommended Posts



I don't know if this anything to do with TweenMax or not, but when I rotate an image (rotationY), it gets blurred or smoothed in a way. I don't want it to blur. In the library, the image is not allowed to smooth...


What am I doing wrong?


_timeline.append(new TweenMax(_person1, 0.7, { rotationY:180, onUpdate:setSideVisibility, onUpdateParams:[_person1], ease:Expo.easeOut, delay:1 } ));

private function setSideVisibility(s:Sprite):void
if(s.rotationY >= 90){
	s.getChildByName("back").visible = true;
	s.getChildByName("front").visible = false;
}else if(s.rotationY < 90){
	s.getChildByName("front").visible = true;
	s.getChildByName("back").visible = false;


See url. Affects both persons and text: http://avento.avento.no/sbm/index.html


Kind regards,


Link to comment
Share on other sites

To other people having the same problem, the solution is to change the xscale and yscale slightly whenever you make the sprite a 3d sprite (when you modify the scaleY property:


var scale_x:Number = _person.width / (_person.width + 1);
var scale_y:Number = _person.height / (_person.height + 1);

// whenever turning into 3d object:
_person.scaleX = scale_x;
_person.scaleY = scale_y; 


Kind regards,


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...