You don't need to use flash, and JavaScript could do a better job sometimes.
The idea of clicking a button to show / hide elements can be implemented in so many ways and it's easy using jQuery.
I've attached a simplified example that uses jQuery to slide out a div with a chart image when you click Yes button, and it will also hide the div that contains the buttons.
Hope this helps