1 Reply Latest reply on Mar 12, 2012 10:08 PM by kglad

    How can i embed a rss feed to a Flash site?

    fificienta

      I already made a rss feed. That means i have created a xml file with the rss elements and save it. This is the code:

       

      <?xml version="1.0" encoding="ISO-8859-1" ?>

      <rss version="2.0">

        <channel>

         <title>RSS Guia Facil</title>

         <link>

      http://es.geocities.com/rss_guia_facil.html

         </link>

         <description>Guia fácil y sencilla sobre el formato RSS</description>

         <item>

          <title>Qué es el RSS</title>

          <link>http://es.geocities.com/rss_guia_facil/que_es_rss.html</link>

          <description>Visita la Guía Fácil del RSS para saber qué es el

                      formato RSS</description>

         </item>

         <item>

          <title>Para qué sirve el RSSl</title>

          <link>

             http://es.geocities.com/rss_guia_facil/para_que_sirve_rss.html

          </link>

          <description>

          Visita la Guía Fácil del RSS y conoce para qué sirve el

          formato RSS

          </description>

         </item>

         <item>

          <title>Cómo se usa el RSS</title>

          <link>

             http://es.geocities.com/rss_guia_facil/como_se_usa_rss.html

          </link>

          <description>

          Visita la Guía Fácil del RSS para saber cómo usar el

          formato RSS

         </description>

        </item>

      </channel>

      </rss>

       

      Now i wanna embed the option of rss feed in my website, but it is made in Flash. I have already the code in html for this, it would be like this:

       

         <a type="application/rss+xml" href="nombre de tu canal RSS.xml">

      <img src="imagen que quieres que sirva de enlace.gif">

         </a>

       

      But I don't know how to "translate" this code into an actionscript....can anybody help me please!!!???

       

      Thak u for reading

        • 1. Re: How can i embed a rss feed to a Flash site?
          kglad Adobe Community Professional & MVP

          normally, an rss feed is loaded from another domain.  it looks like you've copied an rss feed and saved it as a local file.

           

          if you want to use as2 to load a local xml file, use the xml class.  if you want to load the cross-domain rss feed, use the loadvars class to load the return from a server-side script (eg, php) that loads the cross-domain rss feed.