Im trying to create a button that will rotate my animation.
I have found some rotating scripts, but they wont work I cant find the problem.
Shouldn’t this be enough ?
var angle = 90
function rotRect2()
{
rect2.animate({rotation: angle}, 1000, ">");
}
my animation name is rect2 and my button is calling the function rotRect2
Any help ?
Thanks
I think you forgot the “;” there or is it another problem?