RE: [flexcoders] repeater error that i dont understand

2009-04-09 Thread Tracy Spratt
How could you ever debug a mess like that?  Pull all of that repeated stuff
out into an mxml component, repeat that, and pass in the entire currentItem
via a setter.  In the setter, assign the values to local, bindable
variables, and bind your ui elements to those. Now, in the component, you
can debug normally and find out what is wrong..

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, April 09, 2009 11:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] repeater error that i dont understand

 






hi i have a repeater component that bound to the selection of a datagrid. it
works perfectly the first time i select an item from the dtatgrid but when i
select another item i get this error that i don't understand. please advise.
here is my repeater and the error i get


 





 




 

 
 

 


"RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/setChildIndex()
at mx.core::Container/setChildIndex()
at mx.core::Repeater/recycle()
at mx.core::Repeater/execute()
at mx.core::Repeater/set dataProvider()
at custom_comps::forum/repeatResult()
at custom_comps::forum/___Operation3_result()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractOperation/http://www.adobe.
<http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent>
com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.
<http://www.adobe.com/2006/flex/mx/internal::resultHandler>
com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at NetConnectionMessageResponder/resultHandler()
at mx.messaging::MessageResponder/result()
"





[flexcoders] repeater error that i dont understand

2009-04-09 Thread stinasius
hi i have a repeater component that bound to the selection of a datagrid. it 
works perfectly the first time i select an item from the dtatgrid but when i 
select another item i get this error that i don't understand. please advise. 
here is my repeater and the error i get


  











  









   

  






   


  


"RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/setChildIndex()
at mx.core::Container/setChildIndex()
at mx.core::Repeater/recycle()
at mx.core::Repeater/execute()
at mx.core::Repeater/set dataProvider()
at custom_comps::forum/repeatResult()
at custom_comps::forum/___Operation3_result()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at NetConnectionMessageResponder/resultHandler()
at mx.messaging::MessageResponder/result()
"