<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;You can use Call to call a local method when something happens. You can call any function you have a reference to, and can use [[SmartObject]] to get a reference to the button that was clicked.&lt;/p&gt;
&lt;h3&gt;Example&lt;/h3&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&amp;lt;mx:Script&amp;gt;
    &amp;lt;![CDATA[
        private function message(value:String):void
        {
            trace(value);
        }
    ]]&amp;gt;
&amp;lt;/mx:Script&amp;gt;

&amp;lt;SmartObject id=&quot;currentTarget&quot;/&amp;gt;

&amp;lt;Selector match=&quot;Button&quot;&amp;gt;
    &amp;lt;Listener event=&quot;click&quot;&amp;gt;
        &amp;lt;Call method=&quot;{this.message}&quot; arguments=&quot;{currentTarget.label}&quot;/&amp;gt;
    &amp;lt;/Listener&amp;gt;
&amp;lt;/Selector&amp;gt;</body>
  <created-at type="datetime">2009-11-26T08:07:33-08:00</created-at>
  <id type="integer">166372</id>
  <permalink>call</permalink>
  <repository-id type="integer">139115</repository-id>
  <title>Call</title>
  <updated-at type="datetime">2009-03-23T07:32:09-07:00</updated-at>
  <user-id type="integer">16249</user-id>
</wiki>
