Combined Code
frame 1 {
stop();
}
button 7 {
on (release) {
gotoAndPlay(2);
}
}
frame 2 {
pontosreboque = 0;
contreboque = 9;
stop();
}
movieClip 14 {
}
instance cpeix1 of movieClip 14 {
onClipEvent (load) {
this._x = -50;
}
onClipEvent (enterFrame) {
this._x -= velocidade;
if (this._x < -30) {
this._x = 800;
this._y = 300 + Math.random() * 200;
do {
escala = Math.random() * 100;
} while (escala < 20);
this._xscale = escala;
this._yscale = escala;
do {
velocidade = Math.random() * 5;
} while (velocidade < 2);
}
}
}
instance cpeix1 of movieClip 14 {
onClipEvent (load) {
this._x = -50;
}
onClipEvent (enterFrame) {
this._x -= velocidade;
if (this._x < -30) {
this._x = 800;
this._y = 300 + Math.random() * 200;
do {
escala = Math.random() * 100;
} while (escala < 50);
this._xscale = escala;
this._yscale = escala;
do {
velocidade = Math.random() * 10;
} while (velocidade < 2);
}
}
}
movieClip 15 {
frame 1 {
..:timerbarco = '60';
}
frame 7 {
if (_root.contreboque == 0) {
tellTarget ('_root') {
gotoAndPlay('fimbarco');
}
}
}
frame 13 {
..:timerbarco -= 1;
if (..:timerbarco == 0) {
tellTarget ('_root') {
gotoAndPlay('fimbarco');
}
} else {
gotoAndPlay(2);
}
}
}
movieClip 26 {
}
movieClip 35 {
}
movieClip 40 {
}
movieClip 48 {
frame 1 {
stop();
}
frame 20 {
stop();
}
frame 25 {
gotoAndStop(1);
}
frame 30 {
gotoAndStop(1);
}
frame 35 {
gotoAndStop(1);
}
frame 40 {
gotoAndStop(1);
}
frame 45 {
gotoAndStop(1);
}
}
movieClip 49 {
frame 1 {
stop();
}
}
instance cbarco of movieClip 49 {
onClipEvent (load) {
moveSpeed = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._x += moveSpeed;
} else {
if (Key.isDown(40)) {
tellTarget ('../cbarco/cgancho') {
gotoAndPlay(2);
}
} else {
if (Key.isDown(37)) {
this._x -= moveSpeed;
} else {
if (Key.isDown(40)) {
this._x -= moveSpeed;
this._y += moveSpeed;
}
}
}
}
if (_root.cana3.po2.hitTest(_x + x, _y + y, true)) {
_root.pontosavião += 50;
tellTarget ('../cana3') {
gotoAndPlay(347);
}
}
if (_root.teste.fera.hitTest(_x + x, _y + y, true)) {
tellTarget ('../teste') {
gotoAndPlay(1002);
}
}
}
}
movieClip 50 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance cani of movieClip 50 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
cani._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaan');
}
}
}
}
movieClip 51 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance capa of movieClip 51 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
capa._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gapa');
}
}
}
}
movieClip 52 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance cammi of movieClip 52 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
cammi._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gami');
}
}
}
}
instance cammi1 of movieClip 52 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
cammi1._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gami');
}
}
}
}
movieClip 53 {
frame 1 {
stop();
}
frame 2 {
}
}
instance caki of movieClip 53 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
caki._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaki');
}
}
}
}
instance caki2 of movieClip 53 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
caki2._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaki');
}
}
}
}
instance caki3 of movieClip 53 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
caki3._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaki');
}
}
}
}
movieClip 54 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance cagr of movieClip 54 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
cagr._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gagr');
}
}
}
}
instance cagr1 of movieClip 54 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
cagr1._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gagr');
}
}
}
}
instance capa1 of movieClip 51 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
capa1._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gapa');
}
}
}
}
instance cammi3 of movieClip 52 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
cammi3._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gami');
}
}
}
}
instance cani1 of movieClip 50 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
cani1._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaan');
}
}
}
}
instance cammi4 of movieClip 52 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
cammi4._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gami');
}
}
}
}
instance cani2 of movieClip 50 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.contreboque -= 1;
_root.pontosreboque += 15;
tellTarget ('_root') {
cani2._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaan');
}
}
}
}
instance cagr2 of movieClip 54 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
cagr2._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gagr');
}
}
}
}
instance caki4 of movieClip 53 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
caki4._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaki');
}
}
}
}
instance cagr4 of movieClip 54 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
cagr4._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gagr');
}
}
}
}
instance caki1 of movieClip 53 {
onClipEvent (enterFrame) {
if (_root.cbarco.cgancho.hitTest(_x + x, _y + y, true)) {
_root.pontosreboque -= 25;
tellTarget ('_root') {
caki1._y = 800;
}
tellTarget ('../cbarco/cgancho') {
gotoAndPlay('gaki');
}
}
}
}
movieClip 57 {
}
frame 3 {
if (pontosreboque < 0) {
stare = 'Que pena!!!';
} else {
stare = 'Muito Bem!!!';
}
stop();
}
button 71 {
on (release) {
gotoAndPlay(1);
}
}