Better view the fla file. That idea is that from the code you
showed us i understand that you put the actions on a button not on
a frame.
You say you used:
on (release) {
} - this is used only when you click on the button in the
stage and press F9 to add code directly to it. It isn't a good
practice. Here for example you probably don't target right the
movieclips if you set the actions in the button
you target a that second button as if it were inside the
button that contains te code.
You should select a frame, from any layer (best the top
layer), from inside the movieclip that contains all the buttons and
press F9 to right the code there. Exemple:
security.onRelease = function {
// this.swapDepths(1);
_root.createEmptyMovieClip("target_mc1",_root.getNextHighestDepth());
_root.target_mc1._x = -600;
_root.target_mc1._y = -150;
_root.target_mc1.loadMovie("1.swf");
security.enabled=false;
development.enabled=false;
}