Super quick swfaddress question

does the listener have to be in your document class? or can I have it anywhere… like inside the class that controls the navigation?