External Actionscript

I’ve never used an external .as file before and I’ve been trying to link it with the document class but I keep getting an error. I searched all over looking for a simple explanation on how to use an actionscript file and can’t find anything on how to, for lack of a better term, “link it” to the fla file. Can someone explain in very simple terms for me?