Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/11/2003, 11:25
Avatar de BeN
BeN
 
Fecha de Ingreso: agosto-2003
Ubicación: Mexico, D.F.
Mensajes: 281
Antigüedad: 20 años, 8 meses
Puntos: 0
suponiendo qe estas en flash mx 2004 Profesional.. es asi:


coloca en tu stage un radiobutton y ponle el nombre de instancia radio, y un textinput y colocale el nombre de instancia texto, luego bajate un button y colocale el siguiente codigo:

on(click){
_root.texto.text='prueba';
trace(_root.radio.selected);
}

con: " _root.texto.text " haces referencia al texto de tu textinput

y con: " _root.radio.selected " haces referencia a tu radiobutton, esa funcion te devuelve true si esta seleccionado o false si no lo esta.


Ya con esto solo debes declarrar tus variables asi:

radio1=_root.radio.selected;
texto1=_root.texto.text;

y esas variables guardaran tanto el texto como si el radiobutton estaba marcado o no lo estaba.
__________________
...everything under the sun is in tune
But the sun is eclipsed by the moon.