Saturday, 26 September 2009

here is some action script for making a metronome

function startMet() {
if (_root.tempo_num>39 && _root.tempo_num<209) {
//set left dot alphas
ldot_mc._alpha = 100;
rdot_mc._alpha = 0;
playBeep();
speed_num = (60/_root.tempo_num);

tick_mc.rotateT1 = new Tween(this.tick_mc, "_rotation", none, startpos_num, (startpos_num+endpos_num*2), speed_num, true);
tick_mc.rotateT1.onMotionFinished = function() {
initiateDot();
this.yoyo();
};
}

//havefun!

No comments: