ciao a tutti, vacanzieri mancati!
mentre il caldo arrostisce il mio cervello, un prolemino sorge come una bolla di magma dalla mia fumante testa.
sto lavorando con gli stylesheet consigliati qui:
http://flash-mx.html.it/tutorial/pri...?idtutorial=16
nel swf prodotto funziona tutto, ma siccome sto file va poi caricato su un level1, su un altro swf che fa da base, il file suddetto mi restituisce un errore.
mi chiedevo: che nello script (che segue), da qualche parte vada inserito "_level1"?
mi aiutate?
ecco lo script:
unction populateTextArea(nome) {
//inizializzo il componente TextArea
textArea_mc.html = true;
textArea_mc.wordWrap = true;
textArea_mc.multiline = true;
/******************************/
//Carico il CSS
stileCSS = new TextField.StyleSheet();
stileCSS.load(nome);
stileCSS.onLoad = function(success) {
if (success) {
var names_array = stileCSS.getStyleNames();
//trace(names_array.join("\n"));
//trace(names_array)
textArea_mc.styleSheet = stileCSS;
//textArea_mc.text = names_array.join("\n");
textArea_mc.text = "";
for (var i = 0; i<names_array.length; i++) {
/** Visualizza stili nell'Output
appStyle = stileCSS.getStyle(names_array[i]);
for (property in appStyle) {
propName = property;
propValue = appStyle[property];
trace(propName+" : "+propValue);
}
**/
textArea_mc.text += "<"+names_array[i]+">"+names_array[i]+"</"+names_array[i]+">
";
}
} else {
textArea_mc.text = "Errore nel caricamento del CSS!";
}
};
}
stop();
grazie...