Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/05/2005, 09:40
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Hola walvaRo:
Crea un MC y le pones como nombre figura, en su interior dibujas el triángulo 5 x 5 centrado en el punto de registro. Lo vinculas.
Crea otro MC con el nombre de boton allí haces un campo dinámico para un tamaño de letra 16, le pones como nombre de instancia. texto y lo vinculas.
En la capa 1 frame de la línes de tiempo principal coloca éste código:
// -- declaramos las variables
columnas = 1;
filas = 5;
posx = 20;
posy = 20;
x = 20;
y = 50;
// aquí construimos el menú
this.attachMovie("figura", "figura", 100);
for (i=0; i<(filas*columnas); i++) {
attachMovie("boton", "boton"+i, i);
item = eval("boton"+i);
if (impresiones == filas) {
x += 100;
y = 50;
}
item._x = x;
item._y = y;
item.texto.autoSize = true;
item.texto.text = item._name;
impresiones += 1;
y += 16;
// -- asignamos los valores _x _y del botón a una variable
item.onRollOver = function() {
posx = this._x-5;
posy = this._y;
};
}
// -- movimiento de la figura
this.onEnterFrame = function() {
figura._x = (posx+3*figura._x)/4;
figura._y = (posy+3*figura._y)/4;
};

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/