Frame 1
tile_head = 1;
tile_ruka = 1;
tile_body = 1;
tile_noga = 1;
tile_lyzha = 1;
tile_flag = 1;
max_tile = 3;
p.stop();
stop();
general.main(this);
Instance of Symbol 120 MovieClip in Frame 1
on (release) {
if (_root.tile_flag < _totalframes) {
_root.tile_flag++;
} else {
_root.tile_flag = 1;
}
}
Frame 2
stop();
stop();
Frame 3
stop();
Symbol 4 MovieClip Frame 1
_visible = false;
Symbol 11 MovieClip [trassa_n] Frame 1
stop();
Symbol 11 MovieClip [trassa_n] Frame 4
stop();
Symbol 11 MovieClip [trassa_n] Frame 5
stop();
Symbol 11 MovieClip [trassa_n] Frame 6
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 3
stop();
Symbol 29 MovieClip Frame 5
_parent.isbolel = true;
stop();
Symbol 29 MovieClip Frame 7
_parent.isbolel = true;
Symbol 40 MovieClip Frame 1
_visible = false;
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 3
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 15
if (_parent.num == 5) {
processor.NextStage();
} else {
_parent.play();
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 15
stop();
if (_parent.num == 5) {
processor.NextStage();
} else {
_parent.play();
}
Symbol 53 MovieClip Frame 1
_visible = false;
Symbol 54 MovieClip Frame 1
function onEnterFrame() {
if (shot) {
return(undefined);
}
_xscale = processor.GetAglity();
_yscale = _xscale;
var tx = (((pricel._x * _xscale) / 100) + _x);
var ty = (((pricel._y * _yscale) / 100) + _y);
if ((tx > 0) && (tx < _parent.back._width)) {
_parent.pricel._x = tx;
}
if ((ty > 0) && (ty < _parent.back._height)) {
_parent.pricel._y = ty;
}
if (Key.isDown(38)) {
_y = (_y - 5);
}
if (Key.isDown(40)) {
_y = (_y + 5);
}
if (Key.isDown(37)) {
_x = (_x - 5);
}
if (Key.isDown(39)) {
_x = (_x + 5);
}
if (Key.isDown(32)) {
_root.player.play();
_parent._parent.patrons.nextFrame();
var point = new Object();
point.x = _parent.pricel._x;
point.y = _parent.pricel._y;
_parent.localToGlobal(point);
if (_parent.mishen.hitTest(point.x, point.y, true)) {
_parent.mishen.play();
eval ("_parent._parent.misheni.m" + _parent.num).play();
} else {
_parent.back.play();
processor.Penalty();
}
shot = true;
}
}
Symbol 57 MovieClip [pricel_mc] Frame 1
if (!num) {
var num = 1;
}
stop();
Symbol 57 MovieClip [pricel_mc] Frame 11
mishen.gotoAndStop(1);
Symbol 57 MovieClip [pricel_mc] Frame 20
num++;
Symbol 60 MovieClip [patrons_mc] Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 10
_root.pricel.play();
Symbol 65 MovieClip Frame 1
if (processor.stage == 4) {
play();
} else {
stop();
}
Symbol 65 MovieClip Frame 2
stop();
Symbol 67 MovieClip [firefield_mc] Frame 1
misheni.m1.enabled = false;
misheni.m2.enabled = false;
misheni.m3.enabled = false;
misheni.m4.enabled = false;
misheni.m5.enabled = false;
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 3
stop();
Symbol 82 MovieClip Frame 4
stop();
Symbol 82 MovieClip Frame 5
stop();
Symbol 82 MovieClip Frame 6
stop();
Symbol 82 MovieClip Frame 7
stop();
Symbol 87 MovieClip [top_row] Frame 1
stop();
Symbol 93 Button
on (release) {
processor.Reset();
}
Symbol 105 Button
on (release) {
tile_head = 1;
}
Symbol 106 Button
on (release) {
tile_head = 2;
}
Symbol 107 Button
on (release) {
tile_head = 3;
}
Symbol 108 Button
on (release) {
tile_ruka = 1;
}
Symbol 109 Button
on (release) {
tile_ruka = 2;
}
Symbol 110 Button
on (release) {
tile_ruka = 3;
}
Symbol 111 Button
on (release) {
tile_body = 1;
}
Symbol 112 Button
on (release) {
tile_body = 2;
}
Symbol 113 Button
on (release) {
tile_body = 3;
}
Symbol 114 Button
on (release) {
tile_noga = 1;
}
Symbol 115 Button
on (release) {
tile_noga = 2;
}
Symbol 116 Button
on (release) {
tile_noga = 3;
}
Symbol 117 Button
on (release) {
tile_lyzha = 1;
}
Symbol 118 Button
on (release) {
tile_lyzha = 2;
}
Symbol 119 Button
on (release) {
tile_lyzha = 3;
}
Symbol 120 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_flag);
};
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 3
stop();
Symbol 120 MovieClip Frame 4
stop();
Symbol 120 MovieClip Frame 5
stop();
Symbol 120 MovieClip Frame 6
stop();
Symbol 120 MovieClip Frame 7
stop();
Symbol 131 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_ruka);
};
stop();
Symbol 137 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_ruka);
};
stop();
Symbol 143 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_head);
};
stop();
Symbol 149 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_body);
};
stop();
Symbol 155 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_lyzha);
};
stop();
Symbol 165 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_noga);
};
stop();
Symbol 171 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.tile_noga);
};
stop();
Symbol 183 MovieClip Frame 15
gotoAndPlay (1);
Symbol 183 MovieClip Frame 31
gotoAndPlay (20);
Symbol 183 MovieClip Frame 44
gotoAndPlay (40);
Symbol 183 MovieClip Frame 70
gotoAndPlay (60);
Symbol 183 MovieClip Frame 94
stop();
Symbol 183 MovieClip Frame 100
stop();
Symbol 183 MovieClip Frame 110
gotoAndStop (100);
Symbol 183 MovieClip Frame 120
stop();
Symbol 183 MovieClip Frame 130
gotoAndStop (120);
Symbol 184 Button
on (release) {
tile_head = 4;
}
Symbol 185 Button
on (release) {
tile_head = 5;
}
Symbol 186 Button
on (release) {
tile_ruka = 4;
}
Symbol 187 Button
on (release) {
tile_ruka = 5;
}
Symbol 188 Button
on (release) {
tile_body = 4;
}
Symbol 189 Button
on (release) {
tile_body = 5;
}
Symbol 190 Button
on (release) {
tile_noga = 4;
}
Symbol 191 Button
on (release) {
tile_noga = 5;
}
Symbol 192 Button
on (release) {
tile_lyzha = 4;
}
Symbol 193 Button
on (release) {
tile_lyzha = 5;
}
Symbol 20480 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 20481 MovieClip [__Packages.general] Frame 0
class general
{
function general () {
}
static function main() {
_global._quality = "medium";
Object.registerClass("controller", controller);
_root.btn_play.onRelease = function () {
_root.skin = _root.checker._currentframe;
_root.gotoAndStop(2);
_global.processor = new game();
};
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20482 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
while (var _local4 = _local3.shift() , _local4 != undefined) {
_local4.obj[_local4.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
for (var _local3 in tfList) {
tfList[_local3].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local5 = _x;
var _local6 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local5, oldY:_local6});
}
}
function setSize(w, h, noEvent) {
var _local5 = __width;
var _local6 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local5, oldHeight:_local6});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local5 = this[name];
_local5._color = textColorList;
_local5._visible = false;
_local5.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local5;
_local5.invalidateStyle();
invalidate();
_local5.styleName = this;
return(_local5);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local6 = className.symbolName == undefined;
if (_local6) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local7 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local6) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local7);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local3 = this[id];
if (_local3.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local6 = _local5;
_local3.swapDepths(_local6);
}
_local3.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local3 = getSkinIDName(tag);
createEmptyObject(_local3, tag);
return(this[_local3]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local3 = false;
for (var _local4 in clipParameters) {
if (hasOwnProperty(_local4)) {
_local3 = true;
this["def_" + _local4] = this[_local4];
delete this[_local4];
}
}
if (_local3) {
for (var _local4 in clipParameters) {
var _local5 = this["def_" + _local4];
if (_local5 != undefined) {
this[_local4] = _local5;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local3 = this;
var _local4 = className;
while (_local4 != undefined) {
if (ignoreClassStyleDeclaration[_local4] == undefined) {
if (_global.styles[_local4] != undefined) {
return(_global.styles[_local4]);
}
}
_local3 = _local3.__proto__;
_local4 = _local3.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local4 = stylecache.tf;
if (_local4 != undefined) {
for (var _local5 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local5])) {
if (tf[_local5] == undefined) {
tf[_local5] = _local4[_local5];
}
}
}
return(false);
}
var _local6 = false;
for (var _local7 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local7])) {
if (tf[_local7] == undefined) {
var _local8 = _tf[_local7];
if (_local8 != undefined) {
tf[_local7] = _local8;
} else if ((_local7 == "font") && (fontFamily != undefined)) {
tf[_local7] = fontFamily;
} else if ((_local7 == "size") && (fontSize != undefined)) {
tf[_local7] = fontSize;
} else if ((_local7 == "color") && (color != undefined)) {
tf[_local7] = color;
} else if ((_local7 == "leftMargin") && (marginLeft != undefined)) {
tf[_local7] = marginLeft;
} else if ((_local7 == "rightMargin") && (marginRight != undefined)) {
tf[_local7] = marginRight;
} else if ((_local7 == "italic") && (fontStyle != undefined)) {
tf[_local7] = fontStyle == _local7;
} else if ((_local7 == "bold") && (fontWeight != undefined)) {
tf[_local7] = fontWeight == _local7;
} else if ((_local7 == "align") && (textAlign != undefined)) {
tf[_local7] = textAlign;
} else if ((_local7 == "indent") && (textIndent != undefined)) {
tf[_local7] = textIndent;
} else if ((_local7 == "underline") && (textDecoration != undefined)) {
tf[_local7] = textDecoration == _local7;
} else if ((_local7 == "embedFonts") && (embedFonts != undefined)) {
tf[_local7] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local3 = stylecache.tf;
if (_local3 != undefined) {
return(_local3);
}
_local3 = new TextFormat();
__getTextFormat(_local3, true);
stylecache.tf = _local3;
if (enabled == false) {
var _local4 = getStyle("disabledColor");
_local3.color = _local4;
}
return(_local3);
}
function getStyleName(Void) {
var _local3 = styleName;
if (_local3 != undefined) {
if (typeof(_local3) != "string") {
return(_local3.getStyleName());
}
return(_local3);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local4 = styleName;
if (_local4 != undefined) {
if (typeof(_local4) != "string") {
_local3 = _local4.getStyle(styleProp);
} else {
var _local5 = _global.styles[_local4];
_local3 = _local5.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local6 = getClassStyleDeclaration();
if (_local6 != undefined) {
_local3 = _local6[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local7 = stylecache;
if (_local7 != undefined) {
if (_local7[styleProp] != undefined) {
return(_local7[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local7 != undefined) {
_local7[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var i in p) {
o[i] = p[i];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 20483 MovieClip [__Packages.game] Frame 0
class game
{
var _scores, _ind, _player, _trassa, _contr, up_segment, up_trassa;
function game () {
var loader = new XML();
var _this = this;
_scores = new topscores();
_ind = _root.info_panel;
_player = _root.player;
_player.tile = _root.skin;
_root.background._x = 0;
_root.background._y = 0;
loader.ignoreWhite = true;
loader.load("init.xml");
loader.onLoad = function (success) {
_this._trassa = new waypoints(loader);
_this.SetTrassa();
};
_root.info_panel.ustal.crit._x = Math.round((crit_ustal / max_ustal) * 100);
_root.info_panel.ustal.max._x = Math.round((over_ustal / max_ustal) * 100);
_global.setInterval(this, "ShowTime", 100);
}
function Reset() {
_root.gotoAndStop(3);
gametime = 0;
_trassa.Reset();
type = false;
stage = 1;
ustal = 0;
_root.background._x = 0;
_root.background._y = 0;
_root.background.targetx = 0;
_root.background.targety = 0;
_root.background._visible = true;
_ind.gotoAndStop(1);
_ind.tablo.gotoAndStop(1);
_ind._visible = true;
_player._visible = true;
_scores.HideScores();
SetTrassa();
}
function SetTrassa() {
_contr = controller(_root.attachMovie("controller", "controller", 1));
_root.info_panel.setDepthTo(mx.managers.DepthManager.kTop);
_root.player.setDepthTo(mx.managers.DepthManager.kTop);
_contr.setOwner(this);
var _local4 = total_segments;
for ( ; _local4 >= 1 ; _local4--) {
var _local3 = _trassa.getNextWaypoint();
_contr.addSegment(_local3, izgib, _local4);
izgib = izgib + (izgib_level * _local3[0]);
}
up_segment = 1;
up_trassa = total_segments - 1;
game_status = 1;
_trassa.BuildMiniMap();
}
function ShowTime() {
gametime = gametime + 100;
_ind.timeind = _scores.ConvertTime(gametime);
_ind.ustal.bar._width = Math.round((ustal / max_ustal) * 100);
if (type) {
_ind.percind = 0;
_ind.speedind = 0;
if (ustal) {
ustal--;
}
} else {
_ind.percind = _trassa.getPercents() + "%";
_ind.speedind = Math.round(_contr.speed / 8) + " \u043A\u043C/\u0447";
}
}
function Penalty() {
gametime = gametime + 10000;
_ind.timeind_mc.play();
}
function GetAglity() {
var _local2 = 0;
_local2 = ((ustal / max_ustal) * 100) + 10;
return(_local2);
}
function NextStage() {
_contr.removeMovieClip();
_root.firefield.removeMovieClip();
_root.map.removeMovieClip();
_root.background._x = 0;
_root.background._y = 0;
_root.background.targetx = 0;
_root.background.targety = 0;
_player._x = inital_x;
if (stage == 5) {
_root.gotoAndStop(3);
_ind._visible = false;
_player._visible = false;
_player.gotoAndStop(1);
_root.score = gametime;
_scores.AddScore(_root.player_name, gametime, _root.tile_flag);
_scores.TopList();
return(undefined);
}
stage++;
_ind.play();
_ind.tablo.gotoAndStop(stage);
type = !type;
if (!type) {
_trassa.getNextLevel();
SetTrassa();
} else {
_root.attachMovie("firefield_mc", "firefield", 2);
if (stage == 2) {
_root.player.gotoAndStop("shotup");
}
if (stage == 4) {
_root.player.gotoAndStop("shotdown");
}
_root.patrons._visible = true;
_player._rotation = 0;
}
}
//ASSetPropFlags(_local1, null, 1);
var stage = 1;
var inital_y = 175;
var inital_x = 245;
var izgib_level = 20;
var total_segments = 15;
var game_status = 0;
var izgib = 0;
var ustal = 0;
var max_ustal = 400;
var over_ustal = 250;
var crit_ustal = 350;
var gametime = 0;
var type = false;
}
Symbol 20484 MovieClip [__Packages.waypoints] Frame 0
class waypoints
{
var _levels, _pos, _perc, _total, _minimap, _marker;
function waypoints (init) {
_levels = new Array();
var _local4 = init.firstChild;
for ( ; _local4 != null ; _local4 = _local4.nextSibling) {
_levels[_local4.attributes.level] = new Array();
var _local3 = _local4.firstChild.nodeValue;
var _local5 = 0;
for ( ; _local5 <= (_local3.length - 1) ; _local5++) {
if (Number(_local3.charAt(_local5))) {
_levels[_local4.attributes.level].push(Number(_local3.charAt(_local5)));
}
}
}
getNextLevel();
}
function getNextWaypoint() {
var _local2 = new Array();
var _local3 = 0;
_pos++;
_perc = Math.round(((_pos - 15) / _total) * 100);
PosMarker();
_local3 = _levels[_level][_pos];
if (_local3) {
if (_local3 == 5) {
return([0, 0]);
}
if (_local3 == 4) {
return([-1, 0]);
}
if (_local3 == 6) {
return([1, 0]);
}
if (_local3 == 2) {
return([0, -1]);
}
if (_local3 == 8) {
return([0, 1]);
}
if (_local3 == 1) {
return([2, _level]);
}
return([0, 0]);
}
return([0, 0]);
}
function BuildMiniMap() {
var _local4 = 0;
var _local3 = new Object();
_minimap = _root.createEmptyMovieClip("map", 1001);
_marker = _minimap.attachMovie("marker", "marker_mc", 900);
var _local6 = 1;
for ( ; _local6 <= _total ; _local6++) {
var _local2 = _minimap.attachMovie("segm", "segm" + _local6, _local6 + 10);
if (_local6 == 1) {
_local2._x = 0;
_local2._y = 0;
} else {
_local3.x = _minimap["segm" + (_local6 - 1)].lnk._x;
_local3.y = _minimap["segm" + (_local6 - 1)].lnk._y;
_minimap["segm" + (_local6 - 1)].localToGlobal(_local3);
_local2._x = _local3.x;
_local2._y = _local3.y;
}
if (_levels[_level][_local6] == 4) {
_local4 = _local4 - 20;
}
if (_levels[_level][_local6] == 6) {
_local4 = _local4 + 20;
}
_local2._rotation = _local4;
}
var _local5 = _minimap.attachMovie("plenka", "plenka_mc", 9);
var _local7 = _minimap.getBounds(_root);
_local5._x = _local7.xMin - 5;
_local5._y = _local7.yMin - 5;
_local5._width = _minimap._width;
_local5._height = _minimap._height;
_minimap._x = Stage.width - 10;
_minimap._y = (-_local7.yMin) + 80;
PosMarker();
}
function PosMarker() {
_marker._x = _minimap["segm" + (_pos - 13)]._x;
_marker._y = _minimap["segm" + (_pos - 13)]._y;
}
function getNextLevel() {
_pos = 0;
_level++;
_total = _levels[_level].length;
return(_level);
}
function getPercents() {
return(_perc);
}
function Reset() {
_level = 1;
_total = _levels[_level].length;
_pos = 0;
}
function HideMap() {
_minimap._visible = false;
}
function ShowMap() {
_minimap._visible = true;
}
//ASSetPropFlags(_local1, null, 1);
var _level = 0;
}
Symbol 20485 MovieClip [__Packages.topscores] Frame 0
class topscores
{
var _scores;
function topscores () {
_scores = new Array();
_scores.sort(order);
}
function ConvertTime(gametime) {
var _local3 = 0;
var _local4 = 0;
var _local5 = 0;
_local5 = Math.floor(gametime / 60000);
_local4 = Math.floor((gametime - (_local5 * 60000)) / 1000);
_local3 = Math.round(((gametime - (_local5 * 60000)) - (_local4 * 1000)) / 100);
if (_local4 < 10) {
return((((_local5 + ".0") + _local4) + ",") + _local3);
}
return((((_local5 + ".") + _local4) + ",") + _local3);
}
function AddScore(_name, _score, _flag) {
for (var i in _scores) {
_scores[i].isnew = 0;
}
_scores.push({name:_name, flag:_flag, isnew:1, score:_score});
_scores.sort(order);
_scores = _scores.slice(0, 10);
}
function TopList() {
var _local2 = _root.attachMovie("top_cont", "top", 11);
var _local4 = 0;
for ( ; _local4 <= 9 ; _local4++) {
var _local3 = _local2.attachMovie("top_row", "top_row" + _local4, _local4 + 11);
if (_scores[_local4].isnew) {
_local3.gotoAndStop(2);
}
_local3._y = 50 + ((_local3._height + 2) * _local4);
_local3._x = 30;
if (_scores[_local4].name) {
_local3.biatlonist = _scores[_local4].name;
} else {
_local3.biatlonist = "...";
}
if (_scores[_local4].flag) {
_local3.flag.gotoAndStop(_scores[_local4].flag);
} else {
_local3.flag._visible = false;
}
if (_scores[_local4].score) {
_local3.time = ConvertTime(_scores[_local4].score);
} else {
_local3.time = "0.0,0";
}
_local3.place = _local4 + 1;
}
}
function HideScores() {
_root.top.removeMovieClip();
}
function order(a, b) {
var _local4 = a.score;
var _local5 = b.score;
if (_local4 < _local5) {
return(-1);
}
if (_local4 > _local5) {
return(1);
}
return(0);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20486 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local4 = false;
if (_tf != undefined) {
for (var _local5 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local5])) {
if (tf[_local5] == undefined) {
var _local6 = _tf[_local5];
if (_local6 != undefined) {
tf[_local5] = _local6;
} else {
_local4 = true;
}
}
}
}
} else {
_local4 = true;
}
return(_local4);
}
function getStyle(styleProp) {
var _local3 = this[styleProp];
var _local4 = mx.styles.StyleManager.getColorName(_local3);
return(((_local4 == undefined) ? (_local3) : (_local4)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 20487 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local5;
switch (depthSpace) {
case kCursor :
_local5 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local5 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local5);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local5;
switch (depthSpace) {
case kCursor :
_local5 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local5 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local5);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local5 = buildDepthTable();
var _local6 = getDepthByFlag(depthFlag, _local5);
var _local7 = "down";
if (depthFlag == kBottom) {
_local7 = "up";
}
var _local8;
if (_local5[_local6] != undefined) {
_local8 = _local6;
_local6 = findNextAvailableDepth(_local6, _local5, _local7);
}
var _local9 = createClassObject(className, "depthChild" + (_childCounter++), _local6, initObj);
if (_local8 != undefined) {
_local5[_local6] = _local9;
shuffleDepths(_local9, _local8, _local5, _local7);
}
if (depthFlag == kTopmost) {
_local9._topmost = true;
}
return(_local9);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local5 = buildDepthTable();
var _local6 = getDepthByFlag(depthFlag, _local5);
var _local7 = "down";
if (depthFlag == kBottom) {
_local7 = "up";
}
var _local8;
if (_local5[_local6] != undefined) {
_local8 = _local6;
_local6 = findNextAvailableDepth(_local6, _local5, _local7);
}
var _local9 = createObject(linkageName, "depthChild" + (_childCounter++), _local6, initObj);
if (_local8 != undefined) {
_local5[_local6] = _local9;
shuffleDepths(_local9, _local8, _local5, _local7);
}
if (depthFlag == kTopmost) {
_local9._topmost = true;
}
return(_local9);
}
function setDepthTo(depthFlag) {
var _local3 = _parent.buildDepthTable();
var _local4 = _parent.getDepthByFlag(depthFlag, _local3);
if (_local3[_local4] != undefined) {
shuffleDepths(MovieClip(this), _local4, _local3, undefined);
} else {
swapDepths(_local4);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local3 = targetInstance.getDepth() + 1;
var _local4 = _parent.buildDepthTable();
if ((_local4[_local3] != undefined) && (getDepth() < _local3)) {
_local3 = _local3 - 1;
}
if (_local3 > highestDepth) {
_local3 = highestDepth;
}
if (_local3 == highestDepth) {
_parent.shuffleDepths(this, _local3, _local4, "down");
} else if (_local4[_local3] != undefined) {
_parent.shuffleDepths(this, _local3, _local4, undefined);
} else {
swapDepths(_local3);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local3 = targetInstance.getDepth() - 1;
var _local4 = _parent.buildDepthTable();
if ((_local4[_local3] != undefined) && (getDepth() > _local3)) {
_local3 = _local3 + 1;
}
var _local5 = lowestDepth + numberOfAuthortimeLayers;
for (var _local6 in _local4) {
var _local7 = _local4[_local6];
if (_local7._parent != undefined) {
_local5 = Math.min(_local5, _local7.getDepth());
}
}
if (_local3 < _local5) {
_local3 = _local5;
}
if (_local3 == _local5) {
_parent.shuffleDepths(this, _local3, _local4, "up");
} else if (_local4[_local3] != undefined) {
_parent.shuffleDepths(this, _local3, _local4, undefined);
} else {
swapDepths(_local3);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local6 = targetDepth;
var _local7 = targetDepth;
if (direction == "down") {
while (depthTable[_local7] != undefined) {
_local7--;
}
return(_local7);
}
while (depthTable[_local6] != undefined) {
_local6++;
}
return(_local6);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local6 = lowestDepth + numberOfAuthortimeLayers;
var _local7 = _local6;
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
if (_local9._parent != undefined) {
_local6 = Math.min(_local6, _local9.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local10 = new Array();
for (var _local8 in depthTable) {
var _local11 = depthTable[_local8];
if (_local11._parent != undefined) {
_local10.push(_local11);
}
}
_local10.sort(sortFunction);
if (direction == "up") {
var _local12;
do {
if (_local10.length <= 0) {
break;
}
_local12 = _local10.pop();
} while (_local12 != subject);
do {
if (_local10.length <= 0) {
break;
}
var _local13 = subject.getDepth();
_local12 = _local10.pop();
var _local14 = _local12.getDepth();
if (_local13 > (_local14 + 1)) {
if (_local14 >= 0) {
subject.swapDepths(_local14 + 1);
} else if ((_local13 > _local7) && (_local14 < _local7)) {
subject.swapDepths(_local7);
}
}
subject.swapDepths(_local12);
} while (_local14 != targetDepth);
} else if (direction == "down") {
var _local15;
do {
if (_local10.length <= 0) {
break;
}
_local15 = _local10.shift();
} while (_local15 != subject);
do {
if (_local10.length <= 0) {
break;
}
var _local16 = _local15.getDepth();
_local15 = _local10.shift();
var _local17 = _local15.getDepth();
if ((_local16 < (_local17 - 1)) && (_local17 > 0)) {
subject.swapDepths(_local17 - 1);
}
subject.swapDepths(_local15);
} while (_local17 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local4 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local6 = false;
for (var _local7 in depthTable) {
var _local8 = depthTable[_local7];
var _local9 = typeof(_local8);
if ((_local9 == "movieclip") || ((_local9 == "object") && (_local8.__getTextFormat != undefined))) {
if (_local8.getDepth() <= highestDepth) {
if (!_local8._topmost) {
_local4 = Math.max(_local4, _local8.getDepth());
} else if (!_local6) {
_local5 = _local8.getDepth();
_local6 = true;
} else {
_local5 = Math.min(_local5, _local8.getDepth());
}
}
}
}
_local4 = _local4 + 20;
if (_local6) {
if (_local4 >= _local5) {
_local4 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local10 in depthTable) {
var _local11 = depthTable[_local10];
var _local12 = typeof(_local11);
if ((_local12 == "movieclip") || ((_local12 == "object") && (_local11.__getTextFormat != undefined))) {
if (_local11.getDepth() <= highestDepth) {
_local4 = Math.min(_local4, _local11.getDepth());
}
}
}
_local4 = _local4 - 20;
} else if (depthFlag == kTopmost) {
for (var _local13 in depthTable) {
var _local14 = depthTable[_local13];
var _local15 = typeof(_local14);
if ((_local15 == "movieclip") || ((_local15 == "object") && (_local14.__getTextFormat != undefined))) {
if (_local14.getDepth() <= highestDepth) {
_local4 = Math.max(_local4, _local14.getDepth());
}
}
}
_local4 = _local4 + 100;
}
if (_local4 >= highestDepth) {
_local4 = highestDepth;
}
var _local16 = lowestDepth + numberOfAuthortimeLayers;
for (var _local17 in depthTable) {
var _local18 = depthTable[_local17];
if (_local18._parent != undefined) {
_local16 = Math.min(_local16, _local18.getDepth());
}
}
if (_local4 <= _local16) {
_local4 = _local16;
}
return(_local4);
}
function buildDepthTable(Void) {
var _local3 = new Array();
for (var _local4 in this) {
var _local5 = this[_local4];
var _local6 = typeof(_local5);
if ((_local6 == "movieclip") || ((_local6 == "object") && (_local5.__getTextFormat != undefined))) {
if (_local5._parent == this) {
_local3[_local5.getDepth()] = _local5;
}
}
}
return(_local3);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 20488 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 20489 MovieClip [__Packages.controller] Frame 0
#initclip
if (!controller) {
//(_global.controller = function () {
super();
this.segments = new Array();
this.segments[0] = 1;
this._player = _root.player;
this._player.cont = this;
}) extends MovieClip
var _local1 = (_global.controller /* register */).prototype;
_local1.addSegment = function (trassa, izgib, id) {
var _local6 = id;
var _local5 = this.attachMovie("trassa_container", "a" + _local6, _local6, {_x:this._owner.inital_x, _y:this._owner.inital_y});
_local5.trash_left.gotoAndStop(random(_local5.trash_left._totalframes) + 1);
_local5.trash_right.gotoAndStop(random(_local5.trash_right._totalframes) + 1);
_local5.fx1.asset.gotoAndStop(random(_local5.fx1.asset._totalframes) + 1);
_local5.fx1._visible = false;
_local5.gory.gotoAndStop(random(_local5.gory._totalframes) + 1);
_local5.trassa = trassa;
_local5.segment.gotoAndStop(5 + _local5.trassa[0]);
_local5.izgib = izgib;
this.segments[id] = _local5;
};
_local1.onEnterFrame = function () {
if (Math.abs(this._shiftpx) > 3) {
this._player._x = this._player._x + ((this._shiftpx / Math.abs(this._shiftpx)) * 3);
this._shiftpx = this._shiftpx - ((this._shiftpx / Math.abs(this._shiftpx)) * 3);
}
if (this._crashed) {
this._player._rotation = 0;
if (this._crashed == 1) {
this._player._x = this._owner.inital_x;
this.speed = 0;
}
this._crashed--;
}
if ((Math.abs(this._player._x - this._owner.inital_x) > 110) && (!this._crashed)) {
this._player.gotoAndPlay("crash");
this._crashed = 30;
this._owner.Penalty(5);
}
if (Key.isDown(Key.UP) && (!this._crashed)) {
if (this._owner.ustal < this._owner.max_ustal) {
this._owner.ustal = this._owner.ustal + 1;
}
if (this.speed < this.maxspeed) {
if (this._owner.ustal < this._owner.over_ustal) {
this.speed = this.speed + 2;
} else if (this._owner.ustal > this._owner.crit_ustal) {
if (this.speed > 0) {
this.speed = this.speed - 1;
}
}
}
if ((this._player._currentframe > 19) && ((this.speed < (this.maxspeed / 2)) && (!this._crashed))) {
this._player.gotoAndPlay(1);
}
if (((this._player._currentframe < 20) || (this._player._currentframe > 39)) && ((this.speed >= (this.maxspeed / 2)) && (!this._crashed))) {
this._player.gotoAndPlay(20);
}
} else {
if (this.speed > 0) {
if (!this._crashed) {
this.speed = this.speed - 1;
} else {
this.speed = this.speed - 5;
}
if (this.speed < 0) {
this.speed = 0;
}
}
if (this._owner.ustal > 0) {
if (this.speed == 0) {
this._owner.ustal = this._owner.ustal - 2;
} else {
this._owner.ustal--;
}
}
if ((!this._crashed) && ((this._player._currentframe < 60) || (this._player._currentframe > 79))) {
this._player.gotoAndPlay(60);
}
}
if (Key.isDown(Key.DOWN) && ((!this._crashed) && (this.speed))) {
this.speed = this.speed - 2;
if (this.speed < 0) {
this.speed = 0;
}
if (((this._player._currentframe < 40) || (this._player._currentframe > 59)) && (!this._crashed)) {
this._player.gotoAndPlay(40);
}
}
if ((!this._crashed) && (this.speed)) {
if (Key.isDown(Key.RIGHT)) {
this._player._rotation = Math.round(this.speed / 25);
if (this.speed < 150) {
this._player._x = this._player._x + (Math.round((this.speed / 200) * 4) / 4);
} else {
this._player._x = this._player._x + (Math.round((150 / 150) * 4) / 4);
}
} else if (Key.isDown(Key.LEFT)) {
this._player._rotation = -Math.round(this.speed / 25);
if (this.speed < 150) {
this._player._x = this._player._x - (Math.round((this.speed / 200) * 4) / 4);
} else {
this._player._x = this._player._x - (Math.round((150 / 200) * 4) / 4);
}
} else {
this._player._rotation = 0;
}
}
var _local3 = this._owner.up_segment;
var _local4 = 1;
var _local5 = 0;
var _local6 = 0;
while (true) {
var _local2 = this.segments[_local3];
if (_local2._alpha < 100) {
_local2._alpha = _local2._alpha + 10;
}
if (_local3 == this._owner.up_segment) {
_local2._y = _local2._y + (Math.ceil(this.speed / 50) / 10);
} else {
_local6 = _local3 - 1;
if (_local3 == 1) {
_local6 = this._owner.total_segments;
}
_local2._y = (this.segments[_local6]._y + ((this.segments[_local6].segment._height * this.segments[_local6]._xscale) / 100)) - 1;
}
_local2.targetx = Math.round(this._owner.inital_x + _local2.izgib);
_local2.fx1._alpha = _local4 * 10;
if (_local3 == this._owner.up_segment) {
_local2._x = _local2.targetx;
} else if (Math.abs(_local2._x - _local2.targetx) > 10) {
_local2._x = _local2._x - Math.round((_local2._x - _local2.targetx) / 4);
}
if (_local2._x < (_local2.targetx - 1)) {
_local2._x = _local2._x + 1;
} else if (_local2._x > (_local2.targetx + 1)) {
_local2._x = _local2._x - 1;
}
_local2._xscale = ((_local2._y - 160) / 200) * 100;
_local2._yscale = _local2._xscale;
if ((_local2._y > 400) && (!_local2.over)) {
if (_local2.isbolel) {
var _local7 = new Sound();
_local7.attachSound("bolel");
_local7.setVolume(30);
_local7.start();
}
if (_local2.trassa[0] != 0) {
var _local8 = 1;
for ( ; _local8 <= this._owner.total_segments ; _local8++) {
this.segments[_local8].izgib = this.segments[_local8].izgib - (this._owner.izgib_level * _local2.trassa[0]);
}
this._owner.izgib = this._owner.izgib - (this._owner.izgib_level * _local2.trassa[0]);
_root.background.targetx = _root.background.targetx - (this._owner.izgib_level * _local2.trassa[0]);
this._shiftpx = this._shiftpx - (this._owner.izgib_level * _local2.trassa[0]);
}
if (_local2.trassa[1] != 0) {
_root.background.targety = _root.background.targety - (this._owner.izgib_level * _local2.trassa[1]);
this.speed = this.speed + (20 * _local2.trassa[1]);
if (this.speed < 0) {
this.speed = 0;
}
} else if (_root.background.targety != 0) {
_root.background.targety = _root.background.targety - ((this._owner.izgib_level * _root.background.targety) / Math.abs(_root.background.targety));
}
_local2.over = 1;
}
if (_local2._y > 500) {
if (_local2.advert._visible) {
this._owner.NextStage();
return(undefined);
}
_local2._y = this.segments[this._owner.up_segment]._y - ((this.segments[this._owner.up_segment].segment._height * this.segments[this._owner.up_segment]._xscale) / 150);
_local2._xscale = this.segments[this._owner.up_segment]._xscale;
_local2._yscale = _local2._xscale;
_local2.trassa = this._owner._trassa.getNextWaypoint();
if (_local2.trassa[0] == 2) {
_local2.advert._visible = true;
_local2.advert.gotoAndStop(_local2.trassa[1]);
_local2.trassa = [0, 0];
}
_local2.segment.gotoAndStop(_local2.trassa[0] + 5);
_local2.trash_left.gotoAndStop(random(_local2.trash_left._totalframes) + 1);
_local2.trash_right.gotoAndStop(random(_local2.trash_right._totalframes) + 1);
_local2.izgib = this._owner.izgib;
_local2.isbolel = false;
this._owner.izgib = this._owner.izgib + (this._owner.izgib_level * _local2.trassa[0]);
_local2.setDepthTo(mx.managers.DepthManager.kBottom);
_local2._alpha = 0;
_local2._x = this._owner.inital_x + _local2.izgib;
_local2.over = 0;
_local5 = _local3;
}
if (_local3 == this._owner.total_segments) {
_local3 = 1;
} else {
_local3++;
}
if (_local3 == this._owner.up_segment) {
break;
}
_local4++;
}
if (_local5) {
this._owner.up_segment = _local5;
}
};
_local1.setOwner = function (owner) {
this._owner = owner;
};
ASSetPropFlags(_local1, null, 1);
_local1.speed = 0;
_local1.maxspeed = 250;
_local1._shiftpx = 0;
_local1._crashed = 0;
}
#endinitclip
Symbol 20490 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 194 MovieClip Frame 1
var targetx = 0;
var targety = 0;
onEnterFrame = function () {
if (_x < (targetx - 3)) {
_x = (_x + 3);
} else if (_x > targetx) {
_x = (_x - 3);
}
if (_y < targety) {
_y = (_y + 1);
} else if (_y > targety) {
_y = (_y - 1);
}
};
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 3
stop();
Symbol 222 MovieClip Frame 4
stop();
Symbol 222 MovieClip Frame 5
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
stop();