Your extended component's constructor can have different arguments from the constructor of the component they extend. However if you want to use your component in mxml it can't have any (non- defaulted) arguments to the constructor.
You can probably accomplish what you are trying to do, by adding the fill color as a property and the code that you had in the constructor in the initialize or creationComplete handler. --- In [email protected], "barry.beattie" <[EMAIL PROTECTED]> wrote: > > the docs seem to hint "no" because (in this case) it changes the > signature from the base class ... but I just need to check. > > within a chart I'm using the itemRenderer for each series in a BarSet. > I need some way to tell it that it's processing a different series > than the one before so it'll use a different fill colour. Passing in a > simple number from the MXML would be so handy here... > > > public class LabeledRenderer2 extends UIComponent implements IDataRenderer > { > ... > public function LabeledRenderer2():void > { > super(); > _label = new Label(); > addChild(_label); > _label.setStyle("color", 0xFFFFFF); > } >

