var d:Date = new Date(); var mass = [0,20,40,60] arrow.onEnterFrame = function(){ arrow._width = mass[d.getSeconds()]; }