I've started to build a cube by adding six planes (sprites) to a small sprite at the cubes center.
I then rotated the cube by rotating the center sprite.
The problem is that each side (a different color) is added to the display in the same order so some sides appear in front when they should be behind.
Is there a simple solution to this problem?
If you're using the flash 10 2.5d proprties (.z, .rotationX, .rotationY, etc), then there's no simple built-in solution. Flash's 2.5d engine does not have z-depth sorting; you have to implement it yourself. Other people have already done this though, here's one implementation I found that might work for you: