1 Reply Latest reply on Nov 4, 2011 11:17 AM by Flex harUI

    Why can't I use outerDocument when using a external renderer

    nikos101 Level 2

      Why can't I use outerDocument when using a external renderer, I can in the inline ones

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"

                          xmlns:s="library://ns.adobe.com/flex/spark"

                          xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">

         

          <fx:Script>

              <![CDATA[

              ]]>

          </fx:Script>

          <s:HGroup width="100%" gap="15" horizontalAlign="center" verticalAlign="middle" height="100%">

             

              <s:Image source="assets/18edit.png" useHandCursor="true" buttonMode="true" toolTip="Edit complaint">

                  <s:click>

                      <![CDATA[

                      outerDocument.editItem(data);