1 Reply Latest reply on Mar 24, 2008 9:08 PM by ntsiii

    Change Selected Property of a Checkbox

    trainsimple
      I'm trying to set the selected property of a checkbox generated by the Repeater component. The checkbox has an ID of ccb. I know I can access them using index notation ie. ccb[1].selected = true; - that works fine. However, when I put in a for loop and set the selected property to a value stored in a Array I get this error. Any ideas? Anybody?? Please????


      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at Filter/intFilterComp()
      at Main/loginClickHandler()
      at Main/___Login1_loginClick()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at Login/wsHandler()
      at Login/___Operation2_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 DirectHTTPMessageResponder/completeHandler()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/onComplete()