Target a flash movie from an IFrame possible?

I have my main page with a flash movie in it, also on the main page is a iframe with a html button. I want to use that button to pass variable to flash which is outside the iframe on the same page, is this possibe?

I have been able to communicate fine from within the same page, but the ID and NAME tags are null when im in an iframe because the flash movie is not embeded in the iframe document.

Cheers.