Frame 1
stop();
fscommand ("allowscale", false);
fscommand ("follscreen", false);
Frame 130
stop();
Symbol 12 MovieClip Frame 1
var dkRun = false;
stop();
Symbol 12 MovieClip Frame 22
if (dkRun) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 16 Button
on (rollOver) {
Light.dkRun = true;
Light.gotoAndPlay("Loop");
}
on (rollOut, releaseOutside) {
Light.dkRun = false;
}
on (release) {
_parent.play();
}
Symbol 17 MovieClip Frame 1
if ((0 < _parent._framesloaded) && (_parent._framesloaded == _parent._totalframes)) {
Logo._alpha = 100;
gotoAndStop (3);
} else {
percentVal = int(_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100;
Logo._alpha = percentVal;
}
Symbol 17 MovieClip Frame 2
gotoAndPlay (1);
Symbol 17 MovieClip Frame 3
stop();
Symbol 39 MovieClip Frame 22
gotoAndPlay (1);
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 10
gotoAndStop (1);
Symbol 53 MovieClip Frame 16
gotoAndStop (1);
Symbol 53 MovieClip Frame 23
gotoAndStop (1);
Symbol 53 MovieClip Frame 30
gotoAndStop (1);
Symbol 53 MovieClip Frame 37
gotoAndStop (1);
Symbol 59 Button
on (release) {
gotoAndPlay (25);
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 70 Button
on (release) {
play();
}
on (rollOver) {
Cuu.play();
}
on (rollOut, releaseOutside) {
Cuu.stop();
}
Symbol 72 MovieClip Frame 1
var dkPlay = false;
var sodiem = 0;
var diemthuong = 0;
var Life = 5;
var Tocdo = 0;
var maxTocdo = 15;
stopAllSounds();
Instance of Symbol 29 MovieClip "Cuu" in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
var vitriX = -100;
var stepX = 10;
}
onClipEvent (enterFrame) {
if (_parent.dkPlay) {
if (vitriX < _x) {
_x = (_x - stepX);
_parent.KiemtraDog();
} else {
_parent.SheepSound();
if (_parent.Dog.dkPlay) {
_parent.movieDiemthuong.picDiemthuong.Diemthuong = "+" + _parent.diemthuong;
_parent.movieDiemthuong.gotoAndPlay("Show");
_parent.sodiem = _parent.sodiem + _parent.diemthuong;
_parent.UpdateScore();
}
_x = (Math.round(Math.random() * 100) + 800);
if (_parent.Tocdo < _parent.maxTocdo) {
_parent.Tocdo = Math.round(_parent.sodiem / 100);
}
stepX = (Math.round(Math.random() * 10) + 10) + _parent.Tocdo;
_parent.diemthuong = stepX - 5;
if (_parent.Dog.dkPlay == false) {
_parent.Dog.dkPlay = true;
_parent.Dog._alpha = 100;
}
}
}
}
Instance of Symbol 39 MovieClip "Dog" in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
var dkPlay = true;
var dkJump = 0;
var vitriY = 250;
var vitriBottom = 250;
var vitriX = 70;
var vitriJump = 80;
var stepY = 2;
var dkColor = 0;
}
onClipEvent (enterFrame) {
if (dkJump == 0) {
if (Key.isDown(32)) {
dkJump = 1;
vitriY = vitriBottom - vitriJump;
_parent.movieSound.gotoAndPlay("Dog1");
this.gotoAndStop("Jump");
}
} else if (dkJump == 1) {
stepY = Math.round(Math.abs(this._y - vitriY) / 5);
if ((vitriY + 2) < this._y) {
this._y = this._y - stepY;
} else {
this._y = vitriY;
vitriY = vitriBottom;
this.gotoAndStop("Fall");
dkJump = 2;
}
} else if (dkJump == 2) {
stepY = Math.round(Math.abs(this._y - ((vitriBottom - vitriJump) - 10)) / 5);
if (this._y < (vitriY - 2)) {
this._y = this._y + stepY;
} else {
this._y = vitriY;
this.gotoAndPlay("Run");
dkJump = 0;
}
}
if ((!dkPlay) && (10 >= dkColor)) {
if ((dkColor % 2) == 0) {
this._alpha = 50;
} else {
this._alpha = 100;
}
dkColor++;
} else if (dkColor >= 10) {
dkColor = 0;
this._alpha = 100;
}
}
Instance of Symbol 25 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.dkPlay) {
delta = Math.round(Math.abs(_parent.Dog._y - this._y));
this._xscale = scale;
this._yscale = sacle;
this._alpha = 100 - delta;
}
}
Instance of Symbol 46 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
var stepX = 6;
}
onClipEvent (enterFrame) {
if (_parent.dkPlay) {
if ((-400 + stepX) < _x) {
_x = (_x - stepX);
} else {
_x = 0;
}
}
}
Instance of Symbol 47 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
var stepX = 2;
}
onClipEvent (enterFrame) {
if (_parent.dkPlay) {
if ((-400 + stepX) < _x) {
_x = (_x - stepX);
} else {
_x = 0;
}
}
}
Symbol 72 MovieClip Frame 2
function UpdateScore() {
Score = sodiem;
}
function UpdateLife() {
if (0 < Life) {
movieLife.gotoAndStop(Life + 1);
} else {
gotoAndPlay (35);
}
}
function KiemtraDog() {
if (Dog.dkPlay) {
if (Dog.Hit.hitTest(Cuu.Hit)) {
Dog.dkPlay = false;
movieSound.gotoAndPlay("Dog2");
Life--;
UpdateLife();
}
}
}
function SheepSound() {
soundtemp = Math.round(Math.random() * 3);
if (soundtemp == 1) {
movieSound.gotoAndPlay("Sheep1");
} else if (soundtemp == 2) {
movieSound.gotoAndPlay("Sheep2");
} else {
movieSound.gotoAndPlay("Sheep3");
}
}
Symbol 72 MovieClip Frame 24
stop();
Symbol 72 MovieClip Frame 25
dkPlay = true;
Dog.dkPlay = true;
Life = 5;
sodiem = 0;
diemthuong = 1;
UpdateScore();
UpdateLife();
stop();
Symbol 72 MovieClip Frame 35
dkPlay = false;
Score = sodiem;
Cuu.stop();
Symbol 72 MovieClip Frame 52
stop();
Cuu.stop();
Symbol 72 MovieClip Frame 60
gotoAndPlay (1);