07 2011 档案

摘要:在flex项目中,应用到非显示的功能性组件,一种方法是直接定义actionScript类。另外一种方法是实现IMXMLObject接口。实现IMXMLObject接口的好处,是可以直接调用功能函数。IMXMLObject中的方法function initialized(document:Object, id:String):void,在IMXMLObject置入MXML时被直接调用,类似于触发了initialized事件。如以下示例:TempCom.aspackagecomponent{importflash.display.Shape;importmx.core.IMXMLObject;pu 阅读全文
posted @ 2011-07-22 16:17 fxair 阅读(380) 评论(0) 推荐(0) 编辑
摘要:Component Life CycleRegardless of how simple or complex you make your components, there is one constant:Your component needs to be instantiated and when it does, it needs to be able to initialize itself and create and display any assets it requires. If it is interacted with or data changes that it c 阅读全文
posted @ 2011-07-21 10:09 fxair 阅读(268) 评论(0) 推荐(0) 编辑
摘要:The architecture of the new Spark components in Flex 4 supercedes the Halo components of Flex 3. Upon learning how to leverage the architecture of Spark components, you will find the improvements to be quite substantial.Ultimately, the new component architecture with the Spark library makes building 阅读全文
posted @ 2011-07-19 15:42 fxair 阅读(295) 评论(0) 推荐(0) 编辑
摘要:The Flex documentation on the UIComponent life cycle is rather difficult to understand, and so I came up with what I felt was an easier and more logical way of describing the process. I felt this might be useful for those who are interested in creating custom visual components in Flex that extend th 阅读全文
posted @ 2011-07-19 14:52 fxair 阅读(420) 评论(0) 推荐(0) 编辑