[英]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). 当我尝试在AS CDATA块中执行此操作时,它告诉我不能在一个类中声明一个类(MX:Application本身)。 Makes sense.
说得通。 But where and how do I do it?
但是我在哪里以及如何做呢?
您创建一个扩展名为.as的新文件,并将类定义放在其中。
You may want to watch the screencast for the Components chapter of First Steps in Flex . 您可能需要观看Flex第一步中 “组件”一章的截屏视频 。 It walks through how to do this.
它介绍了如何执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.