actionscript 3 - Flex/AS3 Using Multiple Item Renderers In a List -
i'm trying have multiple item renderers in list, have several different types of objects want display. tried creating new class extends listbase, , adding override public function createitemrenderer code within function. instantiate new class , give array of data dataprovider, createitemrenderer never called within new class, can me please?
thank you
i managed solve extending list instead of listbase, shakakai making me think :)
incase else has similar problem here code looks like:
public class multiplerendererslist extends list { override public function createitemrenderer(data:object):ilistitemrenderer { if (data type1) { return new type1component; } else if (data type2) { return new type2component; } return null; }
Comments
Post a Comment