I'm making a simple game in Flex and I'm noticing a lot of performance issues. The game is very easy and simple: you have 25 tiles and you need to click them one at a time to reveal the prize (or no prize) behind them - match three like prizes and win. Getting everything on the screen and coding it together wasn't bad, but I'm noticing a considerable lack in performance when the game is running.
To be honest, I have a lot of SWF files in there, and I'm making heavy use of the Move transition (usually for each of the 25 tiles to animate them). Some of the SWFs are on an infinite loop and those are probably eating up a good amount of the resources. Another thing that was surprising was the CPU usage eaten up when I added a PopUp to the application. The browser page seems to freeze while it's open and only after I close the PopUp does the page resume its task. I guess I can get away without it, but it was odd how that happened. Is this common to have such monstrous applications, while using the features I mentioned? Is there something wrong with my programming instead? If I run the game in Firefox 3, it is using well over 150M of memory and 50% of my CPU. When the PopUp is open, that spikes to 95%! What can I do to alleviate this stress on the computer?