Stop(); commands not working after preloader and navigation inserted into movie!

ive recently introduced myself to AS3, its starting to get a bit frustrating.
it seems that when i put the preloader actions in the timeline, everything is fine, the stop(); commands work fine. BUT when it comes around to adding the navigation to the timeline as well (ive tried putting the code on a separate keyframe, ive tried various styles of code) the stop(); actions are completely ignored.

With this code below everything works fine in the movie (AS 3 for preloader):


**stop();

addEventListener(Event.ENTER_FRAME, loaderF);

function loaderF(e:Event):void{
var toLoad:Number = loaderInfo.bytesTotal;
var loaded:Number = loaderInfo.bytesLoaded;
var total:Number = loaded/toLoad;
if(loaded == toLoad){
removeEventListener(Event.ENTER_FRAME, loaderF);
gotoAndPlay(2);
} else {
preloader_mc.preloaderFill_mc.scaleX = total;
preloader_mc.percent_txt.text = Math.floor(total*100) + “%”;
preloader_mc.ofBytes_txt.text = loaded + " bytes";
preloader_mc.totalBytes_txt.text = toLoad + " bytes";
}
};**

but when i insert this as well (AS 3 for navigation) everything seems to go down the pan:

**import flash.events.MouseEvent;

//—Home Button—\

home_btn.addEventListener(MouseEvent.CLICK, homeClick);

function homeClick(event:MouseEvent):void{
gotoAndPlay(“framenumber/name”)
}**

I would really appreciate anyone who has a solution, as my project is on hold and I cant move forward without the ability to do this.

Thanks