1 Reply Latest reply on May 11, 2007 6:26 PM by JayStang

    Access itemRenderer through parent document

    JayStang
      Hey Guys,
      Quick question. How do i access a function that lives inside in itemRender, through the parent document. I've used "outerDocument" before to get to the parent from inside the itemRenderer, but now i need to do the opposite.

      Example:

      <mx:VBox creationComplete="initApp();">
      <mx:Script>
      <![CDATA[
      public function initApp(){
      //CALL FUNCTION INSIDE OF ITEMRENDERER HERE
      }
      ]]>
      </mx:Script>

      <mx:TileList id="MyTileList" dataProvider="{qResults}">
      <mx:itemRenderer>
      <mx:Component>
      <mx:VBox>
      <mx:Script>
      <![CDATA[
      public function initTile():void{
      //do something
      }
      ]]>
      </mx:Script>
      </mx:VBox>
      </mx:Component>
      </mx:itemRenderer>
      </mx:TileList>
      </mx:VBox>


      Thanks,
      ~Jamie