NJ.
NJ.

Reputation: 2175

How do I create my own Classes/Objects in Flex?

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

Answers (2)

James Ward
James Ward

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

Wesley Petrowski
Wesley Petrowski

Reputation: 1131

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

Upvotes: 2

Related Questions