3 Replies Latest reply on Jan 17, 2007 1:34 AM by iquaaani

    Howto use methods inside itemRenderer

    iquaaani Level 1
      Hi,

      I have basic itemRenderer made as component:

      <mx:Component id="ColorRenderer">
      <mx:Label
      text="{rgb2hex(255,100,50)}" // This gives error: 1180: Call to a possibly undefined method rgb2hex
      />
      </mx:Component>

      My method works if i use it with "normal" label like <mx:Label x="22" y="12" text="{rgb2hex(255,100,50)}" width="150"/>
      but it does not work inside itemRenderer ?

      What am i missing here ?