1 Reply Latest reply on Mar 8, 2010 11:03 AM by Flex harUI

    The reference to 'owner' inside custom itemRenderer returns different results

    JabbyPandaUA Level 3

      Hi all,

       

        When I am creating a custom itemRenderer for s:List component, the 'owner' property inside overrided setter for "selected' property returns different results:

       

      <s:ItemRenderer 
      
      ....
      
      override public function set selected(value:Boolean):void {
                      super.selected = value;
      
                      var ownerXMLData : XML = describeType(owner);
                      trace("owner ClassName", ownerXMLData.@name.split("::")[1]);                
                  } 
      </s:ItemRenderer>
      

       

      Trace Results:

       

      owner ClassName DataGroup
      owner ClassName DataGroup
      owner ClassName DataGroup
      owner ClassName DataGroup
      owner ClassName List
      owner ClassName List
      owner ClassName List
      owner ClassName List
      

       

      Is this a bug?