Flash uses a lot of CPU cycles, especially the bigger the Flash object or the higher the resolution of the video embedded into Flash.
As the CPU draws more power during higher use, the CPU gets hotter.
Take a look at Activity Monitor to see how much CPU is used during FLash usage to get a better understanding.