Frame 1
stop();
Frame 2
stop();
_root.text = "";
eda = false;
eda_time = 0;
kaka_time = 0;
kaka_p = 0;
k = 0;
_root.kaka_c = 0;
onEnterFrame = function () {
if (eda == true) {
if (Key.isDown(32) and ((getTimer() - eda_time) > 1200)) {
_root.text = "\u041E\u043C\u043D\u043E\u043C\u043D\u043E\u043C";
_root.kaka_c = _root.kaka_c + 10;
_root.attachMovie("omnom", "omnom" + i, i, {_x:_root.man._x, _y:_root.man._y, _alpha:55});
eda_time = getTimer();
}
}
if (_root.kaka_c > 9) {
_root.attachMovie("kaka_text", "kaka_text1", 5, {_x:300, _y:50});
kaka_p = 1;
} else {
kaka_p = 0;
removeMovieClip(_root.kaka_text1);
}
};
Instance of Symbol 38 MovieClip "man" in Frame 2
onClipEvent (load) {
thrust = 1;
decay = 0.5;
maxSpeed = 3;
xSpeed = 0;
ySpeed = 0;
i = 0;
time = 0;
k = 0;
swapDepths(150);
}
onClipEvent (enterFrame) {
xm = man._x;
if (Key.isDown(39)) {
_rotation = (_rotation + 7);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 7);
}
if (Key.isDown(38)) {
i = i + 1;
if ((getTimer() - time) > 400) {
_root.attachMovie("sled", "sled" + i, k, {_x:this._x, _y:this._y});
setProperty(_root["sled" + i], _rotation , this._rotation);
time = getTimer();
k++;
if (k > 20) {
k = 0;
}
}
play();
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
gotoAndStop (6);
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > maxSpeed) {
xSpeed = xSpeed * (maxSpeed / speed);
ySpeed = ySpeed * (maxSpeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if ((Key.isDown(13) and (_root.kaka_p == 1)) and ((getTimer() - _root.kaka_time) > 1200)) {
_root.attachMovie("kaka", "kaka" + k, k + 110, {_x:this._x, _y:this._y, _rotation:random(270)});
k++;
_root.kaka_time = getTimer();
_root.kaka_c = _root.kaka_c - 10;
_root.text = "\u0421\u0440\u0451\u0442";
}
}
on (rollOver) {
_root.text = "\u041C\u044F\u0443.";
}
Instance of Symbol 47 MovieClip "walls" in Frame 2
onClipEvent (enterFrame) {
with (_root.man) {
if (_root.walls.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 3;
}
if (_root.walls.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 3;
}
if (_root.walls.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 3;
}
if (_root.walls.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 3;
}
}
}
Instance of Symbol 49 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.man)) {
_root.gotoAndPlay(2);
var i = 1;
while (i < 111) {
removeMovieClip(_root["sled" + i]);
i++;
}
_root.man._x = 520;
_root.man._y = 380;
}
}
Instance of Symbol 53 MovieClip in Frame 2
on (rollOver) {
_root.text = "\u041B\u0438\u0441\u0442\u043E\u043A. Sup \u0444\u043B\u0435\u0448\u0430\u0447, 30-08-12";
}
on (release) {
}
Instance of Symbol 29 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.man)) {
_root.attachMovie("eda1", "eda11", 2, {_x:300, _y:50});
_root.eda = true;
} else {
removeMovieClip(_root.eda11);
_root.eda = false;
}
}
Frame 3
stop();
_root.player2 = 0;
Symbol 8 MovieClip [omnom] Frame 21
stop();
Symbol 22 Button
on (release) {
gotoAndPlay (2);
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 17
gotoAndPlay (2);
Symbol 42 Button
on (rollOver) {
_root.text = "\u041F\u043B\u0438\u0442\u0430.";
}
Instance of Symbol 44 MovieClip in Symbol 47 MovieClip Frame 1
on (rollOver) {
_root.text = "\u0421\u0442\u0435\u043D\u0430.";
}
Instance of Symbol 46 MovieClip in Symbol 47 MovieClip Frame 1
on (rollOver) {
_root.text = "\u041F\u0430\u0445\u043D\u0435\u0442 \u0435\u0434\u043E\u0439, \u041C\u044F\u0443!";
}