Reference to a function

hi, I got a problem.

I got this document class Main and a navbutton class. How can I connect a function from one AS3 document to another like this:

navbutton.as
removeObjects();

Main.as
function removeObjects(){
//code
}

I get this error: call to a possibly undefined method removeObjects.

Thank you