Hello,

I'm trying to add an icon to the top level of the menuBar component,
but no matter what I try I cannot get it to display.  The icon will
display with other component types, such as a List, but not the
menubar.  The idea is that I'm trying to emulate a separator at the
top level (which also does not display).  Any ideas?

Thanks.

Here is the code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">
        <mx:Script>
                <![CDATA[
                        [Embed(source="./skin_images/menubar_separator.png")]
                        [Bindable]
                        public var iconSeparator:Class;
                        
                        [Bindable]
                        public var header_menu_array1:Array = [{label: 
"MenuItem A",
children: [
                                {label: "SubMenuItem A-1", enabled: false},
                                {label: "", type: "separator"},
                                {label: "SubMenuItem A-2", type: ""} 
                            ]},
                             {label: "", type: "normal", icon: "iconSeparator", 
enabled:
false},
                            {label: "MenuItem B", type: "check", toggled: true},
                            {label: "|", type: "check", enabled: false},
                            {label: "MenuItem C", type: "check", toggled: 
false},
                            {label: "|", type: "check", enabled: false},
                            {label: "MenuItem D", children: [
                                {label: "SubMenuItem D-1", type: "radio",
                                    groupName: "g1"},
                                {label: "SubMenuItem D-2", type: "radio", 
                                    groupName: "g1", toggled: true}, 
                                {label: "SubMenuItem D-3", type: "radio", 
                                    groupName: "g1"} 
                            ]} 
                        ];
                ]]>
        </mx:Script>
        
        <mx:MenuBar x="0" y="0" width="100%" height="32"
rollOverColor="black" id="skinMenuBar"
dataProvider="{header_menu_array1}" labelField="label"
iconField="icon" fontSize="11" useHandCursor="true">
        </mx:MenuBar>
</mx:Application>





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to