Update ItemRenderer Dynamically

Update ItemRenderer Dynamically

To update ItemRenderer dynamically in Flex is easy:
import mx.core.ClassFactory;
public function updateItemRenderer():void {

    this.myList.itemRenderer = new ClassFactory(YourItemRendererName);
}
YourItemRendererName needs to be a mxml component or ActionScript class component. It is easy but if will be a headache if you don’t know the syntax.

Leave a Reply

Your email address will not be published. Required fields are marked *

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!