Re: [flexcoders] null parent for ChartLabel
On Friday 13 Mar 2009, Maciek Sakrejda wrote: which, combined with the error, seems to imply that this ChartLabel has no parent (!), Chart labels are cached, much like item renderers. why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? What are you doing to the data provider of the chart ? Do you have a customer chartlabel renderer or function ? You could also try changing the code to be: if(parent is AxisRenderer parent.rotation == 90) If the latter works, please file a bug with the patch in. -- Tom Chiverton Helping to carefully iterate attention-grabbing strategic environments as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] null parent for ChartLabel
That's the thing: nothing especially complicated going on. We have custom axes and custom labelFunctions, but we're using the stock AxisRenderer. We re-parent the Chart during this layout change, but that's it (we certainly don't re-parent the labels manually). Perhaps I'll try to see if I can get a simple re-parenting test case to repro this, and I'll file a bug with that. Thanks, Maciek -Original Message- From: Tom Chiverton tom.chiver...@halliwells.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 13:00:27 + On Friday 13 Mar 2009, Maciek Sakrejda wrote: which, combined with the error, seems to imply that this ChartLabel has no parent (!), Chart labels are cached, much like item renderers. why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? What are you doing to the data provider of the chart ? Do you have a customer chartlabel renderer or function ? You could also try changing the code to be: if(parent is AxisRenderer parent.rotation == 90) If the latter works, please file a bug with the patch in.
Re: [flexcoders] null parent for ChartLabel
I extended ChartLabel, overrode updateDisplayList() to do what you suggested, Tom, and set the titleRenderer on the AxisRenderer, and that seems to work around the issue. I still could be doing something wrong, but this looks like a framework issue. I'll check the latest sdk version and file a ticket if necessary. Thanks, -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Maciek Sakrejda msakre...@truviso.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 09:42:37 -0700 That's the thing: nothing especially complicated going on. We have custom axes and custom labelFunctions, but we're using the stock AxisRenderer. We re-parent the Chart during this layout change, but that's it (we certainly don't re-parent the labels manually). Perhaps I'll try to see if I can get a simple re-parenting test case to repro this, and I'll file a bug with that. Thanks, Maciek -Original Message- From: Tom Chiverton tom.chiver...@halliwells.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 13:00:27 + On Friday 13 Mar 2009, Maciek Sakrejda wrote: which, combined with the error, seems to imply that this ChartLabel has no parent (!), Chart labels are cached, much like item renderers. why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? What are you doing to the data provider of the chart ? Do you have a customer chartlabel renderer or function ? You could also try changing the code to be: if(parent is AxisRenderer parent.rotation == 90) If the latter works, please file a bug with the patch in.
[flexcoders] null parent for ChartLabel
I'm getting the following stack trace when changing the layout of some charts: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::ChartLabel/updateDisplayList()[C:\Work\flex \dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses \ChartLabel.as:262] at mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks \projects\framework\src\mx\core\UIComponent.as:6214] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x \frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x \frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] 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] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Line 262 in ChartLabel.as is the following: if(parent.rotation == 90 parent is AxisRenderer) which, combined with the error, seems to imply that this ChartLabel has no parent (!), and I've confirmed this in the debugger. I searched through my code and I'm not creating any ChartLabels directly. Any ideas why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? Thanks, Maciek
[flexcoders] null parent for ChartLabel
(apologies if this is a double post--I'm having e-mail problems) I'm getting the following stack trace when changing the layout of some charts: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::ChartLabel/updateDisplayList()[C:\Work\flex \dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses \ChartLabel.as:262] at mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks \projects\framework\src\mx\core\UIComponent.as:6214] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x \frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x \frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] 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] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Line 262 in ChartLabel.as is the following: if(parent.rotation == 90 parent is AxisRenderer) which, combined with the error, seems to imply that this ChartLabel has no parent (!), and I've confirmed this in the debugger. I searched through my code and I'm not creating any ChartLabels directly. Any ideas why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? Thanks, Maciek