Comunidad de diseño web y desarrollo en internet online

crear n text input al precionar un boton

Citar            
MensajeEscrito el 09 Sep 2008 02:47 am
hola
necesito la siguiente ayuda estoy haciendo un formulario en air y necesito q al usuario precionar un boton se agrege un text input y luego de eso con otro boton q me lea toda esa informacion y mela muestre en un text
saludos y espero q me puedan responder :)

Por anikilatorbeta

42 de clabLevel



 

firefox
Citar            
MensajeEscrito el 09 Sep 2008 12:40 pm
Para agregar un textinput

Código ActionScript :

var miText:TextInput = new TextInput()
miText.name = "micampo"
miText.id = "micampo"
unCanvas.addChild(miText)


Le pongo name y id para que sea ubicable (por getChildByName por ejemplo) unCanvas es el lu gar donde lo agregas, es decir, tienes que agregarlo a un contenedor válido

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 10 Sep 2008 03:34 am
muchas gracias eso era :D
pero aca dejo un ejemplo mas elaborado para si alguien tiene mi misma duda

Código :


 
         var nombre:TextInput=new TextInput();
         nombre.id="nombre_"+i;
         nombre.name="nombre_"+i;
         formdatos.addChild(nombre);
         i++;
------------------
         var algo:Label=new Label();
         var tem:TextInput=new TextInput();
                        tem=formdatos.getChildByName("nombre_"+i) as TextInput;
                        algo.text = tem.text;
         formdatos.addChild(algo);


saludos

Por anikilatorbeta

42 de clabLevel



 

firefox

 

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