I have recently started to develop applications i Flex. I was surpriced to learn that the AS3 code used in normal Flash can not be directly transfered to Flex.

As I understand it now Flex uses more object orientation so that procedural code that is written in normal Flash will not work as you would expect it to. Have I understood this right?

What differences and limitations are there between normal AS3 and AS3 allowed in Flex?