[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
I'm really struggling for help. We have done everything to try and get a solution to this problem including: 1. Posting on public forums / mailing lists 2. Purchased books on AS3 and Flex 3. Signed up for a year subscription to Lynda.com 4. Purchased support from experts-exchange.com 5.

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
=fasle -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *bc24fl *Sent:* 03 June 2008 14:56 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
: Tuesday, June 03, 2008 9:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really struggling for help. We have done everything to try and get a solution to this problem including: 1. Posting on public forums

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
I posted a more detailed example with comments (plz see). BTW, I'm using Flex 3 SDK. I googled a solution for Flex 2 but it doesn't work with Flex 3. Hey I don't want to be anonymous =). My name is Irving. Thanks. --- In flexcoders@yahoogroups.com, Andriy Panas [EMAIL PROTECTED] wrote: Hi

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really struggling for help. We have done everything to try and get a solution to this problem including: 1. Posting on public forums / mailing lists 2

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *bc24fl *Sent:* 03 June 2008 14:56 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really struggling for help. We have done everything

Re: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Michael Schmalle
Of *bc24fl *Sent:* 03 June 2008 14:56 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really struggling for help. We have done everything to try and get a solution to this problem including: 1. Posting on public

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
What is null? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bc24fl Sent: Tuesday, June 03, 2008 11:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really struggling for help. We have done everything to try and get a solution to this problem including: 1. Posting on public forums / mailing lists 2. Purchased books on AS3 and Flex 3. Signed up

Re: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Andriy Panas
Hi stranger bc24fl, Mike Schmalle had proposed you the exact solution, that we are currently using within our project based on Flex 2 SDK to enable/ disable menu items in MenuBar component. I do not understand without looking at your code, what is going on wrong with your MenuBar. Can you

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
[mailto:[EMAIL PROTECTED] On Behalf Of bc24fl Sent: Tuesday, June 03, 2008 9:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really struggling for help. We have done everything to try and get a solution

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Andrew Price
: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really struggling for help. We have done everything to try and get a solution to this problem including: 1. Posting on public forums / mailing lists 2. Purchased books on AS3 and Flex 3. Signed up for a year subscription

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 Fair enough. Here is the code: The menu is created using: public var myMenu:Menu; //myMenu is globally created var pt:Point = new Point(event.localX

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *bc24fl *Sent:* 03 June 2008 14:56 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 Fair enough. Here is the code: The menu is created using: public var myMenu:Menu; //myMenu is globally created var pt:Point = new Point(event.localX, event.localY); myMenu

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *bc24fl *Sent:* 03 June 2008 14:56 *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 I'm really

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
OK, this is fairly buggy but it does show you can gray out a menu item from actionscript (Check the Down submenu item after clicking the Lock / Unlock menu item). I will leave the bug fixes and extras to you :-)... ?xml version=1.0 encoding=utf-8? mx:Application

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
Ok I think I'm getting closer. In your example you create the menu when the user clicks but in my code the menu has already been created globally. Can the XML data be changed dynamically once the menu has already been create? --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote:

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
OK, this is fairly buggy but it does show you can gray out a menu item from actionscript (Check the Down submenu item after clicking the Lock / Unlock menu item). I will leave the bug fixes and extras to you :-)... ?xml version=1.0 encoding=utf-8? mx:Application

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 Fair enough. Here is the code: The menu is created using: public var myMenu:Menu; //myMenu is globally created var pt:Point = new

RE: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread Tracy Spratt
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bc24fl Sent: Tuesday, June 03, 2008 12:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0 Ok I think I'm getting

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
Here is another example that's a lot less buggy and uses an MXLList, XMLListCollection and a MenuBar. This is taken mostly from the example listed in the help: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread valdhor
Here is another example that's a lot less buggy and uses an MXLList, XMLListCollection and a MenuBar. This is taken mostly from the example listed in the help: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-03 Thread bc24fl
: Enable / Disable Flex Menu Items Programmatically using AS 3.0 Ok I think I'm getting closer. In your example you create the menu when the user clicks but in my code the menu has already been created globally. Can the XML data be changed dynamically once the menu has already been

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-02 Thread bc24fl
I tried the following: myMenuData.menuitem.(@id==menuUp)[EMAIL PROTECTED] = false; But it returns an error: A term is undefined and has no properties. Any Ideas? Thanks. --- In flexcoders@yahoogroups.com, Marty Pitt [EMAIL PROTECTED] wrote: this is extremely close to what I'm trying to

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-02 Thread bc24fl
Just tried it but did not work. Any ideas? --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Have you tried; myMenu.dataDescriptor.setEnabled(myMenuData.menuDrill.menuDown[0],false); Mike On Mon, Jun 2, 2008 at 12:38 PM, Marty Pitt [EMAIL PROTECTED]

Re: [flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-02 Thread Michael Schmalle
Just curious but, have you traced what the value of; myMenuData.menuDrill.menuDown is? Would be interesting to know what you are trying to set. Mike On Mon, Jun 2, 2008 at 2:44 PM, bc24fl [EMAIL PROTECTED] wrote: Just tried it but did not work. Any ideas? --- In

[flexcoders] Re: Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-02 Thread bc24fl
Before it runs the command the value is menuitem id=menuDown label=Down toggled=false enabled=true/ After it runs the command the value is menuitem id=menuDown label=Down toggled=false enabled=true/ So it doesn't seem to be setting the enabled property. --- In