Rofl?

So I make a button, and I go to add a simple on(release) { gotoAndPlay(2); } action but I cannot add anything all it says is ‘Current selection cannot have actions applied to it.’ whats up with that?