Initializer for ‘defaultButton': values of type mx.core.IFlexDisplayObject cannot be represented in text.
The property defaultButton of the Form element was expecting something other than a string. Here is the original source code:
And the correct source code:
Notice the curly brackets get the actual object as it would if it were inside ActionScript (that is because it actually is -ed.).
Please reply in the comments below if this helped you or not