Okay just knocked this together very quickly. There may be errors but it should be enough to get you started.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="doCreationComplete()"> <mx:Script> <![CDATA[ import mx.containers.VBox; import mx.controls.TextInput; import mx.controls.Button; import mx.containers.Accordion; private var acc:Accordion private function doCreationComplete():void { acc = new Accordion; acc.width = 400 acc.height = 200; var button:Button = new Button() button.label = "button 0"; var vbox1:VBox = new VBox(); vbox1.label ="panel 1"; vbox1.addChild(button); var ti:TextInput = new TextInput(); ti.text ="Text Input"; var vbox2:VBox= new VBox(); vbox2.label ="panel 2"; vbox2.addChild(ti); acc.addChild(vbox1); acc.addChild(vbox2); addChild(acc); } ]]> </mx:Script> </mx:Application> On Tue, Mar 24, 2009 at 4:08 PM, timgerr <[email protected]> wrote: > So I have been reading actionscript on how to do this and I am running into > some troubles, I seem to have to use createSegment but I dont see it in > flex, here is what I mean: > var a:Accordion = new Accordion(); > a.createSegment("Some Parameters"); > > I dont get a.createSegment in my list of things I can add to a. What am I > doing wrong? > > Thanks, > timgerr > > > --- In [email protected], "timgerr" <tgallag...@...> wrote: > > > > Can some one point me to an example of an accordion done in actionscript? > I want to create a menu with an accordion in it in actionscript but cannot > find any examples on how to do the accordion. > > > > Thanks, > > > > timgerr > > > > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > >

