I submitted this issue to the Adobe Flex Bug Mgmt System a few weeks 
back but haven't as yet seen a comment, nor did my last post on this 
forum yield a response, so I'm going to give it another go here.

The problem I'm seeing is that you cannot dynamically switch 
itemRenderers on a chart series at runtime. You can code it, and run 
it, but any and all previous itemRenderers remain active. Since your 
likely initial graphics command is Graphics.clear(), you may not 
notice the problem as each itemRenderer clears the previous 
itemRenderer's drawing, BUT under the covers this continued switching 
of itemRenderers will add itemRenderers to the priorityQueue, eating 
memory and slowing things down along the way. ItemRenderers are never 
removed from the queue.

I'm hoping someone with knowledge, or at least interest, could weigh 
in and let me know if indeed it's a bug, or if I'm coding this 
incorrectly, or if there's an alternative approach, etc...  I'm 
polishing off a 3D ColumnChart and may have to remove support for 
dynamic itemRenderers.

More info, a screenshot of a huge priorityQueue, and sample code can 
be found in my bug report: https://bugs.adobe.com/jira/browse/FLEXDMV-
1882.  Thanks in advance to anyone who can help me move past this 
issue.

Cheers,
Eddie

Reply via email to