How do you delete itemrenderers in a spark Listform for mobile?


I've got a spark ListForm with a custom mxml itemRenderer, all the itemRenderer has is:

<s:Label text="{data.name}" />

When I run the profiler, the listform is not re-using the itemRenderers, the instances keep going up and up, I'm using an arrayCollection as the dataprovider. I even call the dataprovider (arrayCollection) .removeAll() and the display goes blank, yet the number of instances of the itemRenderer does not go down. I then run the garbage collector in the profiler, and the item renderers still stay in memory. How can I remove the itemRenderers from memory?


if you just want a label as an item renderer then in mobile applications it's recommended to use the <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/LabelItemRenderer.html" rel="nofollow">LabelItemRenderer </a>


Set the itemRenderer to null. When GC next runs, the item renderers in memory will be removed.


  • Flex-Disable data grid row when checkbox is not selected
  • EntityType as an input field?
  • Flex s:DataGrid all ItemRenderer are fired
  • Invoking Something Twice Leads To: “protected override void Dispose”
  • Parsing comma separated string into multiple database entries (eg. Tags)
  • HTTPService AsyncToken and AsyncResponder example
  • Zend 2 Doctrine 2 Gedmo Translatable
  • c++ / Qt - computation time
  • Infinite loop in Doctrine event listener when trying to save additional entity
  • Multiple modes Codemirror
  • Deleting entire row on criteria cannot handle 400,000 rows
  • UITableView cell goes blank when scrolling
  • Trim blank newlines from string in Ruby
  • golang debugger stops on empty lines - why?
  • PDF file damaged after upload but local copy is fine. How could this be happening? [closed]
  • Easy way to profile Magento API calls
  • add scrollbar in qt window?
  • VisualVM profiling hangs while instrumenting classes
  • How to make a variable by extracting specific line?
  • How open new window with base64 PDF content?
  • use grep and awk to transfer data from .srt to .csv/xls
  • PDF in PHP ZipArchive throwing errors, server permissions
  • Can service-worker stop push notification sent by GCM api?
  • 3.2 Apps with placeholder text will be rejected
  • How do I programatically open the Developer Tools' Console in a Firefox addon?
  • Notepad++ - delete all lines with certain text
  • Watir::Exception::MissingWayOfFindingObjectException: invalid attribute: :css
  • a concept similar to pointers in as3?
  • Single virtual attribute definition for multiple fields
  • Django: ORDER BY DESC on FloatField puts null values top?
  • LNK1104: cannot open file 'kernel32.lib'
  • Can't access Tomcat 7 Manager app when running from Eclipse
  • setContentView() is not enough to switch between layouts?
  • Why does the following throw an “Object doesn't support property or method 'importNode
  • Invert string in Rust
  • Microsoft Excel Pivot miscalculation in Sum for positive and negative numbers
  • Less Conflicting Session Manager for Zope 2
  • Why must we declare a variable name when adding a method to a struct in Golang?
  • calculate gradient output for Theta update rule
  • Rails Find when some params will be blank