2 flash files interacting with each other

is there any way for 2 flash files to work on each other? I have a flash file on the top of my page and the bottom of my page (in the middle some html) and if i was to click a button on the top flash file it would clear forms on the bottom flash file… what would be the best way to go about this? I was thinking some PHP or any commands flash would have?