FLEX3组件定制
组件中,所有的ID都是可以对外访问的。但是组件中的子控件,是无法提供对外事件支持的,这时需要做事件的转发功能,如下: <?xml version="1.0" encoding="utf-8"?> ? -------------------------------------------------------------- ?<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:wxsr="components.*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> ?<wxsr:TestComponent id="testComponent" enterFrame="trace(testComponent.myComponentText)" myComponentTextChange="trace('------')"> ?? ?</wxsr:TestComponent> </mx:Application> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |