Both in this case do the same thing. Curly braces tell Flex that it should 
treat the contents as ActionScript (thus you can Ctrl-click it). It's basically 
a function call. Take a look here for an explanation: 
http://www.onflex.org/ted/2005/06/property-binding-in-flex.php

In the case of your code, the "click" property of the Button component converts 
the string it receives to a function call automatically; it's redundant to use 
the curly braces but it shouldn't hurt anything. 

- Alex C

--- In [email protected], Rick Schmitty <flexc...@...> wrote:
>
> Is there a difference between
> 
> <mx:Button click="onClick()"/>
> 
> and
> 
> <mx:Button click="{onClick()}"/>
> 
> The only thing I've notice is in the latter I can CTRL+Click on
> onClick and it takes me to the onClick function, while the first one
> does nothing
>


Reply via email to