I don't have a suggestion to your question directly, but...
Repeater is a great tool, but using it like that can be difficult. I suggest you create a custom component, implementing a public property into which you pass the entire currentItem. This allows you to code the repeated content much more normally. For example, you can use the normal component lifecycle events like creationComplete, and can dispatch events, and the handler can access the dataProvider item without that silly getRepeaterItem stuff. Internal code can access child components by normal id references. You don't say what you need to width for or why you are looping, but consider this technique and it might solve one or more of your problems. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Link Mckinney Sent: Sunday, August 10, 2008 4:06 PM To: flexcoders@yahoogroups.com Subject: re[flexcoders] peater checkbox width is alway 0 Hi, I am trying to get the width of my checkboxes in a repeater either during the "repeatEnd", where I create a loop over my items or during the "repeat". Here is my code <mx:Canvas id="rpForm" width="720" height="500"> <mx:Repeater id="rp" dataProvider="{A00Skills}" repeat="removeLabel(event)" > <mx:Label id="fhSkill" text="{rp.currentItem.Module}" fontWeight="bold"/> <mx:Spacer id="spc" height="0"/> <mx:CheckBox id="cx" label="{rp.currentItem.SubModule}" y="20" x="0" minWidth="50"/> </mx:Repeater> </mx:Canvas> now I have tried in my function during repeatEnd or repeat to access my checkbox width and it is always 0. When I debug in flex builder I can go to cx --> inherited --> [0] --> x is 101 in with a green icon, but there is a yellow icon underneath it with 0, which is what I am getting. So how do I get the width of cx[1].width ? please help, Do I have a bug -- View this message in context: http://www.nabble.com/repeater-checkbox-width-is-alway-0-tp18915199p1891 5199.html <http://www.nabble.com/repeater-checkbox-width-is-alway-0-tp18915199p189 15199.html> Sent from the FlexCoders mailing list archive at Nabble.com.