Also if you have several repeating boolean expressions in the if statemetns or loops with very long conditions, you could evaluate them prior to either of those two, assigning them to variables and then evaluating the bigger expretions using the variables.
Edit: Also by playing around with Boolean Algebra you can reduce then number of operators you have to use, thus reducing the size of the expression.
The faster the movie plays the more bogged down the CPU gets, so there's a certain point up to which increasing the frame rate will make the movie smoother. Then it won't get any faster even if you continue increasing the FPS. In cases where you have several movie clips performing a lot of actions at one time it is better to decrease the frame rate instead of increasing it, because that will make the CPU do less work.
Also I've found that using the call action is faster than using functions, but of course you can do a lot more with functions than with call.
Edit: Using nested loops can slow down the movie. Most of the time you can get away with using only one loop.
When using arrays, it's better to specify the initial size and make it sufficient for your needs. Because when you append new elements to it and the size goes over the limit that it has set internally by itself anyway, it will have to copy every element from that array into a new and bigger one, that will accomodate the new element. So the less copying the better. Also using the shift method is a bad idea. When you need things like a queue or a stack it's probably better not to even use an array, but use a linked list instead, since appending and removing would be pretty trivial in that case and there wouldn't be any shifting of element going on.
