摘要: Implement the Singleton In AS3The following example implementthe Singleton In AS3 at the run-time.I don’t know if there is some other way toimplement the Singleton in Compile-time.From http://www.tink.ws/blog/stricter-singletons/Strict Singletons in AS 3.0With As 3.0 conforming to ECMA there you can 阅读全文
posted @ 2011-03-11 20:55 lyqandgdp 阅读(185) 评论(0) 推荐(0) 编辑
摘要: A Way to implement Abstract Class In FlexIt’s a fact that, until now(3.0) the ActionScript doesn’t implement theabstract class, it has Interface, but the abstract class is very useful whenyou have some logic that is fixed, and these class extends the class have somesame methods(logic), and some othe 阅读全文
posted @ 2011-03-11 20:39 lyqandgdp 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 在典型的可视化开发环境中,你能够在应用程序中选中并且拖动一个对象在屏幕中来回移动。Flex Drag and Drop管理器能够让用户选中一个对象,比如List控件的一个元素,或者一个控件比如Image控件,并且拖动他们跨过一个元素,放到另一个元素中。所有的Flex组件支持拖放操作。Flex在拖放方面对一些控件,比如List,Tree和DataGrid,都有额外的功能支持。开始阶段用户通过使用鼠标选中一个组件,或组件中的元素,然后按住鼠标移动组件或元素移动,来发起一个拖放操作。例如,用户用鼠标选择一个List控件的元素,然后按住鼠标左键移动几个像素。这个被选择的组件就叫做“拖动开始点”(dra 阅读全文
posted @ 2011-03-11 15:52 lyqandgdp 阅读(1132) 评论(0) 推荐(0) 编辑