This sounds like a deferred instantiation issue. On the Accordion, set creationPolicy="all", and check if that fixes the problem.
Then search the archives for "creationPolicy" and "deferred instantiation" to find out why *this is not a good solution*. Tracy -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maxgsilverscape Sent: Friday, December 09, 2005 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] getRepeaterItem() problem... I have this code: <mx:Accordion id="categoryaccordion" height="100%" width="100%" selectedIndex="0" change="mx.controls.Alert.show(event.newValue); BHUser.generateQuestions2(questionslist [event.newValue].getRepeaterItem().CategoryID,0)"> <mx:Repeater id="accordionrepeater" dataProvider="{accordionRepeaterData}"> <mx:VBox label="{accordionrepeater.currentItem.CategoryName}" height="100%" width="100%" > <mx:List width="100%" height="100%" id="questionslist" dataProvider="{qListData}" labelField="fieldtext" /> </mx:VBox> </mx:Repeater> </mx:Accordion> The getRepeaterItem in the accordion's change event returns a blank/undefined value the first time you click through each accordion item, but works perfectly from that point on. Does something have to be done initially upon creation of the accordion to get that working? -- 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/