Sigue sin funcionar
Este es el error que me da:
Error opening URL "file:///Macintosh%20HD/Users/huma06fustertorandell/Desktop/HUMà02/undefined"
Y este es el codigo entero:
var itens:Array = new Array ("info","contacto","PORFOLIO WEB","fotografia social", "fotografia de estudio", "fotografia industrial", "Galeria Prev Next", "Video edicion", "Filtro XML", "Elastico Motion", "Resize Style", "Tooltip", "Random Position", "Combo Box", "Galeria Prev Next", "Load Blur");
var swfs:Array = new Array ("fotos.swf", "tooltip.swf", "random.swf", "combo.swf", "galeria.swf", "load.swf", "filtro.swf", "elastico.swf", "resize.swf", "tooltip.swf", "random.swf", "combo.swf", "galeria.swf", "load.swf");
//
// Cria uma função para ser realizada em todos os itens, menos no clicado
function Slctd () {
for (var a:Number = 0; a < itens.length; a++) {
if (a != selMenu) {
novoItem = eval ("item" + a);
novoItem.txt_mc.colorTo ("0x666666", 1);
novoItem.btn_mc.enabled = true;
novoItem.btn_mc.useHandCursor = true;
}
}
}
// Aqui faz um calculo para ver quantos cliques serão possíveis
var qtClick:Number = (Math.floor (itens.length - (_parent.mask_sub_mc._height / item_mc._height)));
// Cria-se uma variável com valor igual a de cliques, só que a quantidade de itens original nunca vai ser alterada
var qtOrig:Number = qtClick;
// Mostra quantos itens tem no total
_parent.show_txt.text = itens.length + " ITENS";
// Aqui faz um cauculo para ver se o scroll é necessário ou não
if ((Math.floor (itens.length - (_parent.mask_sub_mc._height / item_mc._height))) <= 0) {
_parent.scroll_sub_mc._visible = false;
}
for (var a:Number = 0; a < itens.length; a++) {
duplicateMovieClip ("item_mc", "item" + a, a + 10);
//
item_mc._visible = false;
item_mc.removeMovieClip ();
//
novoItem = eval ("item" + a);
novoItem._y += (novoItem._height) * a;
novoItem.iD = a;
//
//
novoItem.txt_mc.tit_txt.autoSize = "left";
novoItem.txt_mc.tit_txt.text = _root.addZero ((a + 1), 2) + " " + itens[a].toUpperCase ();
novoItem.btn_mc._width = novoItem.txt_mc._width;
//
novoItem.mask_mc.alphaTo (100, 0, "", a * 0.05);
novoItem.mask_mc.tween ("_xscale", 100, 1.5, "easeOutExpo", a * 0.05);
novoItem.mask_mc.tween ("_x", 0, 1, "easeOutExpo", a * 0.05);
novoItem.txt_mc.alphaTo (100, 1, "", a * 0.05);
novoItem.txt_mc.tween ("_x", 0, 1, "easeOutExpo", a * 0.05);
//
novoItem.btn_mc.onRollOver = function () {
this._parent.txt_mc.colorTo ("0x999999", 1);
_root.somOver ();
};
novoItem.btn_mc.onRollOut = function () {
this._parent.txt_mc.colorTo ("0x666666", 1);
};
novoItem.ClipExterno = swfs[a]
novoItem.btn_mc.onRelease = function () {
_global.selMenu = this._parent.iD;
this._parent.txt_mc.colorTo("0xcccccc", 1);
this.enabled = false;
this.useHandCursor = false;
ClipNuevo = _root.createEmptyMovieClip("ClipExt", 5); // esto crea un clip vacio en la pos (0,0) para cargar el externo
ClipNuevo.loadMovie(this.ClipExterno); // esto carga el clip externo
// Si quieres que el clip externo este en cierta posición entonces cambia sus propiedades de posición, por ejemplo:
ClipNuevo._x = 200; // los valores que tu prefieras.
ClipNuevo._y = 150
Slctd();
};
}