0 Replies Latest reply: Oct 4, 2011 3:46 AM by vasupen RSS

    flex multiple rss feed issue

    vasupen Community Member

      Im basic level in flex. This is mobile based application which fetch rss feed from multiple remote server. I have created two list side by side. The left side list has static button which will allow to fetch the xml data and send data to right site list.

      While I click the left buttons one by one for first time nothing happen. But its working, if I click buttons second time.

      I changed the "change event" to "mouse click event", here I need to click double time the button to fetch. What I missed here.

      I given sample code.

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      <s:CallResponder id="BBCgetDataResult"/>
      <bbcrss:BBCRss id="bBCRss"/>
      <s:CallResponder id="nYTimes_getDataResult"/>
      <nytimes_homepage:NYtimes_HomePage id="nYtimes_HomePage"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
                  import spark.events.IndexChangeEvent;

                  protected function btn_changeHandler(event:IndexChangeEvent):void
                          case "BBC":
                              BBC_getDataResult.token = bBCRss.getData();
                              contents.dataProvider = BBC_getDataResult.lastResult;
                              contents.labelField = 'title';
                          case "NYT":
                              nYTimes_getDataResult.token = nYtimes_HomePage.getData();
                              contents.dataProvider = nYTimes_getDataResult.lastResult;
                              contents.labelField = 'title'

      <s:List id="btn" width="40%" height="100%" change="btn_changeHandler(event)">
      <s:List id="contents" width="60%" height="100%" right="0">