Re: [flexcoders] Re: Dynamic Accordion

2009-03-25 Thread Tom Chiverton
On Tuesday 24 Mar 2009, timgerr wrote: 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 I get an Accordian with one child fine, as expected. Replacing the body with (basically, just duplicated

[flexcoders] Re: Dynamic Accordion

2009-03-25 Thread valdhor
What error(s) do you get? That example was a straight copy and paste. You may need to check there were no strange line breaks from the email. Steve --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: Thanks all for the response, I am not sure what I am doing wrong. I

[flexcoders] Re: Dynamic Accordion

2009-03-24 Thread timgerr
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

Re: [flexcoders] Re: Dynamic Accordion

2009-03-24 Thread Wesley Acheson
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

Re: [flexcoders] Re: Dynamic Accordion

2009-03-24 Thread Tom Chiverton
On Tuesday 24 Mar 2009, timgerr wrote: flex, here is what I mean: var a:Accordion = new Accordion(); a.createSegment(Some Parameters); That method isn't listed in the LiveDocs. What makes you think it should work ? Why not create your Accordian using MXML ? If you insist on using AS though,

[flexcoders] Re: Dynamic Accordion

2009-03-24 Thread valdhor
Quick and dirty using the example code at http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html#in\ cludeExamplesSummary... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=onCreationComplete()

RE: [flexcoders] Re: Dynamic Accordion

2009-03-24 Thread Tracy Spratt
[mailto:flexcod...@yahoogroups.com] On Behalf Of timgerr Sent: Tuesday, March 24, 2009 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Dynamic Accordion So I have been reading actionscript on how to do this and I am running into some troubles, I seem to have to use

[flexcoders] Re: Dynamic Accordion

2009-03-24 Thread timgerr
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