Button multiple actions

Sorry for being a dummy but I purchased a Flash template and am trying to modify a button. Currently there are two actions attached to it:

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(11);
}

These commands are working fine and call for an animation of the button on rollOver and back to normal on rollOut.

I am trying to add an onrelease/geturl command at the end of the above commands, however, when I do and then cursor over the button, the rollover and rollout states cycle madly until I move the cursor away from the button. How can I preserve the rollOver/rollOut and still have the onRelease work without this conflict?

Thanks very much in advance for any help…