[FMX] Can html and flash talk?

Hello,

I have a website with two frames. The top frame contains flash navigation and the bottom frame contains html pages. I have it coded so if you click a button in the navigation, an icon appears in the corner letting you know what section you are currently viewing. The problem here is that there are also links within the html pages to other sections of the site. So if you click a link in the html, the icon does not change. How can I have the html and flash communicate so the icon changes regardless if you clicked a button in the flash nav or a link in the html page?