I am working on migrating an app to f2b3, and I have run into a issue
that I cant figure out. I have also tested this with the example code
provided on the adobe flexapps site.

When I run the code below, it displays only the children of the Contacts
xml, and doesnt display anything else.  Anyone have an idea why it is
doing this.

Here is my code.

menuBar.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml";
creationComplete="initCollections()" width="100%" height="100%">
       <mx:Script source="as/asMenuBar.as" />
     <mx:MenuBar labelField="@label" showRoot="false"
dataProvider="{menuBarCollection}" width="100%" height="22" />

</mx:Canvas>


asMenuBar.as

     // IMPORTS

     import mx.events.MenuEvent;
     import mx.collections.*;

     [Bindable]
     public var menuBarCollection:XMLListCollection;

     private var menubarXML:XMLList =
         <>
                <menuitem label="Contacts">
                     <menuitem label="Outside Agent" data="1A"/>
                     <menuitem label="Vendor" data="1A"/>
                     <menuitem label="Clients" data="1A"/>
                 </menuitem>
                 <menuitem label="Search">
                     <menuitem label="Listings" data="1A"/>
                     <menuitem label="Sales" data="1A"/>
                     <menuitem label="Rentals" data="1A"/>
                     <menuitem label="Referrals" data="1A"/>
                 </menuitem>
         </>;

     private function initCollections() : void
     {
         menuBarCollection = new XMLListCollection(menubarXML);
     }










------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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