Tiled background inside a movieclip (full page)

I’m no flash guru or anywhere near it but I though I’d post this as it might be helpful to someone, the code is from the gotoandlearn tutorial on tiled backgrounds, I’ve just had a play with it to suit something I’m working on.

I’m sure someone could clean it up though.