I'm about to push out a website soon and so I've gotten in the last stages. Time to optimize the baby! The website performs pretty good overall, with an average framerate of 32fps. But at some heavy animation parts it likes to drop a couple of frames to about 22fps. Which is not that horrible. But I'm tweaking it as much as possible to keep it running at the highest speed possible.
I might overlooked some tips and tricks to make this baby run even smoother.
So hereby I open this thread to share whatever ninja tricks ever helped you in the past. A couple of mine which I can think of right now:
Sequencing the animation:
Let as less as possible transitions happen at the same time, try to make it act more as a transformer, one thing at a time. Next to gaining speed in animation, you probably end up gaining more flow.
Keep the animating objects as small as possible:
So flash has to calculate less pixels at the same time.
cacheAsBitmap = true:
Those big movieclips, vector shapes being moved around, are probably quicker moved when they are cached as a bitmap. Might take up some space in your memory, but anything for higher framerates ;)
Destroy everything you do not use:
Set those unused movieclips to null and then remove it as a child. So your garbage collector takes care of it.