remember how cool flex is? here is a reminder,

   <mx:Model id="menuXML">
       <mainmenu>
           <menu label="Menu 1" role="admin">
               <submenu label="Questions" />
           </menu>
           <menu label="Help" role="base">
               <submenu label="Help Document" />
           </menu>
       </mainmenu>
   </mx:Model>

   <mx:ArrayCollection id="myAC" source="{menuXML.menu}"/>

   <mx:LinkBar id="linkBarNav" disabledOverlayAlpha=".5" y="58"
       color="#ebebeb" fontWeight="bold" rollOverColor="#4da5d7" left="250"

       horizontalGap="8" paddingLeft="4"
       itemClick="{linkBarHandler(event)}"
       dataProvider="{myAC}" >
   </mx:LinkBar>


On 6/7/07, Michael Labriola <[EMAIL PROTECTED]> wrote:


It can not use XML directly as a dataProvider, I believe it can only be
a viewStack derivates or an array.

I fought this for a while and ended up extending the control,
overriding the dp setter and then passing it as an array to the super
class. If there was an easier way (which may exist) I missed it.

Mike

--- In [email protected] <flexcomponents%40yahoogroups.com>,
"dorkie dork from dorktown"

<[EMAIL PROTECTED]> wrote:
>
> Can the LinkBar use XML in the DataProvider? If not I thought there
was a
> method to manipulate the data coming into the dataProvider?
>

Reply via email to