The content for each child of the accordion I'll leave up to you, 
but basically it would go something like this:

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; 
width="100%" height="100%">

<mx:Model id="myXml" source="myData.xml"/>

<mx:Accordion height="300" width="200">
  <mx:Repeater  id="rp" dataProvider="{myXml.header}">
      <mx:Canvas height="100%" width="100%" 
label="{rp.currentItem.label}"/>
  </mx:Repeater>
</mx:Accordion>

</mx:Application>


myData.xml:
-------------------------------
<xml>
 <header label="Header 1" />
 <header label="Header 2" />
 <header label="Header 3" />
 <header label="Header 4" />
</xml> 


--- In [email protected], "augie3333" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> Does anyone have sample code they can post or send me to 
dynamically
> create an acccordion based on the data within an XML document like
> this link below demonstrates?
> 
> http://www.powersdk.com/ted/2005/05/flex-example-accordion-
repeater.php
> 
> Unfortunately they have taken down their sample code from their
> website, and it is exactly what I'm looking for.
> 
> Thanks in advance for all your help,
> -Augie Marcello III
>






--
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