Flex prevent item renderer recycling

actionscript-3apache-flexitemrenderer

Is there a way to prevent recycling of item rendered with Spark components on Flex 4.5 ?

It might sound ridiculous, but actually this would do the trick until i understand a bit more the rendering life-cycle

Best Answer

First off, I do not recommend you do this. Item recycling is essential to any Flex app for performance reason. I suggest you take the time to understand instead of hacking away at trying to create the application.

But if you need to do it, you can always turn off virtualization in the layout:

<s:List>
   <s:layout>
      <s:VerticalLayout useVirtualLayout="false" />
   <s:/layout>
</s:list>

By default, virtualization is true.

Related Topic