0 Replies Latest reply on Aug 13, 2007 2:31 AM by Misenko

    Pass variable to a header renderer during build

      Hi, the problem is, that I have a header renderer and I don't know how to pass paramters during construction phase. This is my renderer class.

      package myClasses{

      import mx.containers.label;
      import mx.events.FlexEvent;

      public class MyCustomHeader extends label{

      public var SOMEPARAMETER:String;

      public function MyCustomHeader(): void
      setStyle('fontWeight', SOMEPARAMETER);

      I know that is possible to pass properties like this myRenderer.properties = {} but this is setted after creating the object, so during the creating MyCustomHeader object, parameter "SOMEPARAMETER" is null.

      It is possible to do it some way?