Put a combobox in the main app. If the problem goes away, then it is a shared
code problem.
Otherwise, debug into it. The stack trace indicates that
getStyle(cornerRadius) for some button is returning an invalid number. Maybe
some style object is missing.
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of rockorgames
Sent: Monday, January 19, 2009 12:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WipeLeft in a module with combobox error ??
the stack trace error from the code i posted
ArgumentError: Error #2004: One of the parameters is invalid
at flash.display::Graphics/drawRoundRect()
at
mx.skins::ProgrammaticSkin/drawRoundRect()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:745]
at
mx.skins.halo::ButtonSkin/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\halo\ButtonSkin.as:217]
at
mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
at
mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:880]
at
mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5679]
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::validateBaselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5715]
at mx.controls::ComboBase/get
baselinePosition()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\ComboBase.as:313]
at
mx.containers::FormItem/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\FormItem.as:913]
at
mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6351]
at
mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2677]
at
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex
Harui aha...@... wrote:
Usually a shared code problem. See the modules presentation on my
blog. Post the stacktrace from the error.
From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of rockorgames
Sent: Sunday, January 18, 2009 5:29 AM
To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] WipeLeft in a module with combobox error ??
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!!!