Yes, this is because an import should be on a actionscript layer...
- Remove the code from the button itself.
- Give the button an instance name, such as MyButton
- Click on frame 1 of the layer that contains the button and paste this code in the actions panel:
ActionScript Code:
import flash.external.ExternalInterface;
MyButton.onRelease = function() {
if ( ExternalInterface.available ) {
ExternalInterface.call("eval", "window.location.href='#top';void 0;");
} else {
getURL("javascript:window.location.href='#top';void 0;");
}
gotoAndPlay("exhibitions3");
}