Comunidad de diseño web y desarrollo en internet online

Consulta: Componentes Radio Button

Citar            
MensajeEscrito el 19 Oct 2007 02:00 pm
Hola, les quería hacer una consulta sobre Componentes de flash. Tengo 5 Radio Button y un TextArea.

Los Radio Button serian estos:

- Prueba 0001
- Prueba 0002
- Prueba 0003
- Prueba 0004
- Prueba 0005

Entonces quiero que cuando se clickee algunos de estos, me lo muestre en el TextArea. Osea elijo el Radio Button que dice "- Prueba 0001", entonces en el TextArea tendria que decir "- Prueba 0001".

Alguien me podría ayudar???

Desde ya muchísimas Gracias!

Saludoss!!!

Por T1000

Claber

121 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 19 Oct 2007 02:27 pm

Por One

Claber

1488 de clabLevel

5 tutoriales

Genero:Masculino  

Programador Web

firefox
Citar            
MensajeEscrito el 19 Oct 2007 02:32 pm
Hola One, lo vi, pero como hago para pasar el nombre seleccionado a un TextArea???

Saludos y gracias por tu respuesta!

Por T1000

Claber

121 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 19 Oct 2007 02:34 pm
Basándonos en el tutorial:

Código :

...
alClicar.click = function(evento) {
   idtextarea.text=evento.target.selection.data;
};
...

Por One

Claber

1488 de clabLevel

5 tutoriales

Genero:Masculino  

Programador Web

firefox
Citar            
MensajeEscrito el 19 Oct 2007 02:35 pm
OK!!!! Gracias amigo lo pruebo y te digo!!!

Por T1000

Claber

121 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 19 Oct 2007 02:51 pm
Bueno lo probe One!

Cambie algo, borre los attachMovie, las cree yo y las instancie:

Código :

//Atacheamos los componentes
//attachMovie("RadioButton", "boton1", 1);
//attachMovie("RadioButton", "boton2", 2);
//attachMovie("RadioButton", "boton3", 3);

//Propiedades comunes de todos los botones
for (i=1; i<4; i++){
   _root["boton"+i].groupName = "webs";
   _root["boton"+i].labelPlacement = "left";
   _root["boton"+i]._y = _root["boton"+i]._y + (i*20);
}

//Botón 1
boton1.label = "Elecash.org";
boton1.data = "http://www.elecash.org";
//Botón 2
boton2.label = "Elecash blog";
boton2.data = "http://www.elecash.org/blog";
//Botón 3
boton3.label = "CristaLab.com"
boton3.data = "http://www.cristalab.com";

alClicar = new Object();
/*alClicar.click = function(evento){
   getURL(evento.target.selection.data, "_blank");
   trace("Has seleccionado el botón " + evento.target.selection);
} 
webs.addEventListener("click", alClicar);
*/
alClicar.click = function(evento) {   

    idtextarea.text=evento.target.selection.data;
};


Pero no consigo que me gargue al TextArea... me podrias ayudar??

Saludoss y gracias!!!

Por T1000

Claber

121 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 19 Oct 2007 03:42 pm
Probado y funcionando

Código :

//Atacheamos los componentes
attachMovie("RadioButton", "boton1", 1);
attachMovie("RadioButton", "boton2", 2);
attachMovie("RadioButton", "boton3", 3);

//Propiedades comunes de todos los botones
for (i=1; i<4; i++){
   _root["boton"+i].groupName = "webs";
   _root["boton"+i].labelPlacement = "left";
   _root["boton"+i]._y = _root["boton"+i]._y + (i*20);
}

//Botón 1
boton1.label = "Elecash.org";
boton1.data = "http://www.elecash.org";
//Botón 2
boton2.label = "Elecash blog";
boton2.data = "http://www.elecash.org/blog";
//Botón 3
boton3.label = "CristaLab.com"
boton3.data = "http://www.cristalab.com";

alClicar = new Object();

webs.addEventListener("click", alClicar);
alClicar.click = function(evento) {   
    idtextarea.text=evento.target.selection.label;
};

Por One

Claber

1488 de clabLevel

5 tutoriales

Genero:Masculino  

Programador Web

firefox
Citar            
MensajeEscrito el 14 May 2008 01:05 am
hola...

estoy necesitando hacer un formualrio con radio button, que sea sellecionable uno sólo del grupo y este sea enviado a través de un PHP.

el tutorial al que están linkeando no lo entiendo. podrán darme una mano?
abrazos, gracias.

Por boratlon

Claber

139 de clabLevel



 

msie7

 

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