BTW,

I can see in my head quite a few different tecniques to do this. It really depneds on what you are ACTUALLY doing. Rereading your post, this might be some of what you want but, not exactly.

Peace, Mike

On 4/19/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Hi,

Yeah, use the ...

<accordionData>
   <item label="lalal" />
   <item label-"tata" />
</accordionData>

var myXML:XMLList = myXML..item;

then iterate through the list using [EMAIL PROTECTED]

in loop ...
var child = new Canvas()
child.label =  [EMAIL PROTECTED]
accorion.addChild(child)

use addChild() with the component you want while setting it's label property from your @label attribute.

You could even get funky by putting another attribute in your xml that stated the component classpath to use and use the get class reference function in as3 to create it dynamically. You have to create a dependency with any component you will use though if you use strings to reference a class.

Sorry, not enought time to show a true example but, this could get you started.

Peace, Mike


On 4/19/06, alehrens < [EMAIL PROTECTED]> wrote:
I'm a newbie to both Flex and FlexCoders...  How would you go about
populating an accordian tab/data from an XML file?  Specifically, I
have an XML file that contains a label, data and description.  I'd
like to use the label as the tab of the accordian, then show the data
and description inside the accordian.  Is there a clean and simple way
to do this?





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






--
What goes up, does come down.



--
What goes up, does come down.


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




Reply via email to