Thanks all for the response, I am not sure what I am doing wrong. I tried the example from valdhor and I get errors when I run it. I decided to create a small example and run it. When I do, the single vbox that I created is repeated until I close my browser. Can someone tell me what I am doing wrong??? Thanks for the help all:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="Testing()"> <mx:Script> <![CDATA[ import mx.containers.Accordion; import mx.controls.Label; import mx.containers.VBox; public function Testing():void { var a:Accordion = new Accordion(); a.height = 300; a.width = 300; var vb:VBox = new VBox() var lbl1:Label = new Label(); lbl1.text = "Ass Hat"; vb.label = "Test 1"; vb.addChild(lbl1); a.addChild(vb); addChild(a); } ]]> </mx:Script> </mx:Application> Tim --- In [email protected], "Tracy Spratt" <tspr...@...> wrote: > > You may be making this hard. I do dynamic Accordions using repeater, works > great. If you really are insistent on AS only, then use addChild(). > Accordion is just a navigation container. > > > > Tracy Spratt, > > Lariat Services, development services available > >

