Feature/flash performance

Is the ordering of this important? If not, can we put the fullscreen handling code next to each other vertically?