I can’t reproduce in 1.2 either, and
I copied your code exactly. The “orange” item is already greyed out
when I open the menu.
Josh Tynjala
Yahoo!
From:
Sent: Wednesday, May 14, 2008 7:56
AM
To:
Subject: [ydn-flash] Re: Possible
bug in Flash MenuBar component
Tripp,
Thanks for looking into this.
It's very strange that you can't reproduce this - I first had it with
version 1.12 and have just installed version 1.2 and its just the same.
Here's the complete code for my test example. I've simply typed it
into the first frame on the timeline and the "orange" only goes
greyed
out when you move your mouse from the menuBar to the menu itself (ie
over red, orange yellow etc). I'm testing in the Flash IDE (CS3).
import com.yahoo.astra.
import com.yahoo.astra.
import flash.events.
//create an xml object
var menus:XML =
<menus>
<menu label="colors"
<menuitem label="red"/
<menuitem label="orange" enabled="false"
<menuitem label="yellow" />
<menuitem label="green" />
<menuitem label="blue" />
<menuitem label="purple" />
</menu>
<menu label="cars"
<menuitem label="american"
<menuitem label="cadillac" />
<menuitem label="buick" />
<menuitem label="pontiac" />
<menuitem label="chevrolet" />
<menuitem label="ford" />
</menuitem>
<menuitem label="japanese"
<menuitem label="toyota" />
<menuitem label="honda" />
<menuitem label="nissan" />
</menuitem>
</menu>
<menu label="apples"
<menuitem label="gala" />
<menuitem label="granny smith" />
<menuitem label="fuji" />
</menu>
</menus>
var menuBar = new MenuBar(this)
menuBar.dataProvide
Cheers
Joe
--- In ydn-flash@yahoogrou
>
> Hi Joe,
> I am having trouble reproducing this issue. I have tried XP with IE 6,
> 7, FF 2.0.0.14 and Safari 3.1. I have also tested within the Flash
> IDE. In all case the menu opens with the node greyed out and
> non-clickable.
> When testing, I took the existing examples provided with the component
> and changed the "orange" node to match yours. Perhaps, there is
> something else in your code contributing to this issue. Can you send
> me a larger sample of your code? If I can reproduce your issue, I can
> verify it as a bug and/or offer suggestions.
>
> Thanks,
> Tripp
> --- In ydn-flash@yahoogrou
> >
> > I might have found a bug in the MenuBar component.
> >
> > If I create a menu with one of the items disabled like this:
> >
> > <menuitem label="orange" enabled="false"
> >
> > Then the item displays normally (black text) until I move the mouse
> > over it - then it turns grey.
> > I'm using Flash CS3 on Windows XP.
> >
> > Is this a known bug or am I doing something wrong?
> >
> > Cheers
> >
> > Joe
> >
>