Preloader making functions not work

When I test the site with the preloader.swf file I made for it, it loads , but then some of my button functions do not work in the site. When I test the site fla file everything works fine. I have been trying things out with the preloader code, but not sure what would cause this.
This is my preloader code:

var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest(“sample.swf”));
prog_mc.stop();

function loop(event:ProgressEvent):void
{
var perc:Number = event.bytesLoaded / event.bytesTotal;
prog_mc.prog_txt.text = Math.ceil(perc100)+ “%”.toString();
prog_mc.loadBar_mc.width = perc
295;
}

function done(event:Event):void
{
removeChildAt(0);
removeChild(prog_mc);
addChild(l);
}

Thanks