4 Replies Latest reply on Aug 30, 2006 9:00 AM by bjk0002

    problems FDS

      I have next problem in FinalcialNews.mxml class:

      1119: Access of possibly undefined property result through a reference with static type mx.rpc.http.mxml:HTTPService. Portfolio_RCP FinancialNews.mxml /Portfolio_RCP/FinancialNews.mxml 1155885561968 116

      FinalcialNews.mxml´s code is (problem line in black) :

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns="*" width="100%" height="100%">
      <mx:DataGrid id="newsGrid" width="100%" height="100%"
      dataProvider="{newsList}" variableRowHeight="true">
      <mx:DataGridColumn headerText="Date" dataField="pubDate" width="200"/>
      <mx:DataGridColumn headerText="Title" dataField="title" wordWrap="true" />
      <mx:DataGridColumn headerText="Description" dataField="description" wordWrap="true" />
      <mx:DataGridColumn headerText="Link" width="130">
      <mx:LinkButton label="{data.link}"

      click="navigateToURL(new URLRequest(data.link), '_blank')"/>

      <mx:XMLListCollection id="newsList" source="{newsFeed.result.channel.item}" />
      <mx:HTTPService id="newsFeed" useProxy="true"
      destination="YahooFinancialNews" concurrency="last"
      resultFormat="e4x" >
      public function set security(value: String):void {

      What can i do to solve it???

        • 1. Re: problems FDS
          aBill Level 1
          As error message undefined property "result", you should use lastResult instead. "result" is Flex 1.5 format

          <mx:XMLListCollection id="newsList" source="{newsFeed.lastResult.channel.item}" />
          • 2. Re: problems FDS
            The JDJ article you have been apparently using was published at a time of Flex Beta 3 and "result" was still very much legal.Please use the sources - including FinancialNews.mxml - updated as per official release of Flex. They are located at http://samples.faratasystems.com/porfolio/srcview/porfolio.zip. The on-line article mentions the source differences between Flex beta and GA.

            Kind Regards,
            • 3. Re: problems FDS
              Got newest source from faratasystems.
              Receiving an error in the onComplete of the FinancialNews.mxml .

              I removed the "fault="onFault(event)" " on the HTTPService for "YahooFinancialNews" so as to get the REAL error:

              [RPC Fault faultString="&t=IBM," faultCode="Server.Processing" faultDetail="null"]
              at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
              at mx.rpc::Responder/fault()
              at mx.rpc::AsyncRequest/fault()
              at ::HTTPMessageResponder/HTTPChannel.as$6:HTTPMessageResponder::resultHandler()
              at ::HTTPMessageResponder/completeHandler()
              at ::ChannelRequestLoader/::callEventCallback()
              at ::ChannelRequestLoader/::completeHandler()
              at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/flash.net:URLLoader::onComplete()

              What am I missing?


              • 4. Re: problems FDS
                bjk0002 Level 1
                FYI with regard to above, I am running Tomcat-5.0.28