I was struggled last week about changing itemRenderer dynamically in flex...
at last its easy to change itemRenderer in actionscript..
import mx.core.ClassFactory;
Component.itemRenderer=new ClassFactory(RendererComponent);
here RendererComponent may be a mxml component ...or ActionScripr component..
if RendererComponent resides inside package mention it as com.somePackage.RendererComponent
Read more
at last its easy to change itemRenderer in actionscript..
import mx.core.ClassFactory;
Component.itemRenderer=new ClassFactory(RendererComponent);
here RendererComponent may be a mxml component ...or ActionScripr component..
if RendererComponent resides inside package mention it as com.somePackage.RendererComponent