Frame 1
stop();
Frame 2
stop();
_root.text = "";
eda = false;
eda_time = 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.attachMovie("omnom", "omnom" + i, i, {_x:_root.man._x, _y:_root.man._y, _alpha:55});
eda_time = getTimer();
}
}
};
Instance of Symbol 29 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(100);
}
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 > 100) {
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);
}
on (rollOver) {
_root.text = "\u041C\u044F\u0443.";
}
Instance of Symbol 38 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 40 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 44 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 20 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 13 Button
on (release) {
gotoAndPlay (2);
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 17
gotoAndPlay (2);
Symbol 33 Button
on (rollOver) {
_root.text = "\u041F\u043B\u0438\u0442\u0430.";
}
Instance of Symbol 35 MovieClip in Symbol 38 MovieClip Frame 1
on (rollOver) {
_root.text = "\u0421\u0442\u0435\u043D\u0430.";
}
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 1
on (rollOver) {
_root.text = "\u041F\u0430\u0445\u043D\u0435\u0442 \u0435\u0434\u043E\u0439, \u041C\u044F\u0443!";
}