Help with actionscript for my scrollbar

I’ve created a site that uploads external swfs for each page and I have inserted a scroll pane into one of the external swfs but when i click on a button that i have placed within the scrollpane i want it to go to another external swf.

the actionscript i have so far is:

[COLOR=Navy]on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “ware”;
_parent.container.loadMovie(“ware.swf”);
} else if (_root.currMovie != “ware”) {
if (_parent.container._currentframe >= _parent.container.midframe) {
_root.currMovie = “ware”;
_parent.container.play();
}
}
}
[/COLOR]
ware.swf is the swf i want to be able to go to.

can anyone help with the correct script so my buttons within the scrollpane will work?