Convert Flash 5 code into Flash 8

I have a snippet of code written for Flash 5 and I would like to use it for Flash player 8.
When i switch to Flash 8 in the IDE it no longer works. I dont have the skills to basically convert it myself but perhaps there is someone out there who could help me out here. It is not a whole lot of code.

In the file there is two snippets of code. On the first frame and on the ball itself.

Would really appreciate if someone could take a look at it.