Foros del Web » Creando para Internet » Flash y Actionscript »

createTextField desde Array

Estas en el tema de createTextField desde Array en el foro de Flash y Actionscript en Foros del Web. Estoy intentando algo asi, pero no va. cateproductos= new Array("A","B","C","D","E"); myformat = new TextFormat(); myformat.color = 0xff0000; for(i=0; i<cateproductos.length; ++i){ createTextField('textobot'+i,500+i,84,8,80,30); with(textobot+i){ border = true; ...
  #1 (permalink)  
Antiguo 25/04/2005, 23:37
 
Fecha de Ingreso: mayo-2003
Mensajes: 866
Antigüedad: 20 años, 11 meses
Puntos: 0
createTextField desde Array

Estoy intentando algo asi, pero no va.
cateproductos= new Array("A","B","C","D","E");
myformat = new TextFormat();
myformat.color = 0xff0000;
for(i=0; i<cateproductos.length; ++i){
createTextField('textobot'+i,500+i,84,8,80,30);
with(textobot+i){
border = true;
type='static';
multiline=false;
wordwrap=true;
selectable=false;
text=cateproductos[i];
this.textobot+i.setTextFormat(myformat);
}

}
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:03.