Espero alguien pueda ayudarme.
Cita:
var repite:Number = 7;
var espacio:Number = 86;
var baseX:Number = 37;
var baseY:Number = 569;
var bot = 0;
var files:Array = ["file1.swf", "file2.swf", "file3.swf", "file4.swf", "file5.swf", "file6.swf", "file7.swf", "file8.swf", "file9.swf", "file10.swf"];
var botones:Array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
for (var z = 0; z<repite; z++) {
if ("boton"+[z] != bot) {
clip_mc = this.attachMovie("mi_clip", "mc"+z, z);
set("boton"+z, z);
} else {
clip_mc = this.attachMovie("mi_clip2", "mc"+z, z);
set("boton"+z, z);
}
clip_mc.fileLoad = seccion+"/"+files[z];
//clip_mc.dato1 = botones[z];
clip_mc.dato2 = botones[z];
clip_mc.onRelease = function() {
peli.loadMovie(this.fileLoad);
bot = this.dato2;
stop();
};
clip_mc._y = baseY;
clip_mc._x = baseX;
baseX += espacio;
}
var espacio:Number = 86;
var baseX:Number = 37;
var baseY:Number = 569;
var bot = 0;
var files:Array = ["file1.swf", "file2.swf", "file3.swf", "file4.swf", "file5.swf", "file6.swf", "file7.swf", "file8.swf", "file9.swf", "file10.swf"];
var botones:Array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
for (var z = 0; z<repite; z++) {
if ("boton"+[z] != bot) {
clip_mc = this.attachMovie("mi_clip", "mc"+z, z);
set("boton"+z, z);
} else {
clip_mc = this.attachMovie("mi_clip2", "mc"+z, z);
set("boton"+z, z);
}
clip_mc.fileLoad = seccion+"/"+files[z];
//clip_mc.dato1 = botones[z];
clip_mc.dato2 = botones[z];
clip_mc.onRelease = function() {
peli.loadMovie(this.fileLoad);
bot = this.dato2;
stop();
};
clip_mc._y = baseY;
clip_mc._x = baseX;
baseX += espacio;
}