Frame 1
StatetrisEurope.main(this);
Symbol 20480 MovieClip [__Packages.TetrisVariant] Frame 0
class TetrisVariant
{
function TetrisVariant () {
}
function isTinyState(id) {
var _local3 = 0;
for ( ; _local3 < instance.TINY_STATES.length ; _local3++) {
if (instance.TINY_STATES[_local3] == id) {
return(true);
}
}
return(false);
}
//ASSetPropFlags(_local1, null, 1);
static var instance = null;
}
Symbol 20481 MovieClip [__Packages.TetrisVariantEurope] Frame 0
#initclip
if (!TetrisVariantEurope) {
//(_global.TetrisVariantEurope = function () {
super();
this.STATE_NAMES = new Array();
this.STATE_NAMES.is = "Iceland";
this.STATE_NAMES.pt = "Portugal";
this.STATE_NAMES.es = "Spain";
this.STATE_NAMES.be = "Belgium";
this.STATE_NAMES.it = "Italy";
this.STATE_NAMES.it_s = "Sardinia (Italy)";
this.STATE_NAMES.by = "Belarus";
this.STATE_NAMES.pl = "Poland";
this.STATE_NAMES.gr = "Greece";
this.STATE_NAMES.fi = "Finland";
this.STATE_NAMES.de = "Germany";
this.STATE_NAMES.se = "Sweden";
this.STATE_NAMES.no = "Norway";
this.STATE_NAMES.ua = "Ukraine";
this.STATE_NAMES.tr = "Turkey";
this.STATE_NAMES.cy = "Cyprus";
this.STATE_NAMES.ie = "Ireland";
this.STATE_NAMES.gb = "United Kingdom";
this.STATE_NAMES.ch = "Switzerland";
this.STATE_NAMES.at = "Austria";
this.STATE_NAMES.cz = "Czech Republic";
this.STATE_NAMES.sk = "Slovakia";
this.STATE_NAMES.hu = "Hungary";
this.STATE_NAMES.lt = "Lithuania";
this.STATE_NAMES.lv = "Latvia";
this.STATE_NAMES.md = "Moldova";
this.STATE_NAMES.ro = "Romania";
this.STATE_NAMES.bg = "Bulgaria";
this.STATE_NAMES.al = "Albania";
this.STATE_NAMES.ee = "Estonia";
this.STATE_NAMES.ad = "Andorra";
this.STATE_NAMES.sm = "San Marino";
this.STATE_NAMES.mc = "Monaco";
this.STATE_NAMES.lu = "Luxembourg";
this.STATE_NAMES.fr = "France";
this.STATE_NAMES.fr_c = "Corsica (France)";
this.STATE_NAMES.li = "Liechtenstein";
this.STATE_NAMES.nl = "The Netherlands";
this.STATE_NAMES.ba = "Bosnia";
this.STATE_NAMES.si = "Slovenia";
this.STATE_NAMES.mk = "Macedonia";
this.STATE_NAMES.hr = "Croatia";
this.STATE_NAMES.cs = "Serbia";
this.STATE_NAMES.dk = "Denmark";
this.STATE_NAMES.ru_kaliningrad = "Kaliningrad (Russia)";
this.STATE_NAMES.ru = "Russia";
this.STATE_NAMES.mt = "Malta";
this.initStates();
}) extends TetrisVariant
var _local1 = (_global.TetrisVariantEurope /* register */).prototype;
_local1.canRotate = function (id) {
return((id != "no") && ((id != "ru") && ((id != "sm") && ((id != "mt") && ((id != "li") && ((id != "ad") && ((id != "mc") && (id != "lu"))))))));
};
_local1.getLaunchPos = function (id) {
if (id == "no") {
return(this.CENTER_X / 2);
}
if (id == "ru") {
return(this.STATE_POS[id][0]);
}
return(this.CENTER_X);
};
_local1.getMetrics = function () {
var _local2 = [new TetrisBlockMetricsEurope0(), new TetrisBlockMetricsEurope1(), new TetrisBlockMetricsEurope2(), new TetrisBlockMetricsEurope3()];
return(_local2);
};
_local1.initStateOrder = function () {
this.stateOrder = new Array();
this.stateOrder.is = ["gb", "ie"];
this.stateOrder.pt = [];
this.stateOrder.es = ["pt"];
this.stateOrder.be = ["lu", "fr"];
this.stateOrder.it = ["mt", "mc", "es", "fr_c", "it_s"];
this.stateOrder.it_s = [];
this.stateOrder.fr_c = ["it_s"];
this.stateOrder.by = ["ua"];
this.stateOrder.pl = ["cz", "sk"];
this.stateOrder.gr = [];
this.stateOrder.fi = ["se", "ee"];
this.stateOrder.de = ["ch", "at", "cz", "fr"];
this.stateOrder.se = ["dk", "pl"];
this.stateOrder.no = ["se", "nl", "fi"];
this.stateOrder.ua = ["ro", "md"];
this.stateOrder.tr = ["cy", "gr"];
this.stateOrder.cy = [];
this.stateOrder.ie = ["es", "fr"];
this.stateOrder.gb = ["fr"];
this.stateOrder.ch = ["it"];
this.stateOrder.at = ["si", "hu", "it"];
this.stateOrder.cz = ["at", "sk"];
this.stateOrder.sk = ["hu"];
this.stateOrder.hu = ["cs", "ro", "hr"];
this.stateOrder.lt = ["pl", "by", "ru_kaliningrad"];
this.stateOrder.lv = ["by", "lt"];
this.stateOrder.md = ["ro"];
this.stateOrder.ro = ["bg", "cs"];
this.stateOrder.bg = ["mk", "tr", "gr"];
this.stateOrder.al = ["gr"];
this.stateOrder.ee = ["lv"];
this.stateOrder.ad = ["es"];
this.stateOrder.sm = ["it"];
this.stateOrder.mc = [];
this.stateOrder.lu = ["fr"];
this.stateOrder.fr = ["es", "ad", "mc", "ch"];
this.stateOrder.li = ["ch"];
this.stateOrder.nl = ["be"];
this.stateOrder.ba = ["it"];
this.stateOrder.si = ["hr", "it"];
this.stateOrder.mk = ["gr", "al"];
this.stateOrder.hr = ["ba"];
this.stateOrder.cs = ["al", "mk"];
this.stateOrder.dk = ["de", "gb"];
this.stateOrder.ru_kaliningrad = ["pl"];
this.stateOrder.ru = ["fi"];
this.stateOrder.mt = [];
};
_local1.initStates = function () {
var _local2 = this.STATES_DY;
this.STATE_POS = new Array();
this.STATE_POS.is = [this.STATES_DX + 21, _local2 + 58];
this.STATE_POS.it_s = [this.STATES_DX + 175, _local2 + 406];
this.STATE_POS.fr_c = [this.STATES_DX + 179, _local2 + 384];
this.STATE_POS.pt = [this.STATES_DX + 6, _local2 + 374];
this.STATE_POS.es = [this.STATES_DX + 20, _local2 + 355];
this.STATE_POS.be = [this.STATES_DX + 135, _local2 + 278];
this.STATE_POS.it = [this.STATES_DX + 163, _local2 + 334];
this.STATE_POS.by = [this.STATES_DX + 289, _local2 + 206];
this.STATE_POS.pl = [this.STATES_DX + 221, _local2 + 236];
this.STATE_POS.gr = [this.STATES_DX + 288, _local2 + 383];
this.STATE_POS.fi = [this.STATES_DX + 240, _local2 + 43];
this.STATE_POS.de = [this.STATES_DX + 160, _local2 + 238];
this.STATE_POS.se = [this.STATES_DX + 200, _local2 + 61];
this.STATE_POS.no = [this.STATES_DX + 162, _local2 + 31];
this.STATE_POS.ua = [this.STATES_DX + 291, _local2 + 239];
this.STATE_POS.tr = [this.STATES_DX + 342, _local2 + 334];
this.STATE_POS.cy = [this.STATES_DX + 416, _local2 + 432];
this.STATE_POS.ie = [this.STATES_DX + 40, _local2 + 219];
this.STATE_POS.gb = [this.STATES_DX + 65, _local2 + 163];
this.STATE_POS.ch = [this.STATES_DX + 158, _local2 + 325];
this.STATE_POS.at = [this.STATES_DX + 189, _local2 + 309];
this.STATE_POS.cz = [this.STATES_DX + 209, _local2 + 284];
this.STATE_POS.sk = [this.STATES_DX + 248, _local2 + 298];
this.STATE_POS.hu = [this.STATES_DX + 244, _local2 + 308];
this.STATE_POS.lt = [this.STATES_DX + 268, _local2 + 209];
this.STATE_POS.lv = [this.STATES_DX + 266, _local2 + 188];
this.STATE_POS.md = [this.STATES_DX + 327, _local2 + 299];
this.STATE_POS.ro = [this.STATES_DX + 280, _local2 + 303];
this.STATE_POS.bg = [this.STATES_DX + 302, _local2 + 352];
this.STATE_POS.al = [this.STATES_DX + 277, _local2 + 382];
this.STATE_POS.ee = [this.STATES_DX + 268, _local2 + 167];
this.STATE_POS.ad = [this.STATES_DX + 115, _local2 + 384];
this.STATE_POS.sm = [this.STATES_DX + 213, _local2 + 372];
this.STATE_POS.mc = [this.STATES_DX + 164, _local2 + 373];
this.STATE_POS.lu = [this.STATES_DX + 159, _local2 + 295];
this.STATE_POS.fr = [this.STATES_DX + 72, _local2 + 282];
this.STATE_POS.li = [this.STATES_DX + 187, _local2 + 332];
this.STATE_POS.nl = [this.STATES_DX + 141, _local2 + 255];
this.STATE_POS.ba = [this.STATES_DX + 243, _local2 + 353];
this.STATE_POS.si = [this.STATES_DX + 221, _local2 + 334];
this.STATE_POS.mk = [this.STATES_DX + 289, _local2 + 383];
this.STATE_POS.hr = [this.STATES_DX + 223, _local2 + 339];
this.STATE_POS.cs = [this.STATES_DX + 268, _local2 + 339];
this.STATE_POS.dk = [this.STATES_DX + 179, _local2 + 204];
this.STATE_POS.ru_kaliningrad = [this.STATES_DX + 261, _local2 + 227];
this.STATE_POS.ru = [this.STATES_DX + 273, _local2 + 0];
this.STATE_POS.mt = [this.STATES_DX + 234, _local2 + 467];
var _local3 = new TetrisBlockMetrics(this);
this.STATE_BORDERS = _local3.state_borders;
};
ASSetPropFlags(_local1, null, 1);
_local1.TIME_FIELD_Y = 7;
_local1.INFO_TITLE = "Statetris-Europe";
_local1.INFO_STATES = "countries";
_local1.SCORE_COMMENTS = [["Wow", "Perfect, have you tried Statetris-USA?"], ["Well done", "I doubt you can beat that time..."], ["Congratulations", "You probably travel a lot, don't you?"], ["Very good", "You have been practicing, right?"], ["Okay", "I don't think you've ever been to Europe"], ["Okay", "Well, I've seen people do worse..."], ["Too bad", "You're getting there, but you can do better..."], ["Too bad", "You really need more practice, try again..."], ["Errrr", "What planet are you from? :-)"]];
_local1.SCORE_TIME_BEST = (3 * 60) * 1000;
_local1.SCORE_TIME_WORST = (12 * 60) * 1000;
_local1.BLOCK_FALL_DX = 25;
_local1.BLOCK_FALL_DY = 16;
_local1.BLOCK_FALL_TICKS = 10;
_local1.STATES_DX = 12;
_local1.CENTER_X = 275;
_local1.HEIGHT = 525;
_local1.STATES_DY = 525 - 479;
_local1.WIDTH = 550;
_local1.LEVEL_STATE_IDS = ["ie", "de", "bg"];
_local1.TINY_STATES = ["ad", "mc", "sm", "li", "mt"];
_local1.STATES = ["is", "pt", "es", "be", "it", "it_s", "by", "pl", "gr", "fi", "de", "se", "no", "ua", "tr", "cy", "ie", "gb", "ch", "at", "cz", "sk", "hu", "lt", "lv", "md", "ro", "bg", "al", "ee", "ad", "sm", "mc", "lu", "fr", "fr_c", "li", "nl", "ba", "si", "mk", "hr", "cs", "dk", "ru_kaliningrad", "ru", "mt"];
}
#endinitclip
Symbol 20482 MovieClip [__Packages.TetrisBlock] Frame 0
class TetrisBlock
{
var id, canvas, mc, mcs, rot;
function TetrisBlock (c, i) {
id = i;
canvas = c;
mc = canvas.mc.createEmptyMovieClip(id, canvas.mc.getNextHighestDepth());
mcs = [];
var _local4 = 0;
for ( ; _local4 < 4 ; _local4++) {
var _local5 = (("" + i) + "_") + _local4;
var _local6 = mc.attachMovie(_local5, _local5, mc.getNextHighestDepth());
_local6._visible = false;
mcs.push(_local6);
}
rot = Math.floor(Math.random() * 4);
if ((TetrisLogic.instance.mode == TetrisLogic.MODE_EASY) || (!TetrisVariant.instance.canRotate(id))) {
rot = 0;
}
mcs[rot]._visible = true;
mc._x = TetrisVariant.instance.STATE_POS[id][0];
mc._y = 0;
createTextField(mc, TetrisVariant.instance.STATE_NAMES[i], i);
adjustLabelToRotation();
mc.stateLabel._visible = (TetrisLogic.instance.mode != TetrisLogic.MODE_HARD) || (TetrisVariant.instance.isTinyState(id));
return(mc);
}
function canRotate() {
return(TetrisVariant.instance.canRotate(id));
}
static function createTextField(mc, txt, id) {
var _local5 = getTextFormat();
var _local6 = _local5.getTextExtent(txt);
var _local7 = TetrisVariant.instance.STATE_BORDERS[id][0][0][1].length;
mc.createTextField("stateLabel", mc.getNextHighestDepth(), (_local7 - _local6.textFieldWidth) / 2, -20, _local6.textFieldWidth, _local6.textFieldHeight);
mc.stateLabel.setNewTextFormat(_local5);
mc.stateLabel.text = txt;
mc.stateLabel.selectable = false;
return(mc.stateLabel);
}
static function getTextFormat() {
var _local2 = new TextFormat();
_local2.font = "Arial";
_local2.size = LABEL_SIZE;
_local2.bold = true;
return(_local2);
}
function destroy() {
mc.removeMovieClip();
}
function rotate() {
mcs[rot]._visible = false;
rot--;
if (rot < 0) {
rot = 3;
}
mcs[rot]._visible = true;
adjustLabelToRotation();
}
function adjustLabelToRotation() {
var _local2 = mc.stateLabel.getTextFormat();
var _local3 = _local2.getTextExtent(mc.stateLabel.text);
var _local4 = TetrisVariant.instance.STATE_BORDERS[id][rot][0][1].length;
mc.stateLabel._x = (_local4 - _local3.textFieldWidth) / 2;
}
function isXOnSpot() {
var _local2 = Math.abs(mc._x - TetrisVariant.instance.STATE_POS[id][0]);
return((_local2 < TetrisVariant.instance.BLOCK_FALL_DX) && (rot == 0));
}
function isOnSpot() {
var _local2 = isXOnSpot();
if (_local2) {
var _local3 = Math.abs(mc._y - TetrisVariant.instance.STATE_POS[id][1]);
_local2 = _local3 < TetrisVariant.instance.BLOCK_FALL_DY;
}
return(_local2);
}
function isOnTrack() {
var _local2 = isXOnSpot();
if (_local2) {
_local2 = mc._y < TetrisVariant.instance.STATE_POS[id][1];
}
return(_local2);
}
function fixate() {
mc._x = TetrisVariant.instance.STATE_POS[id][0];
mc._y = TetrisVariant.instance.STATE_POS[id][1];
mc.stateLabel._visible = true;
}
function beyondScreen() {
return((mc._y + height()) > TetrisVariant.instance.HEIGHT);
}
function width() {
return(TetrisVariant.instance.STATE_BORDERS[id][rot][0][1].length);
}
function height() {
return(TetrisVariant.instance.STATE_BORDERS[id][rot][1][0]);
}
function collidesWith(blk) {
var _local3 = TetrisVariant.instance.STATE_BORDERS[blk.id][blk.rot];
var _local4 = TetrisVariant.instance.STATE_BORDERS[id][rot];
var _local5 = _local3[0][1];
var _local6 = _local4[0][1];
var _local7 = _local3[1][0];
var _local8 = _local3[1][1];
var _local9 = _local4[1][0];
var _local10 = _local4[1][1];
var _local11 = _local6.length;
var _local12 = _local5.length;
if (((mc._x + _local11) <= blk.mc._x) || ((mc._x >= (blk.mc._x + _local12)) || (((mc._y + _local9) <= blk.mc._y) || (mc._y >= (blk.mc._y + _local7))))) {
return(false);
}
var _local13 = mc._x;
if (blk.mc._x > _local13) {
_local13 = blk.mc._x;
}
var _local14 = (mc._x + _local11) - 1;
if (((blk.mc._x + _local12) - 1) < _local14) {
_local14 = (blk.mc._x + _local12) - 1;
}
var _local15 = _local13 - mc._x;
var _local16 = _local13 - blk.mc._x;
var _local17 = (_local14 - _local13) + 1;
while (_local17 > 0) {
if (!(((_local5[_local16] + blk.mc._y) > (_local10[_local15] + mc._y)) || ((_local8[_local16] + blk.mc._y) <= (_local6[_local15] + mc._y)))) {
return(true);
}
_local15++;
_local16++;
_local17--;
}
return(false);
}
//ASSetPropFlags(_local1, null, 1);
static var LABEL_SIZE = 14;
}
Symbol 20483 MovieClip [__Packages.TetrisBlockMetrics] Frame 0
class TetrisBlockMetrics
{
var state_borders;
function TetrisBlockMetrics (variant) {
state_borders = new Array();
var _local3 = variant.getMetrics();
var _local4 = 0;
for ( ; _local4 < variant.STATES.length ; _local4++) {
var _local5 = variant.STATES[_local4];
state_borders[_local5] = [];
var _local6 = 0;
for ( ; _local6 < 4 ; _local6++) {
var _local7 = _local3[_local6];
state_borders[_local5][_local6] = descramble(_local7.state_borders[_local5]);
}
}
}
function rle(l) {
var _local3 = [];
var _local5 = 0;
var _local4 = 0;
for ( ; _local4 < l.length ; _local4++) {
var _local6 = l[_local4];
if (_local5 >= 0) {
if (_local6 >= 0) {
_local3.push(_local6);
}
} else {
var _local7 = 0;
for ( ; _local7 < (-_local5) ; _local7++) {
_local3.push(_local6);
}
}
_local5 = _local6;
}
return(_local3);
}
function descramble(dat) {
return([[dat[0][0], rle(dat[0][1])], [dat[1][0], rle(dat[1][1])]]);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20484 MovieClip [__Packages.TetrisBlockMetricsEurope0] Frame 0
class TetrisBlockMetricsEurope0
{
var state_borders;
function TetrisBlockMetricsEurope0 () {
state_borders = new Array();
state_borders.is = [[0, [15, -3, 14, -2, 5, 6, -2, 4, -2, 3, 2, -2, 1, 2, -3, 0, -2, 1, 2, 6, 10, 13, 12, -3, 10, 11, -6, 12, -3, 13, 14, 16, -3, 15, 16, -5, 13, 16, 18, -3, 17, 18]], [44, [15, 16, -2, 30, -2, 31, -2, 32, -2, 33, 35, 37, -2, 39, 40, 41, 42, 43, -7, 44, -3, 42, -6, 43, -2, 42, -5, 41, -3, 42, -2, 41, -3, 39, -2, 38, 37, -2, 36, 34]]];
state_borders.it_s = [[0, [5, -2, 3, -3, 4, 3, 2, -2, 1, -4, 0, -2, 1, 6, 8]], [29, [-2, 8, -2, 27, -4, 29, -2, 28, -2, 25, -3, 26, 23, 15, 9]]];
state_borders.fr_c = [[0, [-2, 7, -3, 5, 4, 3, 2, -2, 0, 1]], [21, [11, 16, 18, -2, 19, 20, -2, 21, 18, 17, 11]]];
state_borders.pt = [[0, [36, 35, 33, -2, 30, 29, 28, 26, 25, 23, 20, 18, 16, 15, -2, 2, 1, -6, 0, 1, 3, -3, 4, -2, 5, -3, 4, -4, 5, -2, 9, 10]], [63, [38, -2, 60, -2, 59, -2, 60, -2, 61, -2, 62, -2, 63, -2, 62, -2, 61, 57, 55, 54, -3, 52, 51, 50, 41, -2, 32, 31, 29, 25, 23, 17, 16, 15, -2, 14, -2, 13, 12]]];
state_borders.es = [[0, [6, 5, -5, 4, -2, 3, -2, 2, -2, 1, -6, 0, 1, 2, -4, 4, -5, 5, -2, 6, -2, 5, 6, -2, 7, -2, 8, -2, 9, -2, 10, -3, 11, -3, 12, -5, 11, 12, 13, 14, -4, 13, 14, 15, -7, 16, -2, 17, 18, -3, 21, -2, 22, -4, 24, 25, -5, 26, 27, -2, 25, -2, 26, 27, -2, 28, 29, -3, 31, 32, 33, -2, 32, -4, 33, 32, -4, 33, 35, -3, 62, -2, 63, 64]], [113, [8, 18, -3, 80, -2, 81, 82, 83, 84, 89, 92, -2, 95, 96, 97, 102, -4, 103, 96, 95, -6, 94, 93, -4, 92, -4, 93, -2, 94, -2, 112, -2, 113, -5, 95, 94, 95, -3, 96, 95, 94, 93, 91, 90, 89, -3, 88, 87, -5, 88, 84, -2, 81, 79, 78, -3, 77, -2, 76, 75, 59, 58, 57, 56, 55, -3, 53, 52, 49, -5, 48, -2, 47, 72, -2, 73, 74, -2, 75, 74, -2, 71, -2, 72, 71, 70, 69, 68, 36, 64, -3, 65, -2, 66, 67]]];
state_borders.be = [[0, [-2, 4, -2, 3, -2, 2, -2, 1, -5, 3, -2, 2, -3, 1, 0, -2, 1, 2, -4, 4, 5, 10, 11, 12, 14]], [26, [7, 9, -2, 10, 9, 12, -2, 13, -3, 15, 19, -5, 20, -2, 22, 23, 24, -5, 26, 25, -2, 19, 17, 16]]];
state_borders.it = [[0, [-2, 23, 15, -6, 14, -2, 13, 14, 13, 10, 9, -3, 8, 11, -2, 12, 13, 11, 8, -2, 7, -4, 9, -3, 6, -4, 3, -2, 4, 2, -7, 1, -3, 0, 3, 4, -4, 5, -7, 6, 16, 17, 47, 50, 53, 54, -2, 56, 57, 58, 59, 60, -3, 61, -3, 62, -7, 61, -2, 68, -4, 69, -3, 70, -2, 71, 72, -3, 73, -3, 74, 76, -2, 77, 78, 79, 80]], [126, [25, 26, 34, -2, 35, -3, 36, -3, 41, -3, 40, 39, 37, 36, 35, 34, -2, 33, 34, -3, 35, 36, 37, -4, 38, 40, 44, 46, 51, 52, -2, 53, 54, 55, -4, 58, 59, 61, -2, 62, 63, 64, 66, -2, 67, 114, 115, 116, -2, 117, 116, -2, 117, 118, -3, 119, 120, -6, 121, 122, 124, -2, 125, -2, 126, -2, 125, -2, 126, 123, 122, 108, -2, 110, -2, 111, -2, 110, 107, -2, 105, 104, -3, 98, -2, 97, -5, 80, 83, 84, -4, 85, 82]]];
state_borders.by = [[0, [-2, 34, 35, -2, 34, -2, 33, 34, 32, 31, -2, 30, -2, 28, 21, 19, 18, -2, 9, 7, -4, 6, 3, 2, -11, 1, 3, 2, -2, 1, -2, 0, -2, 1, -3, 2, 4, 7, 8, -2, 13, 15, 16, 17, -4, 18, -6, 21, -2, 23, 24]], [65, [35, 37, 56, -3, 57, 64, 65, 64, -3, 63, 61, -2, 59, -2, 58, -5, 57, -11, 56, -2, 57, -5, 58, -4, 56, 55, -2, 57, -2, 54, -3, 56, 55, -3, 54, 53, 54, -3, 55, 54, 44, 43, -3, 42, 26, 25]]];
state_borders.pl = [[0, [-2, 15, -3, 13, -2, 12, -2, 11, -3, 10, -3, 9, 8, 7, 5, -3, 4, -2, 3, 2, -2, 1, -7, 0, -2, 1, 2, -2, 5, -2, 4, -16, 3, -5, 2, -2, 1, -3, 0, -3, 1, 3, 6, 8, 10, 12, 13, 16, 34, 37, 38, 39, 40, 41, 44]], [67, [-2, 16, -2, 28, -2, 29, 34, 41, 43, -3, 51, 50, -2, 51, -2, 52, -2, 53, 54, -2, 56, 57, -3, 59, -2, 58, 56, -2, 57, -2, 58, -3, 60, 59, -2, 60, 61, 62, 63, 65, -3, 66, 65, 64, -2, 65, -4, 67, 66, -3, 64, -3, 65, 64, -5, 63, 64, -4, 65, -5, 66, 52, 50, -2, 48, -2, 47]]];
state_borders.gr = [[0, [-2, 35, 31, -2, 30, 28, 24, 20, -4, 19, -2, 18, 17, 15, -6, 14, 12, 11, -2, 10, 11, -5, 9, 8, -2, 7, -3, 6, -2, 5, 6, 7, -3, 6, -4, 7, -2, 6, 5, -5, 0, -2, 1, -4, 78, -2, 77, 79, -2, 78, -3, 77]], [85, [-2, 37, -2, 39, 40, 41, -2, 53, 54, 53, -2, 54, 50, -2, 56, 58, -3, 59, 65, 66, -3, 69, 68, 65, 67, 68, 71, -2, 72, 66, 68, -2, 69, -3, 70, 58, 52, 53, -13, 83, -3, 85, -3, 84, -3, 83, -4, 82, -3, 81, 80]]];
state_borders.fi = [[0, [19, 15, -2, 14, -2, 15, 16, 18, 19, -4, 21, 20, -2, 18, -3, 19, 20, 7, 5, -4, 2, -4, 0, 1, -3, 2, 3, 4, 5, 19, -4, 21, 22, 23, -2, 24, 25, 38, 39, 40, 42, 43, 44, 46, 48, 55, -3, 59, -3, 64, 65, 72, -2, 73, -2, 74, 75, -2, 76, 77, 78]], [128, [19, 21, -2, 22, 23, -2, 24, -3, 25, -2, 26, 27, 28, 29, 98, 99, 104, 105, 115, 118, 121, -2, 122, -2, 121, -3, 122, -2, 124, 125, -3, 128, -3, 126, 125, -3, 124, 123, -2, 122, -2, 121, 120, -3, 119, -2, 117, -3, 116, 115, -3, 114, 113, 110, 108, 107, 105, 103, 101, 98, 95, 93, 90, 87, 83]]];
state_borders.de = [[0, [-2, 47, -2, 37, 36, -2, 37, 35, 28, 27, 28, 17, 16, -7, 15, 17, 19, 13, -4, 0, -4, 1, -3, 2, 4, -2, 6, -3, 7, -2, 6, 11, 12, 10, -3, 9, -2, 8, 6, -3, 5, 6, 4, 3, 2, 3, 4, 6, 10, 13, -2, 14, 16, 19, -2, 27, 32, -2, 41]], [94, [47, 50, 61, 66, 67, 68, 70, -5, 71, -5, 91, -2, 90, -3, 91, -6, 90, -5, 91, 93, -3, 94, 93, -2, 91, 92, -3, 93, -2, 92, 91, -5, 90, 89, -3, 90, -2, 91, 92, 91, -2, 81, -3, 78, -2, 50, -2, 49, -2, 50, 49]]];
state_borders.se = [[0, [-3, 127, 74, 70, 68, 67, 66, -3, 65, 64, 57, 54, 52, -3, 39, 38, 34, 32, -2, 22, 19, 16, 15, -2, 14, 15, 9, -4, 8, -3, 9, 1, -3, 0, 1, 2, 3, -2, 4, 5, -2, 6, -4, 7, 8, 9, 10, 11, 16, 17, 22, 23, 24, 33, 34, 35]], [173, [-2, 136, -2, 137, 144, 148, 165, 167, 170, 172, -2, 173, -7, 172, -5, 171, 169, -2, 163, -2, 161, 162, -2, 161, -2, 162, 161, 159, 155, -2, 159, 156, 150, 146, -2, 126, 124, -2, 123, 149, 150, 149, 147, 146, 144, 143, 57, 43, 42, 39, 40, 39, -4, 38, 37]]];
state_borders.no = [[0, [134, 123, -4, 117, 118, -2, 115, 113, -3, 112, 108, -3, 107, -2, 108, -2, 107, 106, 99, -3, 98, -2, 102, 99, 98, 95, 94, 93, 91, -2, 89, 88, 85, -4, 84, 77, 74, 69, 64, 63, 44, 43, 42, 43, 37, 36, -3, 35, 34, -2, 33, -2, 34, 28, -2, 27, 26, -2, 25, 27, -2, 20, -3, 19, 18, 19, -3, 16, 15, 14, 10, -2, 9, -2, 8, -2, 7, 9, 6, -3, 4, -4, 1, 2, 3, -2, 2, -6, 0, -6, 1, -2, 2, -2, 3, 4, -2, 5, 11, 13]], [170, [135, 155, 162, -2, 163, 164, -2, 166, 168, -2, 169, -2, 170, 169, -2, 170, -3, 169, -2, 168, 167, 166, 165, 164, -2, 163, 161, -5, 158, 157, -2, 155, -3, 156, 158, -2, 159, 158, 149, -2, 146, 145, 140, 130, -5, 95, 81, 73, -2, 69, 68, 63, 61, 60, 58, 48, 46, 45, -3, 46, -4, 39, -5, 40, 39, -2, 31, 27, 28, 29, 31, 32, -6, 34, 33, 31, 47, -2, 32, -2, 33, 32, -2, 29, -3, 15, -2, 13, -2, 14, -3, 15, 22, -3, 23, 18, 17, -3, 15]]];
state_borders.ua = [[0, [68, 65, 55, 53, 51, -4, 29, 26, -3, 25, -2, 24, -6, 23, -3, 22, -4, 23, -5, 22, -5, 23, 22, -4, 21, 22, -4, 20, 22, 21, -2, 20, -4, 19, 13, 11, -2, 10, -3, 9, -2, 8, 9, 8, -5, 4, 2, -4, 1, 0, 1, -2, 2, 4, -2, 5, 6, 11, -3, 12, -3, 11, -3, 12, 14, 15, 18, 19, 18, -7, 17, 16, 15, 14, -3, 13, 14, 15, -3, 16, -4, 15, 14, -2, 15, -3, 14, 15, -2, 14, -2, 15, -3, 14, 17, 22, 23, 28, 29]], [97, [-2, 71, -2, 73, -3, 74, -2, 76, 75, -11, 74, 73, 74, -4, 75, 73, -2, 72, -3, 71, -2, 70, 69, -2, 66, -2, 64, -3, 63, 62, -3, 61, 62, -2, 63, -3, 64, -2, 63, 64, 65, 96, -6, 97, -2, 96, 95, 94, 93, 94, -2, 96, 89, 87, 86, 84, 81, 76, -4, 75, -2, 76, -9, 78, -6, 86, -4, 87, -3, 94, -3, 95, -2, 94, 92, 90, 88, 87, -3, 86, 84, 83, -4, 81, -3, 80, 75, -2, 51, 50, -2, 51, 42, -2, 38, -4, 37, 36]]];
state_borders.tr = [[0, [48, 47, -2, 45, 44, -5, 43, 44, -2, 43, -3, 42, 45, 46, 47, -16, 48, 47, -8, 46, -2, 45, 42, 41, 40, 39, 38, 36, 35, 34, 33, -2, 32, 31, 30, 29, -3, 28, -4, 27, -4, 26, -3, 25, 23, -4, 22, 25, -2, 26, 25, 24, -2, 23, -2, 24, 25, -2, 27, 26, -5, 25, -2, 26, 25, 26, 25, -3, 24, -4, 25, -2, 24, -2, 22, 21, -2, 20, 19, -8, 18, 17, 15, 14, -2, 12, 10, 9, -4, 6, -2, 4, -3, 3, 1, -3, 0, -4, 1, -3, 2, 3, -2, 4, 5, 6, 11, 12, 13, -2, 12, -5, 11, -3, 12, 13, 27, -3, 29, -3, 35, 36, 38, -2, 39, 40]], [108, [-2, 63, 66, -3, 77, 76, -3, 91, -3, 92, 91, -2, 92, -3, 97, 103, -2, 104, -5, 107, 105, -3, 107, 106, 105, 103, -2, 104, -2, 105, 104, 105, -6, 107, -3, 108, 107, 106, -4, 105, 97, -10, 96, -3, 97, 98, -2, 99, -2, 100, -4, 101, -3, 99, -2, 98, -2, 97, 96, 95, -2, 94, 90, 88, 87, 86, -2, 85, -6, 86, -2, 85, 82, 88, 89, 92, 91, -3, 92, 89, 86, 85, -2, 79, -4, 78, 77, 76, 74, 73, -2, 72, 71, -7, 72, -2, 71, 70, -2, 69, 68, 67, 66, 65, 64, 63, 61, 60, -2, 59, -3, 58, -2, 57, -2, 56, 55, -2, 54, -2, 52, 53, 52, 51, -3, 48, -7, 46, 45, 44, 43, -3, 46, 44, -2, 42]]];
state_borders.cy = [[0, [-3, 14, -2, 12, -4, 9, -3, 8, -2, 7, 6, 5, 4, 3, 2, -2, 1, 0]], [19, [15, 17, 18, -8, 19, 17, 16, -2, 15, 14, -2, 12, -2, 11, 3, 2]]];
state_borders.ie = [[0, [34, -4, 30, 29, 16, -2, 15, 14, -7, 7, -3, 8, 9, 4, 3, 1, -7, 0, -2, 1, 2, 12, 14, 15, -2, 16]], [42, [36, -2, 38, -3, 41, -3, 42, 41, -5, 42, 41, 40, 41, -2, 40, -3, 39, -6, 38, -3, 39, 36, 35, 34, 32, 31, 25, 18]]];
state_borders.gb = [[0, [64, -2, 63, -3, 61, 59, -3, 58, -6, 57, 58, 25, -3, 21, -2, 20, 19, -2, 18, 19, -2, 26, 25, 23, 21, 20, -3, 19, 20, -7, 21, -4, 15, 17, 18, -2, 34, 36, 74, 75, 77, 78, -3, 3, 2, 0, 1, -2, 95, -2, 96, 97]], [123, [65, 67, 68, -2, 69, 120, -2, 121, -3, 123, -3, 121, -4, 120, -2, 121, 122, -2, 123, 122, 120, -3, 117, -2, 118, 119, -2, 121, -2, 120, -2, 121, -6, 119, -8, 120, -4, 121, -5, 120, -3, 118, 117, -2, 107, 105, 103]]];
state_borders.ch = [[0, [20, 15, 14, -2, 13, 10, -2, 9, 7, 4, -2, 3, -2, 4, 3, 2, -4, 3, -2, 2, 1, -2, 0, 1, -5, 2, 3, 4, -2, 10, 11, 12, 11, -2, 10]], [25, [20, 21, -2, 20, 19, -2, 17, 21, 22, 23, -4, 24, -2, 23, -2, 24, 23, 22, -2, 20, -2, 21, 23, 24, -2, 25, 24, 20, -4, 19, 18, -3, 20, -2, 17]]];
state_borders.at = [[0, [-2, 20, -3, 19, 20, 21, -5, 19, 20, -2, 21, -2, 20, 19, -4, 18, -3, 17, 18, 12, 11, -2, 10, -2, 9, -2, 6, -3, 4, -2, 5, 6, -2, 5, 4, 3, -5, 0, -3, 1, -3, 2, 3, 2, 1, -3, 2, 3, 9, 10]], [33, [-2, 26, 27, -2, 28, 29, -2, 28, -3, 29, -3, 30, 28, -7, 27, 28, 29, -2, 30, -7, 31, -6, 32, -2, 33, 32, -2, 33, 32, 31, -6, 30, 28, -3, 29, 26, 25, 24, 23, 18, -2, 16, 15]]];
state_borders.cz = [[0, [-2, 10, 11, 10, -2, 9, -3, 8, 7, 6, -3, 5, 4, -2, 3, -2, 0, 1, 2, 3, 1, 0, -2, 1, 2, -3, 3, -5, 4, 5, 10, -5, 7, -2, 8, -2, 7, 11, -2, 10, -4, 11, -2, 14, 16]], [31, [12, -2, 14, 19, 21, -2, 22, 23, 24, 25, -2, 26, 27, 28, 29, 30, -8, 31, 29, -5, 26, -2, 27, -5, 28, 27, -2, 28, -2, 29, 27, -5, 26, 25, 23, 22, 19, -2, 18, 17, 16]]];
state_borders.sk = [[0, [17, 14, 12, -5, 11, -2, 9, 5, -2, 4, 3, -5, 2, 1, 0, 1, -2, 2, 3, 4, 3, 2, -4, 1, 2, -8, 0, 1, -2, 2, -3, 3]], [25, [18, 20, 21, -2, 22, -2, 23, 24, -7, 25, -4, 24, -4, 20, 19, -4, 18, 17, -2, 16, 13, -6, 12, 11, -5, 13, 12, 9, 5]]];
state_borders.hu = [[0, [26, 25, -5, 16, -4, 12, 13, -8, 14, 13, -3, 10, -2, 9, -4, 7, 8, -2, 6, 4, 2, -3, 1, -2, 2, 1, -3, 0, -3, 2, -2, 1, 2, -2, 3, -3, 4, 5]], [39, [-2, 27, 29, 30, 31, 32, 33, -2, 34, 35, 36, -3, 37, 38, -8, 39, 38, 37, -2, 36, -2, 35, 34, 33, 32, -2, 33, -5, 32, -3, 31, -2, 30, 29, 25, 24, 21, 16, 15, 11, 10, -3, 9, 7]]];
state_borders.lt = [[0, [9, 8, 6, -2, 5, -4, 4, -8, 3, -3, 2, 3, -2, 2, 1, -3, 0, 1, -5, 2, -2, 3, 4, 5, -3, 6, -2, 10, 11]], [32, [12, -4, 19, -4, 20, -2, 21, -2, 20, -2, 21, -3, 28, -3, 29, -5, 32, 31, -3, 32, -2, 30, -2, 28, 26, -3, 27, 26, -3, 13, 11]]];
state_borders.lv = [[0, [21, 20, 13, -2, 11, 10, -2, 9, -3, 8, 10, -2, 11, 12, 14, -2, 15, 16, -2, 4, 3, 2, -2, 1, -2, 0, 1, 2, 1, -2, 2, 3, 4, -2, 5, -3, 3, -2, 4, 3, 4, -2, 5, 6, 11, 13, 14, 15, 16]], [30, [22, 29, -3, 30, 28, 27, -2, 26, -8, 25, -10, 24, 22, 23, -6, 24, 25, 26, -2, 27, -3, 28, 27, 26, -4, 25, 23, 21, 20]]];
state_borders.md = [[0, [5, -4, 3, -2, 2, 1, -2, 0, -3, 1, -7, 2, -3, 3, 4, 9, -4, 10, 14, -3, 15, 17, 19, 20]], [36, [-2, 6, 5, 6, 7, 8, 10, 11, 12, 13, 14, -2, 15, 16, 17, 18, 19, 20, 29, 31, 35, -2, 36, -2, 35, 31, 28, -2, 23, -5, 22, 21, 20]]];
state_borders.ro = [[0, [-4, 36, -3, 34, 33, 29, 27, 22, 20, 17, 15, -3, 14, 13, 11, 10, -9, 9, 10, 9, -2, 8, -2, 9, -2, 10, 8, -3, 7, -3, 6, 5, -2, 2, 1, 0, -3, 1, 2, 3, 5, 6, 7, 8, 9, 10, -2, 11, 12, 13, 14, 15, 17, 26, 28, 31, 32, -2, 33, 32, -2, 31, 30, -5, 29, 31]], [61, [38, -2, 39, 40, 41, 44, 45, -3, 46, 47, -3, 52, -4, 53, 54, 55, 54, 53, -2, 56, -2, 57, -6, 61, -3, 60, -6, 61, 60, -10, 59, 58, 57, 56, 54, -2, 53, -2, 52, -2, 51, -3, 50, -2, 51, 50, -2, 51, 50, 51, -5, 52, 51, 40, 38, -3, 37]]];
state_borders.bg = [[0, [-2, 10, -2, 7, -3, 8, -11, 11, -3, 10, -2, 9, -5, 10, -2, 9, 7, 6, 5, 4, 3, -3, 2, -2, 1, -3, 0, -2, 1, -5, 0, -6, 2]], [43, [14, 16, 17, 32, -2, 33, -2, 34, 35, 36, 43, -3, 42, -3, 41, -3, 40, 39, -3, 38, 37, -2, 38, -2, 39, -2, 38, -4, 39, -2, 38, -3, 37, 36, 32, 30, 28, -2, 27, 26, 25, -2, 26, -2, 27, 26, -3, 25]]];
state_borders.al = [[0, [7, 5, 3, 1, 0, -4, 1, 2, -3, 4, 5, 14, 18, 19, -3, 20, 23]], [37, [7, 8, 17, -2, 30, -2, 31, -2, 32, 34, 36, 37, 36, 37, 36, 35, -2, 31, 27, 26, 24]]];
state_borders.ee = [[0, [-3, 15, 14, -2, 13, -2, 14, 11, 10, -2, 9, 7, -3, 6, -2, 4, -2, 5, 4, -14, 2, 1, 0, 1, 2, 18, 20]], [28, [22, 24, -3, 28, -2, 24, -2, 23, 22, 21, 20, -3, 21, -2, 22, -2, 26, -2, 25, 24, -4, 23, -3, 24, 25, -2, 26, -2, 27, 26, -4, 25, 23, 21]]];
state_borders.ad = [[0, [-5, 0]], [3, [2, -3, 3, 2]]];
state_borders.sm = [[0, [-3, 0]], [2, [-3, 2]]];
state_borders.mc = [[0, [2, 1, 0, -2, 1]], [4, [2, 3, -2, 4, 3]]];
state_borders.lu = [[0, [2, 1, -2, 0, 1, 4, -2, 5]], [10, [9, -6, 10, 7]]];
state_borders.fr = [[0, [28, -2, 22, -9, 21, 20, 21, -2, 20, 21, 22, 24, 25, -3, 24, 26, -2, 24, -2, 12, -5, 13, -3, 17, -3, 18, -3, 19, 15, -4, 14, -4, 13, -2, 12, 11, 8, 2, -5, 1, -4, 0, 4, 5, -2, 4, 6, -2, 8, 9, -3, 10, 11, -2, 15, 14, -2, 13, -2, 18, 19, 20, -3, 21, -5, 22, 23, -3, 25, 27, -3, 26, 27, -4, 28, 29]], [107, [-2, 29, -5, 32, -2, 33, 34, -2, 35, 36, 37, 38, 89, 90, 91, -3, 94, -3, 95, 96, -4, 98, 99, -3, 100, -2, 101, 100, -2, 101, 99, 100, -3, 101, -2, 103, 104, -2, 105, -4, 106, -4, 107, -2, 106, -3, 107, -3, 97, 96, 95, -3, 94, -3, 95, -7, 97, -3, 99, 100, -5, 101, -4, 100, 98, 97, 96, -2, 95, 94, -2, 93, 91, 89, 41, 37, 33, 32, 31, 30]]];
state_borders.li = [[0, [2, 0, 1, 2]], [4, [-4, 4]]];
state_borders.nl = [[0, [24, -2, 22, -3, 20, -2, 17, 16, 15, 13, 11, -4, 6, 5, 4, 3, -3, 2, -4, 1, -3, 0, 1, 2, -2, 3]], [34, [24, -3, 26, -3, 27, -3, 26, -3, 25, -2, 26, -2, 27, 28, -5, 34, 29, -3, 21, -2, 20, 17, 16, 9, 6]]];
state_borders.ba = [[0, [-4, 2, -2, 3, -4, 1, 0, -5, 1, -3, 2, -8, 1, -6, 3, 11, -2, 12]], [34, [-2, 8, 10, 12, -2, 15, 16, 17, 18, 19, 20, 21, -2, 22, 23, 25, -2, 26, -3, 29, 30, -2, 31, -2, 32, 33, 34, 31, 24, 23, -2, 24, 20, -2, 19]]];
state_borders.si = [[0, [9, 8, 7, -3, 6, -6, 7, 6, -6, 4, -3, 3, -2, 1, -2, 0, 2, 3, -2, 5]], [20, [10, 13, 15, -5, 20, -11, 19, 17, 15, 14, 9, -2, 8, 7, 5, -3, 6]]];
state_borders.mk = [[0, [-2, 8, 5, -2, 4, -2, 3, -4, 2, -2, 1, -5, 0, 1, -3, 2, 3, 4, 6]], [20, [13, 16, 18, 19, -6, 20, -3, 19, -2, 18, 16, -6, 15, 14, -2, 11]]];
state_borders.hr = [[0, [-4, 14, -3, 13, 14, 13, -2, 11, -4, 13, 10, 9, 5, 4, -2, 3, 2, -6, 0, 1, 2, 3, 4, 5, -4, 6, -6, 7, 6, -3, 5, 6, 9, 10, -3, 12]], [48, [16, 20, 21, -3, 23, 21, 20, 16, 17, -2, 18, 22, 25, 26, 30, 31, -2, 32, 33, -2, 34, 35, -6, 37, -3, 38, 39, -4, 43, -4, 44, -2, 45, 46, -2, 47, -2, 48, -2, 18, 17, -2, 14]]];
state_borders.cs = [[0, [5, 4, -3, 3, 2, 1, -2, 0, 1, -2, 0, -2, 1, 2, -2, 3, -2, 4, -3, 9, -3, 10, 11, 14, 17, -3, 16, -3, 14, -2, 15, -2, 16, 30, -2, 31, -2, 32]], [54, [6, 47, 48, -3, 50, -2, 51, 53, -3, 54, 47, -3, 46, 45, 46, -2, 47, 48, 52, -2, 53, 52, 49, -2, 48, -2, 49, -5, 46, -3, 45, 44, 43, 37, 36, 33]]];
state_borders.dk = [[0, [20, 13, 10, 8, -6, 7, 6, 4, -2, 2, -2, 1, -3, 0, -2, 14, 15, 23, 20, -3, 21, 20, -3, 19, -2, 20]], [38, [27, -3, 28, -5, 35, -2, 36, -3, 35, -3, 32, -3, 33, 32, -2, 36, 37, -3, 38, -2, 37, 36, 35, -2, 30]]];
state_borders.ru_kaliningrad = [[0, [12, 10, 6, -3, 5, 4, 5, -3, 1, -2, 0, -2, 1, -4, 2, -2, 1, 2, 3, 4]], [13, [12, -12, 13, -7, 12, -3, 11, 10]]];
state_borders.ru = [[0, [56, 55, 54, 49, 48, -2, 45, -4, 42, -3, 39, -4, 40, -3, 43, 44, -5, 43, -8, 42, -4, 43, -3, 44, -2, 45, -5, 46, -2, 47, -3, 46, 47, -2, 48, -4, 49, 50, 51, -2, 53, 54, 74, -4, 71, 70, -2, 69, -2, 68, 67, 66, 64, 63, 62, -5, 37, -3, 38, -9, 37, 39, -2, 40, -2, 41, 42, -3, 55, 25, -8, 23, -3, 24, 25, 38, 37, 35, -3, 34, 33, 32, 31, -2, 30, 28, 27, 26, -2, 25, 24, -3, 23, -2, 22, 30, 31, 30, 29, 27, -2, 26, -4, 24, 2, -4, 0, 1, -3, 2, -4, 3, -5, 4, -4, 3, -6, 2, -3, 1, -7, 2, -4, 3, -2, 2, -8, 3, -4, 4, -5, 5, -3, 2, -3, 3, -4, 4, -3, 5, -4, 6, -3, 7, -4, 8, -4, 9, 10, 11, 14, -3, 18, 13, -3, 12, -3, 13, -4, 14, -3, 15, -2, 16]], [325, [-2, 56, 61, 63, -2, 64, -3, 65, 67, 78, 80, 81, 82, 83, 84, 86, 87, 92, 97, 101, -2, 102, 103, 106, 107, -2, 156, 155, 178, 180, 184, 190, 192, 193, 194, 197, -2, 200, 201, 202, 204, 207, -4, 208, -2, 209, 208, 207, 209, -2, 211, 210, 209, -2, 208, 207, -2, 208, -2, 209, 213, 218, -2, 219, 221, 222, 223, -3, 224, 225, -2, 239, 240, 242, 244, 246, 247, 248, -2, 249, -2, 248, -4, 244, 243, 242, 241, 242, 241, 240, 241, 243, 244, -2, 248, 250, -2, 252, -2, 251, 252, -2, 251, -2, 252, 253, 254, 257, -2, 258, 259, -2, 258, -2, 257, -4, 258, 257, 256, 255, 254, 253, 254, 255, -3, 256, -3, 257, -7, 255, -6, 316, 317, 318, -4, 319, -2, 318, -2, 319, -3, 320, -4, 319, -3, 320, -2, 321, -2, 322, -2, 323, -2, 324, -3, 325, -3, 322, -7, 321, 320, -3, 321, -3, 320, 319, 318, -7, 317, -4, 318, -2, 317, -4, 319, 318, 317, 315, 314, -2, 315, 314, 312, -4, 313, 312, 313, -3, 315, -3, 316, -6, 315, -5, 316, -5, 318, -2, 317, 316, 310, 168, 167, 163, -3, 162]]];
state_borders.mt = [[0, [-4, 0, 2, 3]], [4, [1, 2, 3, -3, 4]]];
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20485 MovieClip [__Packages.TetrisMenu] Frame 0
class TetrisMenu
{
var canvas, mc, isEnd, scroller, logo, easyButton, mediumButton, hardButton, mode;
function TetrisMenu (c, end) {
canvas = c;
mc = c.mc.createEmptyMovieClip("menu", c.mc.getNextHighestDepth());
isEnd = end;
initLogo();
scroller = new Scroller(mc);
if (!isEnd) {
initButtons();
}
}
function initLogo() {
logo = mc.createEmptyMovieClip("logo", mc.getNextHighestDepth());
logo.attachMovie("logo", "logo", logo.getNextHighestDepth());
logo.onRelease = function (ok) {
_root.getURL("http://www.mapmsg.com/games/statetris/");
};
var _local2 = 50;
logo._x = (_local2 + TetrisVariant.instance.CENTER_X) - (logo._width / 2);
logo._y = 10;
logo.fx = logo._x;
logo.tx = logo._x - _local2;
logo.fy = logo._y;
logo.ty = logo._y;
logo.talpha = 100;
logo._alpha = 0;
logo.falpha = logo._alpha;
logo.ticks = 0;
logo.duration = 15;
}
function initButtons() {
var _local2 = 40;
mc.createTextField("legal", mc.getNextHighestDepth(), 3, TetrisVariant.instance.HEIGHT - 16, TetrisVariant.instance.WIDTH, 20);
var _local3 = new TextFormat();
_local3.font = "Arial";
_local3.bold = true;
_local3.size = 11;
_local3.color = 16777215 /* 0xFFFFFF */;
mc.legal.setNewTextFormat(_local3);
mc.legal.selectable = false;
mc.legal.text = "Copyright \u00A9 2007 IntenCT \u2014 All rights reserved \u2014 info@intenct.nl";
var _local4 = TetrisVariant.instance.LEVEL_STATE_IDS[0];
var _local5 = TetrisVariant.instance.LEVEL_STATE_IDS[1];
var _local6 = TetrisVariant.instance.LEVEL_STATE_IDS[2];
easyButton = createButton("easy", _local4 + "_0", "Easy", TetrisLogic.MODE_EASY, TetrisVariant.instance.STATE_NAMES[_local4]);
mediumButton = createButton("medium", _local5 + "_0", "Medium", TetrisLogic.MODE_MEDIUM, TetrisVariant.instance.STATE_NAMES[_local5]);
hardButton = createButton("hard", _local6 + "_0", "Hard", TetrisLogic.MODE_HARD, "?");
easyButton.tx = 170;
easyButton.ty = 200;
mediumButton.tx = easyButton.tx;
mediumButton.ty = easyButton.ty + 80;
hardButton.tx = mediumButton.tx;
hardButton.ty = mediumButton.ty + 80;
easyButton.fx = (easyButton._x = 550);
easyButton.fy = (easyButton._y = easyButton.ty);
mediumButton.fx = (mediumButton._x = 550);
mediumButton.fy = (mediumButton._y = mediumButton.ty);
hardButton.fx = (hardButton._x = 550);
hardButton.fy = (hardButton._y = hardButton.ty);
easyButton.ticks = 0;
easyButton.duration = 15;
mediumButton.ticks = -3;
mediumButton.duration = 15;
hardButton.ticks = -6;
hardButton.duration = 15;
mode = -1;
}
function createButton(name, state, lab, mode, stlab) {
var _local6 = mc.createEmptyMovieClip(name, mc.getNextHighestDepth());
_local6.createEmptyMovieClip("state", _local6.getNextHighestDepth());
_local6.state.attachMovie(state, "state", _local6.state.getNextHighestDepth());
_local6.state.state._x = (-_local6.state.state._width) / 2;
_local6.state.state._y = (-_local6.state.state._height) / 2;
_local6.state._x = -_local6.state.state._x;
_local6.state._y = 0;
var _local7 = new TextFormat();
_local7.font = "Arial";
_local7.bold = true;
_local7.size = 30;
var _local8 = _local7.getTextExtent(lab);
_local6.createTextField("txt", _local6.getNextHighestDepth(), 100, (-_local8.textFieldHeight) / 2, _local8.textFieldWidth, _local8.textFieldHeight);
_local6.txt.setNewTextFormat(_local7);
_local6.txt.text = lab;
TetrisBlock.createTextField(_local6, stlab);
var _local9 = _local6.txt.textWidth / 2;
_local9 = _local6.stateLabel.getNewTextFormat().getTextExtent(stlab);
_local6.stateLabel._x = _local6.stateLabel._x + ((_local6.state._width / 2) - (_local9.textFieldWidth / 2));
_local6.stateLabel._y = _local6.stateLabel._y + (TetrisBlock.LABEL_SIZE / 2);
var mc = this;
_local6.onRollOver = function () {
TetrisMenu.onButtonRollOver(this);
};
_local6.onRollOut = function () {
TetrisMenu.onButtonRollOut(this);
};
_local6.onPress = function (ok) {
if (mc.mode < 0) {
mc.scroller.destroy();
mc.startGame(mode);
}
};
return(_local6);
}
static function onButtonRollOut(btn) {
btn.state._yscale = (btn.state._xscale = 100);
btn.txt._xscale = (btn.txt._yscale = 100);
btn.stateLabel._yscale = (btn.stateLabel._xscale = 100);
}
static function onButtonRollOver(btn) {
btn.stateLabel._yscale = (btn.stateLabel._xscale = 115);
btn.txt._xscale = (btn.txt._yscale = 110);
btn.state._yscale = (btn.state._xscale = 110);
}
function startGame(m) {
logo.tx = logo.tx - (logo.fx - logo.tx);
logo.fx = logo._x;
logo.falpha = logo._alpha;
logo.talpha = 0;
logo.ticks = -20;
mode = m;
var _local3 = -220;
easyButton.fx = easyButton._x;
easyButton.tx = _local3;
easyButton.ticks = 0;
mediumButton.fx = mediumButton._x;
mediumButton.tx = _local3;
mediumButton.ticks = 0;
hardButton.fx = hardButton._x;
hardButton.tx = _local3;
hardButton.ticks = 0;
var _local4 = -10;
if (mode == TetrisLogic.MODE_EASY) {
easyButton.ticks = _local4;
}
if (mode == TetrisLogic.MODE_MEDIUM) {
mediumButton.ticks = _local4;
}
if (mode == TetrisLogic.MODE_HARD) {
hardButton.ticks = _local4;
}
}
function onEnterFrame() {
var _local2 = true;
_local2 = _local2 & Anim.anim(logo);
if (!isEnd) {
_local2 = _local2 & Anim.anim(easyButton);
_local2 = _local2 & Anim.anim(mediumButton);
_local2 = _local2 & Anim.anim(hardButton);
hardButton.state._rotation = hardButton.state._rotation - 3;
mediumButton.state._rotation++;
} else {
_local2 = false;
}
if (_local2 && (mode >= 0)) {
TetrisLogic.instance.initGame(mode);
}
scroller.onEnterFrame();
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20486 MovieClip [__Packages.TetrisBlockMetricsEurope1] Frame 0
class TetrisBlockMetricsEurope1
{
var state_borders;
function TetrisBlockMetricsEurope1 () {
state_borders = new Array();
state_borders.is = [[0, [37, 35, -4, 34, 33, 34, -2, 33, 27, 26, 20, -3, 6, 5, 1, -2, 0, 4, -3, 2, 3, -3, 2, -4, 0, -2, 1, 0, -2, 1, 3, 4, 6, -2, 9, 11, 21, 30]], [54, [39, 42, 43, 45, 47, -4, 50, 49, 48, 42, -2, 41, 53, 54, 53, 51, 49, 48, -5, 46, 47, -2, 51, -3, 52, 50, 48, 46, -2, 44, -2, 43, -2, 42, 40, 39, 38, 37, 36]]];
state_borders.it_s = [[0, [4, -5, 2, -2, 1, -2, 0, -2, 1, -2, 2, -2, 1, -8, 2, -3, 3, -2, 8, 10]], [17, [7, 9, 10, -2, 16, -4, 17, -2, 15, -3, 14, -3, 15, -4, 14, -7, 15, -2, 13]]];
state_borders.fr_c = [[0, [1, -3, 0, 1, -7, 0, -6, 1, 2, -3, 3]], [10, [-2, 2, 3, 4, 5, -2, 8, -2, 10, 9, -2, 10, 8, -4, 9, -2, 8, 7, 5, 4]]];
state_borders.pt = [[0, [17, -2, 16, 15, 7, -4, 3, 1, -3, 0, 1, 3, 5, 6, 7, -6, 8, -2, 9, -2, 11, -2, 10, -2, 11, 12, -5, 16, 15, -3, 14, 15, 16, -5, 18, 16, 15, 16, 17, -2, 20, 21, -2, 22, -4, 23, 25, 27]], [39, [22, 23, -2, 25, 24, -6, 25, -2, 24, -2, 25, 26, -2, 27, -2, 28, -3, 29, -2, 30, 31, -2, 32, 33, 34, -3, 36, -2, 37, 38, -3, 39, -2, 38, -2, 37, -4, 34, -5, 35, -3, 36, -2, 37, -4, 38, 32, 30, 28]]];
state_borders.es = [[0, [101, 100, -2, 99, 95, 86, 85, 83, 81, 79, 77, 66, 65, 59, 58, 57, 50, 48, -3, 47, 44, -2, 42, 38, 29, 27, 26, 24, -2, 23, 20, 11, -2, 7, 6, 7, -4, 8, 9, 10, 12, 14, 17, 18, 19, 25, 30, 32, -2, 31, 32, -2, 35, 36, 37, 38, 39, 40, 41, 3, 1, -4, 0, 8, 9, 10, 11, 12, -2, 16, 17, 41, 43, 46, 47, -2, 48, -3, 50, 52, -3, 51, 60, 61, 62, -2, 63, 64, 65, 66, 99, 101, -3, 99, 100, 99, -2, 77, -2, 76]], [119, [106, 108, 110, 112, 117, 118, -3, 119, 118, 117, 115, 116, -5, 117, 118, -2, 117, -3, 112, 107, 105, 97, -2, 98, 97, 95, 96, 99, 100, 101, -2, 103, -2, 102, -3, 103, -2, 104, -4, 106, 105, 106, -2, 112, -5, 111, -2, 110, 109, 110, 112, -3, 113, 114, -2, 113, -2, 112, -2, 114, 115, 116, -7, 117, 114, 112, 111, 110, -5, 109, -3, 108, -3, 107, 105, 104, 103, 102, -3, 103, 102, 78, -2, 79, 77]]];
state_borders.be = [[0, [12, 10, -2, 9, 5, -3, 4, -2, 5, 3, 2, -2, 1, -3, 0, 1, -2, 2, -4, 5, -2, 4, 5]], [30, [12, 24, 26, 28, -4, 30, -2, 29, 28, -2, 25, 24, -2, 22, 18, 19, 18, 19, 18, -2, 13, 11, 10, -2, 9]]];
state_borders.it = [[0, [-3, 62, 61, 60, 56, -2, 49, 50, 51, 50, 49, -3, 50, 49, 48, -2, 47, 57, 58, 60, -2, 61, 60, -4, 59, 60, -3, 61, -2, 60, 59, 58, 57, 56, 54, 53, 51, 49, 48, -3, 47, -3, 46, -3, 45, 44, -2, 43, 41, 40, 39, 38, 37, -4, 24, 25, 26, 25, 22, 18, 15, 13, 12, 9, -2, 6, 5, 3, 2, 1, -3, 0, -3, 1, 18, 19, 16, 15, 13, -7, 12, 14, -6, 17, 18, -2, 20, -3, 21, 23, -2, 29, -4, 30, -2, 29, -3, 28, 29, -3, 30]], [111, [64, 71, 72, -3, 78, 81, 87, 96, 97, -3, 98, 102, 108, -3, 109, 108, -2, 107, 106, 107, -3, 111, 110, 109, 107, 108, -5, 109, 108, 106, 102, -4, 103, -3, 79, -2, 78, -5, 77, 76, 75, 73, 72, -3, 71, 67, -2, 66, 65, 63, 62, -2, 61, 60, 58, 57, 55, 54, 53, -2, 45, -2, 44, 43, 40, 41, -4, 35, 33, 32, 27, -4, 26, 25, -2, 24, -4, 23, -2, 22, -3, 25, -2, 24, 27, 31, 35, 55, 56, -3, 57, -2, 58, 57, 56, 55, 50, 49, 46, 45, 39, -2, 38, 37, 35]]];
state_borders.by = [[0, [26, 24, -2, 21, -3, 20, 19, -2, 18, -2, 19, 18, -2, 16, 15, 14, 13, -3, 9, -2, 3, 1, -2, 0, 1, -2, 2, -2, 3, -2, 9, 7, -2, 6, -3, 5, 4, 3, -2, 2, 5, 6, 8, -4, 9, 10, 9, -2, 8, 7, 8, 17, 22, 29, 54, -2, 56, -2, 57, 60, 61]], [68, [27, 42, 43, -3, 44, 48, -2, 49, -2, 51, 50, -3, 51, 49, -2, 51, 52, -2, 53, -3, 54, 53, -3, 54, -2, 56, 58, 59, 60, 63, -2, 68, -2, 67, -2, 66, -2, 65, -2, 64, -2, 63, -4, 62, 63, 64, -2, 65, -3, 66, 65, -7, 62, 61]]];
state_borders.pl = [[0, [17, -2, 14, -3, 13, -2, 12, -2, 11, -2, 10, 9, -3, 8, -5, 7, 8, 9, 10, -2, 11, 8, -7, 7, -3, 6, 5, 4, 3, 2, -3, 1, -4, 0, 2, -2, 4, -2, 5, 6, -2, 7, -2, 8, -3, 9, -3, 8, -2, 7, 6, 29]], [82, [56, 58, 59, 61, 64, -2, 65, 66, 67, 70, 73, 75, 77, -2, 80, -2, 82, 80, -3, 79, -3, 78, -2, 79, -3, 80, 78, -5, 76, -7, 75, -2, 74, 73, -5, 72, -2, 73, 67, 65, 63, -2, 62, 60, -2, 59, 49, 43, 42, 41, -2, 40, 39, 32]]];
state_borders.gr = [[0, [14, -5, 12, -6, 14, -2, 15, 16, -2, 32, 33, 36, 35, 33, -2, 30, -2, 29, -2, 33, 35, 44, -2, 43, 42, 41, 40, 38, -3, 37, 36, 35, -2, 28, -3, 27, 26, -2, 22, -2, 23, -2, 28, -2, 27, 28, 35, 33, -2, 32, 39, -2, 38, -2, 36, -4, 35, 34, -2, 33, -2, 40, -4, 0, 1, 4, 8, 11, 14]], [70, [-3, 18, -2, 17, 32, 35, 37, 38, 43, 46, 47, -2, 48, 54, -2, 55, 56, 58, 62, -2, 63, -2, 62, -4, 64, -2, 65, 67, -2, 68, 67, 68, -3, 70, -2, 68, 66, 65, -2, 63, 62, 63, -2, 60, 62, 63, -4, 64, 62, -2, 57, -2, 55, 54, -2, 51, 50, -3, 51, 50, -3, 49, -2, 42, 41, -2, 28, -5, 29, -2, 16]]];
state_borders.fi = [[0, [43, 42, 39, 38, 37, -3, 36, -2, 37, -2, 36, 37, -6, 36, -2, 35, 31, 30, 29, 27, -4, 26, -4, 27, -3, 28, 27, 26, 25, 24, -2, 23, 22, 21, -2, 20, -2, 19, -2, 18, -4, 19, 18, 17, -2, 18, 17, -5, 14, 11, -5, 10, -2, 11, 9, 7, 5, 4, 2, 1, -6, 0, -4, 1, -3, 2, -3, 3, -2, 4, -3, 5, -3, 6, -2, 7, -2, 8, -2, 9, 10, -2, 11, -3, 12, 13, 16, 17, 20, -2, 22, 25, 26, 28, 30, 31, 34, 35, -2, 38]], [72, [-2, 46, -3, 50, -2, 51, -2, 52, -5, 51, 70, -4, 71, 72, -2, 71, 70, 68, 67, 65, 62, 60, 59, 58, -3, 57, -4, 56, -3, 55, -2, 54, 53, -5, 52, 53, -2, 52, -2, 51, 50, 49, 48, 46, 43, 42, -4, 41, 40, 42, 43, -5, 44, -3, 45, 46, -3, 47, -2, 49, 50, -3, 51, -2, 52, 51, 55, -3, 56, 55, 56, -6, 57, 56, -5, 55, 54, -2, 53, 52, -2, 53, -4, 52, 53, -3, 52, -3, 51, 50, -2, 43, 41, 39, -2, 40]]];
state_borders.de = [[0, [45, 41, 14, 13, -2, 12, -4, 11, 10, 11, 10, 9, -2, 7, -3, 6, -3, 5, -2, 6, -2, 7, 5, -3, 3, 4, 3, -9, 2, -9, 0, 1, 8, 10, 11, 13, 14, 15, -2, 19, 20, -6, 18, 17, 16, 14, 13, 12, 11, 9, 8, -5, 7, -3, 10, 12, -3, 14, -2, 13, -4, 12, 13, 28, 35]], [71, [-4, 48, 47, 46, -3, 48, -3, 46, 48, -2, 49, 58, 59, -4, 60, -3, 59, -3, 60, 62, -3, 63, -2, 61, 62, 63, 64, 67, -4, 69, 68, 67, -2, 68, -2, 69, 71, 70, 69, 70, -2, 69, -2, 68, -2, 67, 68, -4, 69, 68, 66, 67, -2, 68, 67, 66, -2, 65, 64, 58, 55, 54, 55, -3, 56, -3, 57, -5, 58, -5, 59, -2, 38, 37]]];
state_borders.se = [[0, [24, 23, 22, 21, 19, 18, 16, 12, 11, 10, 9, -5, 8, 7, -5, 6, 5, 4, -4, 3, -3, 4, -2, 3, 2, 1, -3, 0, 1, 5, 6, -2, 8, 9, 10, 12, -4, 11, 12, -2, 13, 11, -4, 10, 11, -4, 12, -3, 13, 14, 16, 17, 19, 18, -3, 20, 22, -3, 23, 24, -3, 25, 26, 29, 28, -2, 27, -4, 28, -3, 27, 29, -7, 28, -2, 27, 24, 23, 22, -3, 18, -2, 17, -4, 15, -2, 17, 18, -3, 17, -2, 18, 20, -2, 21, 23, 24, 25, -3, 26, -3, 27, 12, -2, 11, -2, 12, 13, 12, 11, 12, -2, 13, 14, -2, 15, 16, -6, 25, -3, 26, -2, 30, 31, 38, -2, 41, 42, 41, -2, 40, -2, 41, 46, 53]], [64, [26, -2, 27, 26, 25, -2, 26, 27, 34, -4, 35, 34, 38, 39, -3, 40, -3, 41, -2, 43, -2, 42, -3, 41, 42, -2, 43, -2, 44, -4, 45, 46, -3, 49, -8, 48, -2, 49, -2, 50, -3, 51, -3, 52, 50, -3, 49, 53, 56, 57, 58, -2, 59, -4, 60, -6, 61, -5, 60, -2, 59, -2, 58, -7, 59, 57, 56, -3, 55, 56, -4, 58, -2, 57, -6, 56, 57, 58, -3, 60, -5, 61, -3, 60, -5, 64, -2, 63, -3, 64, 62, 59, -6, 60, -4, 59, 58, 57, -3, 56, 55, 54, 53, 52, 53, 54, -2, 55, 57, -3, 58, -2, 57, -2, 54, 56, -2, 55, 54]]];
state_borders.no = [[0, [15, 9, 7, 5, 4, -2, 2, 4, -3, 5, -2, 1, -3, 0, -2, 3, 4, -5, 5, -2, 20, -4, 19, -3, 21, 22, 29, -2, 43, 44, -2, 42, 43, -6, 52, 26, 57, -3, 58, 59, 60, 59, -4, 58, -2, 59, 60, -2, 61, -5, 62, 63, -3, 66, 65, -8, 66, -2, 67, -3, 68, -2, 69, 68, -6, 67, 73, 74, 75, 76, -15, 77, -10, 76, 74, 73, -4, 72, -2, 73, -3, 75, -2, 74, -3, 73, -5, 74, 75, -3, 77, -9, 78, 79, -2, 93, -2, 94, 96, 97, 98, 99, 100, 102, 105]], [120, [20, -3, 28, -2, 31, 32, 35, 37, 39, 40, -2, 39, 36, 41, 42, -2, 45, 47, 50, -3, 52, -2, 51, 55, 56, 58, -5, 59, 63, 64, 67, 68, -3, 69, 65, 66, 71, 72, -3, 73, 66, -6, 67, 68, -3, 69, 71, -3, 72, 73, 74, -5, 75, -5, 76, -3, 77, -5, 78, 77, 78, 82, 83, 82, 83, 84, -2, 86, -2, 87, 88, 89, -3, 90, 97, -2, 98, 92, 96, 97, -2, 98, 99, 106, -2, 107, 106, 107, 110, 111, 110, -2, 113, -2, 118, -2, 117, -2, 118, -2, 119, 118, -8, 119, -2, 120, 119, -2, 118, -3, 119, -5, 118, -2, 117, 118, -6, 119, -7, 118, 117, 115, -2, 114, -2, 112, 111, 109]]];
state_borders.ua = [[0, [63, 62, -2, 60, 59, 57, -2, 56, -3, 57, 49, 46, 28, -3, 5, -5, 4, 3, 2, -2, 3, 4, 2, 1, -8, 0, 1, 5, -4, 7, 8, -2, 9, -6, 8, -2, 13, -2, 14, 16, -3, 17, -2, 21, 24, -2, 25, 26, -4, 27, -2, 28, 30, 14, -2, 13, -5, 14, 17, -2, 21, 22, -2, 23, 26, 27, -2, 28, -2, 29, -2, 30, 32, 69, 77]], [140, [63, 67, -2, 68, -4, 73, 77, 80, 82, -2, 83, -6, 84, 88, 96, 101, 119, 125, 127, 130, -3, 131, -4, 135, -3, 134, 133, 132, -3, 131, 130, -2, 129, -2, 132, 133, -2, 134, -2, 135, -2, 136, -2, 137, -4, 138, -3, 137, -3, 138, -3, 139, -4, 140, -2, 138, 136, -2, 133, -3, 72, 78, 79, -2, 80, 79, 78, 79, 78, -3, 80, -3, 81, 82, -2, 83, 82]]];
state_borders.tr = [[0, [38, 34, 31, 30, 28, 27, -5, 26, 16, 13, -2, 12, 15, -3, 14, 15, 16, 15, -2, 14, 13, -2, 12, -2, 11, -5, 8, 9, 5, -2, 4, 3, 1, -3, 0, -2, 2, -2, 3, -2, 16, -3, 19, 20, 21, 24, 26, 27, 29, 31, 34, 36, 37, -2, 38, 39, 40, 41, 42, 43, 44, 46, 47, 49, 59, 60, -2, 61, 62, 63, 67, 72, -2, 71, 70, -2, 69, 70, -3, 71, -3, 72, -2, 94, 96, 97, 98, 100, 102, -2, 105, -4, 128, 132, 133, 134]], [182, [40, -2, 41, 44, -2, 46, -3, 50, 51, -2, 52, -2, 54, 55, -2, 56, 57, 65, 66, 68, 69, 107, -2, 108, 111, 115, 119, 122, 123, 124, 125, 127, 128, 129, 130, -2, 131, 132, 133, 134, 135, 169, 177, 178, -2, 180, 181, -2, 182, 181, 179, 178, 179, 180, -3, 181, 180, -2, 181, -3, 182, 178, 179, 180, -11, 179, 174, 172, -3, 171, 170, 171, -5, 174, -2, 175, 172, -2, 164, 165, -2, 166, -6, 163, 162, 158, -2, 160, 136]]];
state_borders.cy = [[0, [-3, 0, 1, -2, 2, 3, 4, 5, 3, -2, 2, 4, -2, 6, 7, 9, 10, -2, 11]], [21, [0, 2, 3, 4, 5, 6, 7, 9, 12, -2, 16, 15, -2, 18, -2, 21, -2, 20, 19, 18]]];
state_borders.ie = [[0, [8, 6, -2, 5, 6, -2, 7, -2, 9, -2, 12, 5, -2, 4, 3, 2, -3, 0, 1, -2, 2, -2, 1, 2, 1, -6, 2, 3, -2, 4, 5, 6, -3, 7, 19, 21, 24]], [38, [14, 15, 14, 16, -3, 17, -3, 28, -2, 27, -2, 28, 29, 31, 32, 31, 30, 27, 28, 27, 26, 27, -2, 28, 30, -2, 32, 33, -2, 37, 36, 37, -3, 38, -2, 37, -3, 35, 32]]];
state_borders.gb = [[0, [6, -4, 5, -2, 6, -2, 7, 8, -2, 20, 19, -2, 18, 31, -2, 21, -3, 22, 23, 25, 26, -3, 28, 24, 19, -2, 16, -2, 15, 16, 17, -2, 18, -2, 19, 20, -2, 21, 22, 23, 25, -4, 24, 23, -3, 21, 20, -7, 19, -6, 18, 16, 15, 14, -2, 13, 12, -3, 11, 12, -2, 11, -5, 10, -5, 9, 5, 3, 1, -7, 0, -2, 1, -2, 2, -2, 4, 6, -2, 7, 8, -4, 4, 5, -2, 8, 13, 44, 45]], [67, [-2, 6, 7, -2, 10, 9, -2, 8, 9, 8, -3, 23, 43, 44, 46, -4, 49, -3, 50, -3, 42, 41, -3, 40, -2, 42, -3, 45, 47, -2, 48, 47, -3, 49, -2, 44, -5, 46, -2, 47, 48, 57, 60, -2, 61, -2, 64, 66, -2, 67, -2, 66, 65, 64, -3, 58, 54, -2, 44, -6, 33, 44, -2, 45, -2, 44, 45, -3, 47, 46, -2, 42, 43, 44, 45, 49, 53, -4, 54, 53, 52, -2, 47, -2, 43, 46, 48, 50, -2, 51, 52, 53, 55, 56, 57, 61, 62, 61, -2, 59]]];
state_borders.ch = [[0, [15, 14, 9, 8, -4, 7, -2, 8, -8, 0, -3, 2, 11, -2, 12, 11, 12]], [39, [16, 17, 24, 29, -3, 30, -2, 31, 33, -3, 34, 36, 37, -3, 38, 37, 38, 39, 38, 31, 30, 29, 13]]];
state_borders.at = [[0, [15, 6, 3, -3, 2, -2, 3, 2, 1, -2, 0, -2, 1, -2, 0, 1, -2, 3, 4, -2, 5, -2, 4, 5, 6, 7, -3, 8, 12, 18, 19, 20]], [63, [-3, 19, 20, 29, 28, -3, 31, 33, 35, 36, -2, 37, 36, -2, 35, 41, 45, 61, -7, 63, 61, 60, 58, 52, 37, 30, 24]]];
state_borders.cz = [[0, [32, 30, 29, 26, 21, 20, 21, -3, 10, 7, -3, 3, -2, 1, 0, 1, 2, 4, -3, 5, 6, -2, 7, 8, 13, -2, 14, -2, 32]], [55, [-3, 38, 40, 41, 44, 45, 46, 49, 51, -3, 55, -2, 54, -5, 52, -2, 51, 50, 48, 47, 46, 45, 43, 42, 41, 40, 39]]];
state_borders.sk = [[0, [6, 5, 3, -3, 0, -4, 1, -3, 2, 3, -3, 16, 18, 19, 23, 24, -4, 28, 32]], [46, [26, 27, 32, 33, 35, -4, 36, -2, 38, 43, -2, 44, -3, 45, -2, 46, -2, 45, 44, 43, 41, 39, 38]]];
state_borders.hu = [[0, [12, 7, 6, 4, 1, -3, 0, -2, 1, 4, 5, -4, 6, 7, -5, 8, -3, 9, 10, -4, 11, 12, 14, 17, 22, 26, 27, 29, 31, 32, 33]], [55, [14, 20, -2, 21, -2, 22, 24, -2, 29, 31, -2, 34, -4, 48, -2, 53, 51, 52, -3, 53, 52, 53, 54, -2, 55, -2, 53, 52, 51, 50, 49, 48, 46, 45, 44, 41, 40]]];
state_borders.lt = [[0, [16, 15, 10, 8, 7, 6, -4, 3, 1, 0, -2, 1, -3, 4, 5, -6, 6, 5, -2, 4, 5, 9, -2, 11, -2, 13]], [42, [18, 19, 25, 33, 37, 39, -2, 40, 41, -4, 42, -7, 41, 37, 33, -7, 27, 24, -3, 21]]];
state_borders.lv = [[0, [24, 21, 19, 9, 8, 6, -2, 5, 6, -2, 5, -2, 4, 3, 2, 1, -5, 0, 1, -2, 2, -2, 3, 7, 8, 9, -2, 46]], [50, [25, 27, 28, 29, -3, 31, 30, 42, 44, 45, -2, 47, -7, 48, 49, -2, 50, -7, 49, 48]]];
state_borders.md = [[0, [26, 23, 16, 13, -5, 12, 11, -4, 7, 6, -2, 3, -2, 2, 1, 0, 1, 2, 7, -5, 9, -3, 10, -4, 11, 13]], [35, [27, 28, 30, -2, 34, -2, 35, 31, 30, -2, 29, 28, 27, 26, 25, 24, 22, 21, 20, 19, 18, -9, 17, -2, 16, -4, 15, 14]]];
state_borders.ro = [[0, [34, 31, 30, -2, 29, 28, 27, 26, 25, 24, 23, 21, 20, 19, 18, -2, 17, -9, 16, -2, 15, 14, -2, 1, -7, 0, 3, -2, 4, -3, 5, -4, 6, -4, 5, 6, 25, 27, -2, 28, 29, 30, 31, 41, 42]], [82, [34, 35, -3, 37, 38, 41, 44, 51, 62, 63, -2, 64, 65, 68, -2, 69, -3, 70, -2, 71, -5, 72, -2, 73, -4, 74, 75, -2, 78, -3, 82, 81, 79, 78, -3, 77, 76, 75, 72, 70, 71, 70, -2, 71, 68, 64, 63, 60, 58, -4, 56]]];
state_borders.bg = [[0, [-2, 6, -6, 0, -2, 3, -4, 4, -4, 3, -2, 5, -2, 3, 2, 1, -2, 0, 3, 4, 12, -2, 13, -2, 14, 16, -3, 15, 16, 19, 21, 36, 39, 42, 45]], [55, [15, 17, 20, 21, 22, 23, 24, -3, 53, -5, 55, -2, 54, 53, 52, 50, 48, -2, 49, 51, -5, 52, 51, -3, 52, 51, 49, 47, 46, -7, 45]]];
state_borders.al = [[0, [16, 12, -2, 11, 8, -9, 7, -4, 6, 5, 4, -3, 1, -2, 0, -2, 1, 2, -4, 3, -4, 5, 6, 7]], [20, [16, -2, 17, -2, 18, -2, 19, 20, 19, -3, 18, -2, 16, 17, -3, 18, -3, 16, -10, 17, 15, 13, -2, 11, -2, 10, 9]]];
state_borders.ee = [[0, [4, 3, 2, 3, -5, 4, -2, 5, -2, 4, -4, 3, 2, -2, 1, -2, 0, -2, 1, -2, 2, 6, 7, 36]], [40, [4, 5, -2, 19, -2, 24, 27, -2, 28, 30, 31, -2, 32, 36, 37, 40, 39, 37, 36, 37, 38, -2, 40, -2, 39, -4, 38]]];
state_borders.ad = [[0, [-3, 0, 1]], [4, [-3, 4, 3]]];
state_borders.sm = [[0, [-3, 0]], [2, [-3, 2]]];
state_borders.mc = [[0, [2, -3, 0, 1]], [4, [2, 3, 4, 3, 2]]];
state_borders.lu = [[0, [4, -3, 3, 2, -3, 0, 1, 2, 1]], [7, [5, 6, -5, 7, 6, -2, 7, 6]]];
state_borders.fr = [[0, [-4, 43, -2, 39, -2, 38, 36, 35, 32, -2, 31, -2, 26, 27, -2, 26, 24, 23, 22, 19, 14, -2, 13, 10, 6, 5, 1, -2, 0, 1, 2, 3, -4, 4, -2, 5, 6, 5, -6, 6, 7, 10, 11, 12, 13, 14, -3, 16, 17, 18, 14, -3, 13, -2, 12, -2, 11, 12, 13, -2, 12, 11, -2, 10, -2, 11, 13, 14, 13, -2, 12, 11, 12, -3, 13, 12, -3, 6, -2, 7, -2, 8, 10, 11, 13, 14, 15, -2, 16, 20, -2, 48, 49, 48, -2, 47]], [107, [46, 51, -6, 52, -3, 53, 54, -6, 81, 80, 79, 95, 104, -4, 106, -2, 104, -2, 107, -3, 105, 100, 98, 97, 95, 94, 93, 89, -3, 90, -6, 88, 87, -4, 86, 84, 82, -4, 81, -5, 82, -4, 83, -4, 84, -4, 85, -4, 86, -4, 87, -2, 88, 89, 90, 92, 91, 90, -3, 89, 86, 83, -2, 82, 78, 77, 74, -2, 64, 62, 61, 59, 55]]];
state_borders.li = [[0, [2, 1, -3, 0]], [3, [-2, 2, -3, 3]]];
state_borders.nl = [[0, [4, 3, 2, -4, 0, -3, 1, -2, 2, 4, -4, 2, 3, -3, 4, 6, 10, -7, 9, -5, 10]], [32, [6, 10, 13, 14, 15, 16, -5, 20, -2, 21, -2, 22, 23, 24, -2, 26, 25, 29, 28, -2, 31, 32, -2, 31, 28, 15, -2, 13, -4, 14]]];
state_borders.ba = [[0, [25, -2, 9, 3, -4, 4, -2, 5, 3, 2, -3, 0, -2, 1, -3, 0, 2, -2, 4, -2, 3, -3, 7, -2, 8, -2, 7, -3, 8]], [35, [25, 29, -7, 35, -2, 33, -2, 32, -3, 31, 29, 28, 27, 26, 25, 24, 23, 21, -2, 20, 19, -3, 17, 14, 13, 11, 9, 8]]];
state_borders.si = [[0, [-2, 4, 3, -2, 2, -2, 0, 4, 5, 7, 9, -4, 8, 9, -2, 10, -2, 11, 22]], [29, [5, -2, 7, 10, -2, 16, 26, 27, 28, -2, 29, 28, 27, 28, -2, 27, 26, 25, -3, 26]]];
state_borders.mk = [[0, [7, 6, 3, 2, -2, 1, -6, 0, -3, 2, 3, 9, -2, 10, 12, 15]], [24, [11, 13, 17, 19, 21, -3, 22, -3, 24, 23, -2, 24, -3, 23, -2, 22, 21, 20]]];
state_borders.hr = [[0, [25, 24, 23, 22, 21, 6, -3, 5, 4, 3, 4, -3, 0, 3, -2, 2, 3, 27, 32, 31, 30, 29, -2, 28, -2, 27, 26, 25, 24, 23, 22, 21, 20, 19, -2, 17, 16, 15, -2, 13, 11, 10, 9, 6, -3, 5]], [52, [-2, 30, 31, 33, 34, 35, -2, 34, 33, 36, 37, -2, 43, 48, -3, 52, -4, 51, 50, -2, 49, -2, 39, 38, -4, 37, 36, 35, 33, 32, 30, -2, 29, 23, 20, -4, 19, 15, 11, 9, 8, 6]]];
state_borders.cs = [[0, [31, 29, 28, 26, -5, 24, 21, 18, -3, 17, 9, 7, -2, 5, -2, 7, -4, 5, -4, 7, 6, 5, 4, 2, -2, 0, -3, 1, 2, 3, -2, 4, -3, 3, 4, 5, 8, -3, 13, -3, 18, 19, 31]], [42, [35, 36, 37, 40, 41, -2, 42, -4, 41, -2, 40, -4, 38, -2, 39, 36, -6, 37, 34, 35, 36, 35, 34, 33, 34, 35, -3, 38, -3, 39, -4, 41, -2, 40, -2, 41, 40, -2, 39, 36, -2, 34, 33]]];
state_borders.dk = [[0, [-2, 14, 15, -4, 14, -3, 15, -4, 16, 12, -2, 11, -2, 12, 2, -7, 0, 2, 1, -2, 0, 3, -4, 2, 3, 4, 6]], [32, [16, 18, -2, 20, -2, 21, 22, 28, -2, 29, -3, 30, -7, 31, -2, 32, -3, 31, -3, 32, 31, -7, 28, 23, 9, 8]]];
state_borders.ru_kaliningrad = [[0, [11, 3, 2, 1, -2, 0, -3, 1, -2, 0, 1, 4, 11]], [23, [12, -2, 15, 13, 17, 20, -4, 21, -2, 22, 23, 22]]];
state_borders.ru = [[0, [106, 80, 47, 44, 40, 37, 33, 30, 26, 22, 21, 20, 12, 9, 5, 2, -92, 0, -3, 1, 2, 3, -2, 2, -3, 5, 7, -2, 9, -3, 4, -5, 0, -4, 1, 2, -29, 0, 3, 4, 5, -2, 4, 5, -3, 10, -6, 12, -3, 13, 22, 21, 20, 19, -2, 20, -3, 44, 46, 47, -4, 51, -3, 52, 53, -2, 54, -2, 56, 55, 54, 55, -4, 56, 57, 56, 55, 54, -5, 53, 54, -3, 63, -5, 64, -3, 63, 60, -2, 59, -6, 60, 59, 54, 43, 41, 39, 38, 36, 35, 32, -2, 31, 32, 33, 28, -5, 27, -3, 28, 30, -2, 31, -2, 32, -2, 33, 34, 35, -10, 34, -2, 35, 36, 32, 29, -5, 24, -2, 23, -3, 22, 21, -2, 18, 17, 14, 12, 10, 9, -6, 6, -6, 7, 8, 10, 46, 65, 68, 79, -3, 82]], [263, [-2, 109, -3, 110, 109, 108, 106, 101, 98, 97, 95, 93, 92, -2, 90, 101, 102, 103, -2, 104, 106, 123, -2, 155, -5, 156, -2, 155, 154, 137, 140, -2, 141, -2, 182, -3, 252, -2, 256, 255, -3, 258, 259, -5, 260, 261, 262, 263, -5, 261, -2, 260, 259, 257, -2, 254, 252, -4, 251, -3, 252, -3, 253, -2, 252, 251, 250, 249, 248, -2, 247, 246, 245, -2, 244, 243, 245, -5, 244, -4, 243, 242, 240, -3, 239, 238, 236, 235, 234, -2, 235, -3, 236, 235, 233, 231, 229, 227, 226, -6, 225, -3, 226, -3, 227, -3, 228, -3, 229, -2, 230, -3, 231, -2, 232, -2, 233, 234, -2, 235, -2, 236, -3, 237, 232, 229, 226, -2, 228, -2, 231, -4, 233, -2, 232, -2, 233, -2, 232, -2, 233, -3, 234, -2, 233, -4, 232, 231, -4, 230, 231, -2, 230, 229, 228, 226, -2, 227, -3, 226, 224, 223, -2, 222, -3, 221, 220, 216, -2, 211, -2, 200, 199, 198, -3, 199, 198, -2, 196, 195, 194, 193, 190, -3, 188, 183, 182, 181, -3, 182, -5, 189, 187, -2, 186, -2, 185, -2, 184, 183, 182, 181, 162, -2, 161, 152, 151, -3, 150, 149, 147, 111, -2, 112, 111, -4, 110, -3, 107, -3, 106, 105, 108, 111, 112, 113, 112, 113, 114, -5, 115, -2, 114, 109, -2, 111, -2, 112, -3, 115, 114, 110, 109, 110, -5, 111, -3, 112, 110, 112, -3, 117, -3, 118, 112, 111, 110, 102, 92, 90, 88, 86, 84]]];
state_borders.mt = [[0, [-2, 2, 1, -2, 0]], [5, [-2, 5, 4, 3, 2]]];
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20487 MovieClip [__Packages.Scroller] Frame 0
class Scroller
{
var mc, textField, cursor, ticks, destroying, lineFullTicks, cb, texts, curText, curPos;
function Scroller (parent) {
mc = parent.createEmptyMovieClip("scroller", parent.getNextHighestDepth());
var _local3 = new TextFormat();
_local3.font = "Arial";
_local3.bold = true;
_local3.size = 20;
_local3.color = 0;
mc.createTextField("scroller", mc.getNextHighestDepth(), 0, 115, 50 + TetrisVariant.instance.WIDTH, 40);
textField = mc.scroller;
textField.setNewTextFormat(_local3);
textField.selectable = false;
textField.text = "";
mc.attachMovie("cursor", "cursor", mc.getNextHighestDepth());
cursor = mc.cursor;
cursor._visible = false;
cursor._y = 115 + 2;
ticks = 0;
destroying = false;
lineFullTicks = -1000;
cb = null;
}
function setCallback(c) {
cb = c;
}
function setTexts(txt) {
texts = txt;
curText = -1;
curPos = texts[0].length;
}
function destroy() {
destroying = true;
}
function onEnterFrame() {
if (destroying) {
if (textField.text.length > 0) {
textField.text = textField.text.substring(0, textField.text.length - 3);
cursor._x = (textField._x + textField.textWidth) + 4;
cursor._visible = true;
} else {
cursor._visible = false;
}
} else if (curPos < texts[curText].length) {
var _local2 = texts[curText].charAt(curPos);
curPos++;
if (curPos == texts[curText].length) {
lineFullTicks = ticks;
}
textField.text = textField.text + _local2;
cursor._x = (textField._x + textField.textWidth) + 4;
cursor._visible = true;
} else if ((ticks - lineFullTicks) > 80) {
curPos = 0;
textField.text = "";
curText++;
if (curText >= texts.length) {
curText = 0;
if (cb != null) {
cb();
destroying = true;
}
}
var _local3 = textField.getNewTextFormat();
var _local4 = _local3.getTextExtent(texts[curText]);
textField._x = (TetrisVariant.instance.WIDTH - _local4.textFieldWidth) / 2;
cursor._visible = false;
} else {
cursor._visible = (ticks % 10) < 5;
}
ticks++;
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20488 MovieClip [__Packages.TetrisBlockMetricsEurope2] Frame 0
class TetrisBlockMetricsEurope2
{
var state_borders;
function TetrisBlockMetricsEurope2 () {
state_borders = new Array();
state_borders.is = [[0, [10, -2, 8, 7, -2, 6, -3, 5, -2, 3, -3, 2, -5, 3, -2, 2, -6, 1, -3, 2, -7, 0, 1, 2, 3, 4, -2, 5, 7, 9, -2, 11, -2, 12, -2, 13, -2, 14, 28, 29]], [44, [26, -3, 27, 26, 28, -5, 31, 28, -3, 29, 28, 30, -3, 31, -6, 32, 33, -3, 34, 32, 31, 34, 38, 42, -2, 43, -3, 44, 42, -2, 43, 42, -2, 41, -2, 40, 38, -2, 39, -3, 30, 29]]];
state_borders.it_s = [[0, [20, 14, 6, -3, 3, -2, 4, -2, 1, -4, 0, -2, 2, -2, 21]], [29, [21, 23, -2, 28, -4, 29, -2, 28, 27, 26, -3, 25, -2, 26, 24]]];
state_borders.fr_c = [[0, [10, 4, 3, -2, 0, 1, -2, 2, 3, 5, 10]], [21, [20, -2, 21, 19, 18, 17, -3, 16, -2, 14]]];
state_borders.pt = [[0, [51, -2, 50, -2, 49, 48, 47, 46, 40, 38, 34, 32, -2, 31, 22, 13, 12, -3, 11, 9, 8, 6, -2, 2, -2, 1, -2, 0, -2, 1, -2, 2, -2, 3, -2, 4, -2, 3, 25]], [63, [53, -2, 54, -4, 58, -3, 59, -2, 58, -3, 59, 60, 62, -6, 63, 62, -2, 61, 48, 47, 45, 43, 40, 38, 37, 35, 34, -2, 33, 30, 28, 27]]];
state_borders.es = [[0, [46, -2, 47, -3, 48, 49, 77, 45, 44, 43, 42, -2, 41, -2, 42, 39, -2, 38, 39, -2, 40, 41, -2, 66, -5, 65, 64, 61, -3, 60, 58, 57, 56, 55, 54, 38, -2, 37, -3, 36, 35, 34, -2, 32, 29, -5, 25, 26, -3, 25, 24, 23, 22, 20, 19, 18, -3, 17, 18, 19, -5, 18, -2, 0, -2, 1, -2, 19, -4, 20, -4, 21, 20, -6, 19, 18, 17, -4, 10, 11, 16, 17, -2, 18, 21, 24, 29, 30, 31, -2, 32, -3, 33, 95, 105]], [113, [49, -2, 50, -3, 51, 78, -4, 80, 81, -4, 80, -2, 81, 80, 81, -3, 82, 84, -2, 85, 86, -2, 87, -2, 88, 86, -5, 87, 88, -4, 89, -2, 91, -3, 92, 95, -2, 96, -7, 97, 98, 99, -4, 100, 99, 100, 101, -5, 102, -3, 101, -3, 102, -2, 103, -2, 104, -2, 105, -2, 106, 107, -2, 108, -2, 107, -5, 108, -4, 109, 111, 112, -6, 113, -2, 112, -2, 111, -2, 110, -5, 109, 108, 107]]];
state_borders.be = [[0, [10, 9, -2, 7, 1, -5, 0, 2, 3, -2, 4, -5, 6, 7, -3, 11, -2, 13, 14, 17, -2, 16, 17, 19]], [26, [12, 14, 15, 16, 21, -4, 22, 24, -2, 25, 26, -3, 25, -2, 24, -5, 23, -2, 25, -2, 24, -2, 23, -2, 22]]];
state_borders.it = [[0, [44, -4, 41, 42, 43, -5, 46, -2, 29, -3, 28, 22, -2, 21, 19, -2, 16, -2, 15, -2, 16, 18, 4, 3, -2, 0, -2, 1, -2, 0, -2, 1, 2, 4, -6, 5, 6, -3, 7, 8, -2, 9, 10, -2, 9, 10, 11, 12, -2, 59, 60, 62, 63, -2, 64, 65, 67, -4, 68, 71, 72, -2, 73, 74, 75, 80, 82, 86, -4, 88, 89, 90, -3, 91, 92, -2, 93, 92, 91, 90, 89, 87, -3, 86, -3, 85, -3, 90, -2, 91, 92, 100, 101]], [126, [46, 47, 48, -2, 49, 50, -3, 52, -3, 53, 54, -2, 55, -3, 56, -4, 57, -2, 58, -7, 65, -3, 64, -3, 65, 66, 67, 68, 69, -2, 70, 72, 73, 76, 79, 109, 110, -7, 120, -4, 121, 122, 123, -3, 126, -7, 125, 124, -2, 122, -4, 123, -3, 120, -4, 117, -2, 119, 118, 115, 113, -2, 114, 115, -3, 118, 117, 116, 113, 112, -2, 113, -6, 112, 111, -2, 103]]];
state_borders.by = [[0, [40, 39, -3, 23, 22, 21, 11, -3, 10, 11, 12, -3, 11, 10, -3, 9, -2, 11, -2, 8, 10, -4, 9, -5, 7, -2, 8, -11, 9, -5, 8, -2, 7, -2, 6, 4, -3, 2, 1, 0, 1, -3, 8, 9, 28, 30]], [65, [41, -2, 42, -6, 44, -4, 47, 48, 49, 50, -2, 52, 57, 58, 61, -3, 63, -2, 64, -2, 65, -2, 64, 63, 62, -11, 64, 63, 62, -4, 59, 58, -2, 56, 47, 46, 44, -2, 37, -2, 35, 34, 33, 31, -2, 32, -2, 31, 30, -2, 31]]];
state_borders.pl = [[0, [-2, 20, -2, 19, 17, 15, -5, 1, -4, 2, 3, -5, 4, 3, -3, 2, -3, 3, 1, -4, 0, -2, 2, 3, 2, -3, 1, 2, 4, 5, 6, -2, 7, 8, -3, 7, -2, 9, -2, 10, 11, -2, 9, -3, 8, 10, -2, 11, 13, -2, 14, -2, 15, -2, 16, 17, -3, 16, 24, 26, 33, -2, 38, -2, 39, -2, 51]], [67, [23, 26, 27, 28, 29, 30, 33, 51, 54, 55, 57, 59, 61, 64, -3, 66, -3, 67, -2, 66, -5, 65, -16, 64, -2, 63, -2, 62, 65, -2, 66, -7, 67, -2, 66, 65, -2, 64, -3, 63, 62, 60, 59, -3, 58, -3, 57, -2, 56, -2, 55, -3, 54, -2, 52]]];
state_borders.gr = [[0, [5, -3, 4, -4, 3, -3, 2, -3, 1, -3, 0, -13, 2, 32, 33, 27, -3, 15, -2, 16, 17, 19, -2, 13, 14, 17, 18, 20, 17, -3, 16, 19, 20, -3, 26, 27, -2, 29, 35, -2, 31, 32, 31, -2, 32, 44, 45, -2, 46, -2, 48]], [85, [-3, 8, -2, 7, 6, -2, 8, -4, 7, -2, 84, -5, 85, 80, -2, 79, -4, 78, -3, 79, 78, 79, -2, 80, -3, 79, -2, 78, 77, -5, 76, 74, -2, 75, 74, 73, -6, 71, 70, 68, -2, 67, -4, 66, 65, 61, 57, -2, 55, 54, -2, 50]]];
state_borders.fi = [[0, [45, 41, 38, 35, 33, 30, 27, 25, 23, 21, 20, 18, 15, -3, 14, 13, -3, 12, -2, 11, -3, 9, 8, -2, 7, -2, 6, 5, -3, 4, 3, -3, 2, -3, 0, 3, -2, 4, -3, 6, -2, 7, -2, 6, 7, 10, 13, 23, 24, 29, 30, 99, 100, 101, -2, 102, -3, 103, -2, 104, 105, -2, 106, 107, 109]], [128, [50, 51, -2, 52, 53, -2, 54, -2, 55, 56, 63, -3, 64, -3, 69, 73, 80, 82, 84, 85, 86, 88, 89, 90, 103, -2, 104, 105, 106, -4, 107, 109, 123, 124, 125, -3, 126, 127, -4, 128, -4, 126, 123, 121, 108, -3, 109, -2, 110, 108, -4, 107, 109, 110, 112, -2, 113, -2, 114, 113, 109]]];
state_borders.de = [[0, [45, -2, 44, -2, 45, -2, 44, -3, 16, -2, 13, 3, 2, -2, 3, -3, 4, 5, -5, 4, 3, -2, 2, -3, 1, 2, -2, 3, 1, -3, 0, 1, -5, 3, -6, 4, -3, 3, -2, 4, -5, 3, -5, 23, 24, 26, 27, 28, 33, 44, 47]], [94, [-2, 53, 62, -2, 67, 75, 78, -2, 80, 81, 84, 88, 90, 91, 92, 91, 90, 88, -3, 89, 88, -2, 86, -3, 85, 84, 82, 83, -2, 88, -3, 87, -2, 88, 90, -3, 92, -4, 93, -4, 94, 81, 75, 77, -7, 79, 78, 77, 66, 67, 66, 59, -2, 57, 58, -2, 57, -2, 47]]];
state_borders.se = [[0, [136, -4, 135, 134, 133, 134, 131, 130, 116, 30, 29, 27, 26, 24, 23, 24, -2, 50, 49, -2, 47, 27, 23, 17, -2, 14, 18, 14, 12, -2, 11, -2, 12, 11, -2, 12, -2, 10, 4, -5, 2, -7, 1, -2, 0, 1, 3, 6, 8, 25, 29, -2, 36, -2, 37]], [173, [138, 139, 140, 149, 150, 151, 156, 157, 162, 163, 164, 165, -4, 166, -2, 167, 168, -2, 169, 170, 171, 172, -3, 173, 172, -3, 164, -4, 165, 164, 158, -2, 159, 158, 157, 154, -2, 151, 141, 139, 135, -3, 134, 121, 119, 116, 109, -3, 108, 107, 106, 105, 103, 99, -3, 46]]];
state_borders.no = [[0, [-3, 155, 153, 152, -3, 147, 148, -3, 155, -2, 156, -2, 157, -3, 155, -2, 141, 138, -2, 137, -2, 138, 123, 139, 137, -6, 136, 138, 139, 141, 142, 143, -2, 139, 131, -5, 130, -4, 131, -3, 124, 125, 124, 122, 112, 110, 109, 107, 102, -2, 101, 97, 89, -5, 75, 40, 30, 25, -2, 24, 21, 12, -2, 11, 12, -3, 14, -2, 15, 13, -5, 12, 9, -2, 7, 6, 5, 4, 3, -2, 2, -3, 1, -2, 0, 1, -2, 0, -2, 1, 2, -2, 4, 6, -2, 7, 8, 15, 35]], [170, [157, 159, -2, 165, 166, -2, 167, -2, 168, -6, 169, -6, 170, -2, 168, 167, 168, -4, 169, -3, 166, 164, 161, -2, 163, -2, 162, -2, 161, 160, 156, 155, -3, 154, 151, 152, -3, 151, -2, 150, 143, -2, 145, 144, -2, 143, 142, -2, 136, -2, 137, 136, -3, 135, 134, 133, 127, 128, 127, 126, 107, 106, 101, 96, 93, -4, 86, 85, 82, -2, 81, 79, 77, 76, 75, 72, 71, -2, 68, -3, 72, 71, 64, -2, 63, -2, 62, -3, 63, 62, -3, 58, 57, -2, 55, 52, -4, 53, 47, 36]]];
state_borders.ua = [[0, [61, -4, 60, -2, 59, 55, -2, 46, 47, -2, 46, 22, -3, 17, -4, 16, 14, 13, -3, 11, 10, 9, 7, 5, -2, 3, -3, 2, -3, 3, -4, 10, -6, 11, -9, 19, -2, 21, -4, 22, 21, 16, 13, 11, 10, 8, -2, 1, 3, 4, 3, 2, -2, 1, -6, 0, 1, 32, 33, -2, 34, -3, 33, -2, 34, 35, -3, 36, 35, -3, 34, -2, 33, -2, 31, 28, -2, 27, -3, 26, -2, 25, 24, -4, 22, 23, 24, -11, 23, 22, -2, 21, -3, 23, -2, 24, -2, 26]], [97, [68, 69, 74, 75, 80, -3, 83, -2, 82, -2, 83, 82, -3, 83, -2, 82, 83, -4, 82, -3, 81, 82, 83, -3, 84, 83, 82, 81, -7, 80, 79, 78, 79, 82, 83, -3, 85, -3, 86, -3, 85, 86, 91, -2, 92, 93, -2, 95, 96, 97, -4, 96, 95, -5, 93, 89, 88, -2, 89, -3, 88, -2, 87, 86, 84, -4, 78, -2, 77, 76, 75, -4, 77, 75, -4, 76, 75, -5, 74, -5, 75, -4, 74, -3, 75, -6, 74, -2, 73, -3, 72, 71, -4, 68, 46, 44, 42, 32, 29]]];
state_borders.tr = [[0, [-2, 66, 64, -3, 62, 65, 64, 63, -7, 62, -3, 60, 57, 56, 55, -2, 56, -2, 54, 53, -2, 52, -2, 51, -3, 50, -2, 49, 48, 47, 45, 44, 43, 42, 41, 40, -2, 39, 38, -2, 37, -7, 36, 37, -2, 36, 35, 34, 32, 31, -4, 30, -2, 29, 23, 22, 19, -3, 16, 17, 16, 19, 20, 26, -2, 23, -6, 22, -2, 23, 22, 21, 20, 18, -2, 14, 13, 12, -2, 11, -2, 10, -3, 9, -4, 7, -2, 8, -2, 9, 10, -3, 11, -10, 12, 11, -4, 3, 2, 1, -3, 0, -6, 1, 3, 4, -2, 3, -2, 4, 5, 3, 2, -3, 1, 3, -5, 1, -2, 4, 5, -3, 11, -2, 16, 17, -3, 16, -3, 17, 32, -3, 31, 42, -2, 45]], [108, [68, -2, 69, 70, 72, -3, 73, -3, 79, 81, 95, -3, 96, -5, 97, -2, 96, 95, 96, 97, 102, 103, -2, 104, 105, -3, 106, -4, 107, -3, 108, 107, -3, 105, -2, 104, -4, 102, 99, 98, -2, 96, 94, 93, 91, -8, 90, 89, -2, 88, 87, -2, 86, -2, 84, -4, 83, -3, 84, 83, 82, 83, -2, 82, -5, 83, 82, -2, 81, 83, -2, 84, -2, 85, 84, 83, -2, 82, 83, -4, 86, 85, -3, 83, -4, 82, -4, 81, -3, 80, 79, 78, 77, -2, 76, 75, 74, 73, 72, 70, 69, 68, 67, 66, -2, 63, -8, 62, 61, -16, 60, 61, 62, 63, -3, 66, -2, 65, 64, -5, 65, 64, -2, 63, 61, 60]]];
state_borders.cy = [[0, [17, 16, -2, 8, -2, 7, 5, -2, 4, 3, 2, -8, 0, 1, 2, 4]], [19, [19, -2, 18, 17, 16, 15, 14, 13, -2, 12, -3, 11, -4, 10, -2, 7, -3, 5]]];
state_borders.ie = [[0, [24, 17, 11, 10, 8, 7, 6, -3, 3, -6, 4, -3, 3, -2, 2, 1, 2, 1, -5, 0, 1, -3, 0, -3, 1, -2, 4, 6]], [42, [-2, 26, 27, 28, 30, 40, -2, 41, -7, 42, 41, 39, 38, 33, -3, 34, -7, 35, 28, -2, 27, 26, 13, -4, 12, 8]]];
state_borders.gb = [[0, [20, 18, -2, 16, 6, -3, 5, -5, 3, -4, 2, -8, 3, -6, 4, -2, 2, -2, 3, -2, 2, 4, -2, 5, -3, 6, 3, 1, -2, 0, 1, -2, 2, -4, 3, -3, 2, -3, 0, -2, 2, 3, -2, 54, 55, 56, 58]], [123, [26, -2, 27, -2, 28, 122, 123, 121, -3, 120, 45, 46, 48, 49, 87, -2, 89, 105, 106, -4, 108, -7, 102, 103, -3, 104, 103, 102, 100, 98, -2, 97, 104, -2, 105, 104, -2, 103, -3, 102, 98, 65, -6, 66, -3, 65, 64, -3, 62, -2, 60, 59]]];
state_borders.ch = [[0, [-2, 8, -3, 5, 7, -4, 6, 5, 1, -2, 0, 1, 2, -2, 4, -2, 5, 3, 2, -2, 1, -2, 2, -4, 1, 2, 3, 4, -2, 8, 6, -2, 5, 4, 5]], [25, [-2, 15, 14, 13, 14, -2, 15, 21, 22, -5, 23, 24, -2, 25, 24, -2, 23, -4, 22, 23, 22, -2, 21, -2, 22, 21, 18, -2, 16, 15, -2, 12, 11, 10, 5]]];
state_borders.at = [[0, [18, -2, 17, 15, 10, 9, 8, 7, -3, 4, 5, -6, 3, 2, 1, -2, 0, 1, -2, 0, -6, 1, -7, 2, -2, 3, 4, 5, -7, 6, 5, -3, 3, -3, 4, -2, 5, 4, -2, 5, 6, -2, 7]], [33, [23, 24, 30, -3, 31, 32, 31, 30, -3, 31, -3, 32, -5, 33, 30, 29, -2, 28, 27, -2, 28, -3, 29, -2, 27, -2, 24, -2, 23, 22, 21, 15, -3, 16, -4, 15, 14, -2, 13, -2, 12, 13, -5, 14, 12, 13, -3, 14, -2, 13]]];
state_borders.cz = [[0, [15, 14, -2, 13, 12, 9, 8, 6, -5, 5, 4, -2, 2, -2, 3, 4, -5, 3, -2, 4, -5, 5, 2, -8, 0, 1, 2, 3, 4, -2, 5, 6, 7, 8, -2, 9, 10, 12, -2, 17, 19]], [31, [15, -2, 17, -4, 20, -2, 21, 20, -2, 24, -2, 23, -5, 24, 21, 26, -5, 27, -3, 28, 29, -2, 30, 31, 30, 28, 29, 30, -2, 31, -2, 28, 27, -3, 26, 25, 24, -3, 23, -2, 22, 21, 20, -2, 21]]];
state_borders.sk = [[0, [20, 16, 13, -5, 12, 14, -6, 13, 12, -2, 9, 8, -4, 7, 6, -4, 5, -4, 1, -7, 0, 1, -2, 2, -2, 3, 4, 5, 7]], [25, [-3, 22, -2, 23, 24, -8, 25, 23, -4, 24, 23, 22, 21, 22, -2, 23, 24, 25, 24, -5, 23, 22, -2, 21, 20, -2, 16, -5, 14, 13, 11, 8]]];
state_borders.hu = [[0, [32, -3, 30, 29, 28, 24, 23, 18, 15, 14, 10, -2, 9, -3, 8, -5, 7, -2, 6, 7, 6, 5, -2, 4, -2, 3, 2, 1, -8, 0, 1, -3, 2, 3, 4, -2, 5, 6, 7, 8, 9, 10, -2, 12]], [39, [34, -3, 35, -2, 36, 37, -2, 38, -3, 37, -3, 39, 38, -2, 37, -3, 38, 37, 35, -2, 33, 31, -4, 32, -2, 30, -3, 29, 26, -8, 25, 26, -4, 27, -5, 23, 14, 13]]];
state_borders.lt = [[0, [21, -3, 19, 6, -3, 5, 6, -2, 4, -2, 2, -3, 0, 1, -5, 0, -3, 3, -3, 4, -2, 11, -2, 12, -2, 11, -4, 12, -4, 13, 20]], [32, [21, -2, 22, -3, 26, 27, 28, -2, 29, -5, 30, 31, -3, 32, 31, -2, 30, 29, -3, 30, -8, 29, -4, 28, -2, 27, 26, 24, 23]]];
state_borders.lv = [[0, [10, 9, 7, -4, 5, 4, 3, -3, 2, -2, 3, 4, 5, -6, 6, 7, 8, -10, 6, -8, 5, -2, 4, 3, 2, -3, 0, 1, 8]], [30, [14, 15, 16, 17, 19, 24, -2, 25, 26, 27, -2, 26, -3, 27, -2, 25, 26, 27, -2, 28, 29, 28, 29, -2, 30, -2, 29, 28, 27, -2, 26, 14, -2, 15, 16, 18, -2, 19, 20, -3, 22, -2, 21, 20, -2, 19, 17, 10, 9]]];
state_borders.md = [[0, [16, 15, -5, 14, -2, 13, 8, 5, -2, 1, -2, 0, 1, 5, 7, 16, 17, 18, 19, 20, -2, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, -2, 30]], [36, [16, 17, 19, -3, 21, 22, -4, 26, 27, 32, -3, 33, -7, 34, -3, 35, -2, 36, 35, -2, 34, -4, 33, 31]]];
state_borders.ro = [[0, [-3, 24, 23, 21, 10, -5, 9, 10, 11, -2, 10, 11, -2, 10, -3, 11, -2, 10, -2, 9, -2, 8, 7, 5, 4, 3, -10, 2, 1, -6, 0, -3, 1, -6, 0, -2, 4, -2, 5, 8, 7, 6, 7, -4, 8, -3, 9, 14, -3, 15, 16, 17, 20, 21, -2, 22, 23]], [61, [30, -5, 32, 31, -2, 30, 29, -2, 28, 29, 30, 33, 35, 44, 46, 47, 48, 49, -2, 50, 51, 52, 53, 54, 55, 56, 58, 59, -3, 60, 61, 60, -2, 59, 56, -3, 55, -3, 54, 53, -2, 51, -2, 52, -2, 53, 52, 51, -9, 52, 51, 50, 48, -3, 47, 46, 44, 41, 39, 34, 32, 28, -3, 27, -4, 25]]];
state_borders.bg = [[0, [-3, 18, 17, -2, 16, -2, 17, 18, 17, -2, 16, 15, 13, 11, 7, -3, 6, -2, 5, -4, 4, -2, 5, -2, 4, -2, 5, 6, -3, 5, 4, -3, 3, -3, 2, -3, 1, 0, 7, 8, -2, 9, -2, 10, 11, 26, 27, 29]], [43, [-6, 41, -5, 43, -2, 42, -3, 43, -2, 42, -3, 41, 40, 39, 38, 37, 36, -2, 34, -5, 33, -2, 34, -3, 33, -11, 32, -3, 35, -2, 36, -2, 33]]];
state_borders.al = [[0, [13, 11, 10, -2, 6, 2, 1, 0, 1, 0, 1, 3, -2, 5, -2, 6, -2, 7, 20, 29, 30]], [37, [14, -3, 17, 18, 19, 23, 32, -3, 33, 35, -4, 36, 37, 36, 34, 32, 30]]];
state_borders.ee = [[0, [7, 5, -4, 3, 2, -2, 1, -2, 2, 3, -3, 4, -4, 5, 4, -2, 3, -2, 2, -2, 6, -3, 7, 8, 7, 6, -2, 5, -2, 4, -3, 0, 4, 6]], [28, [8, 10, 26, 27, 28, 27, -14, 26, 24, -2, 23, -2, 24, -3, 22, 21, -2, 19, 18, 17, -2, 14, -2, 15, 14, -3, 13]]];
state_borders.ad = [[0, [1, -3, 0, 1]], [3, [-5, 3]]];
state_borders.sm = [[0, [-3, 0]], [2, [-3, 2]]];
state_borders.mc = [[0, [1, -2, 0, 1, 2]], [4, [-2, 3, 4, 3, 2]]];
state_borders.lu = [[0, [3, -6, 0, 1]], [10, [-2, 5, 6, 9, -2, 10, 9, 8]]];
state_borders.fr = [[0, [77, 76, 75, 74, 70, 66, 18, 16, -2, 14, 13, -2, 12, 11, 10, 9, -4, 7, -5, 6, 7, -3, 8, -7, 10, -3, 12, -3, 13, 12, 11, -3, 10, -3, 0, -2, 1, -4, 0, -4, 1, -2, 2, 3, -2, 4, -3, 6, 7, 8, -2, 6, 7, -2, 6, -3, 7, 8, -4, 9, 11, -3, 12, -3, 13, 16, 17, 18, 69, 70, 71, -2, 72, 73, -2, 74, -5, 75, -2, 78]], [107, [78, -4, 79, 80, -3, 81, 80, -3, 82, 84, -5, 85, -3, 86, 87, 88, -2, 89, -2, 94, 93, -2, 92, 96, -3, 97, 98, -2, 99, 101, -2, 103, 102, 103, -4, 107, -5, 106, 105, 99, 96, -2, 95, -4, 94, -4, 93, 92, -3, 88, -3, 89, -3, 90, -5, 94, -2, 95, -2, 83, 81, -3, 83, 82, 83, 85, 86, -2, 87, 86, 87, -9, 86, -2, 85, 79]]];
state_borders.li = [[0, [-4, 0]], [4, [2, 3, 4, 2]]];
state_borders.nl = [[0, [28, 25, 18, 17, -2, 14, -3, 13, 5, -5, 0, 6, -2, 7, -2, 8, -3, 9, -3, 8, -3, 7, -3, 8, 10]], [34, [-2, 31, 32, 33, -3, 34, -4, 33, -3, 32, 31, 30, 29, -4, 28, 23, 21, 19, 18, -2, 17, -3, 14, -2, 12, 10]]];
state_borders.ba = [[0, [-2, 15, 14, -2, 10, 11, 10, 3, 0, 1, -2, 2, -2, 3, 4, -3, 5, -2, 8, 9, 11, -2, 12, 13, 14, 15, 16, 17, 18, -2, 19, 22, 24, -2, 26]], [34, [-2, 22, 23, -6, 31, -8, 33, -3, 32, -5, 33, 34, -4, 33, -2, 31, -4, 32]]];
state_borders.si = [[0, [-3, 14, 15, 13, -2, 12, 11, 6, 5, 3, -11, 1, -5, 0, 5, 7, 10]], [20, [-2, 15, 17, 18, -2, 20, -2, 19, -3, 17, -6, 16, 14, -6, 13, -3, 14, 13, 12, 11]]];
state_borders.mk = [[0, [-2, 9, 6, -6, 5, 4, -2, 2, -3, 1, -6, 0, 1, 2, 4, 7]], [20, [14, 16, 17, -3, 18, 19, -5, 20, -2, 19, -4, 18, -2, 17, -2, 16, 15, -2, 12]]];
state_borders.hr = [[0, [-2, 34, 31, -2, 30, -2, 0, -2, 1, 2, -2, 3, -4, 4, -4, 5, 9, -3, 10, -6, 11, 13, -2, 14, 15, -2, 16, 17, 18, 22, 23, 26, -2, 30, 31, 32, 28, 27, -3, 25, 27, 28, 32]], [48, [-3, 36, 38, 39, 42, -3, 43, 42, -6, 41, -4, 42, 43, 44, 45, 46, 47, -6, 48, 46, -2, 45, 44, 43, 39, 38, -4, 35, -2, 37, 35, 34, -3, 35, -4, 34]]];
state_borders.cs = [[0, [21, 18, 17, 11, 10, -3, 9, -5, 8, -2, 5, -2, 6, 5, 2, -2, 1, 2, 6, -2, 7, 8, 9, -3, 8, 7, -3, 0, 1, -2, 3, -3, 4, 6, 7, 48]], [54, [-2, 22, -2, 23, 24, -2, 38, -2, 39, -3, 40, -3, 38, 37, 40, 43, -3, 44, -3, 45, -2, 50, -2, 51, 52, -2, 53, -2, 54, 53, -2, 54, 53, 52, -3, 51, 50, 49]]];
state_borders.dk = [[0, [-2, 8, 3, 2, -2, 1, -3, 0, 1, -2, 2, 6, -3, 5, -3, 6, -3, 3, -2, 2, -5, 3, -3, 10, 11]], [38, [-2, 18, -3, 19, 18, -3, 17, 18, 15, 23, -2, 24, -3, 38, -2, 37, -2, 36, 34, 32, -6, 31, 30, 28, 25, 18]]];
state_borders.ru_kaliningrad = [[0, [3, -3, 2, -7, 1, -12, 0, 1]], [13, [9, 10, 11, -2, 12, -4, 11, -2, 12, -2, 13, -3, 12, 8, 9, -3, 8, 7, 3, 1]]];
state_borders.ru = [[0, [-3, 163, 162, 158, 157, 15, 9, -2, 8, -5, 7, -5, 9, -6, 10, -3, 9, -3, 10, 12, 13, -4, 12, 13, 11, -2, 10, 11, 10, 8, 7, -4, 6, -2, 8, -4, 7, -7, 8, 7, 6, -3, 5, -3, 4, 5, -7, 4, -3, 3, -3, 0, -2, 1, -2, 2, -2, 3, -2, 4, -3, 5, -4, 6, -3, 5, -2, 6, -2, 7, -4, 6, 7, 8, -6, 9, -7, 70, -3, 68, -3, 69, 70, 71, 72, 71, 70, 69, 68, -4, 67, -2, 68, -2, 67, 66, -2, 67, 68, 71, 72, -2, 73, -2, 74, 73, -2, 74, -2, 73, 75, -2, 77, 81, 82, 84, 85, 84, 83, 84, 83, 82, -4, 81, -2, 77, -2, 76, 77, 78, 79, 81, 83, 85, -2, 86, 100, -3, 101, 102, 103, 104, -2, 106, 107, 112, -2, 116, -2, 117, 118, -2, 117, 116, 115, -2, 114, 116, 118, 117, -2, 116, -4, 117, 118, 121, 123, 124, -2, 125, 128, 131, 132, 133, 135, 141, 145, 147, 170, -2, 169, 218, 219, 222, -2, 223, 224, 228, 233, 238, 239, 241, 242, 243, 244, 245, 247, 258, -3, 260, -2, 261, 262, 264, -2, 269]], [325, [-2, 309, -3, 310, -4, 311, -3, 312, -3, 313, 312, -3, 307, 311, 314, 315, -4, 316, -4, 317, -3, 318, -4, 319, -3, 320, -4, 321, -3, 322, -3, 323, -5, 320, -4, 321, -8, 322, -2, 323, -4, 322, -7, 323, -3, 324, -6, 323, -4, 322, -5, 321, -4, 322, -3, 323, 324, -4, 325, 323, -4, 301, -2, 299, 298, 296, 295, 294, 295, -2, 303, -3, 302, 301, -2, 300, 299, 298, 297, -2, 295, 294, 293, 292, -3, 291, 290, 288, 287, 300, -3, 301, -8, 302, 300, -3, 270, 283, -2, 284, -2, 285, 286, -9, 288, -3, 287, -5, 288, 263, 262, 261, 259, 258, -2, 257, -2, 256, 255, -4, 254, 251, 271, -2, 272, 274, 275, -4, 276, -2, 277, 278, -3, 279, -2, 278, -5, 279, -2, 280, -3, 281, -4, 282, -8, 283, -5, 282, 281, -3, 282, -4, 285, -3, 286, -4, 283, -2, 280, 277, 276, 271, 270, 269]]];
state_borders.mt = [[0, [-3, 0, 1, 2, 3]], [4, [1, 2, -4, 4]]];
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20489 MovieClip [__Packages.TetrisCanvas] Frame 0
class TetrisCanvas
{
var mc, timeField, tinyStates;
function TetrisCanvas (parent) {
mc = parent.createEmptyMovieClip("tscene", parent.getNextHighestDepth());
var _local3 = mc.createEmptyMovieClip("bg", mc.getNextHighestDepth());
_local3.attachMovie("usabg", "usabg", _local3.getNextHighestDepth());
_local3._x = _local3._x + TetrisVariant.instance.STATES_DX;
_local3._y = _local3._y + TetrisVariant.instance.STATES_DY;
var _local4 = new TextFormat();
_local4.font = "Arial";
_local4.bold = true;
_local4.size = 40;
_local4.color = 16777215 /* 0xFFFFFF */;
var _local5 = _local4.getTextExtent("000:00.00");
mc.createTextField("timeField", mc.getNextHighestDepth(), 10, TetrisVariant.instance.TIME_FIELD_Y, _local5.textFieldWidth, _local5.textFieldHeight);
timeField = mc.timeField;
timeField.setNewTextFormat(_local4);
timeField._visible = false;
timeField.selectable = false;
}
function initGame() {
timeField._visible = true;
tinyStates = new TinyStates(mc._parent);
}
function destroyGame() {
timeField._visible = false;
if (tinyStates != null) {
tinyStates.destroy();
tinyStates = null;
}
}
function createTetrisBlock(id) {
var _local3 = new TetrisBlock(this, id);
return(_local3);
}
function onEnterFrame() {
if (tinyStates != null) {
tinyStates.onEnterFrame();
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20490 MovieClip [__Packages.TetrisBlockMetricsEurope3] Frame 0
class TetrisBlockMetricsEurope3
{
var state_borders;
function TetrisBlockMetricsEurope3 () {
state_borders = new Array();
state_borders.is = [[0, [18, 17, 16, 15, 14, -2, 12, -2, 11, -2, 10, 8, 6, 4, -3, 2, -2, 3, 7, -5, 8, 6, 5, 3, 1, 0, 1, -2, 13, 12, 6, 5, -4, 4, 7, 9, 11, 12, 15]], [54, [24, 33, 43, -2, 45, 48, 50, 51, -2, 53, 54, -2, 53, -4, 54, -3, 52, 51, -3, 52, 50, -2, 54, 53, 49, -3, 48, 34, 28, 27, -2, 21, 20, 21, -4, 20, 19, 17]]];
state_borders.it_s = [[0, [-2, 4, -7, 2, -4, 3, -3, 2, -3, 3, -2, 2, -4, 0, -2, 1, 7, 8, 10]], [17, [7, -2, 9, -3, 14, -8, 15, -2, 16, -2, 15, -2, 16, -2, 17, -2, 16, -5, 15, 13]]];
state_borders.fr_c = [[0, [6, 5, 3, -2, 2, -4, 1, 2, -2, 0, 1, -2, 0, -2, 2, 5, 6, 7, -2, 8]], [10, [-3, 7, 8, -6, 9, -7, 10, 9, -3, 10, 9]]];
state_borders.pt = [[0, [11, 9, 7, -4, 1, -2, 2, -3, 3, -5, 4, -4, 5, -2, 2, -2, 1, -3, 0, 1, -2, 2, -3, 3, 5, 6, -2, 7, 8, -2, 9, -3, 10, -2, 11, -2, 12, 13, -2, 14, -2, 15, -6, 14, 15, -2, 14, 16, 17]], [39, [12, 14, -4, 16, -2, 17, 18, -2, 19, 22, 23, 24, 23, -5, 21, 23, 24, -3, 25, 24, -5, 23, 27, -2, 28, -2, 29, -2, 28, -2, 30, -6, 31, 32, 33, 34, 36, 38, -3, 39, 38, -4, 36, 32, 24, -2, 23, 22]]];
state_borders.es = [[0, [42, -2, 40, 41, 17, -3, 16, 17, 16, 15, 14, -3, 12, -3, 11, -5, 10, 9, 8, 7, 5, -7, 2, 3, 4, -2, 5, -2, 7, -2, 6, 5, -3, 6, 7, 9, 10, -2, 9, -5, 8, -2, 7, 13, 14, -4, 13, -2, 15, -3, 16, -2, 17, -2, 16, 18, 19, 20, 23, 24, 22, -2, 21, 22, 14, 12, -3, 7, -2, 2, 1, -5, 2, 3, 4, 2, 1, -3, 0, 1, 2, 7, 9, 11, 13]], [119, [-2, 43, -2, 42, 20, 19, -3, 20, 18, 20, 53, 54, 55, -2, 56, 57, 58, 59, -3, 68, 67, -3, 69, -2, 71, 72, 73, 76, 78, 102, -2, 103, 107, 108, 109, 110, 111, -4, 119, 118, 116, 78, 79, 80, 81, 82, 83, -2, 84, 87, -2, 88, 87, 89, 94, 100, 101, 102, 105, 107, 109, 110, -4, 111, 112, 113, -2, 112, 108, 99, -2, 96, 95, 93, 92, 90, 81, -2, 77, 75, -3, 72, 71, 69, 62, 61, 60, 54, 53, 42, 40, 38, 36, 34, 33, 24, -2, 20, 19, 18]]];
state_borders.be = [[0, [-2, 21, 20, 19, -2, 17, 12, 11, 12, 11, 12, -2, 8, 6, -2, 5, 2, -2, 1, -4, 0, 2, 4, 6, 18]], [30, [25, -2, 26, -4, 25, -2, 28, 29, -3, 30, -2, 29, 28, 27, -2, 25, -3, 26, 25, -2, 21, 20, 18]]];
state_borders.it = [[0, [76, 74, -2, 73, 72, 66, 65, 62, 61, 56, 55, 54, -2, 53, -3, 54, 55, 56, 76, 80, 84, -2, 87, -3, 86, -2, 89, -4, 88, -2, 87, 86, -4, 85, 84, 79, 78, -4, 76, 70, 71, 68, -2, 67, -2, 66, 58, 57, 56, 54, 53, 51, -2, 50, 49, 48, 46, -2, 45, 44, -3, 40, 39, 38, 36, 35, -5, 34, -2, 33, -3, 32, -4, 8, 9, 5, 3, -5, 2, 3, 4, 2, 1, -3, 0, 4, 5, -2, 4, 3, -3, 2, 3, 9, -3, 13, 14, 15, 24, 30, -3, 33, 39, 40, 47]], [111, [-3, 81, 82, -3, 83, -2, 82, -4, 81, -2, 82, 88, -3, 90, -2, 91, 93, -6, 94, 97, -7, 99, 98, 96, 95, 92, 93, -3, 110, -3, 111, 110, 109, 108, 106, -2, 105, 102, 99, 98, 96, 93, 89, 86, 85, 86, -4, 87, 74, 73, 72, 71, 70, -2, 68, 67, -3, 66, -3, 65, -3, 64, 63, 62, 60, 58, 57, 55, 54, 53, 52, -2, 51, -3, 50, 51, -4, 52, 51, -2, 50, 51, 53, 54, -2, 64, 63, 62, -3, 61, 62, 61, 60, 61, -2, 62, 55, 51, 50, -3, 49]]];
state_borders.by = [[0, [7, -7, 6, 3, -3, 2, -2, 3, 4, 5, -4, 6, -2, 5, -2, 4, -2, 3, -2, 2, -2, 1, -2, 0, 5, 8, 9, 10, -2, 12, -3, 14, 15, -3, 14, -2, 15, 16, -2, 17, 19, -3, 17, 18, -2, 17, -2, 19, 20, -3, 24, 25, 26, 41]], [68, [7, 8, -2, 11, -2, 12, 14, 39, 46, 51, 60, 61, -2, 60, 59, 58, -4, 59, 60, 62, 63, -2, 66, 65, 64, -3, 63, -2, 62, 61, -2, 59, -2, 65, -2, 66, 67, -2, 68, 67, -2, 65, -3, 59, 55, 54, 53, -2, 52, 50, -2, 49, -2, 50, 49, -3, 48, -2, 47, 44, 42]]];
state_borders.pl = [[0, [50, 43, -2, 42, 41, 40, 39, 33, -2, 23, 22, -2, 20, 19, 17, 15, -2, 9, -5, 10, 9, -2, 8, -7, 7, -5, 6, 4, -3, 2, -2, 3, -3, 4, -3, 3, 2, -2, 0, -2, 2, 5, 7, 9, 12, 15, 16, -2, 17, 18, 21, 23, 24, 26]], [82, [53, 76, -2, 75, -3, 74, -3, 73, -2, 74, -2, 75, 76, -2, 77, -2, 78, 80, -4, 82, -3, 81, 80, 79, 78, 77, -3, 76, -7, 75, 74, -2, 71, 72, 73, 74, -5, 75, -3, 74, 73, -2, 72, -2, 71, -2, 70, -3, 69, -2, 68, 65]]];
state_borders.gr = [[0, [-2, 54, -5, 41, -2, 42, 29, -2, 28, -3, 21, 20, -3, 19, 20, -2, 19, 16, -2, 15, -2, 13, 8, -4, 6, 7, 8, -2, 10, 7, 8, -2, 7, 5, 4, -2, 2, -3, 0, 2, 3, -2, 2, 3, -2, 5, -4, 6, -2, 8, -2, 7, 8, 12, 14, -2, 15, 16, -2, 22, 23, 24, 27, 32, 33, 35, 38, -2, 53, -3, 52]], [70, [56, 59, 62, 66, 69, -4, 70, -2, 30, -2, 37, 36, -4, 35, -2, 34, -2, 32, 31, -2, 38, 37, 35, 42, -2, 43, -2, 42, -2, 47, -2, 48, 44, -3, 43, -2, 42, 35, 34, -3, 33, 32, 30, 29, 28, -2, 27, 26, 35, -2, 37, -2, 41, -2, 40, 37, 35, 34, 37, -2, 38, 54, -2, 55, -6, 56, -5, 58, 56]]];
state_borders.fi = [[0, [-2, 32, 33, 31, -2, 29, 22, -3, 21, -3, 20, 19, -4, 20, -2, 19, 20, -2, 19, 18, -5, 17, 16, -6, 15, 16, 17, -3, 16, 17, 21, -2, 20, -3, 21, 22, -2, 23, -3, 25, 26, -3, 27, -5, 28, 29, 30, 32, -4, 31, 30, 29, 26, 24, 23, 22, -2, 21, -2, 20, 19, -5, 20, 19, -2, 18, -3, 17, -4, 16, -3, 15, 14, 13, 12, 10, 7, 5, 4, 2, -2, 1, 0, -4, 1, 2, -5, 21, -2, 20, -2, 21, -3, 22, -2, 26]], [72, [-2, 34, 37, 38, 41, 42, 44, 46, 47, -2, 50, 52, 55, 56, 59, -3, 60, -2, 61, 62, -2, 63, -2, 64, -2, 65, -3, 66, -3, 67, -2, 68, -3, 69, -3, 70, -4, 71, -6, 72, 71, 70, 68, 67, 65, 63, -2, 61, -5, 62, 61, -5, 58, 55, -2, 54, 55, 54, -4, 53, -2, 54, -2, 53, -2, 52, 51, 50, -2, 49, 48, 47, 46, 45, -3, 44, -4, 45, -4, 46, 45, 43, 42, 41, -2, 37, -6, 36, 35, -2, 36, -2, 35, -3, 36, 35, 34, 33, 30, 29]]];
state_borders.de = [[0, [34, -2, 33, -5, 12, -5, 13, -3, 14, -3, 15, 16, 17, 16, 13, 7, -2, 6, 5, 4, -2, 3, 4, 5, 3, -4, 2, 3, -2, 4, -2, 3, -2, 2, 1, 2, 1, 0, -2, 2, -2, 3, 4, 3, -4, 2, 4, 7, 8, 9, -2, 10, -3, 8, 9, -3, 11, -3, 12, -4, 11, 12, 13, -2, 22, 23, -3, 25, -3, 23, 25, 24, -4, 23]], [71, [36, 43, 58, -4, 59, -2, 58, -3, 57, 59, -3, 61, -5, 64, 63, 62, 60, 59, 58, 57, 55, 54, -6, 53, 51, -2, 52, 56, 57, 58, 60, 61, 63, 70, -9, 71, -9, 69, 68, 67, -3, 68, 66, -2, 64, -2, 65, -3, 66, -3, 65, -2, 64, 62, 61, 60, 61, -4, 60, -2, 59, 58, 57, 30, 26]]];
state_borders.se = [[0, [10, -2, 9, 8, -2, 10, -2, 7, -3, 6, 7, -2, 9, 10, 11, 12, 11, 10, 9, -3, 8, 7, 6, -4, 5, -6, 4, 5, 2, -3, 0, -2, 1, -5, 0, -3, 4, -5, 3, -3, 4, 6, 7, -6, 8, -2, 7, -4, 6, 8, -3, 9, 8, 7, -7, 5, -2, 6, -2, 5, -5, 4, -6, 3, -4, 4, -2, 5, 6, 7, 8, 11, -3, 15, 14, -3, 12, -3, 13, -2, 14, -2, 15, -8, 16, -3, 15, 18, -4, 19, -2, 20, -2, 21, 22, -3, 23, -2, 22, -2, 21, -3, 23, -3, 24, 25, 26, 30, -4, 29, 30, 37, -2, 38, 39, 38, -2, 37, 38]], [64, [11, 18, -2, 23, -2, 24, 23, 22, -2, 23, 26, 33, -2, 34, -3, 38, -6, 39, 48, -2, 49, 50, -2, 51, 52, 53, 52, 51, -2, 52, -2, 53, 52, -3, 37, -3, 38, 39, 40, 41, -2, 43, 44, -2, 46, -3, 47, 46, -2, 47, -4, 49, -2, 47, -3, 46, 42, 41, 40, -2, 37, -7, 36, 35, -3, 37, -4, 36, -2, 37, 36, 35, 38, -3, 39, 40, -3, 41, 42, -3, 44, 46, 45, 47, 48, 50, -3, 51, -4, 52, 53, -4, 54, 53, -2, 51, 52, -4, 53, 52, 54, 55, -2, 56, 58, 59, 63, -3, 64, 63, 62, -2, 61, -3, 60, -4, 61, 60, 59, -5, 58, 57, -5, 56, 55, 54, 53, 52, 48, 46, 45, 43, 42, 41, 40]]];
state_borders.no = [[0, [11, 9, -2, 8, -2, 6, 5, 3, -7, 2, -6, 1, 2, -2, 3, -5, 2, -3, 1, -2, 2, 1, -2, 0, -8, 1, 2, -2, 1, -2, 2, -2, 3, -2, 2, -2, 7, 10, 9, 10, 13, 14, -2, 13, 14, 21, -2, 22, 23, 24, 28, -2, 22, 23, -3, 30, 31, 32, -2, 33, -2, 34, 36, 37, 38, 37, 38, 42, 43, -5, 42, -3, 43, -5, 44, -5, 45, 46, 47, -3, 48, 49, -3, 51, 52, -6, 53, 54, -3, 47, 48, 49, 54, 55, -3, 51, 52, 53, 56, 57, -5, 61, 62, 64, 65, -2, 69, -3, 68, 70, 73, -2, 75, 78, 79, 84, -2, 81, 80, 81, 83, 85, 88, -2, 89, -3, 92, 100]], [120, [15, 18, 20, 21, 22, 23, 24, -2, 26, -2, 27, 41, -9, 42, -3, 43, 45, -5, 46, -3, 47, -2, 46, -3, 45, -2, 47, -4, 48, 47, 46, -10, 44, -15, 43, 44, 45, 46, 47, -6, 53, 52, -2, 51, -3, 52, -2, 53, -8, 54, 55, -3, 54, 57, -5, 58, -2, 59, 60, -2, 61, -4, 62, 61, 60, 61, -3, 62, 63, 94, -6, 68, 77, -2, 78, 76, -2, 77, 91, 98, -3, 99, -4, 101, -2, 100, -5, 115, 116, -2, 117, -3, 120, -2, 119, -3, 115, 116, -2, 118, 116, 115, 113, 111, 105]]];
state_borders.ua = [[0, [58, -2, 57, 58, -3, 59, -3, 60, 62, 61, 62, 61, -2, 60, 61, 62, -3, 68, -2, 7, 4, -2, 2, -4, 0, -3, 1, -3, 2, -3, 3, -4, 2, -2, 3, -2, 4, -2, 5, -2, 6, 7, -2, 8, -2, 11, 10, -3, 9, 8, 7, -3, 6, -4, 5, -3, 9, 10, 13, 15, 21, 39, 44, 52, -6, 56, -2, 57, 58, 60, 63, -4, 67, -2, 72, 73, 77]], [140, [63, 71, 108, -2, 110, -2, 111, -2, 112, 113, 114, -2, 117, 118, -2, 119, 123, -5, 126, -2, 127, 126, 110, -2, 112, -4, 113, 114, -2, 115, 116, -2, 119, -3, 123, 124, -2, 126, -2, 127, -6, 132, -2, 131, 132, -4, 133, 135, 139, -8, 140, 139, 138, 136, -2, 137, 138, 137, -5, 136, -3, 135, 112, 94, 91, -3, 83, -2, 84, 83, 81, -2, 80, 78, 77]]];
state_borders.tr = [[0, [46, -2, 22, 24, 20, -6, 19, -2, 16, 17, -2, 18, 10, -2, 7, -5, 8, 11, 12, -3, 11, 10, 8, -11, 3, 2, 3, 4, -3, 0, -2, 1, 2, -3, 1, 2, 3, 4, 3, 1, -2, 0, 1, -2, 2, 4, 5, 13, 47, 48, 49, 50, -2, 51, 52, 53, 54, 55, 57, 58, 59, 60, 63, 67, 71, -2, 74, 75, 113, 114, 116, 117, 125, -2, 126, 127, -2, 128, -2, 130, 131, -3, 132, -2, 136, 138, -2, 141, 142]], [182, [48, 49, 50, -4, 54, -2, 77, 80, 82, 84, 85, 86, -2, 88, -3, 110, -3, 111, 112, -2, 113, 112, -2, 111, 110, 115, 119, 120, -2, 121, 122, 123, 133, 135, 136, 138, 139, 140, 141, 142, 143, -2, 144, 145, 146, 148, 151, 153, 155, 156, 158, 161, 162, -3, 163, -2, 166, -2, 179, -2, 180, -3, 182, 181, 179, -2, 178, 177, 173, -5, 174, -2, 171, -2, 170, 169, -2, 168, 167, 166, 167, -3, 168, 167, -2, 170, 169, 166, -5, 156, 155, 154, 152, 151, 148, 144]]];
state_borders.cy = [[0, [3, 2, -2, 1, -2, 0, -2, 3, 6, -2, 5, 9, 12, 14, 15, 16, 17, 18, 19, 21]], [21, [-2, 10, 11, 12, 14, -2, 15, 17, -2, 19, 18, 16, 17, 18, -2, 19, 20, -3, 21]]];
state_borders.ie = [[0, [6, -3, 3, -2, 1, -3, 0, 1, 2, -2, 1, 5, -2, 6, 8, -2, 10, 11, 12, 11, 10, 11, 8, 7, 6, 7, 9, -2, 10, -2, 11, -3, 10, -3, 21, 22, 24, 23, 24]], [38, [14, 17, 19, -3, 31, 32, 33, -2, 34, 35, -6, 36, 37, 36, -2, 37, -2, 36, 37, -3, 38, 36, 35, -2, 34, 33, -2, 26, -2, 29, -2, 31, 32, -2, 33, 32, 30]]];
state_borders.gb = [[0, [-2, 8, 6, 5, 6, 10, 11, 12, 14, 15, -2, 16, 17, 19, 21, -2, 24, -2, 20, 15, 14, -4, 13, 14, 18, 22, 23, 24, -2, 25, 21, -3, 20, 22, -2, 23, -2, 22, 23, -6, 34, -2, 23, 13, -3, 9, 3, 2, -2, 1, -2, 0, 1, -2, 3, -2, 6, 7, 10, 19, -2, 20, -5, 21, -2, 23, -3, 18, 20, -2, 19, 20, -3, 22, -2, 25, -3, 27, 26, -3, 25, -3, 17, -4, 18, 21, 23, 24, -3, 44, 59, 58, -2, 59, 58, -2, 57, 60, -2, 61]], [67, [22, 23, 54, -2, 59, 62, -4, 63, 59, -2, 60, 61, -2, 63, -2, 65, -2, 66, -7, 67, 66, 64, 62, -5, 58, -5, 57, -2, 56, 55, -3, 56, 55, -2, 54, 53, 52, 51, -6, 49, -7, 48, 47, -3, 46, 44, -4, 43, 42, 44, 45, -2, 46, 47, -2, 48, -2, 49, 50, 51, -2, 52, -2, 51, 48, 43, -3, 39, 41, 42, 44, -3, 45, -2, 46, 36, -2, 49, 48, -2, 47, 59, -2, 60, -2, 61, -4, 62, 61]]];
state_borders.ch = [[0, [26, 10, 9, 8, 1, 0, 1, 2, -3, 1, 2, 3, -3, 5, 6, -2, 8, -3, 9, 10, 15, 22, 23]], [39, [27, 28, -2, 27, 28, -3, 37, -8, 39, -2, 31, -4, 32, 31, 30, 25, 24]]];
state_borders.at = [[0, [39, 33, 26, 11, 5, 3, 2, -7, 0, 2, 18, 22, -2, 28, 27, -2, 26, 27, 28, 30, -3, 32, 35, 34, 43, -3, 44]], [63, [43, 44, 45, 51, -3, 55, 56, 57, 58, -2, 59, -2, 58, 59, -2, 60, 62, -2, 63, -2, 62, -2, 63, 62, 61, -2, 60, -3, 61, 60, 57, 48]]];
state_borders.cz = [[0, [16, 15, 14, 13, 12, 10, 9, 8, 7, 5, -2, 4, -5, 3, -2, 1, -3, 0, 4, 6, 9, 10, 11, 14, 15, -3, 17]], [55, [-2, 23, -2, 41, 42, 47, -2, 48, 49, -3, 50, 51, 53, 54, 55, -2, 54, -3, 52, 48, -3, 45, 34, 35, 34, 29, 26, 25, 23]]];
state_borders.sk = [[0, [8, 7, 5, 3, 2, -2, 1, -2, 0, -3, 1, -2, 2, 3, -2, 8, -4, 10, 11, 13, 14, 19, 20]], [46, [14, -4, 18, 22, 23, 27, 28, -3, 30, 43, -3, 44, -4, 45, -3, 46, 43, 41, 40]]];
state_borders.hu = [[0, [15, 14, 11, 10, 9, 7, 6, 5, 4, 3, -2, 2, -2, 0, 1, 2, 3, -3, 2, 3, 4, -2, 2, -4, 7, -2, 21, 24, -2, 26, 31, -2, 33, -2, 34, 35, 41]], [55, [22, 23, 24, 26, 28, 29, 33, 38, 41, 43, -4, 44, 45, -3, 46, -5, 47, 48, -4, 49, 50, 51, -2, 54, -3, 55, 54, 51, 49, 48, 43]]];
state_borders.lt = [[0, [-3, 21, 18, -7, 15, 9, 5, -7, 1, -4, 0, 1, -2, 2, 3, 5, 9, 17, 23, 24]], [42, [-2, 29, -2, 31, 33, 37, -2, 38, 37, -6, 36, 37, -3, 38, -2, 41, 42, 41, -4, 39, 36, 35, 34, 32, 27, 26]]];
state_borders.lv = [[0, [2, -7, 1, -2, 0, 1, -7, 2, -2, 3, 5, 6, 8, 20, -3, 19, 21, 22, 23, 25]], [50, [-2, 4, 41, 42, 43, -2, 47, -2, 48, 49, -5, 50, 49, 48, 47, -2, 46, -2, 45, 44, -2, 45, 44, 42, 41, 31, 29, 26]]];
state_borders.md = [[0, [21, -4, 20, -2, 19, -9, 18, 17, 16, 15, 14, 13, 11, 10, 9, 8, 7, -2, 6, 5, 4, -2, 0, -2, 1, 5, 7, 8]], [35, [22, -4, 24, -3, 25, -5, 26, 28, 33, 34, 35, 34, -2, 33, -2, 32, 29, -4, 28, 24, -5, 23, 22, 19, 12, 9]]];
state_borders.ro = [[0, [-4, 26, 24, 22, 19, 18, 14, -2, 11, 12, 11, 12, 10, 7, 6, -3, 5, 4, 3, 1, -3, 0, -2, 4, 7, -4, 8, -2, 9, -5, 10, -2, 11, -3, 12, -2, 13, 14, 17, -2, 18, 19, 20, 31, 38, 41, 44, -3, 45, 47, 48]], [82, [40, 41, 51, 52, 53, -2, 54, 55, 57, 76, -4, 77, -4, 76, -3, 77, -2, 78, 79, -7, 82, -2, 81, 68, -2, 67, -9, 66, -2, 65, 64, 63, 62, 61, 59, 58, 57, 56, 55, 54, -2, 53, 52, 51, 48]]];
state_borders.bg = [[0, [-7, 10, 9, 8, 6, 4, -3, 3, 4, -5, 3, 4, -2, 6, 7, 5, 3, 2, -2, 1, -5, 0, -3, 2, 31, 32, 33, 34, 35, 38, 40]], [55, [10, 13, 16, 19, 34, 36, 39, -3, 40, 39, -2, 41, -2, 42, 43, 51, 52, -2, 55, 54, 53, -2, 52, -2, 50, -4, 52, -4, 51, -2, 52, -6, 55, -2, 49]]];
state_borders.al = [[0, [11, -2, 10, -2, 9, 7, 5, -10, 3, -3, 4, -3, 2, 3, -2, 4, -3, 2, 1, 0, -2, 1, -2, 2, -2, 3, 4]], [20, [13, 14, -4, 15, -4, 17, 18, -2, 19, -2, 20, -3, 19, 16, 15, -4, 14, -9, 13, 12, -2, 9, 8, 4]]];
state_borders.ee = [[0, [-4, 2, -2, 1, -2, 0, 2, 3, 4, 3, 1, 0, 3, 4, -2, 8, 9, 10, -2, 12, 13, -2, 16, -2, 21, 35, 36]], [40, [4, 33, 34, -2, 38, -2, 39, -2, 40, -2, 39, 38, -4, 37, -2, 36, -2, 35, -5, 36, 37, 38, 37, 36]]];
state_borders.ad = [[0, [1, -3, 0]], [4, [3, -3, 4]]];
state_borders.sm = [[0, [-3, 0]], [2, [-3, 2]]];
state_borders.mc = [[0, [2, 1, 0, 1, 2]], [4, [3, -3, 4, 2]]];
state_borders.lu = [[0, [1, -2, 0, 1, -5, 0, 1, 2]], [7, [6, 5, 6, -3, 7, 5, -3, 4, 3]]];
state_borders.fr = [[0, [52, 48, 46, 45, -2, 43, 33, 30, 29, -2, 25, 24, 21, -3, 18, 17, 16, 15, 17, 18, -2, 19, -4, 20, -4, 21, -4, 22, -4, 23, -4, 24, -5, 25, -4, 26, 25, 23, -4, 21, 20, -6, 19, -3, 17, 18, 14, 13, 12, 10, 9, 7, -3, 2, -2, 0, -2, 3, -4, 1, 3, 12, 28, 27, -6, 26, 53, -3, 54, -6, 55, 56, 61]], [107, [-2, 60, 59, 58, -2, 59, 87, -2, 91, 92, 93, 94, 96, 97, -2, 99, -2, 100, -3, 101, 95, -3, 94, 95, 96, -2, 95, 94, 93, 94, -2, 96, -2, 97, 96, -2, 95, 94, 95, -2, 96, -2, 95, -3, 94, 93, 89, 90, -3, 91, 93, 94, 95, 96, 97, 100, -6, 101, 102, 101, -2, 102, -4, 103, 104, 105, 106, -2, 107, 106, 102, 101, 97, -2, 94, 93, 88, 85, 84, 83, -2, 81, 80, -2, 81, -2, 76, 75, 72, 71, -2, 69, -2, 68, -4, 64]]];
state_borders.li = [[0, [-3, 0, -2, 1]], [3, [-3, 3, 2, 1]]];
state_borders.nl = [[0, [-4, 18, -2, 19, 17, 4, -2, 1, 0, -2, 1, 4, 3, 7, -2, 6, 8, 9, -2, 10, -2, 11, -5, 12, 16, 17, 18, 19, 22, 26]], [32, [-5, 22, -7, 23, 22, 26, -3, 28, 29, -4, 30, 28, -2, 30, -3, 31, -4, 32, 30, 29, 28]]];
state_borders.ba = [[0, [27, 26, 24, 22, 21, -3, 18, 16, -2, 15, 14, 12, 11, 10, 9, 8, 7, 6, -3, 4, -2, 3, -2, 2, -7, 0, 6, 10]], [35, [-3, 27, -2, 28, -2, 27, -3, 28, -2, 32, -2, 31, 33, -3, 35, -2, 34, -3, 35, 33, 32, -2, 30, -4, 31, 32, -2, 26, 10]]];
state_borders.si = [[0, [-3, 3, 4, 3, -2, 2, 1, 2, 1, -2, 0, 1, 2, 3, -2, 13, 19, -2, 22, 24]], [29, [7, -2, 18, -2, 19, 20, -4, 21, 20, 22, 24, 25, -2, 29, -2, 27, 26, -2, 25]]];
state_borders.mk = [[0, [4, 3, -2, 2, -3, 1, -2, 0, 1, -3, 0, -3, 2, 3, 5, 7, 11, 13]], [24, [9, 12, -2, 14, 15, 21, -3, 22, -6, 24, -2, 23, 22, 21, 18, 17]]];
state_borders.hr = [[0, [46, 44, 43, 41, 37, -4, 33, 32, 29, -2, 23, 22, 20, 19, 17, 16, -4, 15, 14, -2, 13, -2, 3, 2, -4, 1, -3, 0, 4, -2, 9, 15, 16, 19, -2, 18, 17, 18, 19, 21, -2, 22]], [52, [-3, 47, 46, 43, 42, 41, -2, 39, 37, 36, -2, 35, 33, 32, 31, 30, 29, 28, 27, 26, -2, 25, -2, 24, 23, 22, 21, 20, 25, 49, -2, 50, 49, -3, 52, 48, 49, 48, -3, 47, 46, 31, 30, 29, 28, 27]]];
state_borders.cs = [[0, [9, -2, 8, 6, -2, 3, 2, -2, 1, -2, 2, -4, 1, -3, 3, -3, 4, 7, 8, 9, 8, 7, 6, 7, 8, -6, 5, 6, -2, 3, -4, 4, -2, 2, -4, 1, -2, 0, 1, 2, 5, 6, 7]], [42, [11, 23, -3, 24, -3, 29, 34, 37, 38, -3, 39, -2, 38, 39, 40, -3, 41, -2, 42, 40, 38, 37, 36, -4, 35, -4, 37, -2, 35, -2, 37, 35, 33, -3, 25, 24, 21, -5, 18, 16, 14, 13, 11]]];
state_borders.dk = [[0, [24, 23, 9, -7, 4, 1, -3, 0, -3, 1, -2, 0, -7, 1, -3, 2, -2, 3, 4, 10, -2, 11, -2, 12, 14, 16]], [32, [26, 28, 29, -4, 30, 29, -2, 32, 31, 30, -7, 32, 30, -2, 20, -2, 21, 20, -4, 16, -3, 17, -4, 18, 17, -2, 18]]];
state_borders.ru_kaliningrad = [[0, [1, 0, -2, 1, -4, 2, 3, 6, 10, -2, 8, 11]], [23, [12, 19, 22, -2, 23, -3, 22, -2, 23, 22, 21, 20, 12]]];
state_borders.ru = [[0, [179, 177, 175, 173, 171, 161, 153, 152, 151, -3, 145, -3, 146, 151, 153, -3, 151, -5, 152, 153, 154, 153, 149, -3, 148, -2, 151, -2, 152, 154, -2, 149, -5, 148, 149, 150, 151, 150, 151, 152, 155, 158, -3, 157, -3, 156, -4, 153, 152, -2, 151, 152, 116, 114, -3, 113, 112, 111, -2, 102, 101, 82, 81, 80, -2, 79, -2, 78, -2, 77, 76, -5, 74, -3, 81, 82, 81, 80, -3, 75, 73, 70, 69, 68, -2, 67, 65, -3, 64, 65, 64, -2, 63, -2, 52, 47, 43, -3, 42, -2, 41, 40, 39, -3, 37, -2, 36, 37, 35, 34, -2, 33, 32, -4, 33, 32, -4, 31, -2, 30, -3, 29, -2, 30, -2, 31, -2, 30, -2, 31, -4, 30, -2, 32, -2, 35, 37, 34, 31, -3, 26, -2, 27, -2, 28, 29, -2, 30, -2, 31, -3, 32, -2, 33, -3, 34, -3, 35, -3, 36, -3, 37, -6, 38, 37, 36, 34, 32, 30, 28, -3, 27, -2, 28, 29, 28, 27, 25, -3, 24, 23, 21, -4, 20, -5, 19, 18, 20, -2, 19, 18, 17, -2, 16, 15, 14, 13, 12, -2, 11, -3, 10, -3, 11, -4, 12, 11, -2, 9, 6, 4, -2, 3, -5, 2, 0, 1, 2, -5, 3, 4, -3, 5, 8, -2, 7, -3, 11, -2, 81, -2, 122, 123, 126, 109, -2, 108, -5, 107, -2, 108, 140, 157, -2, 159, 160, 161, 162, -2, 173, 171, 170, 168, 166, 165, 162, 157, 155, 154, -3, 153, -2, 154]], [263, [-3, 181, 184, 195, 198, 217, 253, 255, -6, 256, -6, 257, 254, 253, 251, 249, 246, -2, 245, 242, -3, 241, -2, 240, -5, 239, 234, 231, 227, -2, 228, -10, 229, 228, 229, -2, 230, -2, 231, -2, 232, 233, -3, 235, -5, 236, 235, 230, 231, -2, 232, 231, 228, 227, 225, 224, 222, 220, 209, 204, -6, 203, -2, 204, 203, -3, 200, -5, 199, -3, 200, 209, -5, 210, 209, 208, 207, 206, -4, 207, 208, 209, 208, -2, 207, -2, 209, 210, -3, 211, -4, 212, 216, 217, -3, 219, -2, 243, 244, 243, 242, 241, -3, 250, -6, 251, -3, 253, 258, -2, 259, 258, 259, 260, -29, 263, 261, -4, 262, -5, 263, -3, 259, -2, 254, 256, -3, 258, -2, 261, 260, 261, -3, 262, -92, 263, 261, 258, 254, 251, 243, 242, 241, 237, 233, 230, 226, 223, 219, 216, 183, 157]]];
state_borders.mt = [[0, [3, 2, 1, -2, 0]], [5, [-2, 5, 4, -2, 3]]];
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20491 MovieClip [__Packages.StatetrisEurope] Frame 0
class StatetrisEurope
{
function StatetrisEurope () {
}
static function start() {
TetrisVariant.instance = new TetrisVariantEurope();
var _local2 = new Statetris();
}
static function main() {
Preloader.preload(start);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20492 MovieClip [__Packages.Preloader] Frame 0
#initclip
if (!Preloader) {
//(_global.Preloader = function (mc, c) {
super();
mc.__proto__ = this.__proto__;
this=mc;//parameter overwritten
this.cb = c;
_root.createTextField("prg", this.getNextHighestDepth(), 0, 240, 550, 50);
var _local5 = new TextFormat();
_local5.font = "Arial";
_local5.align = "center";
_local5.size = 30;
_local5.color = 16777215 /* 0xFFFFFF */;
this.prg.setNewTextFormat(_local5);
this.prg.selectable = false;
}) extends MovieClip
var _local1 = (_global.Preloader /* register */).prototype;
_local1.destroy = function () {
this.prg.removeTextField();
this.prg = null;
};
(_global.Preloader /* register */).preload = function (cb) {
if (Preloader.instance == null) {
Preloader.instance = new Preloader(_root, cb);
_root.stop();
}
};
_local1.onEnterFrame = function () {
if (this._currentframe == 2) {
if (!Preloader.loaded) {
Preloader.loaded = true;
this.cb();
this.stop();
}
} else {
var _local2 = this.getBytesLoaded();
var _local3 = this.getBytesTotal();
this.prg.text = ("Loading: " + Math.ceil((100 * _local2) / _local3)) + "%";
if (_local2 == _local3) {
this.destroy();
this.play();
}
}
};
ASSetPropFlags(_local1, null, 1);
(_global.Preloader /* register */).instance = null;
(_global.Preloader /* register */).loaded = false;
}
#endinitclip
Symbol 20493 MovieClip [__Packages.TetrisLogic] Frame 0
class TetrisLogic
{
static var instance;
var status, canvas, falling, fixedBlocks, startMillis, lastExplosion, menu, endPhasesDone, block;
function TetrisLogic (c) {
status = -1;
instance = this;
canvas = c;
initMenu();
Key.addListener(this);
}
function initGame(m) {
destroyCurrent();
mode = m;
TetrisVariant.instance.initStateOrder();
canvas.initGame();
falling = false;
fixedBlocks = new Array();
var _local3 = new Date();
startMillis = _local3.getTime();
lastExplosion = 0;
status = STATUS_FALLING;
}
function initMenu() {
destroyCurrent();
menu = new TetrisMenu(canvas, false);
status = STATUS_MENU;
var _local2 = TetrisVariant.instance;
var _local3 = [("Welcome to " + _local2.INFO_TITLE) + "!", ("The scene: " + _local2.INFO_STATES) + " fall from the top of the screen", ("Mission: stack the " + _local2.INFO_STATES) + " on their actual location", "Use cursor LEFT/RIGHT to move horizontally", "Press SPACE or ENTER to drop", "Press cursor DOWN to move one step down", "In 'Medium' and 'Hard' mode, press UP to rotate", "Press ESCAPE, X or Q to abort", "We appreciate feedback: info@intenct.nl", "That's all \u2014 Have fun!", "Copyright \u00A9 2007 IntenCT \u2014 All rights reserved"];
if (lastTime >= 0) {
_local3.unshift((("Last time: " + timeToString(lastTime)) + " \u2014 Best time: ") + timeToString(bestTime));
}
menu.scroller.setTexts(_local3);
}
static function onScrollerCompleted() {
instance.markEndPhaseDone();
}
function markEndPhaseDone() {
endPhasesDone++;
if (endPhasesDone == 2) {
initMenu();
}
}
function initEnd() {
menu = new TetrisMenu(canvas, true);
menu.scroller.setCallback(onScrollerCompleted);
status = STATUS_END;
endPhasesDone = 0;
var _local2 = getCurrentTime();
lastTime = _local2;
if ((_local2 < bestTime) || (bestTime < 0)) {
bestTime = _local2;
}
var _local3 = timeToString(_local2);
var _local5 = TetrisVariant.instance.SCORE_COMMENTS;
var _local6 = TetrisVariant.instance.SCORE_TIME_BEST;
var _local7 = TetrisVariant.instance.SCORE_TIME_WORST;
var _local8 = (_local7 - _local6) / _local5.length;
var _local9 = 0;
// unexpected jump
do {
_local9++;
if (_local9 >= _local5.length) {
break;
}
var _local4 = _local5[_local9];
} while (_local2 >= (_local6 + (_local8 * _local9)));
var _local10 = [((_local4[0] + ", you finished in ") + _local3) + "!"];
_local10.push(_local4[1]);
menu.scroller.setTexts(_local10);
}
function destroyCurrent() {
if (status == STATUS_END) {
destroyGame();
destroyEnd();
} else if (status == STATUS_MENU) {
destroyMenu();
} else if ((status == STATUS_FALLING) || (status == STATUS_EXPLODING)) {
destroyGame();
}
}
function destroyEnd() {
canvas.mc.menu.removeMovieClip();
}
function destroyMenu() {
canvas.mc.menu.removeMovieClip();
}
function destroyGame() {
canvas.destroyGame();
if (fixedBlocks) {
var _local2 = 0;
for ( ; _local2 < fixedBlocks.length ; _local2++) {
fixedBlocks[_local2].destroy();
}
fixedBlocks = null;
}
if (block) {
block.destroy();
block = null;
}
}
function playSound(id) {
var _local3 = new Sound();
_local3.attachSound(id);
_local3.start();
}
function onKeyDown() {
var _local2 = Key.getCode();
if (block != null) {
if (_local2 == Key.LEFT) {
if (block.mc._x >= TetrisVariant.instance.BLOCK_FALL_DX) {
moveBlock(-TetrisVariant.instance.BLOCK_FALL_DX, 0);
}
} else if (_local2 == Key.RIGHT) {
if (((block.mc._x + block.width()) + TetrisVariant.instance.BLOCK_FALL_DX) < TetrisVariant.instance.WIDTH) {
moveBlock(TetrisVariant.instance.BLOCK_FALL_DX, 0);
}
} else if ((_local2 == Key.DOWN) && (!falling)) {
moveBlock(0, TetrisVariant.instance.BLOCK_FALL_DY);
} else if ((_local2 == Key.ENTER) || (_local2 == Key.SPACE)) {
falling = true;
} else if ((_local2 == Key.UP) && (mode != MODE_EASY)) {
var _local3 = block.canRotate();
var _local4 = "buzz";
if (_local3) {
block.rotate();
_local4 = "turned";
}
playSound(_local4);
}
}
var _local5 = chr(Key.getAscii());
if (((_local2 == Key.ESCAPE) || ((_local5 == "q") || ((_local5 == "Q") || ((_local5 == "x") || (_local5 == "X"))))) && (status != STATUS_MENU)) {
initMenu();
}
}
function placeState() {
playSound("placed");
canvas.tinyStates.removeState(block.id);
canvas.tinyStates.fadeOut();
block.fixate();
fixedBlocks.push(block);
markStateComplete(block.id);
TetrisVariant.instance.stateOrder[block.id] = null;
block = null;
falling = false;
}
function moveBlock(dx, dy) {
if ((block != null) && (status == STATUS_FALLING)) {
block.mc._x = block.mc._x + dx;
block.mc._y = block.mc._y + dy;
if (block.isOnSpot()) {
placeState();
} else if (!block.isOnTrack()) {
var _local5 = false;
if (block.beyondScreen()) {
_local5 = true;
} else {
var _local4 = 0;
for ( ; _local4 < fixedBlocks.length ; _local4++) {
if (fixedBlocks[_local4].collidesWith(block)) {
_local5 = true;
break;
}
}
}
if (_local5) {
if (dy != 0) {
canvas.tinyStates.fadeOut();
playSound("misplaced");
status = STATUS_EXPLODING;
startMillis = startMillis - 10000;
var _local6 = new Date();
lastExplosion = _local6.getTime();
} else {
block.mc._x = block.mc._x - dx;
playSound("buzz");
}
}
}
}
}
function fallBlock() {
var _local2 = ticks % TetrisVariant.instance.BLOCK_FALL_TICKS;
if ((_local2 == 0) || (falling)) {
moveBlock(0, TetrisVariant.instance.BLOCK_FALL_DY);
}
}
function processEnd() {
canvas.timeField._visible = false;
var _local2 = fixedBlocks.length - 1;
// unexpected jump
do {
_local2--;
if (_local2 < 0) {
break;
}
var _local3 = fixedBlocks[_local2];
var _local4 = 2;
if (_local3.mc._alpha >= _local4) {
_local3.mc._alpha = _local3.mc._alpha - _local4;
}
} while (_local3.mc._alpha <= 90);
if (fixedBlocks[0].mc._alpha <= 10) {
markEndPhaseDone();
}
}
function process() {
if (status == STATUS_FALLING) {
processFalling();
processClock();
} else if (status == STATUS_EXPLODING) {
processExploding();
processClock();
} else if (status == STATUS_MENU) {
processMenu();
} else if (status == STATUS_END) {
processEnd();
processMenu();
}
processFixedBlocks();
canvas.onEnterFrame();
ticks++;
}
function getCurrentTime() {
var _local2 = new Date();
var _local3 = _local2.getTime();
return(_local3 - startMillis);
}
function processClock() {
var _local2 = new Date();
var _local3 = _local2.getTime();
if ((_local3 - lastExplosion) < 3000) {
canvas.timeField._visible = (_local3 % 500) < 250;
} else {
canvas.timeField._visible = true;
}
var _local4 = _local3 - startMillis;
var _local5 = timeToString(_local4);
canvas.timeField.text = _local5;
}
function timeToString(t) {
var _local3 = Math.floor(t / (1000 * 60));
var _local4 = Math.floor(t / 1000) % 60;
var _local5 = Math.floor(t / 100) % 10;
var _local6 = ("" + _local3) + ":";
if (_local4 < 10) {
_local6 = _local6 + "0";
}
_local6 = ((_local6 + _local4) + ".") + _local5;
return(_local6);
}
function processMenu() {
menu.onEnterFrame();
menu.mc._visible = true;
}
function processFixedBlocks() {
var _local2 = 0;
for ( ; _local2 < fixedBlocks.length ; _local2++) {
var _local3 = fixedBlocks[_local2];
if (_local3.mc.stateLabel._visible) {
_local3.mc.stateLabel._y--;
if (_local3.mc.stateLabel._y < -50) {
_local3.mc.stateLabel._visible = false;
}
}
}
}
function processExploding() {
if (!block._width) {
block._width = block.mc._width;
block._height = block.mc._height;
block._x = block.mc._x;
block._y = block.mc._y;
block._rndrot = 15 + (50 * Math.random());
if (Math.random() < 0.5) {
block._rndrot = -block._rndrot;
}
}
if (block.mc._width >= 4) {
block.mc._xscale = (block.mc._xscale * 75) / 100;
block.mc._yscale = (block.mc._yscale * 75) / 100;
block.mc._x = block._x + ((block._width - block.mc._width) / 2);
block.mc._y = block._y + ((block._height - block.mc._height) / 2);
block.mc._rotation = block.mc._rotation + block._rndrot;
} else {
block.destroy();
block = null;
falling = false;
status = STATUS_FALLING;
}
}
function processFalling() {
if (block == null) {
var _local2 = pickNextState();
if (_local2 == null) {
initEnd();
} else {
block = canvas.createTetrisBlock(_local2);
if (TetrisVariant.instance.isTinyState(_local2)) {
canvas.tinyStates.fadeIn();
}
block.mc._y = 0;
var _local3 = TetrisVariant.instance.STATE_POS[_local2][0];
var _local4 = TetrisVariant.instance.getLaunchPos(_local2);
block.mc._x = (_local4 - (_local4 % TetrisVariant.instance.BLOCK_FALL_DX)) + (_local3 % TetrisVariant.instance.BLOCK_FALL_DX);
}
} else {
fallBlock();
}
}
function markStateComplete(id) {
var _local3 = 0;
for ( ; _local3 < TetrisVariant.instance.STATES.length ; _local3++) {
var _local4 = TetrisVariant.instance.STATES[_local3];
var _local5 = TetrisVariant.instance.stateOrder[_local4];
if (_local5 != null) {
var _local6 = false;
var _local7 = 0;
for ( ; _local7 < _local5.length ; _local7++) {
if (_local5[_local7] == id) {
_local6 = true;
break;
}
}
if (_local6) {
var _local8 = _local5.slice(0, _local7);
var _local9 = _local5.slice(_local7 + 1);
_local5 = _local8.concat(_local9);
}
TetrisVariant.instance.stateOrder[_local4] = _local5;
}
}
}
function pickNextState() {
var _local2 = new Array();
var _local3 = 0;
for ( ; _local3 < TetrisVariant.instance.STATES.length ; _local3++) {
var _local4 = TetrisVariant.instance.STATES[_local3];
if ((TetrisVariant.instance.stateOrder[_local4] != null) && (TetrisVariant.instance.stateOrder[_local4].length == 0)) {
_local2.push(_local4);
}
}
if (_local2.length == 0) {
return(null);
}
var _local5 = Math.floor(Math.random() * _local2.length);
var _local6 = _local2[_local5];
return(_local6);
}
//ASSetPropFlags(_local1, null, 1);
var ticks = 0;
var mode = MODE_EASY;
var lastTime = -1;
var bestTime = -1;
static var MODE_EASY = 0;
static var MODE_MEDIUM = 1;
static var MODE_HARD = 2;
static var STATUS_END = 3;
static var STATUS_MENU = 2;
static var STATUS_FALLING = 0;
static var STATUS_EXPLODING = 1;
}
Symbol 20494 MovieClip [__Packages.Statetris] Frame 0
class Statetris
{
var scene, tetrisCanvas, tetrisLogic;
function Statetris () {
onLoaded();
}
function onLoaded() {
Stage.scaleMode = "noScale";
Stage.align = "TL";
Stage.addListener(this);
scene = _root.createEmptyMovieClip("scene", _root.getNextHighestDepth());
tetrisCanvas = new TetrisCanvas(scene);
tetrisLogic = new TetrisLogic(tetrisCanvas);
instance = this;
_root.onEnterFrame = enterFrame;
onResize();
}
function enterFrame() {
instance.onEnterFrame();
}
function onEnterFrame() {
tetrisLogic.process();
}
function onResize() {
}
//ASSetPropFlags(_local1, null, 1);
static var instance = null;
}
Symbol 20495 MovieClip [__Packages.TinyStates] Frame 0
class TinyStates
{
var mc, mcs;
function TinyStates (parent) {
mc = parent.createEmptyMovieClip("tinies", parent.getNextHighestDepth());
mcs = [];
var _local3 = 0;
for ( ; _local3 < TetrisVariant.instance.TINY_STATES.length ; _local3++) {
var _local4 = TetrisVariant.instance.TINY_STATES[_local3];
var _local5 = mc.attachMovie("lens", "lens", mc.getNextHighestDepth());
var _local6 = TetrisVariant.instance.STATE_POS[_local4];
_local5._x = (_local5.tx = (_local5.fx = _local6[0] - 12));
_local5._y = (_local5.ty = (_local5.fy = _local6[1] - 12));
_local5._alpha = (_local5.talpha = (_local5.falpha = 0));
_local5.duration = 10;
_local5.ticks = 0;
_local5.state_id = _local4;
mcs.push(_local5);
}
}
function destroy() {
mc.removeMovieClip();
}
function removeState(id) {
var _local3 = 0;
for ( ; _local3 < mcs.length ; _local3++) {
var _local4 = mcs[_local3];
if (_local4.state_id == id) {
_local4.removeMovieClip();
mcs[_local3] = null;
}
}
}
function setFade(f) {
var _local3 = 0;
for ( ; _local3 < mcs.length ; _local3++) {
var _local4 = mcs[_local3];
if (_local4 != null) {
_local4.ticks = -(2 * _local3);
_local4.falpha = _local4._alpha;
_local4.talpha = f;
}
}
}
function fadeIn() {
setFade(100);
}
function fadeOut() {
setFade(0);
}
function fade() {
var _local2 = 0;
for ( ; _local2 < mcs.length ; _local2++) {
var _local3 = mcs[_local2];
if (_local3 != null) {
Anim.anim(_local3);
}
}
}
function onEnterFrame() {
fade();
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20496 MovieClip [__Packages.Anim] Frame 0
class Anim
{
function Anim () {
}
static function animVal(src, dst, tck, dur) {
var _local6 = ((tck * Math.PI) / 2) / dur;
return(src + ((dst - src) * Math.sin(_local6)));
}
static function anim(mc) {
if ((mc.ticks >= 0) && (mc.ticks < mc.duration)) {
mc._x = animVal(mc.fx, mc.tx, mc.ticks, mc.duration);
mc._alpha = animVal(mc.falpha, mc.talpha, mc.ticks, mc.duration);
}
if (mc.ticks >= mc.duration) {
mc._x = mc.tx;
mc._y = mc.ty;
mc._alpha = mc.talpha;
} else {
mc.ticks++;
}
return(mc.ticks >= mc.duration);
}
//ASSetPropFlags(_local1, null, 1);
}