Combined Code
frame 1 {
total = getBytesTotal();
carregando = getBytesLoaded();
porcentagem = Math.floor((total / carregando) * 100);
porcentagem = Math.floor((carregando / total) * 100);
barra_mc._xscale = porcentagem;
if (carregando == total) {
gotoAndStop(3);
}
}
movieClip 6 {
}
// unknown tag 88 length 90
frame 2 {
if (getBytesLoaded() < getBytesTotal()) {
gotoAndPlay(1);
} else {
gotoAndStop(3);
}
}
button 12 {
on (press) {
gotoAndStop(4);
}
}
frame 4 {
musica = new Sound(this);
musica.attachSound('main_theme');
musica.start(0, 9999);
}
frame 4 {
_root._quality = 'LOW';
stop();
}
frame 4 {
_global.lives_counter = 3;
_global.invencivel = false;
_global.player_position = 'cima';
_global.time_position = 'dawnofthefirstday';
}
button 15 {
on (press) {
gotoAndStop('main_plaza');
}
}
movieClip 23 {
}
movieClip 31 {
}
movieClip 39 {
}
movieClip 42 {
}
movieClip 43 {
frame 114 {
_root.gotoAndStop('scarecrow');
}
}
frame 11 {
stop();
}
button 46 {
on (press) {
gotoAndStop('scarecrow_place');
}
}
button 48 {
on (press) {
gotoAndStop('surprise');
}
}
frame 13 {
stop();
rainbow_dash_2._visible = false;
text_mask._visible = false;
text_mask.stop();
text1._visible = false;
yes._visible = false;
no._visible = false;
}
movieClip 50 {
}
button 52 {
on (press) {
rainbow_dash_2._visible = true;
rainbow_dash_1._visible = false;
text_mask._visible = true;
text_mask.gotoAndPlay(1);
text1._visible = true;
}
}
button 56 {
on (press) {
gotoAndStop('main_plaza');
}
}
button 58 {
on (press) {
gotoAndStop('race_1');
}
}
button 60 {
on (press) {
rainbow_dash_2._visible = false;
rainbow_dash_1._visible = true;
text_mask._visible = false;
text1._visible = false;
yes._visible = false;
no._visible = false;
}
}
movieClip 65 {
frame 60 {
stop();
_root.yes._visible = true;
_root.no._visible = true;
}
}
movieClip 67 {
}
movieClip 69 {
}
button 71 {
on (press) {
gotoAndPlay('start_race');
}
}
movieClip 82 {
}
movieClip 84 {
}
movieClip 86 {
}
movieClip 91 {
}
button 92 {
on (press) {
if (_global.player_position == 'cima') {
player_cima._visible = false;
player_baixo._visible = true;
_global.player_position = 'baixo';
} else {
player_cima._visible = true;
player_baixo._visible = false;
_global.player_position = 'cima';
}
}
}
movieClip 95 {
}
movieClip 108 {
}
movieClip 109 {
}
movieClip 130 {
}
movieClip 135 {
}
movieClip 136 {
}
button 137 {
on (press) {
gotoAndStop('race_1_vitoria');
}
}
movieClip 138 {
frame 1 {
stop();
}
frame 100 {
_root.musica.stop();
_root.musica.attachSound('race');
_root.musica.start(0, 9999);
}
instance hit_cima of movieClip 84 {
onClipEvent (enterFrame) {
_root.race.hit_cima;
if (hitTest(_root.race.nuvem)) {
if (_global.player_position == 'cima') {
if (_global.invencivel == false) {
if (_global.lives_counter > 1) {
_global.lives_counter -= 1;
_global.invencivel = true;
} else {
_root.gotoAndStop('main_plaza');
}
}
}
}
}
}
instance hit_baixo of movieClip 84 {
onClipEvent (enterFrame) {
_root.race.hit_baixo;
if (hitTest(_root.race.nuvem)) {
if (_global.player_position == 'baixo') {
if (_global.invencivel == false) {
if (_global.lives_counter > 1) {
_global.lives_counter -= 1;
_global.invencivel = true;
} else {
_root.gotoAndStop('main_plaza');
}
}
}
}
}
}
frame 102 {
player_baixo._visible = false;
}
frame 167 {
_global.invencivel = false;
}
frame 219 {
_global.invencivel = false;
}
frame 249 {
_global.invencivel = false;
}
frame 297 {
_global.invencivel = false;
}
frame 338 {
_global.invencivel = false;
}
frame 1814 {
_global.bola_position = 'cima';
stop();
}
}
frame 17 {
gotoAndPlay('race_1_loop');
}
frame 26 {
musica.stop();
musica.attachSound('main_theme');
musica.start(0, 99999);
}
frame 26 {
_global.bola_position = 'cima';
gotoAndStop('main_plaza');
}
frame 28 {
stop();
yes._visible = false;
no._visible = false;
}
button 140 {
on (press) {
gotoAndStop('race_1_vitoria_a');
}
}
button 142 {
on (press) {
musica.stop();
musica.attachSound('main_theme');
musica.start(0, 9999);
gotoAndStop('clouds');
}
}
movieClip 144 {
}
frame 30 {
stop();
}
frame 32 {
stop();
}
button 148 {
on (press) {
gotoAndStop('scarecrow');
}
}
button 150 {
on (press) {
gotoAndStop('main_plaza');
}
}
frame 34 {
musica.stop();
musica.attachSound('passing_time');
musica.start(0, 1);
}
frame 34 {
stop();
}
movieClip 180 {
}
movieClip 182 {
frame 255 {
_global.time_position = 'nightofthefirstday';
_root.ceu.gotoAndPlay('night');
_root.atmosfera.gotoAndPlay('night');
_root.escuro.gotoAndPlay('night');
_root.gotoAndStop('nightofthefirstday');
}
}
frame 36 {
stop();
ceu.stop();
if (_global.time_position == 'dawnofthefirstday') {
morning._visible = false;
} else {
night._visible = false;
}
}
button 184 {
on (press) {
gotoAndStop('scarecrow_dance');
}
}
button 186 {
on (press) {
gotoAndStop('scarecrow_place');
ceu.play();
}
}
movieClip 188 {
}
movieClip 190 {
}
movieClip 192 {
}
frame 38 {
stop();
atmosfera._alpha = 0;
escuro._alpha = 0;
}
movieClip 194 {
}
movieClip 210 {
frame 28 {
gotoAndPlay('loop');
}
}
movieClip 217 {
frame 28 {
gotoAndPlay('loop');
}
}
movieClip 225 {
frame 22 {
gotoAndPlay('loop');
}
}
movieClip 227 {
}
movieClip 242 {
frame 1 {
_root.musica.stop();
_root.musica.attachSound('pinkie');
_root.musica.start(0, 99999);
}
frame 232 {
_root.gotoAndStop('pinkie_pie_1');
}
}
movieClip 281 {
frame 968 {
gotoAndPlay('loop');
}
}
frame 40 {
stop();
atmosfera._alpha = 0;
escuro._alpha = 0;
pralertexto._visible = true;
discurso._visible = true;
}
movieClip 288 {
}
movieClip 290 {
frame 11 {
stop();
}
}
button 298 {
on (press) {
gotoAndStop('pinkie_pie_2');
}
}
button 302 {
on (press) {
gotoAndStop('pinkie_pie_3');
}
}
button 306 {
on (press) {
gotoAndStop('pinkie_pie_yay');
}
}
frame 42 {
stop();
atmosfera._alpha = 0;
escuro._alpha = 0;
pralertexto._visible = true;
discurso._visible = true;
}
movieClip 315 {
}
button 316 {
on (press) {
gotoAndStop('pinkie_pie_1');
}
}
frame 44 {
stop();
atmosfera._alpha = 0;
escuro._alpha = 0;
pralertexto._visible = true;
discurso._visible = true;
}
movieClip 324 {
}
frame 46 {
stop();
atmosfera._alpha = 0;
escuro._alpha = 0;
pralertexto._visible = false;
discurso._visible = false;
}
movieClip 352 {
frame 68 {
stop();
}
}