Editing A Function For Buttons

I have the following function, basically a whole lot of ohter things happens onRollOver and onRollOut but pretty sure it’s here I need to edit. I have 5 mc’s on the stage called ‘btn1’, ‘btn2’ etc… And this code…

numOfBtn = 5;
for (i=0; i<numOfBtn+1; i++) {
    _root.buttonsHome["btn"+i].num = i;
	_root.buttonsHome["btn"+i].originalY = _root.buttonsHome["btn"+i]._y; //stores original position
    _root.buttonsHome["btn"+i].onRelease = function() {
        //set the frameNum variable to the same as the number button you selected, i use it again in frame 9 
		frameNum = this.num;
		trace("playhead should be sent to "+frameNum+" by btn"+this.num);
		//start playing the movie
		play();
    };

As I said there is other bits and pieces that happen, but what i want to achieve is btn2, is actually just going to an external link, but at the moment I don’t want it when pressed to play… Is there anyway to keep it as part of the function, but if btn2 is pressed NOT to play? Any help would be greatly apprecaited!