2 Replies Latest reply on Jan 27, 2008 8:45 AM by ntsiii

    Referencing script block from code

    mac_55
      Hi,

      Annoying problem...

      I'm using the following code:

      <adobe:itemRenderer>
      <mx:Component>
      <mx:Button click="ButtonClick(event)" width="70" height="70" label="{data.data.@prop}" upSkin="Skins.SphereButton_upSkin" overSkin="Skins.SphereButton_upSkin" downSkin="Skins.SphereButton_downSkin" toolTip="{data.data.@prop}">
      </mx:Button>
      </mx:Component>
      </adobe:itemRenderer>

      But the compiler's telling me that ButtonClick is undefined...even though it's a private function in the script block of the same component the item renderer is in. Any ideas?