Any body?
I tried overriding updatedisplayList. But logic doesnt seem to work


*

override protected function updateDisplayList(w:Number, h:Number):void

{

super.updateDisplayList(w, h);

var n:int = numChildren;

for (var i:int = 0; i <n; i++)

{

var c:DisplayObject = getChildAt(i);

// CheckBox component is made up of box skin and label TextField

if (!(c is TextField))

{

c.x = (w - c.width) / 2;

// c.y = (h - c.height) / 2;

c.y =0;

}

}
*

On Mon, Aug 8, 2011 at 11:56 AM, Malek S <[email protected]> wrote:

> I have override createChildren method inside checkBoxListitemrenderer
>
> *
>
> override
> **protected* *function* createChildren():*void*
>
> {
>
> *super*.createChildren();
>
> myCheckBox=
> *new* CheckBox();
>
> myCheckBox.setStyle(
> *"horizontalCenter"*, *"0"*);
>
> myCheckBox.setStyle(
> *"verticalAlign"*, *"0"*);
>
> myCheckBox.addEventListener(MouseEvent.CLICK, checkBoxClickHandler);
>
> *//checkBox.addEventListener(MouseEvent.MOUSE_DOWN,
> checkBoxToggleDecision);*
>
> addChild(myCheckBox);
>
> }
> But its displaying more than one checkbox.Can anybody help me on this?
>
>   On Mon, Aug 8, 2011 at 11:05 AM, Malek S <[email protected]> wrote:
>
>> HI,
>> I have checkboxList component. now i have query of adding button inside
>> checkboxList
>> As far as List is concerend its not supporting headerRenderer.
>> any idea how can i add button as header throught actionscript in
>> checkboxlist
>>
>> regards
>> maleksf
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to