开发者

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

开发者 https://www.devze.com 2022-12-13 21:57 出处:网络
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 se开发者_运维知识库nse. But where and how do I do it?You create

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 se开发者_运维知识库nse. But where and how do I do it?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消