Frame 1
stop();
Frame 2
stop();
_root.text = "";
Instance of Symbol 24 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 31 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 33 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 37 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) {
}
Frame 3
stop();
_root.player2 = 0;
Symbol 8 Button
on (release) {
gotoAndPlay (2);
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 17
gotoAndPlay (2);
Symbol 28 Button
on (rollOver) {
_root.text = "\u041F\u043B\u0438\u0442\u0430.";
}
Instance of Symbol 30 MovieClip in Symbol 31 MovieClip Frame 1
on (rollOver) {
_root.text = "\u0421\u0442\u0435\u043D\u0430.";
}