Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/07/2006, 17:40
Avatar de ciberpato
ciberpato
 
Fecha de Ingreso: agosto-2004
Mensajes: 142
Antigüedad: 19 años, 8 meses
Puntos: 1
Bandit, tengo el siguiente scrip que genera un texto dinámico en el flash, pregunta, el href="botonera.swf" , ¿se comporta como un loadMovieNum, es decir se carga dentro del main.swf del cual se llama sin abrir otra página?

System.useCodepage=true;
var noticias_xml:XML = new XML();

noticias_xml.ignoreWhite = true;

noticias_xml.onLoad = function(ok){
if(ok) listar_noticias(this.firstChild.childNodes);
else trace('no se cargó correctamente');
}

noticias_xml.load('noticias.xml');

var estilo_noticia = new TextField.StyleSheet();
estilo_noticia .load('estilo.css');

listar_noticias = function(noticias:Array):Void{

with(noticias_mc.noticias_txt){
multiline = true; wordWrap = true; html = true; autoSize = true; selectable = true; styleSheet = estilo_noticia;
}
for(n=0;n<noticias.length;n++) {
noticias_mc.noticias_txt.htmlText += '<br/><p class="fecha">'+noticias [n].attributes.fecha+'</p>';
noticias_mc.noticias_txt.htmlText += '<p class="titulo"><a href="main.swf">'+noticias[n].attributes.titulo+'</a></p>';
noticias_mc.noticias_txt.htmlText += '<p class="descripcion">'+noticias[n].attributes.descripcion+'</p>';
noticias_mc.noticias_txt.htmlText += '<p>--------------------------------------------------------</p><br/>';
}

noticias_mc.setMask(mascara);

noticias_mc.onEnterFrame = function(){
this._y--;
if(this._y < mascara._y-this._height) this._y = mascara._y+mascara._height;
}
}
stop();

Porque la idea es que en flash como te explicaba anteriormente, pueda generar links en forma dinámica desde una tabla mysql, en mi caso lo carga desde un xml donde se tiene nombre del link y el archivo swf a cargar.