0 Replies Latest reply on Jul 21, 2007 11:06 AM by th1nk3r

    addEventListner not found on mx.rpc.remoting.Operation

    th1nk3r
      Hi,

      I'm just starting out with Flex and using Weborb to link to PHP. I've been getting on alright but I have hit a brick wall with this bug.

      ReferenceError: Error #1069: Property addEventListner not found on mx.rpc.remoting.Operation and there is no default value.
      at SuperiorReporting/onCreationComplete()
      at SuperiorReporting/___Application1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      Here's the secion of code that it refers to:

      import mx.rpc.remoting.*;
      import mx.controls.*;
      import mx.rpc.events.*;
      //import flash.events.Event;
      import mx.collections.ArrayCollection;
      import mx.utils.ArrayUtil;

      private var remoteObject:RemoteObject;

      [Bindable] public var barData:ArrayCollection;

      public function onCreationComplete():void {
      remoteObject = new RemoteObject();
      remoteObject.destination = "Superior";
      remoteObject.source = "dbio_superior";
      remoteObject.getData.addEventListner("result", getDataResult);
      //remoteObject.getData.addEventListner(ResultEvent.RESULT, getData);
      remoteObject.addEventListener("fault", onFault);
      //remoteObject.addEventListener(FaultEvent.FAULT, onFault);

      barData = new ArrayCollection();
      getData();
      }

      Any help would be brilliant.