I have a classB that will only be used inside classA. However, classA is written as mxml, not actionscript code. Is it possible to nest classes in MXML or add another class after the root tag in the same .mxml file? Clarification: I want both classes written in MXML within the same file, but I couldn't find anything in the Adobe documentation that specified how.
No, you can't define two classes in one MXML file, but you can have the same package (namespace) for both classes and make classB internal
, so its only visible for classes within that package.