Converting to AS2.0 - an error

this is a code from someone else… i forgot from where, but its a text ticker script. works great! but i wanted to work with AS2.0 and I get an error and i cant seem to figure it out.

here is the ticker code:
[AS]
// timeleft = how many milliseconds
// delay = 1 for delay on, 0 for delay off
// score = countback of milliseconds
onClipEvent (load) {
timedate = new Date();
currenttime = 0;
// time for the delay of the ticker letters
// 1 is very fast, 10 is very slow
timeleftset = 3;
delay == 1;
score = 5;
// initializes ticker line
settickerobject = function () {
j = 1;
i = 1;
p = " ";
s = p+n;
l = length(s);
};
n = “Hello”;
settickerobject();
}
onClipEvent (enterFrame) {
currenttime = seconds;
seconds = timedate.getMilliseconds();
if (length(seconds) == 1) {
seconds = “0”+seconds;
}
// sets up the strings to tick
delete timedate;
timedate = new Date();
testtime = currenttime-seconds;
if (testtime != 0) {
timeleft = timeleft-2;
score = timeleft;
delay = 1;
}
if (timeleft<=0) {
timeleft = timeleftset;
delay = 0;
…:t = s.substr(i, l, 40);
//other ways to do this string effect
//…:t = substring(s, i, l);
//…:t = substring(n, i, l)
// continues the string, or resets it using the function
if (Number(i)<=Number(l)) {
i = Number(i)+1;
} else {
settickerobject();
}
}
}
[/AS]

here the error msg when trying it with AS2

Error Symbol=_news_mc, layer=ticker, frame=1:Line 41: Unexpected ‘.’ encountered
…:t = s.substr(i, l, 40);
Error Symbol=_news_mc, layer=ticker, frame=1:Line 52: Unexpected ‘}’ encountered
}

its probably something really simple…

thanks for any help…