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

    Referencing script block from code


      Annoying problem...

      I'm using the following code:

      <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}">

      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?