3 Replies Latest reply on Jul 27, 2010 2:13 PM by saisri2k2

    Need help in displaying a feed within my flex app

    Webmaster1379

      Hello guys,

       

      I was hoping that someone can push me in the right direction. I am looking to display our feed within our Flex Application. I am using some of the sample from tour de flex

       

      This is what I have so far:

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/mx"
           width="960" height="850">
           
           <fx:Script>
           <![CDATA[
                import flashx.textLayout.conversion.TextConverter;
                import flashx.textLayout.elements.TextFlow;
                
                import spark.utils.TextFlowUtil;
                XML.ignoreWhitespace = false;
           ]]>
           </fx:Script>
           
           <fx:Style>
                @namespace s "library://ns.adobe.com/flex/spark";
                @namespace mx "library://ns.adobe.com/flex/mx";
                @namespace components "components.*";
                s|WindowedApplication {
                     background-color:#000000; 
                     background-alpha:"0.9";
                }
                
                s|ButtonBar s|ButtonBarButton:upAndSelected,
                s|ButtonBar s|ButtonBarButton:overAndSelected,
                s|ButtonBar s|ButtonBarButton:downAndSelected,
                s|ButtonBar s|ButtonBarButton:disabledAndSelected {
                     chromeColor: #00529c;
                     color: #FFFFFF;
                }
                s|ButtonBar { 
                     chromeColor: #053867;
                     color: #FFFFFF;
                }
           </fx:Style>
           
           <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
                <!--<s:HTTPService id="srv" url="http://feeds.feedburner.com/standforisrael/iWIn?format=xml" />-->
                <fx:XML id="srv" source="http://feeds.feedburner.com/standforisrael/iWIn?format=xml" />
           </fx:Declarations>
           
           <s:ButtonBar dataProvider="{myViewStack}" y="175" height="35" width="700" />
           
           <mx:ViewStack id="myViewStack" borderStyle="none" x="0" y="209" width="700" height="500">
                <s:NavigatorContent id="home" label="Home">
                     
                </s:NavigatorContent>
                
                <s:NavigatorContent id="about" label="About Us">
                     
                </s:NavigatorContent>
                
                <s:NavigatorContent id="rabbi" label="Rabbi Eckstein">
                     
                </s:NavigatorContent>
                
                <s:NavigatorContent id="rabbiCom" label="Rabbi's Commentary">
                     
                </s:NavigatorContent>
                
                <s:NavigatorContent id="programs" label="Our Blog">
                     <s:RichText id="rt5" width="280"
                          textFlow="{TextFlowUtil.importFromXML(srv)}" />
                </s:NavigatorContent>
           </mx:ViewStack>
           
           
      </s:WindowedApplication>
      
       
      

       

       

      Now when I run this I get a prompt that is telling me that if the program is already running to stop the program... I have no idea what program it is that i'm running that would prompt that type of dialogue box.

       

      I also get these errors:

       

       

      Unexpected processing instruction encountered and will be ignored. Found: type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css" IFCJ.mxml /IFCJ/src Unknown Flex Problem

      Unexpected processing instruction encountered and will be ignored. Found: type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl" IFCJ.mxml /IFCJ/src Unknown Flex Problem
      Is there anything that I am not doing right here?
      Any help would really be appreciated,
      Thank You