Tema: Leer RSS
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/06/2007, 20:41
Jona77
 
Fecha de Ingreso: mayo-2006
Mensajes: 178
Antigüedad: 18 años
Puntos: 7
Leer RSS

Hola Gente

Basandome en la ayuda de flex builder estoy armando un lector de RSS.

El problema es que no funciona si en HTTPServices le pongo la dirección real del archivo XML, pero si le pongo una dirección local anda sin problemas.

El código:

Código:
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="origen.send()">
<mx:HTTPService id="origen" url="http://www.infobae.com/adjuntos/html/RSS/tecnologia.xml">
</mx:HTTPService>
<mx:Panel y="65" width="680" height="353" layout="absolute" title="{origen.lastResult.rss.channel.title}" horizontalCenter="-37">
<mx:DataGrid x="10" y="10" id="contenido" dataProvider="{origen.lastResult.rss.channel.item}" width="640" height="293">
<mx:columns>
<mx:DataGridColumn headerText="Titulo" dataField="title"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
<mx:Button y="25" label="InfoBAE" horizontalCenter="-340" id="verInfobae"/>
<mx:Button y="25" label="Google" horizontalCenter="-262" id="verGoogle"/>
<mx:TextArea y="426" width="680" height="120" id="preview" htmlText="{contenido.selectedItem.description}" horizontalCenter="-37"/>
<mx:LinkButton y="554" label="Leer Completo" horizontalCenter="252">
<mx:click>navigateToURL(new URLRequest(contenido.selectedItem.link));</mx:click>
</mx:LinkButton>
</mx:Application>
La segunda cosa que quiero hacer es que al tocar los botones de la parte superior se conecte a un RSS u otro y me muestre los contenidos. Esto si que NO tengo idea de como hacerlo.

Acepto todas las sugerencias posibles.

Gracias.