Código :
ventana = tipo; // se supone 0 o 1
if (ventana == 0){
loadMovie(urlarchivo, img);
fondo._visible = false;
txt._visible = false;}
else{
if (fondo._visible == false){//2 tipos, caja de texto grande
txt._height = 290;
txt._width = 210;
txt._x = 5;
txt._y = 5;}
else{//caja de texto chica
txt._height = 250;
txt._width = 170;
}
}
ahora, en el escenario, habran 3 de estas "ventanas" digamos ven01, ven02, etc..
como hago pa poner codigo en este escenario e indicar q tipos son?
osea algo como...
ven01.tipo = 0; // <----¿se pone asi pa variables?
urlarchivo = fhkdhd //se sacara de un xml
ven02 tipo = 1;
fondo = visible
ven01.txt.text = fhgfjhd // xml, etc
PD: hay talvés alguna forma abreviada de miXML.firstChild.firstChild.firstChild.firstChild;.. por nombre del tag directamente?
thanks
