Comunidad de diseño web y desarrollo en internet online

problemas introduciendo texto dentro de un MC

Citar            
MensajeEscrito el 26 May 2008 07:57 pm
saludos Hermanos CLAB, tengoproblmeas tratando de introducir un texto dinamico dentro de un MC.

Código :

var botonera_mc:botonfinal=new botonfinal;
addChild(botonera_mc);


aqui tengo mi MC pero dentro de el quiero introducir un texto

Código :

var campo:TextField = new TextField();
campo.autoSize = TextFieldAutoSize.LEFT
campo.selectable=false;
campo.htmlText ="<font face='verdana' color='#ffffff' size='12'>"+textoBoton+"</font>";
this.addChild(event.currentTarget.campo);

Por tomili

36 de clabLevel



Genero:Masculino  

Arequipa-Perú

firefox
Citar            
MensajeEscrito el 27 May 2008 12:15 pm
Prueba:

this.addChild(campo);

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 27 May 2008 12:18 pm
Para añadir el textField unicamente has de colocar addChild(campo);.. no se para que utilizas ese evento..

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

firefox

 

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