3 Replies Latest reply on Oct 28, 2008 10:32 AM by Newsgroup_User

    make setItemIcon work with bitmap

      I have for example <TreeItems><item1 label="String1" icon="icon1embedded"/></TreeItems> inside an XmlList for a Tree. It's working fine with [Embed(source="icon1.png")] private var icon1embedded:Class;
      But I want to supply icon with a bitmap object returned from my loader. Something like icon=myloader.getBitmap("bitmap1");

      How am I to achieve that?