hey guys.. i have app with a module that has a form and some combobox in it..
also this same module has a removedEffect that is a wipeleft.. when the module is removed it generates a wierd error.. but if i remove the combobox from the module it doesnt generate error... i ll post a simple version of this error.. if some1 has any ideia of why this happens app: <?xml version="1.0" encoding="utf-8"?> <mx:Application creationComplete="init()" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.modules.Module; import mx.events.ModuleEvent; import mx.modules.ModuleManager; import mx.modules.IModuleInfo; public var info:IModuleInfo; public var xi:Module; private function init():void { info = ModuleManager.getModule("a.swf?Versao=1.0"); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(); } private function modEventHandler(e:ModuleEvent):void { xi = info.factory.create() as Module ; addChild(xi); } public function remove():void { removeChild(xi); info.removeEventListener(ModuleEvent.READY, modEventHandler); info.unload(); info = null; xi=null; } ]]> </mx:Script> <mx:WipeLeft id="wipeOut" duration="600"/> <mx:Button x="200" y="176" id="lasal" label="remove" click="remove()"/> </mx:Application> module a: <?xml version="1.0" encoding="utf-8"?> <mx:Module removedEffect="wipeOut" xmlns:com="*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"> <mx:Script> <![CDATA[ [Bindable] private var dptest:Array = ["item1", "item2"]; ]]> </mx:Script> <mx:Form> <mx:FormItem> <mx:ComboBox dataProvider="{dptest}" /> </mx:FormItem> </mx:Form> </mx:Module> thx for ur time!!!