0 Replies Latest reply on Jun 8, 2007 11:33 AM by Dr._Goomba

    Error #1065: Variable  is not defined on ObjectUtil??

    Dr._Goomba
      One comment to Adobe, it would be nice if the debugger would output better errors. Maybe it's just my lack of experience, but trying to track down errors is a daunting task.

      I had spent an entire night trying to track down this error and it has come down to the following code:

      private function server_fault(event:FaultEvent):void{
      Alert.show(ObjectUtil.toString(event));
      }

      The ObjectUtil seems to be causing this error as if i change it to (event as String) it works fine. But this makes absolutely no sense since i have other classes that use the exact same code w/o a hitch. I do have the ObjectUtil imported.

      Here is the entire error:
      ReferenceError: Error #1065: Variable is not defined.
      at global/flash.utils::getDefinitionByName()
      at mx.utils::DescribeTypeCache$/describeType()
      at mx.utils::ObjectUtil$/getClassInfo()
      at mx.controls::DataGrid/::generateCols()
      at mx.controls::DataGrid/mx.controls:DataGrid::collectionChangeHandler()
      at mx.controls.listClasses::ListBase/set dataProvider()
      at mx.controls::DataGrid/set dataProvider()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/addChildAt()
      at mx.core::Container/addChild()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.containers::ViewStack/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.containers::TabNavigator/mx.containers:TabNavigator::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/addChildAt()
      at mx.core::Container/addChild()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.containers::Panel/createComponentsFromDescriptors()
      at mx.core::Container/mx.core:Container::createChildren()
      at mx.containers::Panel/mx.containers:Panel::createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at views.movie::MovieDetail/initialize()
      at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.managers::SystemManager/ http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()
      at mx.managers::SystemManager/addChild()
      at mx.managers::PopUpManagerImpl/addPopUp()
      at mx.managers::PopUpManager$/addPopUp()
      at com.windowedApplication::WindowManager$/add()
      at views.movie::MovieMaster/__movieDataGrid_doubleClick()