This should give you some ideas about how to integrate an accordion
and data from an xml file:

http://groups.yahoo.com/group/flexcoders/message/34403


--- In flexcoders@yahoogroups.com, "Jay" <[EMAIL PROTECTED]> wrote:
>
> I have just started trying to learn and use Flex. I think it is a
very
> nice tool but I do nto know how to do much yet.
>
> I am trying to learn and I have created some code with accordian
type
> views inside Tab type views.
>
> I want to make links inside the different accordian panes that
will be
> to different forms we use in our organization. I also want it to
pull
> the data from an xml file so I do not have to add forms to the
actual
> code as I create more forms. I need to be able to place the name
and
> link info from the xml file into either a LinkButton or a linkBar
and
> I just do not get how to do it
>
> here is a sample of what I have so far
>
> <mx:HBox paddingTop="20" paddingBottom="20" paddingRight="20"
> paddingLeft="20" width="100%" height="90%" horizontalGap="20">
> <mx:Panel width="100%" height="100%" title="Forms">
> <mx:TabNavigator width="100%" height="100%">
> <mx:Box label="Orders" paddingLeft="10">
> <mx:Accordion width="795" height="535">
> <mx:Box label="B1">
> <mx:LinkBar itemClick="navigateToURL(new
> URLRequest(ItemClickEvent(event).item.link), '_Top')" >
> <mx:dataProvider>
> <mx:Array>
> <mx:Object label="1) Form 1" link="/cgi-bin/forms/prejin1.cfm"/>
> <mx:Object label="2) Form 2" link="/cgi-bin/forms/schstin.cfm"/>
> <mx:Object label="3) Form 3" link="/cgi-bin/forms/mootin1.cfm"/>
> </mx:Array>
> </mx:dataProvider>
> </mx:LinkBar>
> </mx:Box>
> <mx:Box label="B2">
> <mx:LinkBar itemClick="navigateToURL(new
> URLRequest(ItemClickEvent(event).item.link), '_Top')" >
> <mx:dataProvider>
> <mx:Array>
> <mx:Object label="1) Form 1" link="/cgi-bin/forms/prejin1.cfm"/>
> <mx:Object label="2) Form 2" link="/cgi-bin/forms/schstin.cfm"/>
> <mx:Object label="3) Form 3" link="/cgi-bin/forms/mootin1.cfm"/>
> </mx:Array>
> </mx:dataProvider>
> </mx:LinkBar>
> </mx:Box>
>
> <mx:HBox label="Others" width="100%" height="50%">
> <mx:LinkButton label="name" click="navigateToURL(new
> URLRequest('http://156.124.64.233'), '_Top')"/>
>
>                        
> </mx:HBox>
> </mx:Accordion>
> </mx:Box>
> <mx:Box label="DataGrid" paddingLeft="10">
> <mx:DataGrid id="myGrid" width="450" >
> <mx:dataProvider>
> </mx:dataProvider>
> </mx:DataGrid>
> </mx:Box>
> <mx:Box label="EMPTY" paddingLeft="10">
> </mx:Box>
> </mx:TabNavigator>
> </mx:Panel>
> </mx:HBox>
>
> ANY help would be wonderful here
>
> TIA
>






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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to