Hide/Show DIVs

I have two div layers in an html page. Is there a way to hide or show them by clicking a button in flash? I have searched online and haven’t been able to find something that works. Please help! I thought it was a simple matter of calling a function from flash.