--- In flexcoders@yahoogroups.com, Sid Maskit <[EMAIL PROTECTED]> wrote:
>
> Try something like this:
> 
> <mx:Label id="display" text="{(isNaN(myNumber as Number)) ? 0 : 
PrepForDisplay.format(myNumber)}" visible="{display.text != '0' 
&amp;&amp; display.text != 'In,fin,ity.00'}"/>
> 
> Note that you need to give the Label component and id, and use that 
id to refer to it in your statements within braces.
> 
> By the way, as you are no doubt noticing, the larger point here is 
that braces are not just for binding, but can contain all sorts of 
ActionScript.

The braces actually _are_ executing a binding here, as they will do 
something different when the value of the variable changes.  If the 
value was not expected to change, you could do the same without the 
braces.

HTH;

Amy

Reply via email to