Setting itemRenderer in Actionscript
Some things seem so straight-forward once you figure them out, but sometimes it takes some experimenting to find the working solution. One thing I got stumped on for a bit recently was trying to set an itemRenderer in Actionscript. So I thought I’d share this one-liner — you just have to cast it as a ClassFactory:
listObj.itemRenderer = new ClassFactory( com.martine.components.myItemRenderer );
