Actionscript Code:
//////////// If you want it to act like the second hand of a clock
//////////// or hours, or minutes.
onEnterFrame = function(){
today = new Date();
Hours = today.getHours();
Minutes = today.getMinutes();
Seconds = today.getSeconds();
//myArm._rotation = Hours * 30 + Minutes / 60 * 30;
//myArm._rotation = Minutes * 6;
myArm._rotation = Seconds * 6;
}
//////////// Use this for smooth motion looping.
onEnterFrame = function(){
myArm._rotation +=1;
}
//////////// Use this for single frame. One complete turn.
import mx.transitions.*;
new Tween(myArm, "_rotation", None.easeNone, 0, 360, 10, true);