Hi Sazna!
I did this just yesterday. Here is the solution I have come up with:
First I used a Float Effect that goes between values 0.0 and 360.0, with Linear timing to ensure a smooth animation, though the same could certainly be done with a timer.
I have the outlet for the FloatEffect set to a property called "Angle". The Property has an "OnSetAngle" method with the following code:
OnSetAngle:
*********************************************************************************************
if ( pure Angle == value )
return;
pure Angle = value;
WarpImage.RotateAndScale( WarpImage.Bounds.orect.center, Angle, 1.0, 1.0 );
*********************************************************************************************
Note that this will rotate counter clockwise, you can set the function to -Angle for clockwise. Make sure the float effect is enabled and you should see rotation.
You don't necessarily need to use an effect, but if you use a timer. make sure that the angle you are rotating to is incrementing on each trigger. You will probably need some kind of counting variable to accomplish that.
Let me know if this works for you, and if not, I can try to assist.
-Liam