Combined Code
frame 1 {
Stage.displayState = 'fullScreen';
Stage.scaleMode = 'Scale';
}
frame 1 {
fondo_negro.swapDepths(72);
}
frame 1 {
stop();
}
frame 1 {
var nbt = 7;
var numDepthbutton = 1;
_root.letter.duplicateMovieClip('letter1', 10);
_root.letter1._x = 28.5;
_root.letter1._y = 97.25;
var i = 1;
while (i <= nbt) {
var nombre = 'button_' + i;
_root.button.duplicateMovieClip(nombre, numDepthbutton);
_root[nombre]._x = 22;
_root[nombre]._y = 75 + 18 * i;
if (nombre != 'button_2' and nombre != 'button_5') {
_root[nombre].gotoAndStop(2);
_root[nombre].estado = true;
}
numDepthbutton += 1;
_root[nombre].onRelease = function () {
if (this.estado == true) {
this.gotoAndStop(2);
}
};
_root[nombre].onRollOver = function () {
if (this.estado == true) {
this.gotoAndStop(3);
}
};
_root[nombre].onRollOut = function () {
if (this.estado == true) {
this.gotoAndStop(2);
}
};
++i;
}
_root.button_1.onPress = function () {
_root.gotoAndStop(2);
_root.button_1.removeMovieClip();
_root.button_2.removeMovieClip();
_root.button_3.removeMovieClip();
_root.button_4.removeMovieClip();
_root.button_5.removeMovieClip();
_root.button_6.removeMovieClip();
_root.button_7.removeMovieClip();
_root.letter1.removeMovieClip();
};
_root.button_3.onPress = function () {
_root.gotoAndStop(3);
_root.button_1.removeMovieClip();
_root.button_2.removeMovieClip();
_root.button_3.removeMovieClip();
_root.button_4.removeMovieClip();
_root.button_5.removeMovieClip();
_root.button_6.removeMovieClip();
_root.button_7.removeMovieClip();
_root.letter1.removeMovieClip();
};
_root.button_4.onPress = function () {
_root.gotoAndStop(4);
_root.button_1.removeMovieClip();
_root.button_2.removeMovieClip();
_root.button_3.removeMovieClip();
_root.button_4.removeMovieClip();
_root.button_5.removeMovieClip();
_root.button_6.removeMovieClip();
_root.button_7.removeMovieClip();
_root.letter1.removeMovieClip();
};
_root.button_6.onPress = function () {
_root.gotoAndStop(7);
_root.button_1.removeMovieClip();
_root.button_2.removeMovieClip();
_root.button_3.removeMovieClip();
_root.button_4.removeMovieClip();
_root.button_5.removeMovieClip();
_root.button_6.removeMovieClip();
_root.button_7.removeMovieClip();
_root.letter1.removeMovieClip();
};
_root.button_7.onPress = function () {
fscommand('quit');
};
}
movieClip 10 {
}
movieClip 29 {
}
movieClip 30 {
frame 1 {
stop();
}
}
movieClip 33 {
}
movieClip 35 {
}
frame 2 {
_root.door.onRollOver = function () {
this.play(2);
trace('esta tocando');
};
_root.door.onRollOut = function () {};
_root[nombre].onRollOver = function () {
if (this.estado == true) {
this.gotoAndStop(3);
}
};
_root.btn_return.onRollOver = function () {
this.gotoAndStop(2);
};
_root.btn_return.onRollOut = function () {
this.gotoAndStop(1);
};
_root.btn_return.onPress = function () {
_root.gotoAndStop(1);
_root.btn_return.removeMovieClip();
};
}
movieClip 48 {
frame 1 {
stop();
}
}
movieClip 52 {
frame 1 {
stop();
}
frame 77 {
stop();
}
}
frame 3 {
var pagina = 5;
_root.Host_game.onRelease = function () {
this.gotoAndStop(1);
};
_root.Host_game.onRollOver = function () {
this.gotoAndStop(2);
};
_root.Host_game.onRollOut = function () {
this.gotoAndStop(1);
};
_root.Join_game.onRelease = function () {
this.gotoAndStop(1);
};
_root.Join_game.onRollOver = function () {
this.gotoAndStop(2);
};
_root.Join_game.onRollOut = function () {
this.gotoAndStop(1);
};
_root.Host_game.onPress = function () {
this.gotoAndStop(2);
pagina = 5;
};
_root.Join_game.onPress = function () {
this.gotoAndStop(2);
pagina = 6;
};
_root.btn_start.onRollOver = function () {
this.gotoAndStop(2);
};
_root.btn_start.onRollOut = function () {
this.gotoAndStop(1);
};
_root.btn_back.onRollOver = function () {
this.gotoAndStop(2);
};
_root.btn_back.onRollOut = function () {
this.gotoAndStop(1);
};
_root.btn_start.onPress = function () {
_root.gotoAndStop(pagina);
};
_root.btn_back.onPress = function () {
_root.gotoAndStop(1);
};
}
movieClip 58 {
}
movieClip 67 {
frame 1 {
stop();
}
}
movieClip 76 {
frame 1 {
stop();
}
}
movieClip 83 {
frame 1 {
stop();
}
}
movieClip 90 {
frame 1 {
stop();
}
}
frame 4 {
_root.challenge_01.onRollOver = function () {
this.gotoAndStop(2);
};
_root.challenge_01.onRollOut = function () {
this.gotoAndStop(1);
};
_root.challenge_02.onRollOver = function () {
this.gotoAndStop(2);
};
_root.challenge_02.onRollOut = function () {
this.gotoAndStop(1);
};
_root.Buttons_start.onRollOver = function () {
this.gotoAndStop(2);
};
_root.Buttons_start.onRollOut = function () {
this.gotoAndStop(1);
};
_root.Buttons_back.onRollOver = function () {
this.gotoAndStop(2);
};
_root.Buttons_back.onRollOut = function () {
this.gotoAndStop(1);
};
_root.Buttons_start.onPress = function () {
_root.gotoAndStop(2);
};
_root.Buttons_back.onPress = function () {
_root.gotoAndStop(1);
};
}
movieClip 104 {
frame 1 {
stop();
}
}
movieClip 113 {
frame 1 {
stop();
}
}
movieClip 120 {
frame 1 {
stop();
}
}
movieClip 123 {
frame 1 {
stop();
}
}
frame 5 {
var img_mar = 3;
var tg_letter = 6;
var n_tg_letter = 1;
_root.letter_marc.gotoAndStop(2);
var nbt = 5;
var numDepthbutton = 1;
var i = 1;
while (i <= nbt) {
var nombre = '' + i;
_root.Marco_map.duplicateMovieClip(nombre, numDepthbutton);
_root[nombre]._y = 46;
_root[nombre]._x = -46 + 64 * i;
if (i <= img_mar) {
_root[nombre].Img_marco.gotoAndStop(i);
_root[nombre].imgnumero = i;
} else {
_root[nombre].Img_marco.gotoAndStop(i - img_mar);
_root[nombre].imgnumero = i - img_mar;
}
if (i == 3) {
_root[nombre].gotoAndStop(2);
}
numDepthbutton += 1;
++i;
}
_root.BTM_left.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_left.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_right.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_right.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_left.onPress = function () {
this.gotoAndStop(2);
var v3 = 1;
while (v3 <= nbt) {
var v4 = _root[v3].imgnumero;
if (v4 > 1) {
_root[v3].Img_marco.gotoAndStop(v4 - 1);
_root[v3].imgnumero = v4 - 1;
_root.letter_marc.gotoAndStop(v4 - 1);
} else {
_root[v3].Img_marco.gotoAndStop(img_mar);
_root[v3].imgnumero = img_mar;
_root.letter_marc.gotoAndStop(img_mar);
}
++v3;
}
};
_root.BTM_right.onPress = function () {
this.gotoAndStop(2);
var v3 = 1;
while (v3 <= nbt) {
var v4 = _root[v3].imgnumero;
if (v4 < img_mar) {
_root[v3].Img_marco.gotoAndStop(v4 + 1);
_root[v3].imgnumero = v4 + 1;
_root.letter_marc.gotoAndStop(v4 + 1);
} else {
_root[v3].Img_marco.gotoAndStop(v4 - (img_mar - 1));
_root[v3].imgnumero = v4 - (img_mar - 1);
_root.letter_marc.gotoAndStop(v4 - (img_mar - 1));
}
++v3;
}
};
_root.BTM_left_t.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_left_t.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_right_t.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_right_t.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_left_t.onPress = function () {
if (n_tg_letter > 1) {
n_tg_letter -= 1;
_root.letter_tg.gotoAndStop(n_tg_letter);
} else {
n_tg_letter = tg_letter;
_root.letter_tg.gotoAndStop(n_tg_letter);
}
};
_root.BTM_right_t.onPress = function () {
if (n_tg_letter < tg_letter) {
n_tg_letter += 1;
_root.letter_tg.gotoAndStop(n_tg_letter);
} else {
n_tg_letter -= tg_letter - 1;
_root.letter_tg.gotoAndStop(n_tg_letter);
}
};
_root.BTM_left_b.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_left_b.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_right_b.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_right_b.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_left_time.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_left_time.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_right_time.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_right_time.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_left_p.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_left_p.onRollOut = function () {
this.gotoAndStop(1);
};
_root.BTM_right_p.onRollOver = function () {
this.gotoAndStop(2);
};
_root.BTM_right_p.onRollOut = function () {
this.gotoAndStop(1);
};
_root.button_enter_p.onRollOver = function () {
this.gotoAndStop(2);
};
_root.button_enter_p.onRollOut = function () {
this.gotoAndStop(1);
};
_root.button_enter_s.onRollOver = function () {
this.gotoAndStop(2);
};
_root.button_enter_s.onRollOut = function () {
this.gotoAndStop(1);
};
_root.button_list.onRollOver = function () {
this.gotoAndStop(2);
};
_root.button_list.onRollOut = function () {
this.gotoAndStop(1);
};
_root.h_buttons_start.onRollOver = function () {
this.gotoAndStop(2);
};
_root.h_buttons_start.onRollOut = function () {
this.gotoAndStop(1);
};
_root.h_buttons_back.onRollOver = function () {
this.gotoAndStop(2);
};
_root.h_buttons_back.onRollOut = function () {
this.gotoAndStop(1);
};
_root.h_buttons_start.onPress = function () {
_root.gotoAndStop(2);
_root.1.removeMovieClip();
_root.2.removeMovieClip();
_root.3.removeMovieClip();
_root.4.removeMovieClip();
_root.5.removeMovieClip();
};
_root.h_buttons_back.onPress = function () {
_root.gotoAndStop(1);
_root.1.removeMovieClip();
_root.2.removeMovieClip();
_root.3.removeMovieClip();
_root.4.removeMovieClip();
_root.5.removeMovieClip();
};
}
movieClip 128 {
}
movieClip 137 {
frame 1 {
stop();
}
}
movieClip 142 {
frame 1 {
stop();
}
}
movieClip 147 {
frame 1 {
stop();
}
}
movieClip 152 {
frame 1 {
stop();
}
}
movieClip 158 {
frame 1 {
stop();
}
}
movieClip 171 {
frame 1 {
stop();
}
}
movieClip 186 {
frame 1 {
stop();
}
}
movieClip 195 {
frame 1 {
stop();
}
}
movieClip 204 {
frame 1 {
stop();
}
}
movieClip 211 {
frame 1 {
stop();
}
}
frame 6 {
_root.button_list.onRollOver = function () {
this.gotoAndStop(2);
};
_root.button_list.onRollOut = function () {
this.gotoAndStop(1);
};
_root.button_refresh.onRollOver = function () {
this.gotoAndStop(2);
};
_root.button_refresh.onRollOut = function () {
this.gotoAndStop(1);
};
_root.button_config.onRollOver = function () {
this.gotoAndStop(2);
};
_root.button_config.onRollOut = function () {
this.gotoAndStop(1);
};
_root.h_buttons_start.onRollOver = function () {
this.gotoAndStop(2);
};
_root.h_buttons_start.onRollOut = function () {
this.gotoAndStop(1);
};
_root.h_buttons_back.onRollOver = function () {
this.gotoAndStop(2);
};
_root.h_buttons_back.onRollOut = function () {
this.gotoAndStop(1);
};
_root.h_buttons_start.onPress = function () {
_root.gotoAndStop(2);
};
_root.h_buttons_back.onPress = function () {
_root.gotoAndStop(1);
};
}
movieClip 224 {
frame 1 {
stop();
}
}
movieClip 233 {
frame 1 {
stop();
}
}
frame 7 {
_root.btn_back.onRollOver = function () {
this.gotoAndStop(2);
};
_root.btn_back.onRollOut = function () {
this.gotoAndStop(1);
};
_root.btn_back.onPress = function () {
_root.gotoAndStop(1);
};
}