La idea es recuperar de una bbdd de unos datos, cosa que he conseguido, pero al intentar mostrar los datos si aplico la hoja de estylos no funciona
en el fotograma 3 tengo esto:
Código :
var miEstiloCSS = new TextField.StyleSheet();
miEstiloCSS.load("estilosflash.css");
miEstiloCSS.onLoad = function(resultado) {
if (resultado) {
// mostramos los nombre de los estilos
trace(this.getStyleNames());
}
};
y luego en varios sitios quiero recuperar la hoja d estilos y lo hago asi:
Código :
on (release) {
gotoAndStop("snow");
Obj2 = new LoadVars();
// Obj2.load("galerias.php?tipo=s");
Obj2.load("galerias.txt");
myTexto2.styleSheet = _root.miEstiloCSS;
trace(_root.miEstiloCSS.getStyleNames());
myTexto2.border=true;
myTexto2.htmlText = "<p class=titulo>Cargando...</p>";
trace (myTexto2.htmlText);
System.useCodepage = true;
Obj2.onLoad = function() {
myTexto2.htmlText = "<br><p class=titulo>G A L E R I A S D E F O T O S S O B R E S N O W</p><br><br>";
if (Obj2.total>0) {
codigo = Obj2.codigo.split("@@@");
nombre = Obj2.nombre.split("@@@");
separador = "-------------------------------------------------------------------------------------------";
for (var _local1 = 0; _local1<Obj2.total; _local1++) {
myTexto2.htmlText += "<a href=\"galeria.php?galeria="+codigo[_local1]+"\" target=\"nueva\">"+nombre[_local1]+"</a>"+"<br>"+separador+"<p><p>";
trace (myTexto2.htmlText);
}
} else {
myTexto2.htmlText += "<b>No se han creado galerias aun</b>";
}
};
}Gracias por las ayudas.
Un saludo.
