Looking over the code and your question about it makes me believe you copy and pasted and removed the markers that would make sense only in a class. (ie private/public)
That said put it back into a class, the functions that are there will not accept a button event as written. For example:
function buttonClick(evt:MouseEvent):void { //some action } would accept mouse clicks on a button where as
function browse(typelist:Array) : Boolean
Will never accept a mouse event/ button press
The way you would call these if they were back in a class file with a button press would be:
var file:myFileClass = new myFileClass();
function buttonPress(evt:MouseEvent):void { switch (evt.target.name) { case "my_btn1": var myArray:Array = [new FileFilter('FileType','*.jpg')]; file.browse(myArray); break; } }