Cita:
gracias desde ya cualquier opinion! import flash.utils.Timer;
import flash.events.TimerEvent
var urlRssLoad:String = "http://feeds2.feedburner.com/Twitter/Polygonhomes";
//"http://www.clarin.com/diario/hoy/um/sumariorss.xml";
var titulos:Array = new Array();
var textos:Array = new Array();
var urlRSS:URLRequest = new URLRequest(urlRssLoad);
var loader:URLLoader = new URLLoader(urlRSS);
loader.addEventListener(Event.COMPLETE, loadComplet);
var cant:int = 0;
function loadComplet(o:Event):void {
var miXML:XML =new XML(o.target.data);
miXML.ignoreWhitespace = true;
caja.htmlText = "";
cant = miXML..item.length();
for(var i:int = 0; i<cant;i++)
{
titulos[i] = miXML..item[i].title;
textos[i] = miXML..item[i].description;
}
cargaTexto(0);
var myTimer:Timer = new Timer(5000)
myTimer.addEventListener(TimerEvent.TIMER, cargaTexto);
myTimer.start();
}
var num:int = 0;
function cargaTexto(e:*):void
{
caja.wordWrap = true;
caja.multiline = true;
caja.htmlText = "<p>"+ textos[num]+"</p><br>";
num++;
if(num == cant) num=0;
}
import flash.events.TimerEvent
var urlRssLoad:String = "http://feeds2.feedburner.com/Twitter/Polygonhomes";
//"http://www.clarin.com/diario/hoy/um/sumariorss.xml";
var titulos:Array = new Array();
var textos:Array = new Array();
var urlRSS:URLRequest = new URLRequest(urlRssLoad);
var loader:URLLoader = new URLLoader(urlRSS);
loader.addEventListener(Event.COMPLETE, loadComplet);
var cant:int = 0;
function loadComplet(o:Event):void {
var miXML:XML =new XML(o.target.data);
miXML.ignoreWhitespace = true;
caja.htmlText = "";
cant = miXML..item.length();
for(var i:int = 0; i<cant;i++)
{
titulos[i] = miXML..item[i].title;
textos[i] = miXML..item[i].description;
}
cargaTexto(0);
var myTimer:Timer = new Timer(5000)
myTimer.addEventListener(TimerEvent.TIMER, cargaTexto);
myTimer.start();
}
var num:int = 0;
function cargaTexto(e:*):void
{
caja.wordWrap = true;
caja.multiline = true;
caja.htmlText = "<p>"+ textos[num]+"</p><br>";
num++;
if(num == cant) num=0;
}