disculpen, no fue holgazanería haber dejado el link con los archivos fuente; simplemente pensé que le iba a ser mas útil a quien me quiera ayudar, ver los archivos directamente en vez de los códigos.
pero bueno, acá están los códigos que uso y espero que estos les ayuden a ayudarme
este es el actionscript usado en el primer frame:
Código :
stop();
_root.currMovie = "1";
container.loadMovie(_root.currMovie+".swf");
System.useCodepage = true;
function CargarPelicula1() {
if (_root.currMovie == undefined) {
_root.currMovie = "1";
container.loadMovie("1.swf");
} else if (_root.currMovie != "1") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "1";
container.play();
}
}
}
function CargarPelicula2() {
if (_root.currMovie == undefined) {
_root.currMovie = "2";
container.loadMovie("2.swf");
} else if (_root.currMovie != "2") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "2";
container.play();
}
}
}
function CargarPelicula3() {
if (_root.currMovie == undefined) {
_root.currMovie = "3";
container.loadMovie("3.swf");
} else if (_root.currMovie != "3") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "3";
container.play();
}
}
}
// Create a new style sheet and LoadVars object
var myVars:LoadVars = new LoadVars();
var styles = new TextField.StyleSheet();
// Location of CSS and text files to load
var txt_url = "news.htm";
var css_url = "news.css";
// Load text to display and define onLoad handler
myVars.load(txt_url);
myVars.onData = function(content) {
storyText = content;
};
// Load CSS file and define onLoad handler:
styles.load(css_url);
styles.onLoad = function(ok) {
if (ok) {
// If the style sheet loaded without error,
// then assign it to the text object,
// and assign the HTML text to the text field.
news.styleSheet = styles;
news.text = storyText;
}
} este es el archivo .htm que contiene las novedades (el texto y links son de ejemplo):
Código :
<P> </P>
<P><A HREF="http://www.macromedia.com/">url link</A><BR>
<A HREF="asfunction:CargarPelicula1">function link 1</A><BR>
<A HREF="http://www.macromedia.com/software/">url link</A><BR>
<A HREF="asfunction:CargarPelicula2">function link 2</A><BR>
<A HREF="http://www.macromedia.com/software/flash/flashpro/">url link</A><BR>
<A HREF="asfunction:CargarPelicula3">function link 3</A><BR>
</P>
<P>¡Flash Professional 8 es el entorno de autoría más avanzado del mercado para la creación de sitios Web interactivos, experiencias digitales y contenidos para dispositivos móviles!<br>
Flash Professional 8 permite a los profesionales creativos diseñar y crear contenido interactivo dinámico con video, gráficos y animación obteniendo sitios Web, presentaciones o contenido para dispositivos móviles verdaderamente únicos e impactantes.</P>
<P><A HREF="http://www.macromedia.com/">url link</A>, <A HREF="asfunction:CargarPelicula1">function link 1</A>, <A HREF="http://www.macromedia.com/software/">url link</A>, <A HREF="asfunction:CargarPelicula2">function link 2</A>, <A HREF="http://www.macromedia.com/software/flash/flashpro/">url link</A>, <A HREF="asfunction:CargarPelicula3">function link 3</A>.</P>
<P> </P>
(los caracteres son directos, por ej.: ñandú en vez de ñandú)
este es el archivo .css:
Código :
BODY {
color: #003300;
}
A:LINK, A:VISITED {
color: #009900;
text-decoration: none;
}
A:HOVER, A:ACTIVE {
color: #006600;
text-decoration: underline;
}
.H {
color: #006600;
} la fuente la incorpore llendo a biblioteca, new font - linkage, export for actionscript - en el text field eleji la fuente que incorpore (la que tiene asterisco) y le di las mismas propiedades (por ej.: tamaño) que le habia dado cuando la incorpore en la biblioteca y listo.
y ahora mis preguntas son las mismas:
1.- ¿incorpore la pixel font de manera apropiada?
2.- ¿porque los links url no funcionan? (funcionan solo cuando pruebo la pelicula)
3.- ¿por que a veces el texto o links se mueven cuando paso el mouse por arriba?
4.- creo que el actionscript no esta del todo limpio ¿alguna idea para optimizarlo y/o reducirlo?
muchas gracias y disculpen de nuevo...
pd: ya lo solucione, los caracteres especiales ya se muestran correctamente.