Line 4: '(' expected
I didn't say I would code it correctly when I just typed it in: that means you have to have a bracket like:
}else if( _root.last_button eq "third"){

For the second one: don't include my comments in the code
error: and then on frame 10 (where he lands at the second button) have a check