ActionScript 1 vs ActionScript 2

This is probably a very simple question, none-the-less I am having difficulty going from ActionScript1 to 2 with the below statement.

This works great in 1 but fails in 2.

/movie1/movie2:runtext = eval(“line” add i);
delay2 = int(delay);