Okay I have been playing with this and I found out the 2nd paramater in the linear function is actually some sort of delay. My problem turned out the 2nd function did run, except it showed the endCounter result. When the expression is fired, the counter is already counting at the same time as the first counter. So when the movie reaches 6seconds it has already been there in the background. So I came up with this
go = 0;
if (time < 7){
doCounter(0,10000,5);
}
if(time >= 7){
doCounter2(10000,1000,12);
}
function doCounter(startCount,endCount,countDur){
s = "" + Math.round(linear(time,0,countDur,startCount,endCount));
return s;
}
function doCounter2(startCount,endCount,countDur){
s = "" + Math.round(linear(time,6,countDur,startCount,endCount));
return s;
}
I couldn´t find some sort of reference list of all the expressions, although I found Dan´s site and some others, but there´s no index or something. Thanks for reading this.