Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/01/2011, 04:00
ritipop
 
Fecha de Ingreso: enero-2011
Mensajes: 3
Antigüedad: 14 años, 1 mes
Puntos: 0
Problema al cargar menú acordeón

Buenos días comunidad, paso a exponer mi problema,

Para un proyecto flash en el que estoy trabajando me descargué un menú acordeón y lo pude modificar con éxito. El problema viene cuando quiero cargar la película swf que lo contiene en otra dentro de un mc; el menú acordeón no funciona.

Mi nivel de programación flash és básico, así que agradecería que algún alma caritativa me echase una mano.

Gracias,
Jorge

Este es el código del menú acordeón:

stop();
speed = 10;
initial_width = 70;
target_width = 770;
sp = rect1._x=-70;
this.createEmptyMovieClip("emptymc",0);
emptymc.onEnterFrame = function() {
for (i=1; i<=11; i++) {
if (_root.hit.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root["rect"+i].hitTest(_root._xmouse, _root._ymouse, true)) {
new_x = (_root.sp-(70*(i-1)))-rect1._x;
rect1._x += new_x/speed;
n_width = target_width-_root["rect"+i]._width;
_root["rect"+i]._width += n_width/speed;
} else {
n_width2 = initial_width-_root["rect"+i]._width;
_root["rect"+i]._width += n_width2/speed;
}
} else {
new_x = _root.sp-rect1._x;
rect1._x += new_x/(speed+50);
n_width2 = initial_width-_root["rect"+i]._width;
_root["rect"+i]._width += n_width2/(speed-1);
}
_root["rect"+(i+1)]._x = _root["rect"+i]._x+_root["rect"+i]._width;
_root["movie"+i]._x = _root["rect"+i]._x-1;
}
};