_root.createEmptyMovieClip("s_mc", 100); s_mc._x = 150; s_mc._y = 150; s_mc.lineStyle(2, 0xff0000, 100); s_mc.moveTo(0, 25); s_mc.lineTo(0, -100); _root.createEmptyMovieClip("m_mc", 99); m_mc._x = 150; m_mc._y = 150; m_mc.lineStyle(3, 0xff00ff, 100); m_mc.moveTo(0, 15); m_mc.lineTo(0, -90); _root.createEmptyMovieClip("h_mc", 98); h_mc._x = 150; h_mc._y = 150; h_mc.lineStyle(4, 0x00ff00, 100); h_mc.moveTo(0, 10); h_mc.lineTo(0, -80); for (var i = 1; i<=12; i++) { _root.createTextField("a_txt"+i, i, 143+110*Math.cos(Math.PI*i/6-Math.PI/2), 142+110*Math.sin(Math.PI*i/6-Math.PI/2), 16, 16); this["a_txt"+i].text = i; } onEnterFrame = function () { var my_date:Date = new Date(); var h = my_date.getHours(); var m = my_date.getMinutes(); var s = my_date.getSeconds(); s_mc._rotation = s*6; m_mc._rotation = m*6+s*6/60; h_mc._rotation = h*30+m*30/60+s*30/3600; };