Comunidad de diseño web y desarrollo en internet online

como cargo un html en un txtArea?

Citar            
MensajeEscrito el 26 Oct 2006 01:55 am
Hola, como cargo un html en un txtArea?

muchas gracias!

Agustin

Por agustin_sp

4 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 26 Oct 2006 03:06 pm
Directo de la ayuda de flash.
TextArea.html
Disponibilidad
Flash Player 6 (6.0.79.0).

Edición
Flash MX 2004.

Sintaxis
textAreaInstance.html

Descripción
Propiedad; valor booleano que indica si el contenido del área de texto tiene el formato HTML (true) o no (false). Si el valor de la propiedad html es true, el contenido del área de texto es HTML. Si el valor de html es false, el área de texto no es HTML. El valor predeterminado es false.

Ejemplo
En el ejemplo siguiente se convierte el componente TextArea denominado my_ta en un área de texto HTML y luego se formatea el texto con etiquetas HTML.

En primer lugar, debe añadir una instancia del componente TextArea al escenario y asignarle el nombre my_ta; a continuación, añada el siguiente código al fotograma 1:

/**
Se requiere:
- Instancia de TextArea en el escenario (nombre de instancia: my_ta)
*/

var my_ta:mx.controls.TextArea;

my_ta.setSize(320, 240);
my_ta.html = true;
my_ta.text = "The <b>Royal</b> Nonesuch";

Leé toda la clase TextArea, espero te sirva, saludos.
Rafael.

Por RafaelTol

33 de clabLevel



Genero:Masculino  

México

msie
Citar            
MensajeEscrito el 27 Oct 2006 01:19 pm
muchas gracias por la respuesta, pero no quiero agregar manualmente texto html a un textArea, sino que quiero cargar un .html dentro de un textArea

Por agustin_sp

4 de clabLevel



Genero:Masculino  

firefox

 

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