Alex rules KO :-) plus another question .... By putting
import mx.charts.chartClasses.IAxisRenderer;
var temp1:AxisRenderer = new AxisRenderer;

in main app, error is gone ... why this particular class I do not
know, as all 4 modules use the same very complex custom chart. If I
understand from the very excellent Module blog, the best practice is
to extract _all_ common classes for my modules into a shared code
module and load that first.

Question: if I do this, do I still have to do the mxmlc -- link-report
and mxmlc -- load-externs stuff?


--- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Shared code problem usually due to modules.  See my blog
presentation on Modules.
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Mic
> Sent: Tuesday, October 28, 2008 4:08 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Debugging advice appreciated ....
> 
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.graphics::[EMAIL PROTECTED] to mx.graphics.IStroke.
> at
>
mx.charts::AxisRenderer/measure()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1091]
> at
>
mx.core::UIComponent/measureSizes()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5819]
> at
>
mx.core::UIComponent/validateSize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5765]
> at
>
mx.managers::LayoutManager/validateSize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:559]
> at
>
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:648]
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> at
>
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
> at
>
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
> 
> 4 instances of same chart as 4 modules load fine .... clone the chart
> and make a second module (so identical other than module name), and
> make this second module one of the four - and above error. Make all 4
> the second module, works fine. Can debug right up to
> mx.core::UIComponent/measureSizes() but then it says Edit Source Not
> Available for mx.charts::AxisRenderer/measure(). Do I need to locate
> this source and add to the Edit Source Folder dialog and dive into
> mx.charts? And then see what is wrong with [EMAIL PROTECTED] Thanks,
> 
> Mic.
>


Reply via email to