Please use the [code][/code] tags when posting code samples. It will preserve indentations.
The problem with your code is that you assign the smile action to a variable called smile which will overwrite the smile method. You need to give it a name that does not conflict with the smile method.
|