Right. I don't think it'll fix your resizeEvent prob, but you never know. Now if you look at your main app's swf, it should have grown considerably as it now has a bunch of charting code in it. If you don't like that, then you have to go to a shared code module.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 9:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) That's great, thanks Alex. For future group reference, here is some code I have in the main App file: // FIX: For 'Cannot convert IStroke to Stroke' import mx.graphics.IStroke; private var dummy1:IStroke; // FIX: For 'Cannot convert PieSeriesItem to PieSeriesItem' import mx.charts.renderers.WedgeItemRenderer; private var dummy2:WedgeItemRenderer; // FIX: For 'Cannot convert Event to ResizeEvent' import mx.events.ResizeEvent; private var dummy3:ResizeEvent; dummy1 & dummy3 are just guesses, I'm experimenting to find out if they fix some problems I'm having. Thanks, Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 02 November 2007 16:03 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) It is the fact that wedgeItemRenderer needs to be in the main app or in a shared code module. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 6:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Hmm, thanks for the link, I've gone through the presentation and I'm still a little puzzled, I use LocalConnection to simply send the XML string from the main application to the widget. I wait for the complete event to fire from the SWFLoader, then I register for the applicationComplete event to make sure the widget is loaded correctly before I attempt to send messages via the connection. What areas in my code do I need to be looking at? Is it setting the data too early or is it the part about PieSeriesItem being loaded twice? Once in the main application and once in the widget? Thanks, Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 13:30 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and that's where you run into an ApplicationDomain problem. Check Alex's blog http://blogs.adobe.com/aharui/2007/03/modules.html <http://blogs.adobe.com/aharui/2007/03/modules.html> and read the part about ApplicationDomain. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) We don't use modules as such - but we do have widgets - which are Flex applications within the main Flex application. One of the widgets is a charting widget. We simply pass some XML data to the widget and it displays it in a chart of the user's choice. One of which is a pie chart. Sporadically the pie chart will crash in the WedgeItemRenderer code. I've tried a clean, Firefox, IE7 and deleting all temporary internet files / cache. Thanks, Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Ok, and do you use modules? Did you try a "clean" in FB? ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 13:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) As in, I've closed the browser then relaunched it via Flex Builder. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Soenke Rohde Sent: 02 November 2007 12:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) What do you mean by "I've loaded my application again"? Did you reload a module or did you refresh the browser? ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Freitag, 2. November 2007 12:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) I was simply assigning some XML to a pie chart. I've loaded my application again and the error hasn't occurred - I have no idea why it popped up once?! Thanks, Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: 02 November 2007 11:23 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex is quite flakey (spurious errors!) Not sure what you are trying to do, but series.items gives you the list of all pieseriesitems in the series. Can you pls. post a code snipped, which is giving this error. Thanks -Sunil ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, November 02, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex is quite flakey (spurious errors!) Another strange error from flex: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem. at mx.charts.renderers::WedgeItemRenderer/set data()[C:\dev\flex_201_gmc\sdk\frameworks\mx\charts\renderers\WedgeItemR enderer.as:95] at mx.charts.series::PieSeries/updateDisplayList()[C:\dev\flex_201_gmc\sdk\ frameworks\mx\charts\series\PieSeries.as:1015] at mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:5760] at mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk \frameworks\mx\managers\LayoutManager.as:600] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s dk\frameworks\mx\managers\LayoutManager.as:673] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram eworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame works\mx\core\UIComponent.as:7852] "cannot convert mx.charts.series.items::[EMAIL PROTECTED] to mx.charts.series.items.PieSeriesItem" I don't even know what to say about this... Mark