Help with tiles?

I recently downloaded the complete tonypa tutorials, and realized I can’t understand a thing. Can anyone explain the AS in his tutorials? I don’t want to just end up copying and pasting it all. I’d like to understand it to be able to rewrite it all.