can you make use of this method using
2 buttons and a textfield, code on main timeline -
Code:
function pad(num){ return ("0"+String(num)).substr(-2, 2); }
function startT(){
d = new Date(); t0 = getTimer(); method = run;
};
function run(){
d.setTime(getTimer()-t0);
var h = pad(d.getUTCHours());
var m = pad(d.getUTCMinutes());
var s = pad(d.getUTCSeconds());
var ms = d.getUTCMilliseconds();
display = h+" : "+m+" : "+s+" : "+ms;
};
btnGo.onPress = function(){
method = startT;
};
btnReset.onPress = function(){
method = null; display = "00 : 00 : 00 : 000";
};
this.onEnterFrame = function(){
method();
};
startT();
hth