1 Reply Latest reply on Jan 5, 2010 9:10 AM by Flex harUI

    about ItemRenderer and dataProvider

    sasxa.home Level 1

      I have a working solution for my project, but while testing it I found something I don't understand..

       

      // dataProvider returns object with two values (value1 and value2)...
      
      <s:DataGroup dataProvider="{myCallResponderThatGetsDataFromPHPCallToMySQL.lastResult}">
      
        <s:itemRenderer>
      
          <fx:Component>
            <s:ItemRenderer>
      
             <fx:Script>
             <![CDATA[
      
                override public function set data(value:Object):void {
      
                     trace(value == super.data);
      
                }</close all tags>
      // trace output:
      true
      false
      false
      
      

       

      What I don't understand is why trace gives one true and two false outputs... If I trace just value, i get one null and two [object Object] results..

      So can anyone explain how this data assignment works?