Comunidad de diseño web y desarrollo en internet online

Button Text Format

Citar            
MensajeEscrito el 30 Jun 2008 04:42 pm
Holas a todos,
Ayuda por favor. Tengo tres botones con tres iconos
* button_negrita
* button_cursiva
* button_subrrayado

el cual tengo un text o un textarea

y tengo varos textos el cual se deberia dar formato segun que presione cualquier button
negrita, cursiva, subrrayado, etc.

si selecciono el texto y presiono en boton negrita el texto seleccionado deberia estar en negrita y en susesivo con los demas botones.

gracias por todo

Por zonwebperu

24 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 30 Jun 2008 06:46 pm
Para subrayar:
on(release){
**campo de texto dinamico**.htmlText = "<u>texto</u>"
}

Negrita:
on(release){
**campo de texto dinamico**.htmlText = "<b>texto</b>"
}
Para cursiva:
on(release){
**campo de texto dinamico**.htmlText = "<i>hola</i>"
}


Tienes de substituir lo que esta entre asteriscos ** por el campo de texto dinamico

Por -cibernetik-

72 de clabLevel



 

msie7
Citar            
MensajeEscrito el 30 Jun 2008 09:55 pm
he intentado hacer algo pero si hago de esta manera no me funciona para .as3

bold.onRelease = function ()
{
format = new TextFormat();
format.bold = true;
caja_text.setTextFormat(format);
};

Por zonwebperu

24 de clabLevel



Genero:Masculino  

firefox

 

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