<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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

