You might want to try testing in a browser if you are not already doing so. There is nothing wrong with the code you show. Do you get any error messages? If not, try putting a trace in the event handler function to see if the button is working with it.
So I finally got the code to work but not in Chrome. I've been trying to tweak the code to work in Chrome but my head is hurting.
Anyone else have this problem with Chrome not working with .swf files and urls?