Image rotating in Y direction with tweener using flash actionscript

Posted by Vineela | Flash, as3, utils | Friday 6 November 2009 6:01 am

To see the effect please click on the below image


import caurina.transitions.Tweener;

var values:int=0;

heart.addEventListener(MouseEvent.MOUSE_DOWN,rotate);

function rotate(evt:MouseEvent):void
{
	values = values - 1;
	Tweener.addTween(heart,{rotationX:values*0,rotationY:values*180,time:1,transition:"easeInCubic"});
}

This movie requires Flash Player 9