On 5/16/06, Graham Weldon <[EMAIL PROTECTED]> wrote:

<snip>
> Note that in this example, when I use the text values "true" and
> "false", they are enabled and disabled appropriately. However, when
> attempting to use data binding, they all remain enabled despite being
> set to Boolean false.
>
> Here is "MyMenuBar.mxml"

<snip>
>                     <menuItem
>                         label="Save"
>                         enabled="false"/>
>                     <menuItem
>                         label="Save As..."
>                         enabled="{MyModelLocator.getInstance().SAVE_AS}"/>

What is MyModelLocator.getInstance().SAVE_AS? Is it a Boolean or is it
a String? If it's a String like "false", it'll always evaluate to
true. Only empty strings are false (so "false" is true and "" is
false).


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to