AUMENTE LA PESTAÑA MENU 6... CUANDO LE DAS CLICK
hace el movimiento y se dirige a la posicion
pero ya no aparecen los demas datos y el movie clip ya esta en la libreria
pero no encuentro como posicionarlo en el MENU 6 ( -20395, 30 )
var my_array = new Array();
my_array[0] = "MENU 1";
my_array[1] = "MENU 2";
my_array[2] = "MENU 3";
my_array[3] = "MENU 4";
my_array[4] = "MENU 5";
my_array[5] = "MENU 6"; // AGREGUE ESTE LINK
var i = 1;
while (i <= 6) // CAMBIE EL BALOR PARA 6 LIKNS
{
var butNum = this["b" + i];
butNum.index = i;
butNum._mc._txt.text = my_array[i - 1];
butNum._mc2._txt.text = my_array[i - 1];
butNum.onRollOver = function ()
{
if (this.index != _root.link)
{
this.gotoAndPlay("over");
} // end if
};
butNum.onRollOut = function ()
{
if (this.index != _root.link)
{
this.gotoAndPlay("out");
} // end if
};
butNum.onRelease = function ()
{
if (this.index != _root.link && _root.sel != true)
{
_root.MC_menu["b" + _root.link].gotoAndPlay("out");
_root.link = this.index;
var _loc3 = new Sound();
_loc3.attachSound("pSound");
switch (_root.link)
{
case 1:
{
var _loc1 = new mx.transitions.Tween(_root.MC_content.pages, "_x", mx.transitions.easing.Regular.easeOut, _root.MC_content.pages._x, 0, 30, false);
break;
}
case 2:
{
var _loc7 = new mx.transitions.Tween(_root.MC_content.pages, "_x", mx.transitions.easing.Regular.easeOut, _root.MC_content.pages._x, -4087, 30, false);
break;
}
case 3:
{
var _loc6 = new mx.transitions.Tween(_root.MC_content.pages, "_x", mx.transitions.easing.Regular.easeOut, _root.MC_content.pages._x, -8185, 30, false);
break;
}
case 4:
{
var _loc5 = new mx.transitions.Tween(_root.MC_content.pages, "_x", mx.transitions.easing.Regular.easeOut, _root.MC_content.pages._x, -12286, 30, false);
break;
}
case 5:
{
var _loc4 = new mx.transitions.Tween(_root.MC_content.pages, "_x", mx.transitions.easing.Regular.easeOut, _root.MC_content.pages._x, -16395, 30, false);
break;
}
case 6:
{
var _loc2 = new mx.transitions.Tween(_root.MC_content.pages, "_x", mx.transitions.easing.Regular.easeOut, _root.MC_content.pages._x, -20395, 30, false);
break;
}
} // End of switch
_loc3.start();
} // end if
};
++i;
} // end while
_root.link = 1;
b1.gotoAndStop(15);