Where to put "IF"

I bought a flash template, and now want to add a button to connect to a HTML page (full screen), if the button pushed says “Portfolio” The buttons are generated in the code, and are of two types, _btnGall for the flash images, and _btnMenu for the about me, Contact, and portfolio pages. How do I get a button click on “portfolio” to send to a new page?
Here is some code for where I think it needs to go.

addChild(mcMenu);
mcMenu.addChild(mcGallMenu);

createMainMenu();

function createMainMenu():void
{
for (var i:uint = 1; i <= arrayGallName.length; i++)
{
var _btnGallMenu:BtnMenu = new BtnMenu();
_btnGallMenu.name = “btnGall”+i;
_btnGallMenu.indexGall = i;
_btnGallMenu.indexPage = 0;
_btnGallMenu.index = i;

    _btnGallMenu._bg2.alpha = 0;
    _btnGallMenu._txt.text = arrayGallName[i-1];
    _btnGallMenu._txt.mouseEnabled = false;
    _btnGallMenu._bg1.mouseEnabled = false;
    _btnGallMenu._bg2.mouseEnabled = false;
    _btnGallMenu.buttonMode = true;
    
    _btnGallMenu.x = _btnGallMenu.width * (i-1);
    mcGallMenu.addChild(_btnGallMenu);
    
    _btnGallMenu.addEventListener(MouseEvent.ROLL_OVER, rollOverGallBtn);
    _btnGallMenu.addEventListener(MouseEvent.ROLL_OUT, rollOutGallBtn);
    _btnGallMenu.addEventListener(MouseEvent.CLICK, clickMenuBtn);
}

for (var j:uint = 1; j &lt;= menuNamesArr.length; j++)
{
    var _btnMenu:BtnMenu = new BtnMenu();
    _btnMenu.name = "btn"+j;
    _btnMenu.indexPage = j;
    _btnMenu.indexGall = 0;
    _btnMenu.index = j;
    
    _btnMenu._bg2.alpha = 0;
    _btnMenu._txt.text = menuNamesArr[j-1];
    _btnMenu._txt.mouseEnabled = false;
    _btnMenu._bg1.mouseEnabled = false;
    _btnMenu._bg2.mouseEnabled = false;
    _btnMenu.buttonMode = true;
    mcMenu.addChild(_btnMenu);
    
    if (j == 1)    mcGallMenu.x = _btnMenu.width;
    else _btnMenu.x = mcGallMenu.x + mcGallMenu.width + _btnMenu.width*(j-2);
    
    _btnMenu.addEventListener(MouseEvent.ROLL_OVER, rollOverMenuBtn);
    _btnMenu.addEventListener(MouseEvent.ROLL_OUT, rollOutMenuBtn);
    _btnMenu.addEventListener(MouseEvent.CLICK, clickMenuBtn);
    
    

positionMenu();
var actBtn:MovieClip = mcGallMenu.getChildByName("btnGall" + linkGall) as MovieClip;

mcMenu.transform.colorTransform  = new ColorTransform(1, 1, 1, 1, 255, 255, 255, 0);
var _objColorTransfrm:Object = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
Tweener.addTween(mcMenu, {_colorTransform:_objColorTransfrm, time:3, onComplete:function() { rollOverBtn(actBtn); }});
mcMenu.y = stage.stageHeight + 100;
var endPosMenuY:Number = stage.stageHeight - mcMenu.height - menuPosY;
Tweener.addTween( mcMenu, {y:endPosMenuY, time: 2} );

}

function clickMenuBtn(evt:MouseEvent):void
{
if (linkPage != evt.target.indexPage || linkGall != evt.target.indexGall)
{
var prevBtn:MovieClip;
if (linkGall == 0) prevBtn = mcMenu.getChildByName(“btn” + linkPage) as MovieClip;
else prevBtn = mcGallMenu.getChildByName(“btnGall” + linkGall) as MovieClip;
rollOutBtn(prevBtn);

    if (linkPage != 0)
    {
        removeCustomScroll();
        Tweener.addTween(_activePage, {alpha:0, y:_activePage.y+100, time:1, onComplete:removeDisplayObject, onCompleteParams:[_activePage]});
    } 
    else
    {
        removeScene();
    }
    
    
    
    linkPage = evt.target.indexPage;
    linkGall = evt.target.indexGall;
    
    if (linkPage != 0)
    {
        _activePage = new Page();
        var posY:Number = Math.round((stage.stageHeight - _activePage._bgrPage.height)/2);
        _activePage.x = Math.round((stage.stageWidth - _activePage.width)/2);
        _activePage.y = Math.round((stage.stageHeight - _activePage.height)/2)-100;
        _activePage.alpha = 0;

        createTextBlock(pagePathArr[linkPage-1]);
        addChild(_activePage);
        
        Tweener.addTween(_activePage, {alpha:1, y:posY, time:2});
    } 
    else 
    {
        gallCategory(evt.target.indexGall-1);
        createScene();
    }
}

}

The code I attempted to add is

if(_btnMenu._txt.text=“Portfolio”&&clickMenuBtn(e.MouseEvent)){
getURL(“www.northernlightsmv.com”,"_self", GET");
}

Does positioning in the curly brackets count?
I usually get parenthesis error messages.
Thanks