getURL problem

I am using CS4 for Mac, and am still using action script 2.0

when i make a button and use the code:

on(release){
getURL(“http://www.google.com”, “_blank”);
}

it works perfectly when i test the program, but when i publish it and run the program the button does not function. what could be causing this problem?

Thank you.