Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/12/2009, 10:46
Avatar de DarkskullDA
DarkskullDA
 
Fecha de Ingreso: julio-2006
Mensajes: 698
Antigüedad: 17 años, 9 meses
Puntos: 13
Respuesta: Cómo poner solo los títulos ?

Código:
System.useCodepage = true; 
var indice:Number; 
var noticias_xml:XML; 

function cargarDatos(_indice:Number){
        var fecha:String;
        var titulo:String;
        var mensaje:String;
        var imagen:String;
        fecha = noticias_xml.firstChild.childNodes[_indice].attributes.fecha;
        titulo = noticias_xml.firstChild.childNodes[_indice].firstChild.firstChild.nodeValue;
        mensaje = noticias_xml.firstChild.childNodes[_indice].firstChild.nextSibling.firstChild.nodeValue
        imagen = noticias_xml.firstChild.childNodes[_indice].lastChild.firstChild.nodeValue
    ScrollBar.setScrollTarget(mensaje_txt);
    formStyleFormat             = new FStyleFormat;

        formStyleFormat.scrollTrack = "0xFFFFFF";
        formStyleFormat.highlight   = "0xFFFFFF";
        formStyleFormat.highlight3D = "0x6178EC";
        formStyleFormat.arrow         = "0x000099";
        formStyleFormat.face         = "0xAAAAAA";
        formStyleFormat.background  = "0x000000";
        formStyleFormat.shadow        = "0x6178EC";
        formStyleFormat.darkshadow    = "0x777777";
        
    formStyleFormat.addListener(ScrollBar);
    formStyleFormat.applyChanges();
        _root.mensaje_txt.htmlText = "";
        _root.mensaje_txt.htmlText += "<p><font color='#33CC00' size='15'><b>" + titulo + "</b></font></p>";
        _root.pantalla_mc.loadMovie(imagen);    
    }
    
indice=0;
noticias_xml = new XML();
noticias_xml.ignoreWhite = true;
noticias_xml.load("noticias.xml");
noticias_xml.onLoad = function(){
            cargarDatos(indice);            
    }
ps como0 ves solo mostramos el titulo en el mensaje_txt..
suerte,,
__________________
Curso Desarrollo De Aplicaciones IFrame Para Facebook Conoce la Graph Api, Javascript/PHP SDK, Dialogos, Pestañas, entre otros.