
Код AS1/AS2:
var stopSecondTracking = false
this.onEnterFrame = function(){
d = new Date();
if ( !stopSecondTracking ){
_root.secA_._rotation = d.getSeconds() * 6 + d.getMilliseconds() / 160 - 90
}
_root.minA_._rotation = d.getMinutes() * 6 + d.getSeconds() / 10;
_root.hourA_._rotation = d.getHours() * 30 + d.getMinutes() / 2;
}
Centr._alpha = 20
function secondsHandler( mov ){
mov._alpha = 20
mov.onRollOver = function(){
stopSecondTracking = true
var yKat = Centr._y - this._y
var xKat = Centr._x - this._x
var angle = Math.atan2( yKat ,xKat ) + Math.PI
_root.secA_._rotation = angle*180/Math.PI
}
mov.onRollOut = function(){
stopSecondTracking = false
}
}
secondsHandler( numPad3 )
secondsHandler( numPad6 )
// etc.
Яндекс.Деньги: 41001421676084