"If you test ActionScript code that use the addChild() ActionScript method with Flash Player display objects (like a text field) within an MXML application, you will need to attach the code to a Flex UIComponent instead of adding the Flash Player display object."

Yes, odd.