Comunidad de diseño web y desarrollo en internet online

boton

Citar            
MensajeEscrito el 29 Ene 2007 10:21 am
Hola,

Estoy teniendo mas de un problema, ya que creo un array de botones, los posiciono (hasta ahi todo bien) y cuando les voy a asignar el tamaño (_height y _width), el boton desaparece...

El codigo es este (mascara es otro arrays de mascaras que esta declarado antes):

Código :

tamx=100;
tamy=100;
numcajas=4;

boton = new Array;


for (i=1;i<(numcajas+1);i++)
{

boton[i] = this.attachMovie("web_btn","boton"+i+"", this.getNextHighestDepth());





with (boton[i])
{
   _x = mascara[i]._x;
   _y = mascara[i]._y;

   _width = tamx;
                _height = tamy;   
}


[zah]Usa las etiquetas code para postear código[/zah]

Por bilbao

13 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 29 Ene 2007 11:56 am
Haz un trace de mascara[i]._x y mascara[i]._y, también de tamx y tamy, que posiblemente entienda como boton[i].tamx y eso da udefined.

Por Zah

BOFH

4290 de clabLevel

27 tutoriales
5 articulos

  Bastard Operators From Hell Editores

Zaragoza, España

firefox

 

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