In my mxml file I keep getting error 1136: "Incorrect number of arguments.Expected 1." from the codes below. I have declared search() function in the ActionScript part already so there should be no problem.
<s:Button x="130" y="270" click="search()" label="{search}"/>