Reputation: 2175
When I try to do this in an AS CDATA block, it tells me I can't have a class declared within a class (the MX:Application itself). Makes sense. But where and how do I do it?
Upvotes: 0
Views: 136
Reputation: 29433
You may want to watch the screencast for the Components chapter of First Steps in Flex. It walks through how to do this.
Upvotes: 1
Reputation: 1131
You create a new file with a .as extension, and put your class definition in there.
Upvotes: 2