Comunidad de diseño web y desarrollo en internet online

Color del texto en un TextArea

Citar            
MensajeEscrito el 27 Ene 2009 05:00 am
Hola....estoy tratando de cambiar el color del texto en un componente TextArea y pareciera que es un bug de flash 8.....no cambia con ningúna fórmula ..........la linea de código que estoy usando (y la he cambiado de todas las formas que setStyle permite) es esta:

Código :

_global.styles.TextArea.setStyle("color", 0xffffff);

Gracias e antemano por la ayuda.......

Por zapata

46 de clabLevel



Genero:Masculino  

Venezuela

firefox
Citar            
MensajeEscrito el 27 Ene 2009 06:14 am
Prueba con esto:

Código ActionScript :

tuTextArea.html = true;
tuTextArea.text = "<span style="color: #0000FF">Tu texto</span>";

Por LongeVie

Claber

1741 de clabLevel

1 tutorial

Genero:Masculino  

En un lugar, re moto.

firefox
Citar            
MensajeEscrito el 27 Ene 2009 06:15 am
ups

Código ActionScript :

tuTextArea.text = "<span style=\"color: #0000FF\">Tu texto</span>"; 

Por LongeVie

Claber

1741 de clabLevel

1 tutorial

Genero:Masculino  

En un lugar, re moto.

firefox
Citar            
MensajeEscrito el 27 Ene 2009 06:40 am

Código ActionScript :

texto.setStyle("color", 0xabcdef);
texto.text="prueba";


a mi me funciono

un textArea (nombre de instancia "texto"
dos instancias de un movieclip (btn1 y btn2)
y esto en acciones

Código ActionScript :

texto.setStyle("color", 0xabcdef);
texto.text="prueba";
btn1.onPress = function() {
   texto.setStyle("color", 0x000000);
}
btn2.onPress = function() {
   texto.setStyle("color", 0xaaaaaa);
}

Por tribak

Claber

2448 de clabLevel

6 tutoriales

Genero:Masculino   Héroes

Fotógrafo o algo

firefox

 

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