Comunidad de diseño web y desarrollo en internet online

cambiar color de texto

Citar            
MensajeEscrito el 03 Mar 2005 04:58 pm
hola!
que orden debo darle al boton para que cambie el color del texto q esta contenido en un scroll?
en mi caso, el escroll contiene varias cajas de texto, una debajo de otra (en_y), y kiero que el texto del tema que se encuentre viendo el usuario se vea en negro, y que el texto q esta abajo de ese, se vea en otro color "menos legible".

se puede cambiar directamente con alguna orden del boton hacia el texto?

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox
Citar            
MensajeEscrito el 03 Mar 2005 05:37 pm
hmmm yo lo realizo algo asi

Código :

var tf_fomato_00:TextFormat = new TextFormat();
var tf_fomato_01:TextFormat = new TextFormat();

tf_formato_00.color = x0FFFFFF;
tf_formato_01.color = x0000000;
on(rollOver){
texto.setTextFormat(tf_formato_00);
}
on(rollOut){
texto.setTextFormat(tf_formato_01);
}


Saludos :D

Por flasher

Invitado



 

clabbrowser
Citar            
MensajeEscrito el 03 Mar 2005 05:57 pm
gracias por contestar, pero...como lo utilizas? :oops: :oops:

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox
Citar            
MensajeEscrito el 03 Mar 2005 06:04 pm
como lo uso
esta en el rollOver y el RollOut

hmm estara tienes el swf para verlo y saber mejor aque nos vamos.

Saludos :D

Por flasher

Invitado



 

clabbrowser
Citar            
MensajeEscrito el 03 Mar 2005 06:25 pm
claro brother aki de dejo el link

lo q deseo lograr es que al dar click sobre, digamos, "season" ademas de colocarse el texto del scroll en esa coordenada (que ya esta), kisiera q los demas textos se tornaran grises para poder resaltar el contenido elegido. Cada texto esta en su propia caja segun el menu.

saludos

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox
Citar            
MensajeEscrito el 03 Mar 2005 06:36 pm
ya veo... checa con

Código :

txt_colores.html   =   true;
txt_colores.htmlText = "<font color='#CC3300'>opcion_1</font> <br> <font color='#000000'>opcion_2</font>";


Saludos :D

Por flasher

Invitado



 

clabbrowser
Citar            
MensajeEscrito el 03 Mar 2005 06:39 pm
eeerrrr, ahora si me mataste brother :lol: :lol: :lol: :lol:

no tengo idea de como usar eso :crap: :crap: :crap: :crap: :crap: :oops: :oops: :oops: :oops: :oops: :oops:

aki tengo el FLA...no se si te sirva para guiarme un poco :oops:

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox
Citar            
MensajeEscrito el 03 Mar 2005 07:45 pm
bueno antes q nada ya no seran textos estaticos sino dinamicos

lo otro seria
en un boton

Código :

on(press){
txt_texto_01.html   =   true;//<---habilita q puedas colocar html 
txt_texto.htmlText = "<font color='#CC3300'>contenido</font>;//le pones el html

txt_texto_02.html   =   true;
txt_texto_02.htmlText = <font color='#000000'>opcion_2</font>";//le cambias el color a los otros asi
}


Saludos

Por flasher

Invitado



 

clabbrowser
Citar            
MensajeEscrito el 03 Mar 2005 08:53 pm
oks, de usarlo asi, tendria q sustituir la plabra "contenido" por el texto q kiero q vaya, no?

errrr... no hay algo asi como el setRGB? o si solo puedo usar setRGB como le hago? :oops: :oops:

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox
Citar            
MensajeEscrito el 03 Mar 2005 09:25 pm

flasher escribió:

Código :

on(press){
txt_texto_01.html   =   true;//<---habilita q puedas colocar html 
txt_texto.htmlText = "<font color='#CC3300'>contenido</font>;//le pones el html

txt_texto_02.html   =   true;
txt_texto_02.htmlText = <font color='#000000'>opcion_2</font>";//le cambias el color a los otros asi
}


:? puse esto creo q lo mejor seria que uses este q es el primero q puse porque el anterior era si usabas un solo txt

Código :

var tf_fomato_00:TextFormat = new TextFormat();
var tf_fomato_01:TextFormat = new TextFormat();

tf_formato_00.color = x0FFFFFF;
tf_formato_01.color = x0000000;

on(press){
texto_00.setTextFormat(tf_formato_00);
texto_01.setTextFormat(tf_formato_01);
texto_01.setTextFormat(tf_formato_01);
texto_01.setTextFormat(tf_formato_01);
}

el setRGB
lo usarias para un MC, lo llena de un solo color

Saludos:D

Por flasher

Invitado



 

clabbrowser
Citar            
MensajeEscrito el 04 Mar 2005 12:19 am
gracias...ya he logrado resolverlo de esta forma

Código :

var txtFormato1 = new TextFormat();
txtFormato1.color = 0x000000;
var txtFormato2 = new TextFormat();
txtFormato2.color = 0xC4C4C4;


Código :

on (release) {
   _parent.texto.y = 173.5;
   _parent.texto.hunt.setTextFormat(txtFormato1);
   _parent.texto.trans.setTextFormat(txtFormato2);
   _parent.texto.gear.setTextFormat(txtFormato2);
   _parent.texto.season.setTextFormat(txtFormato2);
   _parent.texto.reserv.setTextFormat(txtFormato2);
}


espero tambien le sirva a alguien mas

muchas gracias..saludos

Por rosvel

SWAT Team

1311 de clabLevel

2 tutoriales
1 articulo
1 ejemplo

Genero:Masculino   SWAT

"la oficina"

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.