Loading .swf (photos gallery)

Hey yo peeps! I really need you r help

im creating a website with a flash section(flash mx 2004) and here is my prob.
. the flash section have the menu (5 complex btns) and a photo gallery(3 compex btns) all buttons have an animation for roll over n roll out. the thing is that i cant do that when clicking on the gallery btn the selected swf loads.!

here the code im using on the gallery btns:

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

[color=black]this.onRelease = function(){
[/color][color=black]if (_root.currMovie == undefined) { [/color]
[color=black]_root.currMovie = “1”; [/color]
[color=black]container.loadMovie(“1.swf”);[/color]
[color=black]} else if (_root.currMovie != “1”) { [/color]
[color=black]if (container._currentframe >= container.midframe) { [/color]
[color=black]_root.currMovie = “1”; [/color]
[color=black]container.play(); [/color]
[color=black]} [/color]
[color=black]} [/color]
[color=black]}[/color]
}
PLEASE IF SOME ONE CAN HELP ME ILL BE VERY THNKFUL!
MESSENGER GOGAZILLA@HOTMAIL.COM

THNX!