0 Replies Latest reply on Jun 2, 2012 1:39 PM by nFox22

    getData(/*Enter value(s) for */ );

    nFox22

      Hi, i have trouble with getData(/*Enter value(s) for */);

       

      I created new FB project, then conected XML from this URL (http://allods.mail.ru/newsrss.php?line=news) this is RSS in russian language.

       

      then i created <s:List> and connected it to dataprovider created from that url.

      the problem is that FB asks to enter value(s) to parameter "line", i tryed everything but could't resolve my problem. Can anyone help me ?

       

      P.S. XML connection was generated automaticaly, nothing changed. Maybe someone can try get that feeds from that link ?

       

      Main.mxml code

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

                                       xmlns:s="library://ns.adobe.com/flex/spark"

                                       xmlns:mx="library://ns.adobe.com/flex/mx"

                                       xmlns:newsrss="services.newsrss.*"

                                       minWidth="955" minHeight="600">

       

                <fx:Script>

       

                          <![CDATA[

                                    import com.adobe.serializers.utility.TypeUtility;

       

                                    import mx.controls.Alert;

                                    import mx.events.FlexEvent;

       

                                    import valueObjects.Item;

       

                                    protected function list_creationCompleteHandler(event:FlexEvent):void

                                    {

                                              getDataResult.token = newsrss.getData(/* Enter value(s) for */ line);

                                    }

       

       

                          ]]>

                </fx:Script>

       

                <fx:Declarations>

       

                          <s:CallResponder id="getDataResult"/>

       

                          <newsrss:Newsrss id="newsrss"

                                                                   fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"

                                                                   showBusyCursor="true"/>

       

                </fx:Declarations>

       

                <s:List id="list" x="41" y="70" width="625" height="209"

                                    creationComplete="list_creationCompleteHandler(event)" labelField="title">

       

                          <s:AsyncListView list="{TypeUtility.convertToCollection(getDataResult.lastResult.channel.item)}"/>

       

                </s:List>

       

      </s:Application>