1 Reply Latest reply on Feb 18, 2008 7:09 AM by Sjoerd_

    setStyle("icon",variable); NOT EMBEDDED

    Sjoerd_ Level 1
      Hello,

      I want to set my Icon but not static, here is what i want:

      private checkedIcon:String;
      [Embed(source=checkedIcon)]
      public var checkCllasIcon:Class;

      function {
      this.setStyle("icon",checkClassIcon);
      }

      The problem is i can't (offcourse) load an embedded icon dynamicly, Doh :)
      But how to set the icon without using an embedded icon class? How to build the class in AS?

      Thanks in advance,

      Sjoerd