Kirupa tutorial problem

I just completed this tutorial on Kirupa:

http://www.kirupa.com/developer/mx20...otogallery.htm

I am getting 2 error messages pertaining to the code that was copied to the actions frame:

Error Scene=Scene 1, layer=action, frame=1, Line 79: Statement block must be terminated by ‘}’
function picture_num() {

Error Scene=Scene 1, layer=action, frame=1, Line 81: Syntax error.
pos_txt.text = current_pos+" / "+total;

Total ActionScript Errors: 2, Reported Errors: 2

I just copied this from the tutorial, so could this be a CS3 compatibility issue?