I have an application that loads a module. Everything works FINE until I
switch to a new
module, then back to the original module and try to run a component. I get the
following:
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
mx.core::Container$/http://www.adobe.com/2006/flex/mx/internal::checkFocus()
at mx.core::UIComponent/mx.core:UIComponent::focusInHandler()
at mx.controls::TextInput/mx.controls:TextInput::focusInHandler()
at flash.display::Stage/set focus()
at mx.core::UITextField/setFocus()
at mx.controls::TextInput/setFocus()
at components::CustSearchForm/clearSearchObject()
at components::CustSearchForm/::doClearSearch()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent()
at Sales/::handleViewStackChange()
at Sales/__myViewStack_change()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
This is caused by a textfield.setfocus().
Any Suggestions?
Bruce