Comunidad de diseño web y desarrollo en internet online

Obtener RadioButton - Urgente

Citar            
MensajeEscrito el 08 Sep 2009 12:13 am
Hola


Tengo un problema al querer obtener un RadioButton de un VBox, hago lo siguiente de:

for (var i:Number= 0; i < _numRadioButton ; i++) {
var _radioButton:RadioButton = y.getChildAt(i) as RadioButton;
Alert.show(" " +_radioButton);
}

donde y es un VBox obtenido anteriormente.

Y el Alert muestra null.


Les agrazco su ayuda de antemano.

Por ViriPA

8 de clabLevel



 

firefox
Citar            
MensajeEscrito el 08 Sep 2009 07:45 am
y es un mal nombre ya que es una palabra reservada. Luego recorre todos los hijos de tu VBox:

Código ActionScript :

for (var i:Number= 0; i < miVbox.numChildren ; i++) {
   trace(miVbox.getChildAt(i))
}


Usa trace, mejor que 8 alerts

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

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