That's the shared code issue. You have to declare a variable of type Stroke in the main app or use the shared code technique described on my blog.
http://blogs.adobe.com/aharui/2007/03/modules.html ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fox, P. Martín Sent: Friday, April 13, 2007 1:28 PM To: [EMAIL PROTECTED] Subject: [flexcomponents] Stroke and Modules. I downloaded the dashboard published in http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html and I putted this on 2 modules. Each module is on a box, and this boxes are on a viewstack. When I change the viewstack selectedIndex (So going from a Module to other) it´s shows me the the folowing message: -------------------------------- TypeError: Error #1034: Error de conversión forzada: no se puede convertir mx.graphics::[EMAIL PROTECTED] en mx.graphics.IStroke. at mx.charts::AxisRenderer/mx.charts:AxisRenderer::measure() at mx.core::UIComponent/::measureSizes() at mx.core::UIComponent/validateSize() at mx.managers::LayoutManager/::validateSize() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() -------------------------------- I commented the Stroke tags, and the message had disappear. I can´t use Stroke whit modules? something similar happends with the control: ToggleButtonBar <http://www.cubika.com> Fox, P. Martín Developer [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> www.cubika.com <http://www.cubika.com> Av Corrientes 485 Piso 6 Buenos Aires, Argentina C1043AAE (54-11) 4394.3121 int: 140
image001.gif
Description: image001.gif
<<attachment: image002.jpg>>
