Flash - Scroll Text con HTML y CSS

 
Vista:

Scroll Text con HTML y CSS

Publicado por DaRo_ (1 intervención) el 10/05/2005 17:12:49
Hola! He creado películas individuales conteniendo un scroll text al que le añadí html tags y una hoja de estilos de la siguiente manera:

//Crea un nuevo objeto hoja de estilo
var myCSS = new TextField.StyleSheet();

//Especitifa la ubicacion del arhicvo CSS
var cssURL = "estilo.css";

//Texto con html y con estilo
sText1="<p class='tits'>Nuestra Empresa</p>n";
sText1+="etc...n";
sText1+="etc...n";

//Carga archivo CSS
myCSS.load(cssURL);
myCSS.onLoad = function(success) {
if (success) {
/* If the style sheet loaded without error,
assign it to the text object, and assign the HTML text to the
text field*/
myText.styleSheet = myCSS;
myText.text = sText1;
}
};

Todo anda perfecto en las películas individuales, el tema es que yo llamo las individuales desde una central:
loadMovieNum("Index.swf", 1);

O si no al pulsar un botón:
on (release) {
unloadMovieNum(1);
loadMovieNum("Mantenim.swf", 1);
}

Entonces, cuando hago estas llamadas, la película carga correctamente, pero la hoja de estilos no tiene ningún efecto! es como si no existiera, y todo el formateado del texto se pierde.

Acá está el archivo si quieren verlo para entenderme mejor: www.sanpedrodecolalao.com/cymap
Por favor! necesito cualquier sugerencia lo antes posible, muchas gracias!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder