Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/05/2005, 09:35
DaRo_
 
Fecha de Ingreso: mayo-2005
Mensajes: 2
Antigüedad: 18 años, 11 meses
Puntos: 0
Scroll Text con HTML y CSS

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!