1 Reply Latest reply on Dec 12, 2010 8:51 PM by drkstr_1

    Passing value to custom Accordion Header?

    Tanu Jain Level 2

      I have used "CanvasButtonAccordionHeader" of flexlib to make custom accordion header. It has one colorpicker and a label.

      I want to pass value to the header from its associated canvas. In header, I tried

       

      <mx:ColorPicker id="colorPicker" selectedColor="{data.color}" />

       

      This works fine for the first time, but it doesnt update on change of color in the associated canvas because it shows the warning

      "Data binding will not be able to detect assignments to 'data' "

       

      Also, when user changes color from the colorpicker of the header, I want it to be updated to the associated canvas.

       

      How to accomplish two way binding in canvas and accordion header?

       

      Any help?

       

       

      Thank,

      Tanu