Syntax Question

I’m having trouble passing a variable into a function. varName comes up undefined whenever I trace it. Seems like I’m doing a simple syntax error; I am very new to AS. Thanks.


function btn(movieName,varName){
    
    movieName.onRelease = function(){
        field_txt.htmlText = about.varName;
//about is a LoadVars class
        scroll._visible = (field_txt.maxscroll > 1);
        trace(varName);
        trace(movieName);
    }

This is how I call it


btn(my_mc,about_txt);
//LoadVars works when it is hardcoded