tags:

views:

34

answers:

2

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?

+1  A: 

You create a new file with a .as extension, and put your class definition in there.

Wesley Petrowski
+1  A: 

You may want to watch the screencast for the Components chapter of First Steps in Flex. It walks through how to do this.

James Ward