Problems adjusting to Flash CS3

It’s been a while since I worked with Flash so I’m a bit new to not only Flash CS3 but Actionscript 3 as well.

When I try adding this code

linkbutton.onRelease = function()

I get all sorts of error messages concerning I can’t add this to a simple button, getURL produces a message saying “Call to a possibly undefined method”, Access of undefined property. And why can’t I add code to a button anymore, why does it have to be on the timeline.

I mean have things changed a lot and I’m missing a lot of vital info out?

Or is there something wrong with my flash install (trial version at the moment)?

Any helps appreciated.