If nested classes require several levels of inheritance, and the alternative to <fx: Component> (mentioned in the previous answer) is to use <fx: Library> , for example:
<fx:Library> <fx:Definition name="MyClass" > <s:Group> ... <s:/Group> </fx:Definition> </fx:Library> ... <fx:MyClass ... />
<fx: Library> should be at the top of the MXML file. This syntax allows several nested class definitions in a string, and each of them can extend the previous one through inheritance.
source share