Section 1
//sha1Encrypt (com.utils.sha1Encrypt)
package com.utils {
public class sha1Encrypt {
private static var charInputBit:uint;
public function sha1Encrypt(_arg1:Boolean){
if (_arg1){
charInputBit = 8;
} else {
charInputBit = 16;
};
}
private static function string_to_bin(_arg1:String):Array{
var _local2:Array;
var _local3:Number;
var _local4:Number;
_local2 = new Array();
_local3 = ((1 << charInputBit) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * charInputBit)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / charInputBit)) & _local3) << ((32 - charInputBit) - (_local4 % 32))));
_local4 = (_local4 + charInputBit);
};
return (_local2);
}
public static function encrypt(_arg1:String):String{
return (hex_sha1(_arg1));
}
private static function sha_f_mod(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < 20){
return (((_arg2 & _arg3) | (~(_arg2) & _arg4)));
};
if (_arg1 < 40){
return (((_arg2 ^ _arg3) ^ _arg4));
};
if (_arg1 < 60){
return ((((_arg2 & _arg3) | (_arg2 & _arg4)) | (_arg3 & _arg4)));
};
return (((_arg2 ^ _arg3) ^ _arg4));
}
private static function bin_to_hex(_arg1:Array):String{
var _local2:String;
var _local3:String;
var _local4:Number;
_local2 = "0123456789abcdef";
_local3 = new String();
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local3 = (_local3 + (_local2.charAt(((_arg1[(_local4 >> 2)] >> (((3 - (_local4 % 4)) * 8) + 4)) & 15)) + _local2.charAt(((_arg1[(_local4 >> 2)] >> ((3 - (_local4 % 4)) * 8)) & 15))));
_local4++;
};
return (_local3);
}
private static function sha1_convert(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_local3 = 1732584193;
_local4 = -271733879;
_local5 = -1732584194;
_local6 = 271733878;
_local7 = -1009589776;
_local8 = new Array();
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (24 - (_arg2 % 32))));
_arg1[((((_arg2 + 64) >> 9) << 4) + 15)] = _arg2;
_local9 = 0;
while (_local9 < _arg1.length) {
_local10 = _local3;
_local11 = _local4;
_local12 = _local5;
_local13 = _local6;
_local14 = _local7;
_local15 = 0;
while (_local15 < 80) {
if (_local15 < 16){
_local8[_local15] = _arg1[(_local9 + _local15)];
} else {
_local8[_local15] = rol((((_local8[(_local15 - 3)] ^ _local8[(_local15 - 8)]) ^ _local8[(_local15 - 14)]) ^ _local8[(_local15 - 16)]), 1);
};
_local16 = safe_add(safe_add(rol(_local3, 5), sha_f_mod(_local15, _local4, _local5, _local6)), safe_add(safe_add(_local7, _local8[_local15]), sha_z_mod(_local15)));
_local7 = _local6;
_local6 = _local5;
_local5 = rol(_local4, 30);
_local4 = _local3;
_local3 = _local16;
_local15++;
};
_local3 = safe_add(_local3, _local10);
_local4 = safe_add(_local4, _local11);
_local5 = safe_add(_local5, _local12);
_local6 = safe_add(_local6, _local13);
_local7 = safe_add(_local7, _local14);
_local9 = (_local9 + 16);
};
return ([_local3, _local4, _local5, _local6, _local7]);
}
private static function hex_sha1(_arg1:String):String{
return (bin_to_hex(sha1_convert(string_to_bin(_arg1), (_arg1.length * charInputBit))));
}
private static function sha_z_mod(_arg1:Number):Number{
return (((_arg1)<20) ? 1518500249 : ((_arg1)<40) ? 1859775393 : ((_arg1)<60) ? -1894007588 : -899497514);
}
private static function rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
private static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
}
}//package com.utils
Section 2
//aktivnostGolmana (dkicker_akcija.aktivnostGolmana)
package dkicker_akcija {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
public class aktivnostGolmana extends MovieClip {
var poZemljiDugoBacanje:Array;
var logikaProvere:int;// = 0
var tackaSenkeLopte:Point;
var brojSansiZaGolmana:int;// = 1
var odbitakZvuk:odbitak;
var indexFrejma:int;// = 0
var korekcijaYpoZemljiDugoBacanje:Array;
var smerGolmana:int;// = 1
var granicaKretanjaXdonja:int;// = 250
var linijaParade:int;
var _golman:generisanjeGolmana;
var tackaIndikatoraCilja:Point;
var probInd:indikator_cilja;
var noviXpolozajOseGolmana:Number;
var brojacAnimacije:int;// = 0
var stanjeGolmana:int;// = 0
var kratkoBacanje:Array;
var MyStage:Stage;
var kriticnaUdaljenost:int;// = 35
var granicaIgnorisanjaGornja:int;// = 470
var niskoDugoBacanje:Array;
var trans:SoundTransform;
var granicaIgnorisanjaDonja:int;// = 130
var frejmG:int;
var trenutniXpolozajOseGolmana:Number;
var korekcija_za_xSkaliranje:int;
var sposobnostGolmana:int;
var granicaKretanjaXgornja:int;// = 350
var collisiondetection:Collision_update;
var ShutZvuk:shut;
var ShutZvukChannel:SoundChannel;
var flagParade:Boolean;// = false
var brzinaGolmana:Number;// = 0
public function aktivnostGolmana(_arg1:Stage, _arg2:int=3){
var _local3:*;
brzinaGolmana = 0;
stanjeGolmana = 0;
smerGolmana = 1;
tackaSenkeLopte = new Point();
granicaKretanjaXdonja = 250;
granicaKretanjaXgornja = 350;
kriticnaUdaljenost = 35;
granicaIgnorisanjaDonja = 130;
granicaIgnorisanjaGornja = 470;
brojacAnimacije = 0;
indexFrejma = 0;
kratkoBacanje = [32, 10, 11, 12, 13, 32];
niskoDugoBacanje = [3, 8, 9, 10, 11, 12, 12, 12, 12, 33, 33, 3];
poZemljiDugoBacanje = [3, 9, 9, 9, 10, 10, 11, 11, 12, 12, 33, 3];
korekcijaYpoZemljiDugoBacanje = [0, 7, 3, 3, 2, -2, -2, -2, -2, -2, -2, -2];
flagParade = false;
collisiondetection = new Collision_update();
logikaProvere = 0;
brojSansiZaGolmana = 1;
ShutZvuk = new shut();
odbitakZvuk = new odbitak();
trans = new SoundTransform(0.2, 0);
super();
tackaIndikatoraCilja = new Point(0, 0);
sposobnostGolmana = _arg2;
_local3 = _arg1;
_golman = new generisanjeGolmana();
_golman.x = 300;
_golman.y = 125;
korekcija_za_xSkaliranje = (_golman.width + 8);
addChild(_golman);
this.addEventListener(Event.ENTER_FRAME, ponasanjeGolmana, false, 0, true);
}
function ponasanjeGolmana(_arg1:Event):void{
var _local2:Boolean;
var _local3:Number;
if (bazni.status_akcije == 2){
this.removeEventListener(Event.ENTER_FRAME, ponasanjeGolmana);
};
if (bazni._ball){
tackaSenkeLopte.x = bazni._ball._loptaSenka.x;
tackaSenkeLopte.y = bazni._ball._loptaSenka.y;
tackaIndikatoraCilja.x = bazni._ball.indikatorCilja.x;
tackaIndikatoraCilja.y = ((-100 * (bazni._ball.indikatorCilja.y - 213)) / 100);
if ((((((tackaSenkeLopte.y > 210)) && ((tackaSenkeLopte.y < 225)))) && ((logikaProvere < brojSansiZaGolmana)))){
_local2 = collisiondetection.isColliding(_golman, bazni._ball._lopta, stage, true, 0);
logikaProvere++;
if (((_local2) && ((bazni._ball.smerLopte == 1)))){
logikaProvere = brojSansiZaGolmana;
bazni._ball.v0Poc = (bazni._ball.v0Poc * 0.4);
bazni._ball.betaPocStep = Math.abs(bazni._ball.betaPocStep);
bazni._ball.alfaPocStep = 30;
bazni._ball.alfaPocRad = ((bazni._ball.alfaPocStep * Math.PI) / 180);
bazni._ball.betaPocRad = ((bazni._ball.betaPocStep * Math.PI) / 180);
bazni._ball.t = 0;
bazni._ball.brojac_posle_stative--;
dispatchEvent(new myCustomEvent(4));
trans.volume = 0.6;
if (bazni.muzikLogik == 1){
ShutZvukChannel = odbitakZvuk.play(100, 0, trans);
};
};
};
};
trenutniXpolozajOseGolmana = (_golman.x + (0.5 * _golman.width));
if ((((((stanjeGolmana == 0)) || ((stanjeGolmana == 1)))) && ((bazni._ball.smerLopte == 1)))){
if (_golman.scaleX == -1){
_golman.scaleX = 1;
_golman.x = (_golman.x - korekcija_za_xSkaliranje);
};
_local3 = (tackaIndikatoraCilja.x - trenutniXpolozajOseGolmana);
linijaParade = ((bazni._ball.senkaYPoc - 60) - ((3 - sposobnostGolmana) * 20));
if (Math.abs(_local3) > kriticnaUdaljenost){
linijaParade = (linijaParade + 20);
};
if (linijaParade > 365){
linijaParade = 365;
};
if (linijaParade < 240){
linijaParade = 240;
};
if (tackaSenkeLopte.y == bazni._ball.senkaYPoc){
if ((((((trenutniXpolozajOseGolmana > granicaKretanjaXdonja)) && ((trenutniXpolozajOseGolmana < granicaKretanjaXgornja)))) && ((Math.abs(((trenutniXpolozajOseGolmana + 5) - tackaSenkeLopte.x)) > 5)))){
if (stanjeGolmana != 1){
frejmG = 16;
};
stanjeGolmana = 1;
smerGolmana = 1;
brzinaGolmana = 2;
if (tackaSenkeLopte.x < trenutniXpolozajOseGolmana){
smerGolmana = -1;
};
} else {
stanjeGolmana = 0;
};
};
if ((((((((tackaSenkeLopte.y > linijaParade)) && ((tackaSenkeLopte.y < bazni._ball.senkaYPoc)))) && ((tackaIndikatoraCilja.x > granicaIgnorisanjaDonja)))) && ((tackaIndikatoraCilja.x < granicaIgnorisanjaGornja)))){
if ((((((trenutniXpolozajOseGolmana > granicaKretanjaXdonja)) && ((trenutniXpolozajOseGolmana < granicaKretanjaXgornja)))) && ((Math.abs(_local3) > 15)))){
stanjeGolmana = 1;
smerGolmana = 1;
frejmG = 16;
brzinaGolmana = 3;
if (tackaIndikatoraCilja.x < trenutniXpolozajOseGolmana){
smerGolmana = -1;
};
} else {
stanjeGolmana = 0;
};
};
tackaIndikatoraCilja.x = (tackaIndikatoraCilja.x + (bazni._ball.intenzitetFelsha * 7));
kriticnaUdaljenost = (35 - Math.abs((bazni._ball.intenzitetFelsha * 2)));
if ((((((((((tackaSenkeLopte.y < bazni._ball.senkaYPoc)) && ((tackaSenkeLopte.y <= linijaParade)))) && ((flagParade == false)))) && ((tackaIndikatoraCilja.x > granicaIgnorisanjaDonja)))) && ((tackaIndikatoraCilja.x < granicaIgnorisanjaGornja)))){
flagParade = true;
smerGolmana = (_local3 / Math.abs(_local3));
if (Math.abs(_local3) > kriticnaUdaljenost){
brzinaGolmana = 4;
frejmG = 3;
stanjeGolmana = 2;
if (tackaIndikatoraCilja.y <= 30){
stanjeGolmana = 6;
indexFrejma = 0;
brojacAnimacije = 0;
};
if (smerGolmana == 1){
_golman.scaleX = -1;
_golman.x = (_golman.x + korekcija_za_xSkaliranje);
};
};
if (Math.abs(_local3) < kriticnaUdaljenost){
brzinaGolmana = Math.floor((Math.abs(_local3) / 10));
if ((((tackaIndikatoraCilja.y <= 30)) && ((Math.abs(_local3) > 10)))){
stanjeGolmana = 5;
indexFrejma = 0;
if (smerGolmana == 1){
_golman.scaleX = -1;
_golman.x = (_golman.x + korekcija_za_xSkaliranje);
};
};
if ((((tackaIndikatoraCilja.y <= 30)) && ((Math.abs(_local3) <= 10)))){
stanjeGolmana = 0;
frejmG = 32;
};
if (tackaIndikatoraCilja.y > 30){
stanjeGolmana = 3;
frejmG = 24;
};
};
};
};
switch (stanjeGolmana){
case 0:
brojacAnimacije = 0;
if (!flagParade){
frejmG = 14;
brzinaGolmana = 0;
};
break;
case 1:
noviXpolozajOseGolmana = (trenutniXpolozajOseGolmana + (smerGolmana * brzinaGolmana));
if ((((noviXpolozajOseGolmana > granicaKretanjaXdonja)) && ((noviXpolozajOseGolmana < granicaKretanjaXgornja)))){
_golman.x = (_golman.x + (smerGolmana * brzinaGolmana));
} else {
stanjeGolmana = 0;
};
if (frejmG < 24){
frejmG++;
} else {
stanjeGolmana = 0;
};
break;
case 2:
_golman.x = (_golman.x + (smerGolmana * brzinaGolmana));
if ((((frejmG < 14)) && ((brojacAnimacije == 1)))){
frejmG++;
};
if (frejmG == 14){
stanjeGolmana = 0;
};
brojacAnimacije = (1 - brojacAnimacije);
break;
case 3:
_golman.x = (_golman.x + (smerGolmana * brzinaGolmana));
if ((((frejmG < 30)) && ((brojacAnimacije == 1)))){
frejmG++;
};
if (frejmG == 30){
stanjeGolmana = 4;
};
brojacAnimacije = (1 - brojacAnimacije);
break;
case 4:
_golman.x = (_golman.x + (smerGolmana * brzinaGolmana));
if ((((frejmG > 25)) && ((brojacAnimacije == 1)))){
frejmG--;
};
if (frejmG == 25){
stanjeGolmana = 0;
};
brojacAnimacije = (1 - brojacAnimacije);
break;
case 5:
_golman.x = (_golman.x + (smerGolmana * brzinaGolmana));
if (brojacAnimacije == 3){
frejmG = kratkoBacanje[indexFrejma];
if (indexFrejma < 6){
indexFrejma++;
};
brojacAnimacije = 0;
};
if (indexFrejma == 6){
stanjeGolmana = 0;
};
brojacAnimacije++;
break;
case 6:
_golman.x = (_golman.x + (smerGolmana * brzinaGolmana));
if (brojacAnimacije == 2){
if (tackaIndikatoraCilja.y < 10){
frejmG = poZemljiDugoBacanje[indexFrejma];
_golman.y = (_golman.y + korekcijaYpoZemljiDugoBacanje[indexFrejma]);
} else {
frejmG = niskoDugoBacanje[indexFrejma];
};
if (indexFrejma < 12){
indexFrejma++;
};
brojacAnimacije = 0;
};
if (indexFrejma == 8){
brzinaGolmana = 0;
};
if (indexFrejma == 12){
stanjeGolmana = 0;
};
brojacAnimacije++;
break;
};
_golman.animacijaGolmana(frejmG);
}
}
}//package dkicker_akcija
Section 3
//aktivnostStaticnogIgraca (dkicker_akcija.aktivnostStaticnogIgraca)
package dkicker_akcija {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
public class aktivnostStaticnogIgraca extends MovieClip {
var pocetnoX:Number;
var flagZameneMesta:Boolean;
var odbitakZvuk:odbitak;
var _igrac:generisanjeStaticnogIgraca;
var tackaSenkeLopte:Point;
var ShutZvukChannel:SoundChannel;
var brojacAnimacije:int;
var MyStage:Stage;
var collisiondetection:Collision_update;
var trans:SoundTransform;
var udaren:Boolean;
var frejmI:int;
var korekcija_za_xSkaliranje:Number;
var ShutZvuk:shut;
var stanje_igraca:String;
public function aktivnostStaticnogIgraca(_arg1:Stage, _arg2:int){
collisiondetection = new Collision_update();
ShutZvuk = new shut();
odbitakZvuk = new odbitak();
trans = new SoundTransform(0.2, 0);
super();
stanje_igraca = "otkocen";
udaren = false;
tackaSenkeLopte = new Point();
brojacAnimacije = 0;
frejmI = int((Math.random() * 10));
flagZameneMesta = false;
MyStage = _arg1;
_igrac = new generisanjeStaticnogIgraca();
_igrac.x = 0;
_igrac.y = 0;
addChild(_igrac);
_igrac.animacijaStatIgraca(6);
pocetnoX = ((_arg2 + _igrac.x) + (0.5 * _igrac.width));
_igrac.addEventListener(Event.ENTER_FRAME, ponasanjeStaticnogIgraca, false, 0, true);
}
function ponasanjeStaticnogIgraca(_arg1:Event):void{
var _local2:Number;
if (bazni._ball._lopta){
_local2 = ((this.x + _igrac.x) + (0.5 * _igrac.width));
tackaSenkeLopte.x = bazni._ball._loptaSenka.x;
tackaSenkeLopte.y = bazni._ball._loptaSenka.y;
if ((((tackaSenkeLopte.x < _local2)) && ((_local2 > (pocetnoX - 30))))){
_igrac.x = (_igrac.x - 1);
brojacAnimacije++;
};
if ((((tackaSenkeLopte.x > _local2)) && ((_local2 < (pocetnoX + 30))))){
_igrac.x = (_igrac.x + 1);
brojacAnimacije++;
};
if (brojacAnimacije == 3){
brojacAnimacije = 0;
frejmI++;
if (frejmI == 11){
frejmI = 0;
};
};
_igrac.animacijaStatIgraca(frejmI);
if (tackaSenkeLopte.y < ((_igrac.height + this.y) - 25)){
if (!flagZameneMesta){
dispatchEvent(new myCustomEvent(6));
flagZameneMesta = true;
};
if (tackaSenkeLopte.x > _local2){
_igrac.animacijaStatIgraca(14);
} else {
_igrac.animacijaStatIgraca(13);
};
_igrac.removeEventListener(Event.ENTER_FRAME, ponasanjeStaticnogIgraca);
};
if (bazni._tipDogadjaja == 3){
_igrac.removeEventListener(Event.ENTER_FRAME, ponasanjeStaticnogIgraca);
};
if (bazni.status_akcije != 1){
_igrac.removeEventListener(Event.ENTER_FRAME, ponasanjeStaticnogIgraca);
};
};
if (stanje_igraca == "ukocen"){
_igrac.animacijaStatIgraca(12);
this.removeEventListener(Event.ENTER_FRAME, ponasanjeStaticnogIgraca);
};
}
}
}//package dkicker_akcija
Section 4
//ball_flight (dkicker_akcija.ball_flight)
package dkicker_akcija {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
public class ball_flight extends MovieClip {
var netZvuk:swoosh;
var alfaPocStep:Number;// = 65
var smerLopte:int;
var yOtklon:Number;// = 0
var g:Number;// = 0.3
var t:int;// = 0
var dY;
var dZ:Number;
var dX;
var senkaXPoc:int;
var golgoreY:int;// = 118
var indikatorCilja:indikator_cilja;
var v0;
var trans:SoundTransform;
var ShutZvuk:shut;
var senkaYPoc:int;
var visinaPoc:int;
var alfaPocRad:Number;
var golJePostignut:String;
var debljinaStative:int;// = 5
var v0X;
var v0Z:Number;
var v0Y;
var betaPocStep:Number;
var preostalo_vreme:int;// = 150
var odbitakZvuk:odbitak;
var shutFlag:Boolean;// = false
var betaPocRad:Number;
var ShutZvukChannel:SoundChannel;
var v0Poc:Number;// = 15
var golDoleDesnoX:int;// = 447
var brojac_posle_stative:int;// = 60
var _lopta:loptaMC;
var yOtklonPre:Number;
var collisiondetection:Collision_update;
var golDoleLevoX:int;// = 152
var _skaliranjeSenke:Number;// = 1
var odbitakFlag:Boolean;
var stativa_ili_precka:Boolean;
var intenzitetFelsha:int;
var golLinijaY:int;// = 213
var _loptaSenka:loptaSenkaMC;
public function ball_flight(){
var _local1:int;
brojac_posle_stative = 60;
preostalo_vreme = 150;
t = 0;
v0Poc = 15;
g = 0.3;
alfaPocStep = 65;
yOtklon = 0;
_skaliranjeSenke = 1;
debljinaStative = 5;
golDoleLevoX = 152;
golDoleDesnoX = 447;
golgoreY = 118;
golLinijaY = 213;
collisiondetection = new Collision_update();
shutFlag = false;
ShutZvuk = new shut();
odbitakZvuk = new odbitak();
netZvuk = new swoosh();
trans = new SoundTransform(0.2, 0);
super();
bazni.pozadina._semafor._odbrojavac.text = (bazni.pozadina._semafor._odbrojavacSenka.text = ("TIME:" + preostalo_vreme));
_local1 = Math.floor((Math.random() * 6));
if (bazni.vrsta_akcije == "sut_glavom"){
senkaXPoc = (10 + (600 * Math.floor((_local1 / 3))));
senkaYPoc = 275;
v0Poc = (15 + (_local1 / 2));
alfaPocStep = (35 + (_local1 * 1.5));
visinaPoc = 90;
betaPocStep = (-180 * Math.floor((_local1 / 3)));
} else {
v0Poc = (10 + (_local1 / 2));
senkaXPoc = (-10 + (600 * Math.floor((_local1 / 3))));
senkaYPoc = 365;
visinaPoc = 0;
alfaPocStep = (35 + (_local1 * 1.5));
visinaPoc = 10;
betaPocStep = (-180 * Math.floor((_local1 / 3)));
};
indikatorCilja = new indikator_cilja();
indikatorCilja.y = 213;
indikatorCilja.alpha = 0;
addChild(indikatorCilja);
yOtklon = visinaPoc;
golJePostignut = "nije";
intenzitetFelsha = 0;
_loptaSenka = new loptaSenkaMC();
_loptaSenka.x = senkaXPoc;
_loptaSenka.y = senkaYPoc;
addChild(_loptaSenka);
_lopta = new loptaMC();
_lopta.x = _loptaSenka.x;
_lopta.y = (_loptaSenka.y - yOtklon);
addChild(_lopta);
alfaPocRad = ((alfaPocStep * Math.PI) / 180);
betaPocRad = ((betaPocStep * Math.PI) / 180);
this.addEventListener(Event.ENTER_FRAME, letLopte, false, 0, true);
}
function perspektiva(_arg1:Number):Number{
var _local2:Number;
_local2 = (0.5 + ((_arg1 - 215) / 340));
return (_local2);
}
function letLopte(_arg1:Event):void{
var _local2:Point;
var _local3:Number;
var _local4:Number;
var _local5:*;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:int;
var _local11:Boolean;
var _local12:Boolean;
var _local13:Boolean;
var _local14:MovieClip;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:int;
if (bazni.status_akcije == 2){
this.removeEventListener(Event.ENTER_FRAME, letLopte);
};
if (!shutFlag){
preostalo_vreme--;
};
bazni.pozadina._semafor._odbrojavac.text = (bazni.pozadina._semafor._odbrojavacSenka.text = ("TIME:" + (preostalo_vreme / 10)));
if (preostalo_vreme <= 0){
this.removeEventListener(Event.ENTER_FRAME, letLopte);
dispatchEvent(new myCustomEvent(3));
bazni.status_akcije = 2;
};
odbitakFlag = false;
_local2 = new Point(_lopta.x, _lopta.y);
betaPocStep = (betaPocStep + intenzitetFelsha);
betaPocRad = ((betaPocStep * Math.PI) / 180);
if ((((betaPocStep <= 0)) && ((betaPocStep >= -180)))){
smerLopte = 1;
} else {
smerLopte = -1;
};
v0 = (v0Poc * perspektiva(_loptaSenka.y));
if (v0Poc < 1){
v0 = 0;
};
dZ = ((v0 * Math.sin(alfaPocRad)) - ((0.5 * g) * (1 + (2 * t))));
dX = ((v0 * Math.cos(alfaPocRad)) * Math.cos(betaPocRad));
dY = ((v0 * Math.cos(alfaPocRad)) * Math.sin(betaPocRad));
if ((((((_loptaSenka.y > golLinijaY)) && (((_loptaSenka.y + dY) < golLinijaY)))) && ((smerLopte == 1)))){
dX = ((dX * (golLinijaY - _loptaSenka.y)) / dY);
dY = (golLinijaY - _loptaSenka.y);
};
if ((((((_loptaSenka.y == golLinijaY)) && ((smerLopte == 1)))) && ((golJePostignut == "nije")))){
stativa_ili_precka = false;
if ((((((_local2.x >= ((golDoleLevoX - debljinaStative) - (0.5 * _lopta.width)))) && ((_local2.x <= ((golDoleDesnoX + debljinaStative) + (0.5 * _lopta.width)))))) && ((_local2.y >= ((golgoreY - debljinaStative) - (0.5 * _lopta.width)))))){
if ((((((_local2.x >= (golDoleLevoX + (0.5 * _lopta.width)))) && ((_local2.x <= (golDoleDesnoX - (0.5 * _lopta.width)))))) && ((_local2.y >= (golgoreY + (0.5 * _lopta.width)))))){
golJePostignut = "jeste";
if (bazni.muzikLogik == 1){
ShutZvukChannel = netZvuk.play(100, 0, trans);
};
dispatchEvent(new myCustomEvent(2));
} else {
stativa_ili_precka = true;
trans.volume = 0.6;
if (bazni.muzikLogik == 1){
ShutZvukChannel = odbitakZvuk.play(100, 0, trans);
};
_local17 = (_local2.x - (golDoleDesnoX + (0.5 * debljinaStative)));
_local18 = (_local2.x - (golDoleLevoX - (0.5 * debljinaStative)));
_local19 = (_local2.y - (golgoreY - (0.5 * debljinaStative)));
_local20 = _local17;
if (Math.abs(_local17) > Math.abs(_local18)){
_local20 = _local18;
};
if (Math.abs(_local20) < 15){
v0Poc = (v0Poc * 0.6);
betaPocStep = Math.abs(betaPocStep);
odbitakFlag = true;
};
if (Math.abs(_local19) < 16){
v0Poc = (v0Poc * 0.6);
betaPocStep = Math.abs(betaPocStep);
alfaPocStep = (-(_local19) * 20);
if (alfaPocStep < -60){
alfaPocStep = -60;
};
if (alfaPocStep > 60){
alfaPocStep = 60;
};
odbitakFlag = true;
};
brojac_posle_stative--;
dispatchEvent(new myCustomEvent(4));
};
};
};
_local3 = _loptaSenka.x;
_local4 = _loptaSenka.y;
_local7 = yOtklon;
_local9 = 0;
_local6 = alfaPocStep;
if ((((((betaPocStep < 0)) && ((betaPocStep > -180)))) && (shutFlag))){
while (_local4 > golLinijaY) {
_local5 = ((_local6 * Math.PI) / 180);
_local4 = (_local4 + (dY * perspektiva(_local4)));
_local3 = (_local3 + (dX * perspektiva(_local4)));
_local8 = ((v0 * Math.sin(_local5)) - ((0.5 * g) * (1 + (2 * _local9))));
_local7 = (_local7 + _local8);
if ((((_local20 < 0)) && (((_local20 - _local8) >= 0)))){
_local7 = 0;
_local9 = 0;
_local6 = Math.abs(_local6);
};
_local9++;
};
};
indikatorCilja.x = _local3;
indikatorCilja.y = (213 - _local7);
_local10 = 2;
if ((((_local2.x >= (golDoleLevoX + 25))) && ((_local2.x <= (golDoleDesnoX - 25))))){
_local10 = 7;
};
if ((((((((golJePostignut == "jeste")) && ((_loptaSenka.y <= (golLinijaY - _local10))))) && ((bazni.status_akcije == 1)))) && ((smerLopte == 1)))){
bazni.status_akcije = 0;
v0Poc = (v0Poc * 0.25);
betaPocStep = Math.abs(betaPocStep);
alfaPocStep = 90;
odbitakFlag = true;
};
if ((((((((golJePostignut == "jeste")) && ((alfaPocStep == 90)))) && ((_lopta.y < (golgoreY + 70))))) && ((dZ > 0)))){
dZ = (dZ * 0.2);
};
yOtklon = (yOtklon + dZ);
_local11 = collisiondetection.isColliding(_lopta, bazni._shooter._pointer_prikaz, stage, true, 0);
if (((((_local11) && (!(shutFlag)))) && ((_lopta.y <= senkaYPoc)))){
shutFlag = true;
_local21 = (_lopta.x - bazni._shooter._pointer_prikaz.x);
_local22 = (_lopta.y - bazni._shooter._pointer_prikaz.y);
v0Poc = 25;
if ((((betaPocStep == -179)) || ((betaPocStep == -1)))){
v0Poc = 23;
};
if (bazni._shooter.stanjeIgraca == 2){
v0Poc = 15;
_local21 = ((_lopta.x - bazni._shooter._pointer_prikaz.x) - ((_lopta.width * 0.5) * bazni._shooter.smerIgraca));
};
betaPocStep = (-90 + ((180 * Math.atan((_local21 / (_lopta.width * 0.5)))) / Math.PI));
intenzitetFelsha = 0;
alfaPocStep = (((-0.7 * 180) * Math.atan((_local22 / (_lopta.width * 0.5)))) / Math.PI);
if (bazni.muzikLogik == 1){
ShutZvukChannel = ShutZvuk.play();
};
brojac_posle_stative = 60;
odbitakFlag = true;
};
_local12 = collisiondetection.isColliding(_lopta, bazni._shooter._myFootballerSprite, stage, true, 0);
_local13 = false;
if ((((bazni._shooter.smerIgraca == 1)) && ((bazni._shooter._myFootballerSprite.x > (_lopta.x + 20))))){
_local13 = true;
};
if ((((bazni._shooter.smerIgraca == -1)) && ((bazni._shooter._myFootballerSprite.x < (_lopta.x - 20))))){
_local13 = true;
};
if (((((((((((_local13) && ((brojac_posle_stative == 60)))) && (!(_local11)))) && (!(shutFlag)))) && (_local12))) && ((((betaPocStep == 0)) || ((betaPocStep == -180)))))){
if (betaPocStep == 0){
betaPocStep = -179;
} else {
betaPocStep = -1;
};
v0Poc = (v0Poc * 0.5);
odbitakFlag = true;
bazni.broj_prihvacenih++;
};
if ((((yOtklon < 0)) && (((yOtklon - dZ) >= 0)))){
yOtklon = 0;
if (Math.abs(alfaPocStep) < 10){
v0Poc = (v0Poc * 0.9);
} else {
v0Poc = (v0Poc * 0.8);
};
alfaPocStep = Math.abs(alfaPocStep);
odbitakFlag = true;
};
if ((((((((((_loptaSenka.y > 420)) || ((_loptaSenka.x > 620)))) || ((_loptaSenka.x < -10)))) && ((bazni.status_akcije == 1)))) && ((golJePostignut == "nije")))){
bazni.status_akcije = 0;
dispatchEvent(new myCustomEvent(1));
this.removeEventListener(Event.ENTER_FRAME, letLopte);
};
if (((((bazni.niz_staticnih_igraca) && (!((betaPocStep == 0))))) && (!((betaPocStep == -180))))){
_local23 = 0;
while (_local23 < bazni.niz_staticnih_igraca.length) {
_local14 = bazni.niz_staticnih_igraca[_local23];
_local15 = ((_local14.x + _local14._igrac.x) + (0.5 * _local14._igrac.width));
_local11 = collisiondetection.isColliding(_lopta, _local14, stage, true, 0);
_local16 = (_local15 - _loptaSenka.x);
if (((((((((!(_local14.udaren)) && ((Math.abs(_local16) < 20)))) && (_local11))) && ((smerLopte == 1)))) && ((Math.abs((_loptaSenka.y - (_local14.height + _local14.y))) < 10)))){
_local14.udaren = true;
if ((((yOtklon > 30)) && ((yOtklon < 45)))){
v0Poc = (v0Poc * 0.4);
_local14.stanje_igraca = "ukocen";
} else {
v0Poc = (v0Poc * 0.8);
};
if ((((((Math.abs(_local16) < 7)) || ((betaPocStep == -1)))) || ((betaPocStep == -179)))){
if (betaPocStep == -1){
betaPocStep = 45;
};
if (betaPocStep == -179){
betaPocStep = 135;
};
betaPocStep = Math.abs(betaPocStep);
brojac_posle_stative--;
} else {
if (_local16 <= -7){
betaPocStep = -45;
};
if (_local16 >= 7){
betaPocStep = -135;
};
};
sparkle();
if (bazni.muzikLogik == 1){
ShutZvukChannel = ShutZvuk.play();
};
odbitakFlag = true;
};
_local23++;
};
};
if ((((((_loptaSenka.y < 200)) && ((smerLopte == 1)))) && ((golJePostignut == "nije")))){
v0Poc = (v0Poc * 0.4);
betaPocStep = Math.abs(betaPocStep);
alfaPocStep = 90;
dispatchEvent(new myCustomEvent(1));
odbitakFlag = true;
};
if (odbitakFlag){
alfaPocRad = ((alfaPocStep * Math.PI) / 180);
betaPocRad = ((betaPocStep * Math.PI) / 180);
t = 0;
};
_loptaSenka.x = (_loptaSenka.x + dX);
_lopta.x = _loptaSenka.x;
_loptaSenka.y = (_loptaSenka.y + dY);
_lopta.y = (_loptaSenka.y - yOtklon);
if (yOtklon < 250){
_skaliranjeSenke = ((_lopta.scaleX * (250 - yOtklon)) / 250);
} else {
_skaliranjeSenke = (_lopta.scaleX * 0.1);
};
_lopta.scaleX = (_lopta.scaleY = perspektiva(_loptaSenka.y));
_loptaSenka.scaleX = (_lopta.scaleX * _skaliranjeSenke);
_loptaSenka.scaleY = _lopta.scaleY;
t++;
if (((!((brojac_posle_stative == 60))) && ((brojac_posle_stative > 0)))){
brojac_posle_stative = (brojac_posle_stative - 2);
};
if (brojac_posle_stative <= 0){
dispatchEvent(new myCustomEvent(1));
bazni.status_akcije = 0;
this.removeEventListener(Event.ENTER_FRAME, letLopte);
};
}
function sparkle():void{
var _local1:BulletParticle;
_local1 = new BulletParticle();
_local1.x = _lopta.x;
_local1.y = _lopta.y;
addChild(_local1);
}
}
}//package dkicker_akcija
Section 5
//bazni (dkicker_akcija.bazni)
package dkicker_akcija {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
public class bazni extends MovieClip {
var _najavaSledeceg:najava_sledeceg;
var osvojeno_poena:int;// = 0
var zvucniEfekatChannel:SoundChannel;
var gol_osnova:precka_i_stative;
var redni_broj_shuta:int;// = 1
var _protivnickiTim:String;
var _brojacNaslovi:int;
var golMreza:gol_i_mreza;
var _statistikeSenka:TextField;
var trans:SoundTransform;
var promasajZvuk:promasaj;
var u_prvom_planu:String;
var _qualified_title:qualifiedT;
var pistaljkaZvuk:zvizdukSudija;
var vrsta_akcije_pre:String;
var _deltaXnaslovi:int;
var _addInfoText:TextField;
var _staticniIgrac:aktivnostStaticnogIgraca;
var _bojaJedan:uint;
var clubDresDescription:String;
var osvojeno_tokena:int;// = 0
var goolZvuk:gool;
var _igracevTim:String;
var sposobnost_golmana_na_nivou:Array;
var broj_datih_golova:int;// = 0
var _naslovi:naslovi;
var maksBrojSuteva:int;
var broj_uzastopnihgolova:int;// = 0
var _statistike:TextField;
var _potrebnoGolova:uint;
var nivo:int;
var _addInfo:additionalInfo;
var myClubDresDescription:String;
var _golmanMC:aktivnostGolmana;
var otkloni_po_nivoima:Array;
var _instrukcije:instructionsMC_pokretni;
var _bojaDva:uint;
var br_staticnih_igraca_na_nivou:Array;
var broj_het_trikova:int;// = 0
static var _myShortsCol:int;
static var _myDressType:int;
static var pocetniXpolozajLopte = 0;
static var pocetniYpolozajLopte = 0;
static var _dressCol1:int;
static var _shortsCol:int;
static var vrsta_akcije:String;
static var _dressCol2:int;
static var _tipDogadjaja:int;
static var tipGolmanoveKoze:uint;
static var _dressType:int;
static var gledaliste:generisanjeStadiona;
static var tipGolmanovogDresa:uint;
static var status_akcije:int;
static var smerTrcanja:int;
static var _runda:int;
static var pocPolozajGolmanaX = 0;
static var pocPolozajGolmanaY = 0;
static var _shooter:shooter;
static var broj_prihvacenih:int;
static var muzikLogik:int;
static var pozadina:dkicker_akciona_pozadina;
static var _ball:ball_flight;
static var prihvat_lopte:int;
static var niz_staticnih_igraca:Array;
static var tip_igre;
static var _myDressCol1:int;
static var _myDressCol2:int;
public function bazni(_arg1:int=10, _arg2:String="flashfooty cup", _arg3:String="1000207", _arg4:String="1020402", _arg5:int=10, _arg6:uint=0, _arg7:String="Player", _arg8:String="Opponent", _arg9:int=1, _arg10:int=1, _arg11:int=1){
var _local12:TextFormat;
var _local13:startDugme_klip;
var _local14:startDugme_klip;
otkloni_po_nivoima = [0, 70, 45, 20, 50, 35, 15, 35, 10, 0];
sposobnost_golmana_na_nivou = [1, 1, 1, 2, 2, 2, 3, 3, 3, 3];
br_staticnih_igraca_na_nivou = [0, 0, 1, 1, 1, 2, 2, 2, 2, 2];
redni_broj_shuta = 1;
broj_uzastopnihgolova = 0;
broj_datih_golova = 0;
broj_het_trikova = 0;
osvojeno_poena = 0;
osvojeno_tokena = 0;
_addInfoText = new TextField();
_statistike = new TextField();
_statistikeSenka = new TextField();
promasajZvuk = new promasaj();
goolZvuk = new gool();
pistaljkaZvuk = new zvizdukSudija();
trans = new SoundTransform(1, 0);
super();
muzikLogik = _arg10;
broj_prihvacenih = 0;
vrsta_akcije_pre = "kombinovano";
_runda = _arg9;
nivo = _arg1;
tip_igre = _arg2;
clubDresDescription = _arg4;
myClubDresDescription = _arg3;
maksBrojSuteva = _arg5;
_igracevTim = _arg7;
_protivnickiTim = _arg8;
_potrebnoGolova = _arg6;
_dressType = int(clubDresDescription.charAt(0));
_dressCol1 = int(clubDresDescription.substring(1, 3));
_dressCol2 = int(clubDresDescription.substring(3, 5));
_shortsCol = int(clubDresDescription.substring(5, 7));
_myDressType = int(myClubDresDescription.charAt(0));
_bojaJedan = (_myDressCol1 = int(myClubDresDescription.substring(1, 3)));
_bojaDva = (_myDressCol2 = int(myClubDresDescription.substring(3, 5)));
_myShortsCol = int(myClubDresDescription.substring(5, 7));
gledaliste = new generisanjeStadiona(nivo, _bojaJedan, _bojaDva);
gledaliste.x = 0;
gledaliste.y = 0;
addChild(gledaliste);
pozadina = new dkicker_akciona_pozadina(nivo);
pozadina.x = 0;
pozadina.y = 0;
bazni.pozadina._semafor._podloga.alpha = 0;
addChild(pozadina);
golMreza = new gol_i_mreza();
golMreza.x = 0;
golMreza.y = 0;
addChild(golMreza);
gol_osnova = new precka_i_stative();
gol_osnova.x = 300;
gol_osnova.y = 164;
addChild(gol_osnova);
_instrukcije = new instructionsMC_pokretni();
_instrukcije.x = 300;
_instrukcije.y = 200;
if (tip_igre == "flashfooty cup"){
_instrukcije.instr_baza.akciona_poruka.text = (((("YOU HAVE " + maksBrojSuteva) + " SHOTS, AND YOU NEED TO SCORE ") + _potrebnoGolova) + " GOALS TO QUALIFY.");
};
if (tip_igre == "flashfooty challenge"){
_instrukcije.instr_baza.akciona_poruka.text = "YOU HAVE 10 SHOTS, TRY TO SCORE AS MANY GOALS AS YOU CAN.";
};
if (tip_igre == "flashfooty training"){
_instrukcije.instr_baza.akciona_poruka.text = "THIS IS A TRAINING. YOU HAVE 10 SHOTS AND YOU CAN CHOOSE TO TRAIN VOLLEYS OR HEADERS.";
};
_local12 = new TextFormat();
_local12.font = "Verdana";
_local12.bold = true;
_local12.size = 14;
_local12.color = 4294905036;
_instrukcije.instr_baza.akciona_poruka.setTextFormat(_local12);
_local13 = new startDugme_klip();
if (tip_igre != "flashfooty training"){
_local13.x = 250;
_local13.y = 300;
_local13.naslov_dugme.text = "GO";
_local13.naslov_dugme.mouseEnabled = false;
_local13.addEventListener(MouseEvent.CLICK, pritisnutStart, false, 0, true);
_instrukcije.instr_baza.addChild(_local13);
} else {
nivo = 1;
_local13.x = 180;
_local13.y = 300;
_local13.naslov_dugme.text = "Headers";
_local13.naslov_dugme.mouseEnabled = false;
_local13.addEventListener(MouseEvent.CLICK, trening_glava_Start, false, 0, true);
_instrukcije.instr_baza.addChild(_local13);
_local14 = new startDugme_klip();
_local14.x = 320;
_local14.y = 300;
_local14.naslov_dugme.text = "Volleys";
_local14.naslov_dugme.mouseEnabled = false;
_local14.addEventListener(MouseEvent.CLICK, trening_volej_Start, false, 0, true);
_instrukcije.instr_baza.addChild(_local14);
};
addChild(_instrukcije);
_instrukcije.play();
tipGolmanoveKoze = Math.floor((Math.random() * 5));
tipGolmanovogDresa = Math.floor((Math.random() * 3));
}
function instance_removal():void{
var _local1:int;
_ball.removeEventListener("myCustomEvent", bitanDogadjaj);
if (gledaliste.hasEventListener(Event.ENTER_FRAME)){
gledaliste.removeEventListener(Event.ENTER_FRAME, gledaliste.skakanjePublike);
};
_local1 = 0;
while (_local1 < niz_staticnih_igraca.length) {
niz_staticnih_igraca[_local1].removeEventListener("myCustomEvent", bitanDogadjaj);
removeChild(niz_staticnih_igraca[_local1]);
_local1++;
};
niz_staticnih_igraca.splice(0, niz_staticnih_igraca.length);
removeChild(_ball);
removeChild(_shooter);
removeChild(_addInfo);
}
function let_naslova(_arg1:Event):void{
var _local2:odjavaMC;
_naslovi.x = (_naslovi.x + _deltaXnaslovi);
_addInfo.x = (600 - _naslovi.x);
if ((_brojacNaslovi % 7) == 0){
if (_addInfo._addInfoText.textColor == 0){
_addInfo._addInfoText.textColor = 0xFFFF00;
} else {
_addInfo._addInfoText.textColor = 0;
};
};
if (_brojacNaslovi == 27){
_deltaXnaslovi = 0;
status_akcije = 0;
};
if (_brojacNaslovi == 50){
_deltaXnaslovi = 20;
};
if (_naslovi.x > 800){
_naslovi.removeEventListener(Event.ENTER_FRAME, let_naslova);
removeChild(_naslovi);
_brojacNaslovi = 0;
status_akcije = 2;
if (zvucniEfekatChannel){
zvucniEfekatChannel.stop();
};
if (gledaliste.hasEventListener(Event.ENTER_FRAME)){
gledaliste.removeEventListener(Event.ENTER_FRAME, gledaliste.skakanjePublike);
};
redni_broj_shuta++;
if ((((redni_broj_shuta > 1)) && ((redni_broj_shuta < (maksBrojSuteva + 1))))){
_najavaSledeceg.x = 300;
_najavaSledeceg.y = 200;
_najavaSledeceg._obavestenje.text = (_najavaSledeceg._obavestenjeSenka.text = (((("Get ready for the next shot (" + redni_broj_shuta) + "/") + maksBrojSuteva) + ")"));
_najavaSledeceg.nextShotDugme.addEventListener(MouseEvent.CLICK, pritisnutStart, false, 0, true);
};
if (redni_broj_shuta == (maksBrojSuteva + 1)){
_local2 = new odjavaMC();
_local2.x = 300;
_local2.y = 150;
addChild(_local2);
_local2._obavestenje.text = (_local2._obavestenjeSenka.text = "END OF THE SHOOTOUT. Recording your result, please wait.");
if (muzikLogik == 1){
zvucniEfekatChannel = pistaljkaZvuk.play();
};
if (tip_igre == "flashfooty cup"){
dispatchEvent(new myCustomEvent_kraj_meca(22, broj_datih_golova, broj_prihvacenih));
};
if (tip_igre == "flashfooty training"){
dispatchEvent(new myCustomEvent_kraj_meca(11, broj_datih_golova, broj_prihvacenih));
};
instance_removal();
};
osvezavanje_statistika();
};
_brojacNaslovi++;
}
function trening_glava_Start(_arg1:MouseEvent):void{
vrsta_akcije_pre = "trening_glava";
this.removeEventListener(MouseEvent.CLICK, trening_glava_Start);
pocetne_postavke();
}
function pritisnutStart(_arg1:MouseEvent):void{
this.removeEventListener(MouseEvent.CLICK, pritisnutStart);
if (redni_broj_shuta > 1){
instance_removal();
};
pocetne_postavke();
}
function trening_volej_Start(_arg1:MouseEvent):void{
vrsta_akcije_pre = "trening_voleji";
this.removeEventListener(MouseEvent.CLICK, trening_volej_Start);
pocetne_postavke();
}
function pocetne_postavke():void{
var _local1:int;
var _local2:uint;
var _local3:int;
var _local4:int;
_local1 = 99;
if (vrsta_akcije_pre == "trening_glava"){
_local1 = 1;
};
if (vrsta_akcije_pre == "trening_voleji"){
_local1 = 2;
};
if (_local1 == 99){
_local1 = Math.floor((Math.random() * 6));
};
if (_local1 <= 1){
vrsta_akcije = "sut_glavom";
} else {
vrsta_akcije = "sut_nogom";
};
_tipDogadjaja = 0;
if (zvucniEfekatChannel){
zvucniEfekatChannel.stop();
};
gledaliste.skakanje_u_toku = false;
gledaliste.iscrtavanjeTribina();
gledaliste.slucajniSkokovi();
osvezavanje_statistika();
_deltaXnaslovi = 20;
_brojacNaslovi = 0;
status_akcije = 1;
if (this.golMreza){
removeChild(golMreza);
};
golMreza = new gol_i_mreza();
golMreza.x = 0;
golMreza.y = 0;
addChild(golMreza);
if (this.gol_osnova){
removeChild(gol_osnova);
};
gol_osnova = new precka_i_stative();
gol_osnova.x = 300;
gol_osnova.y = 164;
addChild(gol_osnova);
if (_golmanMC){
removeChild(_golmanMC);
_golmanMC.removeEventListener(Event.ENTER_FRAME, _golmanMC.ponasanjeGolmana);
};
_golmanMC = new aktivnostGolmana(stage, sposobnost_golmana_na_nivou[(nivo - 1)]);
_golmanMC.x = pocPolozajGolmanaX;
_golmanMC.y = pocPolozajGolmanaY;
addChild(_golmanMC);
_golmanMC.addEventListener("myCustomEvent", bitanDogadjaj, false, 0, true);
if (gledaliste.hasEventListener(Event.ENTER_FRAME)){
gledaliste.removeEventListener(Event.ENTER_FRAME, gledaliste.skakanjePublike);
};
if (redni_broj_shuta == 1){
removeChild(_instrukcije);
bazni.pozadina._semafor._podloga.alpha = 0.5;
};
if (tip_igre == "flashfooty training"){
if ((redni_broj_shuta % 3) == 0){
nivo = (nivo + 2);
};
};
niz_staticnih_igraca = new Array();
_local2 = 0;
while (_local2 < br_staticnih_igraca_na_nivou[(nivo - 1)]) {
_local3 = Math.floor((Math.random() * 3));
_local4 = ((_local3 * 100) + 150);
smerTrcanja = -(((_local3 * 2) - 1));
if (br_staticnih_igraca_na_nivou[(nivo - 1)] == 2){
if (_local2 == 0){
_local3 = Math.floor((Math.random() * 2));
_local4 = (100 + (_local3 * 100));
} else {
_local3 = Math.floor((Math.random() * 2));
_local4 = ((150 + niz_staticnih_igraca[0].x) + (_local3 * 100));
if (_local4 > 450){
_local4 = 450;
};
};
};
_staticniIgrac = new aktivnostStaticnogIgraca(stage, _local4);
_staticniIgrac.y = (170 + Math.floor((Math.random() * 20)));
if (vrsta_akcije == "sut_glavom"){
_staticniIgrac.y = (_staticniIgrac.y - 15);
};
_staticniIgrac.scaleX = (_staticniIgrac.scaleY = (1 - ((180 - _staticniIgrac.y) / 150)));
_staticniIgrac.name = ("igrac" + _local2);
_staticniIgrac.x = _local4;
addChild(_staticniIgrac);
_staticniIgrac.addEventListener("myCustomEvent", bitanDogadjaj, false, 0, true);
niz_staticnih_igraca.push(_staticniIgrac);
_local2++;
};
_ball = new ball_flight();
_ball.x = pocetniXpolozajLopte;
_ball.y = pocetniYpolozajLopte;
addChild(_ball);
_ball.addEventListener("myCustomEvent", bitanDogadjaj, false, 0, true);
_shooter = new shooter(stage);
_shooter.x = 0;
_shooter.y = 0;
addChild(_shooter);
if (this._najavaSledeceg){
_najavaSledeceg.nextShotDugme.removeEventListener(MouseEvent.CLICK, pritisnutStart);
removeChild(_najavaSledeceg);
};
_najavaSledeceg = new najava_sledeceg();
_najavaSledeceg.x = -800;
_najavaSledeceg.y = 200;
_najavaSledeceg._obavestenje.text = (_najavaSledeceg._obavestenjeSenka.text = (((("Get ready for the next shot (" + redni_broj_shuta) + "/") + maksBrojSuteva) + ")"));
addChild(_najavaSledeceg);
u_prvom_planu = "lopta";
_najavaSledeceg.x = -800;
status_akcije = 1;
_naslovi = new naslovi();
_naslovi.x = -260;
_naslovi.y = 200;
_naslovi.gotoAndStop(1);
addChild(_naslovi);
_addInfo = new additionalInfo();
_addInfo.x = 800;
_addInfo.y = 250;
_addInfo._addInfoText.text = "";
addChild(_addInfo);
}
function osvezavanje_statistika():void{
var _local1:int;
pozadina._semafor._statistike.text = "";
_local1 = 0;
if (redni_broj_shuta == (maksBrojSuteva + 1)){
_local1 = 1;
};
if (tip_igre == "flashfooty challenge"){
pozadina._semafor._statistike.appendText(((((((("Level: " + nivo) + ", Shot number: ") + (redni_broj_shuta - _local1)) + ", Shots left: ") + ((maksBrojSuteva - redni_broj_shuta) + 1)) + ", Goals: ") + broj_datih_golova));
pozadina._semafor._statistike.appendText((((", Points: " + osvojeno_poena) + ", Tokens won: ") + osvojeno_tokena));
};
if (tip_igre == "flashfooty cup"){
pozadina._semafor._statistike.appendText(((((((((((_igracevTim + "-") + _protivnickiTim) + ", Shot number: ") + (redni_broj_shuta - _local1)) + "/") + maksBrojSuteva) + ", Goals scored: ") + broj_datih_golova) + "/") + _potrebnoGolova));
};
if (tip_igre == "flashfooty training"){
pozadina._semafor._statistike.appendText(((((("Training session: Shot number: " + (redni_broj_shuta - _local1)) + ", Shots left: ") + ((maksBrojSuteva - redni_broj_shuta) + 1)) + ", Goals scored: ") + broj_datih_golova));
};
pozadina._semafor._statistikeSenka.text = pozadina._semafor._statistike.text;
}
function bitanDogadjaj(_arg1:myCustomEvent):void{
var _local2:Point;
var _local3:Number;
_local2 = new Point(_ball._lopta.x, _ball._lopta.y);
_tipDogadjaja = _arg1.myMessage;
if ((((bazni._ball.brojac_posle_stative > 0)) && ((((((((_tipDogadjaja == 1)) || ((_tipDogadjaja == 3)))) || ((_tipDogadjaja == 4)))) || ((_tipDogadjaja == 5)))))){
if (tip_igre != "flashfooty training"){
trans.volume = (nivo / 10);
if (trans.volume < 0.3){
trans.volume = 0.3;
};
if (muzikLogik == 1){
zvucniEfekatChannel = promasajZvuk.play(100, 0, trans);
};
};
broj_uzastopnihgolova = 0;
};
if (_tipDogadjaja == 2){
golMreza.mrezaBMP.zadnja_mreza.x = (_local2.x - 300);
golMreza.mrezaBMP.zadnja_mreza.y = (_local2.y - 162);
golMreza.mrezaBMP.zadnja_mreza.play();
golMreza.mrezaBMP.bocna_mreza_levo.play();
golMreza.mrezaBMP.bocna_mreza_desno.play();
broj_datih_golova++;
if ((((tip_igre == "flashfooty cup")) && ((broj_datih_golova == _potrebnoGolova)))){
_qualified_title = new qualifiedT();
_qualified_title.x = 300;
_qualified_title.y = 50;
_qualified_title.name = "qualifikovan";
pozadina.addChild(_qualified_title);
};
_naslovi.gotoAndStop(1);
_naslovi.addEventListener(Event.ENTER_FRAME, let_naslova, false, 0, true);
_addInfo._addInfoText.text = "";
_addInfo.textColor = 4294901760;
broj_uzastopnihgolova++;
if (broj_uzastopnihgolova == 3){
broj_uzastopnihgolova = 0;
broj_het_trikova++;
_addInfo._addInfoText.appendText("Hat trick!\n");
};
this.setChildIndex(_ball, this.getChildIndex(gol_osnova));
if (tip_igre != "flashfooty training"){
gledaliste.pocniSkakanje(2);
trans.volume = (nivo / 10);
if (trans.volume < 0.3){
trans.volume = 0.3;
};
if (muzikLogik == 1){
zvucniEfekatChannel = goolZvuk.play(100, 0, trans);
};
};
};
if (_tipDogadjaja == 1){
if ((((u_prvom_planu == "lopta")) && ((_local2.y < 200)))){
this.setChildIndex(_ball, this.getChildIndex(golMreza));
if (tip_igre != "flashfooty training"){
gledaliste.pocniSkakanje(1);
};
};
_addInfo._addInfoText.text = "";
_naslovi.gotoAndStop(2);
_naslovi.addEventListener(Event.ENTER_FRAME, let_naslova, false, 0, true);
};
if (_tipDogadjaja == 3){
_addInfo._addInfoText.text = "";
_naslovi.gotoAndStop(3);
_naslovi.addEventListener(Event.ENTER_FRAME, let_naslova, false, 0, true);
};
if (_tipDogadjaja == 4){
if (tip_igre != "flashfooty training"){
gledaliste.pocniSkakanje(1);
};
};
if (_tipDogadjaja == 5){
_addInfo._addInfoText.text = "";
_naslovi.gotoAndStop(4);
_naslovi.addEventListener(Event.ENTER_FRAME, let_naslova, false, 0, true);
};
if (_tipDogadjaja == 6){
if (getChildIndex((_arg1.target as MovieClip)) < getChildIndex(_ball)){
swapChildren((_arg1.target as MovieClip), _ball);
};
};
}
}
}//package dkicker_akcija
Section 6
//BulletParticle (dkicker_akcija.BulletParticle)
package dkicker_akcija {
import flash.events.*;
import flash.display.*;
public class BulletParticle extends MovieClip {
var bulletPartSpeedX:Number;
var bulletPartSpeedY:Number;
var lifeTimeParticle:Number;
var particlesArray:Array;
var numberOfParticles:Number;// = 20
var _bulletPart:BulletP;
public function BulletParticle(){
var _local1:int;
numberOfParticles = 20;
particlesArray = new Array();
super();
_local1 = 0;
while (_local1 < numberOfParticles) {
_bulletPart = new BulletP();
_bulletPart.bulletPartSpeedX = Math.round(((Math.random() * 6) - 3));
_bulletPart.bulletPartSpeedY = Math.round(((Math.random() * 4) - 2));
_bulletPart.lifeTimeParticle = (10 + Math.round((Math.random() * 10)));
_bulletPart.scaleX = 1.5;
_bulletPart.scaleY = 1.5;
addChild(_bulletPart);
particlesArray.push(_bulletPart);
_local1++;
};
this.addEventListener(Event.ENTER_FRAME, BulletParticleLet, false, 0, true);
}
private function BulletParticleLet(_arg1:Event):void{
var _local2:*;
var _local3:int;
var _local4:int;
var _local5:BulletP;
if ((((bazni.status_akcije == 2)) && (parent.contains(this)))){
_local2 = particlesArray.length;
_local3 = 0;
while (_local3 < _local2) {
particlesArray[_local3] = null;
_local3++;
};
this.removeEventListener(Event.ENTER_FRAME, BulletParticleLet);
parent.removeChild(this);
};
if (bazni.status_akcije == 1){
_local4 = 0;
while (_local4 < numberOfParticles) {
_local5 = particlesArray[_local4];
particlesArray[_local4].x = (_local5.x + _local5.bulletPartSpeedX);
_local5.y = (_local5.y + _local5.bulletPartSpeedY);
if (_local5.lifeTimeParticle > 0){
_local5.lifeTimeParticle--;
};
_local5.alpha = (_local5.alpha * 0.9);
if (_local5.lifeTimeParticle == 0){
removeChild(_local5);
_local5 = null;
particlesArray.splice(_local4, 1);
numberOfParticles--;
if ((((bazni.status_akcije == 1)) && ((numberOfParticles == 0)))){
this.removeEventListener(Event.ENTER_FRAME, BulletParticleLet);
parent.removeChild(this);
};
};
_local4++;
};
};
}
}
}//package dkicker_akcija
Section 7
//Collision_update (dkicker_akcija.Collision_update)
package dkicker_akcija {
import flash.display.*;
import flash.geom.*;
public class Collision_update extends MovieClip {
public function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Boolean{
var _local6:Rectangle;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
return (true);
};
return (false);
}
public static function getCollisionRect(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Rectangle{
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Rectangle;
var _local9:BitmapData;
var _local10:BitmapData;
var _local11:uint;
var _local12:Rectangle;
var _local13:int;
_local6 = _arg1.getBounds(_arg3);
_local7 = _arg2.getBounds(_arg3);
_local8 = _local6.intersection(_local7);
if (_local8.size.length > 0){
if (_arg4){
_local8.width = Math.ceil(_local8.width);
_local8.height = Math.ceil(_local8.height);
_local9 = getAlphaMap(_arg1, _local8, BitmapDataChannel.RED, _arg3);
_local10 = getAlphaMap(_arg2, _local8, BitmapDataChannel.GREEN, _arg3);
_local9.draw(_local10, null, null, BlendMode.LIGHTEN);
if (_arg5 <= 0){
_local11 = 65792;
} else {
if (_arg5 > 1){
_arg5 = 1;
};
_local13 = Math.round((_arg5 * 0xFF));
_local11 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local12 = _local9.getColorBoundsRect(_local11, _local11);
_local9.getColorBoundsRect(_local11, _local11).x = (_local12.x + _local8.x);
_local12.y = (_local12.y + _local8.y);
return (_local12);
} else {
return (_local8);
};
//unresolved jump
};
return (null);
}
public static function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Point{
var _local6:Rectangle;
var _local7:Number;
var _local8:Number;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
_local7 = ((_local6.left + _local6.right) / 2);
_local8 = ((_local6.top + _local6.bottom) / 2);
return (new Point(_local7, _local8));
};
return (null);
}
private static function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:DisplayObjectContainer):BitmapData{
var _local5:Matrix;
var _local6:Matrix;
var _local7:BitmapData;
var _local8:BitmapData;
_arg4 = _arg1.parent;
_local5 = _arg4.transform.concatenatedMatrix.clone();
_local5.invert();
_local6 = _arg1.transform.concatenatedMatrix.clone();
_local6.concat(_local5);
_local6.translate(-(_arg2.x), -(_arg2.y));
_local7 = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local7.draw(_arg1, _local6);
_local8 = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local8.copyChannel(_local7, _local7.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local8);
}
}
}//package dkicker_akcija
Section 8
//dkicker_akciona_pozadina (dkicker_akcija.dkicker_akciona_pozadina)
package dkicker_akcija {
import flash.display.*;
public class dkicker_akciona_pozadina extends MovieClip {
public var _semafor:semafor;
public var trava_senka:MovieClip;
public function dkicker_akciona_pozadina(_arg1:int){
var _local2:int;
var _local3:reklame;
super();
_local2 = _arg1;
_local3 = new reklame();
_local3.x = 300;
_local3.y = 185;
addChild(_local3);
if (_local2 > 1){
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
};
if (_local2 > 1){
trava_senka.gotoAndStop(1);
} else {
trava_senka.gotoAndStop(2);
};
}
}
}//package dkicker_akcija
Section 9
//generisanjeGolmana (dkicker_akcija.generisanjeGolmana)
package dkicker_akcija {
import flash.display.*;
import flash.geom.*;
public class generisanjeGolmana extends MovieClip {
var golmanSekvenca:BitmapData;
var frejmGolmana0:int;// = 0
var sekvencaYDim:int;// = 100
var slicePoint:Point;
var bitmapDataXdim;// = 550
var smerGolmana:int;// = 1
var set_dresova:uint;
var set_koze:uint;
var golmanSpriteSheet:golmanFinal;
var stanjeGolmana:int;// = 0
var animRect:Rectangle;
var bitmapDataYdim;// = 600
var sliceRect:Rectangle;
var sekvencaXDim:int;// = 90
var golmanSekvencaBitmap:Bitmap;
var faktor_korekcije;// = 14
var brzinaGolmana:int;// = 0
public function generisanjeGolmana(){
bitmapDataXdim = 550;
bitmapDataYdim = 600;
sekvencaXDim = 90;
sekvencaYDim = 100;
faktor_korekcije = 14;
slicePoint = new Point(0, 0);
sliceRect = new Rectangle(0, 0, bitmapDataXdim, bitmapDataYdim);
animRect = new Rectangle(0, 0, sekvencaXDim, sekvencaYDim);
golmanSpriteSheet = new golmanFinal(bitmapDataXdim, bitmapDataYdim);
golmanSekvenca = new BitmapData(sekvencaXDim, sekvencaYDim, true, 0);
golmanSekvencaBitmap = new Bitmap(golmanSekvenca);
frejmGolmana0 = 0;
stanjeGolmana = 0;
brzinaGolmana = 0;
smerGolmana = 1;
super();
set_koze = bazni.tipGolmanoveKoze;
set_dresova = bazni.tipGolmanovogDresa;
generisanjeSpriteSheet();
addChild(golmanSekvencaBitmap);
animacijaGolmana(0);
}
function generisanjeSpriteSheet(){
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:Array;
var _local5:Array;
var _local6:int;
var _local7:Array;
var _local8:Array;
golmanSpriteSheet.lock();
_local1 = 4294952848;
_local2 = 4278190080;
_local3 = 4294967295;
_local4 = new Array(4284130534, 4282022830, 4281029762);
_local5 = new Array(4284081008, 4281308992, 4279452187, 4292312379, 4288305965, 4283378965, 4292603946, 4278912801, 4292603946);
_local6 = 0;
while (_local6 < 3) {
_local1 = _local4[_local6];
_local2 = _local5[(_local6 + (set_dresova * 3))];
golmanSpriteSheet.threshold(golmanSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
_local6++;
};
_local7 = new Array(4294952848, 4292973682);
_local8 = [4294958531, 4294949773, 4293440902, 4291855695, 4292645968, 4288504884, 4288504884, 4285153816, 4283575572, 4281343244];
_local6 = 0;
while (_local6 < 2) {
_local1 = _local7[_local6];
_local2 = _local8[(_local6 + (set_koze * 2))];
golmanSpriteSheet.threshold(golmanSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
_local6++;
};
golmanSpriteSheet.unlock();
}
function animacijaGolmana(_arg1:int):void{
animRect.x = ((_arg1 % 6) * sekvencaXDim);
animRect.y = ((Math.floor((_arg1 / 6)) * sekvencaYDim) - faktor_korekcije);
golmanSekvenca.fillRect(golmanSekvenca.rect, 0);
golmanSekvenca.copyPixels(golmanSpriteSheet, animRect, slicePoint, null, null, true);
}
}
}//package dkicker_akcija
Section 10
//generisanjeStadiona (dkicker_akcija.generisanjeStadiona)
package dkicker_akcija {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class generisanjeStadiona extends MovieClip {
var gledalisteSkokSmer:Array;
var jedanRedBitmapData:BitmapData;
var elementiStadionaYDim:int;// = 26
var tribinePoNivoima:Array;
var jedanRedYDim:int;// = 26
var set_stolica_niz:Array;
var RadostIliTuga:int;// = 1
var faktorPopunjenosti:int;
var stadionBitmapDataXDim;// = 600
var krovRect:Rectangle;
var maksimalniSkok:int;// = 6
var sliceRect:Rectangle;
var bojaJedan:uint;
var redElementi:tribine_stolica;
var brojGledalacaUReduSpriteSheet:int;// = 14
var gledalisteNiz:Array;
var jednoMestoXDim:int;// = 36
var stadionBitmapDataYDim;// = 200
var gledalisteSkokNiz:Array;
var vertikalniPomeraj:int;// = 13
var set_stolica:uint;
var skakanje_u_toku:Boolean;// = false
var GlavniTimer:Timer;
var jednoMestoYDim:int;// = 26
var slicePoint:Point;
var klasaStadiona:int;
var publikaRadostElementi:publika_radost;
var bojaDva:uint;
var publikaElementi:publikaGif;
var brojRedova;// = 14
var krovStadiona:krov_stadiona;
var gledalacRect:Rectangle;
var flagKasnjenja:int;// = 0
var dimenzijaGledaocaX:int;
var dimenzijaGledaocaY:int;// = 72
var popunjenostPoNivoima:Array;
var stadionBitmap:Bitmap;
var elementiStadionaXDim:int;// = 36
var yKorekcijaGledaoca:int;// = 27
var jedanRedXDim:int;// = 600
var stadionBitmapData:BitmapData;
var brojRedovaGledalacaUSpriteSheet:int;// = 4
var brojMestaURedu:int;// = 18
public function generisanjeStadiona(_arg1:int, _arg2:uint, _arg3:uint){
var _local4:Array;
var _local5:crno;
var _local6:Bitmap;
var _local7:int;
var _local8:int;
brojRedova = 14;
brojMestaURedu = 18;
tribinePoNivoima = [2, 2, 4, 5, 6, 7, 8, 10, 12, 14];
popunjenostPoNivoima = [5, 0, 3, 0, 2, 0, 1, 0, 1, 0];
set_stolica_niz = [0, 0, 1, 0, 2, 2, 3, 3, 4, 0];
brojRedovaGledalacaUSpriteSheet = 4;
brojGledalacaUReduSpriteSheet = 14;
stadionBitmapDataXDim = 600;
stadionBitmapDataYDim = 200;
jedanRedXDim = 600;
jedanRedYDim = 26;
jednoMestoXDim = 36;
jednoMestoYDim = 26;
dimenzijaGledaocaX = jednoMestoXDim;
dimenzijaGledaocaY = 72;
vertikalniPomeraj = 13;
yKorekcijaGledaoca = 27;
elementiStadionaXDim = 36;
elementiStadionaYDim = 26;
slicePoint = new Point(0, 0);
sliceRect = new Rectangle(0, 0, jednoMestoXDim, jednoMestoYDim);
gledalacRect = new Rectangle(0, 0, dimenzijaGledaocaX, dimenzijaGledaocaY);
krovRect = new Rectangle(0, 0, stadionBitmapDataXDim, 120);
redElementi = new tribine_stolica(elementiStadionaXDim, elementiStadionaYDim);
publikaElementi = new publikaGif(stadionBitmapDataXDim, stadionBitmapDataYDim);
publikaRadostElementi = new publika_radost(stadionBitmapDataXDim, stadionBitmapDataYDim);
krovStadiona = new krov_stadiona(stadionBitmapDataXDim, 120);
stadionBitmapData = new BitmapData(stadionBitmapDataXDim, stadionBitmapDataYDim, true, 0);
jedanRedBitmapData = new BitmapData(jedanRedXDim, jedanRedYDim, true, 0);
stadionBitmap = new Bitmap(stadionBitmapData);
gledalisteNiz = new Array();
gledalisteSkokNiz = new Array();
gledalisteSkokSmer = new Array();
skakanje_u_toku = false;
GlavniTimer = new Timer(60, 0);
maksimalniSkok = 6;
RadostIliTuga = 1;
flagKasnjenja = 0;
super();
_local4 = [4294967295, 4294901761, 4278190335, 4294967041, 4288269567, 4294927872, 4294941132, 4288230195, 4281584691, 4284874956, 4278203238, 4278190080, 4288217088, 4278205440, 4284927231, 4291611852, 4294954137];
_local5 = new crno(600, 250);
_local6 = new Bitmap(_local5);
addChild(_local6);
_local7 = _arg1;
skakanje_u_toku = false;
bojaJedan = _local4[bazni._myDressCol1];
bojaDva = _local4[bazni._myDressCol2];
klasaStadiona = tribinePoNivoima[(_local7 - 1)];
faktorPopunjenosti = popunjenostPoNivoima[(_local7 - 1)];
set_stolica = set_stolica_niz[(_local7 - 1)];
if (bazni.tip_igre == "flashfooty cup"){
faktorPopunjenosti = 0;
klasaStadiona = 12;
set_stolica = 5;
};
if (bazni.tip_igre == "flashfooty training"){
faktorPopunjenosti = 5;
klasaStadiona = 0;
set_stolica = 0;
};
_local8 = 0;
while (_local8 < (brojMestaURedu * brojRedova)) {
if (Math.floor(((Math.random() * 10) + 1)) > faktorPopunjenosti){
gledalisteNiz.push(Math.floor((Math.random() * 54)));
} else {
gledalisteNiz.push(55);
};
_local8++;
};
slucajniSkokovi();
stadionBitmap.alpha = 0.6;
addChild(stadionBitmap);
uvodnoIscrtavanjeStolica();
uvodnoIscrtavanjePublike();
iscrtavanjeTribina();
}
function skakanjePublike(_arg1:Event):void{
var _local2:int;
iscrtavanjeTribina();
flagKasnjenja = (1 - flagKasnjenja);
_local2 = 0;
while (_local2 < (brojMestaURedu * brojRedova)) {
if (!(((((RadostIliTuga == 1)) && ((flagKasnjenja == 0)))) && ((gledalisteSkokSmer[_local2] > 0)))){
gledalisteSkokNiz[_local2] = (gledalisteSkokNiz[_local2] + gledalisteSkokSmer[_local2]);
};
if (RadostIliTuga == 2){
if ((((gledalisteSkokNiz[_local2] >= maksimalniSkok)) || ((gledalisteSkokNiz[_local2] <= 0)))){
gledalisteSkokSmer[_local2] = (gledalisteSkokSmer[_local2] * -1);
};
};
if (RadostIliTuga == 1){
if (gledalisteSkokNiz[_local2] >= maksimalniSkok){
gledalisteSkokSmer[_local2] = (gledalisteSkokSmer[_local2] * -1);
};
if (gledalisteSkokNiz[_local2] <= 0){
gledalisteSkokSmer[_local2] = 0;
};
};
_local2++;
};
}
function iscrtavanjeTribina():void{
var _local1:int;
var _local2:int;
stadionBitmapData.lock();
stadionBitmapData.fillRect(stadionBitmapData.rect, 0);
if (klasaStadiona > 6){
slicePoint.x = 0;
slicePoint.y = (((brojRedova - klasaStadiona) * vertikalniPomeraj) - 80);
stadionBitmapData.copyPixels(krovStadiona, krovRect, slicePoint, null, null, true);
};
_local1 = (brojRedova - klasaStadiona);
while (_local1 < brojRedova) {
_local2 = 0;
while (_local2 < brojMestaURedu) {
slicePoint.x = ((_local2 * jednoMestoXDim) - 5);
if ((_local1 % 2) == 0){
slicePoint.x = (slicePoint.x - (jednoMestoXDim * 0.5));
};
slicePoint.y = (_local1 * vertikalniPomeraj);
sliceRect.x = 0;
if ((((((((_local2 == 1)) || ((_local2 == 2)))) || ((_local2 == 14)))) || ((_local2 == 15)))){
sliceRect.x = 36;
};
sliceRect.y = 0;
if (klasaStadiona > 2){
stadionBitmapData.copyPixels(redElementi, sliceRect, slicePoint, null, null, true);
};
gledalacRect.x = ((gledalisteNiz[((brojRedova * _local1) + _local2)] % brojGledalacaUReduSpriteSheet) * dimenzijaGledaocaX);
gledalacRect.y = ((gledalisteNiz[((brojRedova * _local1) + _local2)] % brojRedovaGledalacaUSpriteSheet) * dimenzijaGledaocaY);
if ((((klasaStadiona > 2)) && ((((((((_local2 == 1)) || ((_local2 == 2)))) || ((_local2 == 14)))) || ((_local2 == 15)))))){
gledalacRect.x = (dimenzijaGledaocaX * 13);
gledalacRect.y = (dimenzijaGledaocaY * 3);
};
slicePoint.y = ((_local1 * vertikalniPomeraj) - yKorekcijaGledaoca);
if (skakanje_u_toku){
slicePoint.y = (slicePoint.y - gledalisteSkokNiz[(_local2 * _local1)]);
};
if (skakanje_u_toku){
stadionBitmapData.copyPixels(publikaRadostElementi, gledalacRect, slicePoint, null, null, true);
} else {
stadionBitmapData.copyPixels(publikaElementi, gledalacRect, slicePoint, null, null, true);
};
_local2++;
};
_local1++;
};
stadionBitmapData.unlock();
}
function slucajniSkokovi():void{
var _local1:int;
_local1 = 0;
while (_local1 < (brojMestaURedu * brojRedova)) {
gledalisteSkokNiz[_local1] = Math.floor((Math.random() * maksimalniSkok));
gledalisteSkokSmer[_local1] = 1;
_local1++;
};
}
function uvodnoIscrtavanjeStolica():void{
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:Array;
var _local5:Array;
var _local6:int;
redElementi.lock();
_local3 = 4294967295;
_local4 = new Array(4282466730, 4281282433, 4279704666);
_local5 = new Array(4282466730, 4281282433, 4279704666, 4292492308, 4288949263, 4286589967, 4284081008, 4281308992, 4279452187, 4292312379, 4288305965, 4283378965, 4292603946, 4291155990, 4287996688, 4292312379, bojaJedan, 4287996688);
_local6 = 0;
while (_local6 < 3) {
_local1 = _local4[_local6];
_local2 = _local5[(_local6 + (set_stolica * 3))];
redElementi.threshold(redElementi, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
_local6++;
};
redElementi.unlock();
}
function uvodnoIscrtavanjePublike():void{
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:Rectangle;
_local1 = 4278255615;
_local2 = bojaJedan;
_local3 = 4294967295;
_local4 = new Rectangle(0, 0, stadionBitmapDataXDim, stadionBitmapDataYDim);
publikaElementi.threshold(publikaElementi, _local4, slicePoint, "==", _local1, _local2, _local3, true);
publikaRadostElementi.threshold(publikaRadostElementi, _local4, slicePoint, "==", _local1, _local2, _local3, true);
_local1 = 4291362560;
_local2 = bojaDva;
publikaElementi.threshold(publikaElementi, _local4, slicePoint, "==", _local1, _local2, _local3, true);
publikaRadostElementi.threshold(publikaRadostElementi, _local4, slicePoint, "==", _local1, _local2, _local3, true);
}
function pocniSkakanje(_arg1:uint):void{
RadostIliTuga = _arg1;
skakanje_u_toku = true;
this.addEventListener(Event.ENTER_FRAME, skakanjePublike, false, 0, true);
}
}
}//package dkicker_akcija
Section 11
//generisanjeStaticnogIgraca (dkicker_akcija.generisanjeStaticnogIgraca)
package dkicker_akcija {
import flash.display.*;
import flash.geom.*;
public class generisanjeStaticnogIgraca extends MovieClip {
var frejmStatIgraca0:int;// = 0
var sekvencaYDim:int;// = 112
var slicePoint:Point;
var bitmapDataXdim;// = 540
var myBitmapImage:Bitmap;
var set_dresova:uint;
var set_koze:uint;
var stanjeIgraca:int;// = 0
var set_frizura:uint;
var igracSpriteSheet:staticniFudbaler;
var animRect:Rectangle;
var bitmapDataYdim;// = 336
var smerIgraca:int;// = 1
var sliceRect:Rectangle;
var igracSekvencaBitmap:Bitmap;
var sekvencaXDim:int;// = 90
var igracSekvenca:BitmapData;
var faktor_korekcije;// = 0
var igraceviElementi:BitmapData;
var brzinaIgraca:int;// = 0
public function generisanjeStaticnogIgraca(){
bitmapDataXdim = 540;
bitmapDataYdim = 336;
sekvencaXDim = 90;
sekvencaYDim = 112;
faktor_korekcije = 0;
slicePoint = new Point(0, 0);
sliceRect = new Rectangle(0, 0, bitmapDataXdim, bitmapDataYdim);
animRect = new Rectangle(0, 0, sekvencaXDim, sekvencaYDim);
igracSpriteSheet = new staticniFudbaler(bitmapDataXdim, bitmapDataYdim);
igracSekvenca = new BitmapData(sekvencaXDim, sekvencaYDim, true, 0);
igracSekvencaBitmap = new Bitmap(igracSekvenca);
myBitmapImage = new Bitmap(igracSpriteSheet);
frejmStatIgraca0 = 0;
stanjeIgraca = 0;
brzinaIgraca = 0;
smerIgraca = 1;
super();
set_koze = Math.floor((Math.random() * 5));
set_frizura = Math.floor((Math.random() * 5));
generisanjeSpriteSheet();
addChild(igracSekvencaBitmap);
}
function generisanjeSpriteSheet(){
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:Array;
var _local5:Array;
var _local6:int;
var _local7:Array;
var _local8:Array;
var _local9:Array;
igracSpriteSheet.lock();
set_dresova = bazni._dressType;
switch (set_dresova){
case 0:
igraceviElementi = new BitmapData(bitmapDataXdim, bitmapDataYdim, true, 0);
break;
case 1:
igraceviElementi = new st_uzduzne_pruge(bitmapDataXdim, bitmapDataYdim);
break;
case 2:
igraceviElementi = new st_poprecne_pruge(bitmapDataXdim, bitmapDataYdim);
break;
case 3:
igraceviElementi = new st_pola_pola(bitmapDataXdim, bitmapDataYdim);
break;
case 4:
igraceviElementi = new st_dijagonalna_pruga(bitmapDataXdim, bitmapDataYdim);
break;
case 5:
igraceviElementi = new st_ajax_pruge(bitmapDataXdim, bitmapDataYdim);
break;
case 6:
igraceviElementi = new st_boka(bitmapDataXdim, bitmapDataYdim);
break;
case 7:
igraceviElementi = new st_dijagonalna_podela(bitmapDataXdim, bitmapDataYdim);
break;
};
igracSpriteSheet.copyPixels(igraceviElementi, sliceRect, slicePoint, null, null, true);
igraceviElementi.dispose();
switch (set_frizura){
case 0:
igraceviElementi = new BitmapData(bitmapDataXdim, bitmapDataYdim, true, 0);
break;
case 1:
igraceviElementi = new st_kosa_klasik(bitmapDataXdim, bitmapDataYdim);
break;
case 2:
igraceviElementi = new st_kosa_repovi(bitmapDataXdim, bitmapDataYdim);
break;
case 3:
igraceviElementi = new st_kosa_kratka(bitmapDataXdim, bitmapDataYdim);
break;
case 4:
igraceviElementi = new st_kosa_bradica(bitmapDataXdim, bitmapDataYdim);
break;
};
igracSpriteSheet.copyPixels(igraceviElementi, sliceRect, slicePoint, null, null, true);
_local3 = 4294967295;
_local4 = new Array(4281558783, 4294901760, 4294967040);
_local5 = [4294967295, 4294901761, 4278190335, 4294967041, 4288269567, 4294927872, 4294941132, 4288230195, 4281584691, 4284874956, 4278203238, 4278190080, 4288217088, 4278205440, 4284927231, 4291611852, 4294954137];
_local6 = 0;
while (_local6 < 3) {
_local1 = _local4[_local6];
switch (_local6){
case 0:
_local2 = _local5[bazni._dressCol1];
break;
case 1:
_local2 = _local5[bazni._dressCol2];
break;
case 2:
_local2 = _local5[bazni._shortsCol];
break;
};
igracSpriteSheet.threshold(igracSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
_local6++;
};
_local7 = new Array(4294821499, 4292185447);
_local8 = [4294958531, 4294949773, 4293440902, 4291855695, 4292645968, 4288504884, 4288504884, 4285153816, 4283575572, 4281343244];
_local6 = 0;
while (_local6 < 2) {
_local1 = _local7[_local6];
_local2 = _local8[(_local6 + (set_koze * 2))];
igracSpriteSheet.threshold(igracSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
_local6++;
};
igracSpriteSheet.unlock();
_local1 = 4278517236;
_local9 = [4283695104, 4278190080, 4278190080, 4278190080, 4278190080];
_local2 = _local9[set_koze];
igracSpriteSheet.threshold(igracSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
}
function animacijaStatIgraca(_arg1:int):void{
animRect.x = ((_arg1 % 6) * sekvencaXDim);
animRect.y = ((Math.floor((_arg1 / 6)) * sekvencaYDim) - faktor_korekcije);
igracSekvenca.fillRect(igracSekvenca.rect, 0);
igracSekvenca.copyPixels(igracSpriteSheet, animRect, slicePoint, null, null, true);
}
}
}//package dkicker_akcija
Section 12
//gol_i_mreza (dkicker_akcija.gol_i_mreza)
package dkicker_akcija {
import flash.display.*;
public class gol_i_mreza extends MovieClip {
var mrezaBMP:mrezaMC;
public function gol_i_mreza(){
mrezaBMP = new mrezaMC();
mrezaBMP.x = 300;
mrezaBMP.y = 160;
mrezaBMP.zadnja_mreza.stop();
mrezaBMP.bocna_mreza_levo.stop();
mrezaBMP.bocna_mreza_desno.stop();
addChild(mrezaBMP);
}
}
}//package dkicker_akcija
Section 13
//myCustomEvent (dkicker_akcija.myCustomEvent)
package dkicker_akcija {
import flash.events.*;
public class myCustomEvent extends Event {
public var myMessage:int;
public function myCustomEvent(_arg1:int, _arg2:Boolean=false, _arg3:Boolean=false){
super("myCustomEvent", _arg2, _arg3);
myMessage = _arg1;
}
}
}//package dkicker_akcija
Section 14
//myCustomEvent_kraj_meca (dkicker_akcija.myCustomEvent_kraj_meca)
package dkicker_akcija {
import flash.events.*;
public class myCustomEvent_kraj_meca extends Event {
public var brojGolova:int;
public var brojPrihvacenihLopti:int;
public var myMessage:int;
public function myCustomEvent_kraj_meca(_arg1:int, _arg2:int, _arg3:int){
super("myCustomEvent_kraj_meca");
myMessage = _arg1;
brojGolova = _arg2;
brojPrihvacenihLopti = _arg3;
}
}
}//package dkicker_akcija
Section 15
//myFootballer_drawing (dkicker_akcija.myFootballer_drawing)
package dkicker_akcija {
import flash.display.*;
import flash.geom.*;
public class myFootballer_drawing extends MovieClip {
var sekvencaYDim:int;// = 167
var slicePoint:Point;
var bitmapDataXdim;// = 660
var myBitmapImage:Bitmap;
var set_dresova:uint;
var set_koze:uint;
var set_frizura:uint;
var igracSpriteSheet:igracTrkFinal;
var animRect:Rectangle;
var bitmapDataYdim;// = 668
var sliceRect:Rectangle;
var igracSekvencaBitmap:Bitmap;
var sekvencaXDim:int;// = 110
var igracSekvenca:BitmapData;
var faktor_korekcije;// = 0
var igraceviElementi:BitmapData;
var frejmIgracaTrk0:int;// = 0
public function myFootballer_drawing(){
frejmIgracaTrk0 = 0;
bitmapDataXdim = 660;
bitmapDataYdim = 668;
sekvencaXDim = 110;
sekvencaYDim = 167;
faktor_korekcije = 0;
slicePoint = new Point(0, 0);
sliceRect = new Rectangle(0, 0, bitmapDataXdim, bitmapDataYdim);
animRect = new Rectangle(0, 0, sekvencaXDim, sekvencaYDim);
igracSpriteSheet = new igracTrkFinal(bitmapDataXdim, bitmapDataYdim);
igracSekvenca = new BitmapData(sekvencaXDim, sekvencaYDim, true, 0);
igracSekvencaBitmap = new Bitmap(igracSekvenca);
myBitmapImage = new Bitmap(igracSpriteSheet);
super();
set_koze = Math.floor((Math.random() * 5));
set_frizura = Math.floor((Math.random() * 5));
generisanjeSpriteSheet();
addChild(igracSekvencaBitmap);
}
function generisanjeSpriteSheet(){
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:Array;
var _local5:Array;
var _local6:int;
var _local7:Array;
var _local8:Array;
var _local9:Array;
igracSpriteSheet.lock();
set_dresova = bazni._myDressType;
switch (set_dresova){
case 0:
igraceviElementi = new BitmapData(bitmapDataXdim, bitmapDataYdim, true, 0);
break;
case 1:
igraceviElementi = new dres_pruge(bitmapDataXdim, bitmapDataYdim);
break;
case 2:
igraceviElementi = new dres_poprecne_pruge(bitmapDataXdim, bitmapDataYdim);
break;
case 3:
igraceviElementi = new dres_pola_pola(bitmapDataXdim, bitmapDataYdim);
break;
case 4:
igraceviElementi = new dres_dijagonalne(bitmapDataXdim, bitmapDataYdim);
break;
case 5:
igraceviElementi = new dres_ajax_pruge(bitmapDataXdim, bitmapDataYdim);
break;
case 6:
igraceviElementi = new dres_boka(bitmapDataXdim, bitmapDataYdim);
break;
case 7:
igraceviElementi = new dres_podela_dijagonalna(bitmapDataXdim, bitmapDataYdim);
break;
};
igracSpriteSheet.copyPixels(igraceviElementi, sliceRect, slicePoint, null, null, true);
igraceviElementi.dispose();
switch (set_frizura){
case 0:
igraceviElementi = new BitmapData(bitmapDataXdim, bitmapDataYdim, true, 0);
break;
case 1:
igraceviElementi = new kosa1(bitmapDataXdim, bitmapDataYdim);
break;
case 2:
igraceviElementi = new kosa2(bitmapDataXdim, bitmapDataYdim);
break;
case 3:
igraceviElementi = new kosa3(bitmapDataXdim, bitmapDataYdim);
break;
case 4:
igraceviElementi = new kosa4(bitmapDataXdim, bitmapDataYdim);
break;
};
igracSpriteSheet.copyPixels(igraceviElementi, sliceRect, slicePoint, null, null, true);
_local3 = 4294967295;
_local4 = new Array(4281558783, 4294901760, 4294967040);
_local5 = [4294967295, 4294901761, 4278190335, 4294967041, 4288269567, 4294927872, 4294941132, 4288230195, 4281584691, 4284874956, 4278203238, 4278190080, 4288217088, 4278205440, 4284927231, 4291611852, 4294954137];
_local6 = 0;
while (_local6 < 3) {
_local1 = _local4[_local6];
switch (_local6){
case 0:
_local2 = _local5[bazni._myDressCol1];
break;
case 1:
_local2 = _local5[bazni._myDressCol2];
break;
case 2:
_local2 = _local5[bazni._myShortsCol];
break;
};
igracSpriteSheet.threshold(igracSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
_local6++;
};
_local7 = new Array(4294954086, 4291598694);
_local8 = [4294958531, 4294949773, 4293440902, 4291855695, 4292645968, 4288504884, 4288504884, 4285153816, 4283575572, 4281343244];
_local6 = 0;
while (_local6 < 2) {
_local1 = _local7[_local6];
_local2 = _local8[(_local6 + (set_koze * 2))];
igracSpriteSheet.threshold(igracSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
_local6++;
};
igracSpriteSheet.unlock();
_local1 = 4278517236;
_local9 = [4283695104, 4278190080, 4278190080, 4278190080, 4278190080];
_local2 = _local9[set_koze];
igracSpriteSheet.threshold(igracSpriteSheet, sliceRect, slicePoint, "==", _local1, _local2, _local3, true);
}
function animacijaIgracaTrk(_arg1:int):void{
animRect.x = ((_arg1 % 6) * sekvencaXDim);
animRect.y = (Math.floor((_arg1 / 6)) * sekvencaYDim);
igracSekvenca.fillRect(igracSekvenca.rect, 0);
igracSekvenca.copyPixels(igracSpriteSheet, animRect, slicePoint, null, null, true);
}
}
}//package dkicker_akcija
Section 16
//shooter (dkicker_akcija.shooter)
package dkicker_akcija {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class shooter extends MovieClip {
var _metaP_y_header_offset:Array;
var _myFootballerPoint:Point;
var _metaP_y_offset:Array;
var brojacAnimacijeSuta:int;// = 0
var _metaP_x_offset:Array;
var _pointer_prikaz:privremeni_pointer;
var stanjeIgraca:int;// = 0
var smerIgraca:int;// = -1
var frejmShuta:int;// = 13
private var MyStage:Stage;
var _myFootballerSprite:myFootballer_drawing;
var _metaP_x_header_offset:Array;
var korekcija_za_xSkaliranje:Number;// = 0
static var _metaP:Point = new Point(0, 0);
public function shooter(_arg1:Stage){
smerIgraca = -1;
korekcija_za_xSkaliranje = 0;
brojacAnimacijeSuta = 0;
stanjeIgraca = 0;
frejmShuta = 13;
_pointer_prikaz = new privremeni_pointer();
_metaP_x_offset = [22, 29, 42, 55];
_metaP_y_offset = [147, 122, 113, 110];
_metaP_x_header_offset = [57, 57, 57, 57];
_metaP_y_header_offset = [35, 35, 35, 35];
super();
MyStage = _arg1;
MyStage.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick, false, 0, true);
_myFootballerPoint = new Point(300, 220);
_myFootballerSprite = new myFootballer_drawing();
if (bazni.vrsta_akcije == "sut_glavom"){
_myFootballerPoint.y = (_myFootballerPoint.y - 50);
};
_myFootballerSprite.scaleX = (_myFootballerSprite.scaleY = (1 - ((220 - _myFootballerPoint.y) / 220)));
_myFootballerSprite.x = _myFootballerPoint.x;
_myFootballerSprite.y = _myFootballerPoint.y;
addChild(_myFootballerSprite);
_myFootballerSprite.animacijaIgracaTrk(12);
_pointer_prikaz.x = 0;
_pointer_prikaz.y = 0;
_pointer_prikaz.alpha = 0.1;
_pointer_prikaz.scaleX = (_pointer_prikaz.scaleY = _myFootballerSprite.scaleX);
addChild(_pointer_prikaz);
this.addEventListener(Event.ENTER_FRAME, shooterMove, false, 0, true);
}
function mouseClick(_arg1:MouseEvent):void{
if (stanjeIgraca == 0){
brojacAnimacijeSuta = 0;
this.removeEventListener(Event.ENTER_FRAME, shooterMove);
if (bazni._ball.yOtklon < (140 * _pointer_prikaz.scaleX)){
stanjeIgraca = 1;
_pointer_prikaz.scaleY = _myFootballerSprite.scaleX;
this.addEventListener(Event.ENTER_FRAME, shooterFootShoot, false, 0, true);
} else {
stanjeIgraca = 2;
_pointer_prikaz.scaleY = (1.3 * _myFootballerSprite.scaleX);
this.addEventListener(Event.ENTER_FRAME, shooterHeader, false, 0, true);
};
};
}
function shooterFootShoot(_arg1:Event):void{
brojacAnimacijeSuta++;
if (brojacAnimacijeSuta == 3){
brojacAnimacijeSuta = 0;
frejmShuta++;
if (frejmShuta == 22){
this.removeEventListener(Event.ENTER_FRAME, shooterFootShoot);
this.addEventListener(Event.ENTER_FRAME, shooterMove, false, 0, true);
stanjeIgraca = 0;
frejmShuta = 13;
};
_myFootballerSprite.animacijaIgracaTrk(frejmShuta);
if ((((frejmShuta >= 16)) && ((frejmShuta <= 19)))){
if (korekcija_za_xSkaliranje == 0){
_metaP.x = _metaP_x_offset[(frejmShuta - 16)];
} else {
_metaP.x = -(_metaP_x_offset[(frejmShuta - 16)]);
};
_metaP.x = (_metaP.x * Math.abs(_pointer_prikaz.scaleX));
_metaP.x = (_metaP.x + _myFootballerSprite.x);
_metaP.y = ((Math.abs(_pointer_prikaz.scaleX) * _metaP_y_offset[(frejmShuta - 16)]) + _myFootballerSprite.y);
} else {
_metaP.x = (_metaP.y = 0);
};
_pointer_prikaz.x = _metaP.x;
_pointer_prikaz.y = _metaP.y;
};
}
function shooterHeader(_arg1:Event):void{
var _local2:int;
_local2 = 5;
brojacAnimacijeSuta++;
if (brojacAnimacijeSuta < 10){
_myFootballerSprite.y = (_myFootballerSprite.y - _local2);
} else {
_myFootballerSprite.y = (_myFootballerSprite.y + _local2);
};
if ((((brojacAnimacijeSuta > 6)) && ((brojacAnimacijeSuta < 11)))){
_myFootballerSprite.animacijaIgracaTrk(22);
if (korekcija_za_xSkaliranje == 0){
_metaP.x = _metaP_x_header_offset[(brojacAnimacijeSuta - 7)];
} else {
_metaP.x = -(_metaP_x_header_offset[(brojacAnimacijeSuta - 7)]);
};
_metaP.x = (_metaP.x * Math.abs(_pointer_prikaz.scaleX));
_metaP.x = (_metaP.x + _myFootballerSprite.x);
_metaP.y = ((Math.abs(_pointer_prikaz.scaleX) * _metaP_y_header_offset[(brojacAnimacijeSuta - 7)]) + _myFootballerSprite.y);
} else {
_myFootballerSprite.animacijaIgracaTrk(21);
_metaP.x = (_metaP.y = 0);
};
_pointer_prikaz.x = _metaP.x;
_pointer_prikaz.y = _metaP.y;
if (brojacAnimacijeSuta == 20){
this.removeEventListener(Event.ENTER_FRAME, shooterHeader);
this.addEventListener(Event.ENTER_FRAME, shooterMove, false, 0, true);
stanjeIgraca = 0;
frejmShuta = 13;
_myFootballerSprite.y = _myFootballerPoint.y;
};
}
function shooterMove(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = 12;
_local3 = 30;
_local5 = 0;
_local6 = (mouseX - _myFootballerPoint.x);
if ((((smerIgraca == -1)) && ((_myFootballerPoint.x < (bazni._ball._loptaSenka.x - 90))))){
smerIgraca = 1;
};
if ((((smerIgraca == 1)) && ((_myFootballerPoint.x > (bazni._ball._loptaSenka.x + 90))))){
smerIgraca = -1;
};
if ((((smerIgraca == 1)) && ((_myFootballerSprite.scaleX > 0)))){
_myFootballerSprite.scaleX = -(_myFootballerSprite.scaleX);
korekcija_za_xSkaliranje = (70 * Math.abs(_myFootballerSprite.scaleX));
_myFootballerSprite.x = (_myFootballerSprite.x + korekcija_za_xSkaliranje);
};
if ((((smerIgraca == -1)) && ((_myFootballerSprite.scaleX < 0)))){
_myFootballerSprite.scaleX = -(_myFootballerSprite.scaleX);
korekcija_za_xSkaliranje = (korekcija_za_xSkaliranje * -1);
_myFootballerSprite.x = (_myFootballerSprite.x + korekcija_za_xSkaliranje);
};
if ((((Math.abs(_local6) >= 0)) && (!(bazni._ball.shutFlag)))){
_myFootballerPoint.x = (_myFootballerPoint.x + (_local6 / 2));
_myFootballerSprite.x = (_myFootballerPoint.x + korekcija_za_xSkaliranje);
_local4 = ((_local2 - 1) - Math.floor(((_myFootballerSprite.x % (_local3 * _local2)) / _local3)));
if (smerIgraca == 1){
_local4 = Math.floor(((_myFootballerSprite.x % (_local3 * _local2)) / _local3));
};
_myFootballerSprite.animacijaIgracaTrk(_local4);
} else {
_myFootballerSprite.animacijaIgracaTrk(12);
};
if (((!((bazni.status_akcije == 1))) || (bazni._ball.shutFlag))){
_myFootballerSprite.animacijaIgracaTrk(12);
MyStage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
this.removeEventListener(Event.ENTER_FRAME, shooterHeader);
this.removeEventListener(Event.ENTER_FRAME, shooterMove);
this.removeEventListener(Event.ENTER_FRAME, shooterFootShoot);
};
}
}
}//package dkicker_akcija
Section 17
//asset_holder_1 (dkicker_flashfooty_fla.asset_holder_1)
package dkicker_flashfooty_fla {
import flash.display.*;
public dynamic class asset_holder_1 extends MovieClip {
public function asset_holder_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package dkicker_flashfooty_fla
Section 18
//bocna_mreza_67 (dkicker_flashfooty_fla.bocna_mreza_67)
package dkicker_flashfooty_fla {
import flash.display.*;
public dynamic class bocna_mreza_67 extends MovieClip {
public function bocna_mreza_67(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package dkicker_flashfooty_fla
Section 19
//dres_p_trake_16 (dkicker_flashfooty_fla.dres_p_trake_16)
package dkicker_flashfooty_fla {
import flash.display.*;
public dynamic class dres_p_trake_16 extends MovieClip {
public function dres_p_trake_16(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package dkicker_flashfooty_fla
Section 20
//pozadina_overview_graf_8 (dkicker_flashfooty_fla.pozadina_overview_graf_8)
package dkicker_flashfooty_fla {
import flash.display.*;
public dynamic class pozadina_overview_graf_8 extends MovieClip {
public var lazno_dugme:MovieClip;
}
}//package dkicker_flashfooty_fla
Section 21
//pozadina_sure_graf_12 (dkicker_flashfooty_fla.pozadina_sure_graf_12)
package dkicker_flashfooty_fla {
import flash.display.*;
public dynamic class pozadina_sure_graf_12 extends MovieClip {
public var lazno_dugme:MovieClip;
}
}//package dkicker_flashfooty_fla
Section 22
//zadnja_mreza_70 (dkicker_flashfooty_fla.zadnja_mreza_70)
package dkicker_flashfooty_fla {
import flash.display.*;
public dynamic class zadnja_mreza_70 extends MovieClip {
public function zadnja_mreza_70(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package dkicker_flashfooty_fla
Section 23
//GameMain (dkicker_meniji.GameMain)
package dkicker_meniji {
import flash.display.*;
import flash.net.*;
public class GameMain extends MovieClip {
var status_privatnosti:int;
var _menu:mainMenu;
var _takmicenje:takmicenje;
static var aktuelniNivo = 1;
static var game_state:int = 0;
static var _username:String;
static var so:SharedObject;
public function GameMain(_arg1:int, _arg2:String){
status_privatnosti = _arg1;
_username = _arg2;
_menu = new mainMenu();
_menu.addEventListener("myCustomEvent", glavna_petlja, false, 0, true);
addChild(_menu);
}
private function glavna_petlja(_arg1:myCustomEvent):void{
switch (_arg1.myMessage){
case 2:
_menu.removeEventListener("myCustomEvent", glavna_petlja);
removeChild(_menu);
_takmicenje = new takmicenje(game_state, status_privatnosti, _username);
_takmicenje.addEventListener("myCustomEvent", glavna_petlja, false, 0, true);
addChild(_takmicenje);
break;
case 7:
game_state = 0;
_takmicenje.removeEventListener("myCustomEvent", glavna_petlja);
removeChild(_takmicenje);
_menu = new mainMenu();
_menu.addEventListener("myCustomEvent", glavna_petlja, false, 0, true);
addChild(_menu);
break;
};
}
}
}//package dkicker_meniji
Section 24
//mainMenu (dkicker_meniji.mainMenu)
package dkicker_meniji {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
public class mainMenu extends MovieClip {
var button_type:Array;
var button_species:int;
var i:int;
var _button:myButtonClass;
public var _buttonArray:Array;
public var _googlePlay:SimpleButton;
private var Muzika:muzika;
var delta_instr:int;
var button_x_pos:Array;
var muzDug:muzDugme;
var _instr:instructionsClip;
var button_counter:int;
static var MuzickaLogika:int = 1;
static var MuzikaChannel:SoundChannel;
public function mainMenu(){
var _local1:int;
super();
addFrameScript(51, frame52);
if (MuzikaChannel){
MuzikaChannel.stop();
};
GameMain.aktuelniNivo = 1;
_local1 = -300;
button_x_pos = [_local1, (_local1 - 100), (_local1 - 200), (_local1 - 300)];
button_type = [1, 2, 3, 4];
_buttonArray = new Array();
button_counter = 0;
Muzika = new muzika();
i = 0;
while (i < button_type.length) {
button_species = button_type[i];
_button = new myButtonClass(button_species);
_button.button_smer = 20;
_button.x = button_x_pos[i];
_button.y = (150 + (i * 50));
_button.addEventListener("myCustomEvent", dugme_klik, false, 0, true);
addChild(_button);
_buttonArray.push(_button);
i++;
};
_instr = new instructionsClip();
_instr.x = 190;
_instr.y = 540;
addChild(_instr);
_instr.inst_dugme.addEventListener(MouseEvent.MOUSE_DOWN, gasi_instr, false, 0, true);
muzDug = new muzDugme();
muzDug.x = 560;
muzDug.y = 25;
addChild(muzDug);
muzDug.MuzickoDugme.mouseEnabled = false;
muzDug.addEventListener(MouseEvent.MOUSE_DOWN, musiconoff, false, 0, true);
muzDug.MuzickoDugme.gotoAndStop(1);
if (MuzickaLogika == 1){
MuzikaChannel = Muzika.play(0, 999);
} else {
muzDug.MuzickoDugme.gotoAndStop(2);
};
_googlePlay.addEventListener(MouseEvent.MOUSE_DOWN, googlePlayKlik, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, button_run, false, 0, true);
}
private function button_run(_arg1:Event):void{
if (button_counter == (20 + (4 * 5))){
GameMain.game_state = 1;
};
if (GameMain.game_state == 0){
button_counter++;
i = 0;
while (i < _buttonArray.length) {
_buttonArray[i].x = (_buttonArray[i].x + _buttonArray[i].button_smer);
if (button_counter == (20 + (i * 5))){
_buttonArray[i].button_smer = 0;
};
i++;
};
};
}
function musiconoff(_arg1:MouseEvent):void{
muzDug.MuzickoDugme.gotoAndStop((1 + MuzickaLogika));
MuzickaLogika = (1 - MuzickaLogika);
if (MuzickaLogika == 0){
MuzikaChannel.stop();
} else {
MuzikaChannel = Muzika.play(0, 999);
};
}
function klik(_arg1:MouseEvent):void{
}
private function gasi_instr(_arg1:MouseEvent):void{
delta_instr = (delta_instr * -1);
if (_instr.hasEventListener(Event.ENTER_FRAME) == false){
_instr.addEventListener(Event.ENTER_FRAME, let_instr, false, 0, true);
};
}
function frame52(){
stop();
}
public function dugme_klik(_arg1:myCustomEvent):void{
var _local2:URLRequest;
var _local3:URLRequest;
switch (_arg1.myMessage){
case 1:
MuzikaChannel.stop();
i = 0;
while (i < _buttonArray.length) {
_buttonArray[i].removeEventListener("myCustomEvent", dugme_klik);
i++;
};
this.removeEventListener(Event.ENTER_FRAME, button_run);
_instr.removeEventListener(Event.ENTER_FRAME, let_instr);
GameMain.game_state = 2;
dispatchEvent(new myCustomEvent(2));
break;
case 2:
if (_instr.hasEventListener(Event.ENTER_FRAME) == false){
delta_instr = 30;
_instr.addEventListener(Event.ENTER_FRAME, let_instr, false, 0, true);
};
break;
case 3:
_local2 = new URLRequest("http://www.flashfooty.com/igre/dkicker/index.php?dkicker_main_page=dkicker_rankings");
navigateToURL(_local2, "_blank");
break;
case 4:
_local3 = new URLRequest("http://www.flashfooty.com/football_games.php?source=flashfootyMoreGamesDkicker");
navigateToURL(_local3, "_blank");
break;
};
}
private function let_instr(_arg1:Event):void{
_instr.y = (_instr.y - delta_instr);
if ((((_instr.y < 260)) || ((_instr.y >= 550)))){
_instr.removeEventListener(Event.ENTER_FRAME, let_instr);
};
}
function googlePlayKlik(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://play.google.com/store/search?q=pub:FlashFooty.com");
navigateToURL(_local2, "_blank");
}
}
}//package dkicker_meniji
Section 25
//myButton_takmicenje_Class (dkicker_meniji.myButton_takmicenje_Class)
package dkicker_meniji {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class myButton_takmicenje_Class extends MovieClip {
var vrsta_odabira:String;
var moj_izbor:int;
public function myButton_takmicenje_Class(_arg1:int, _arg2:String, _arg3:String){
var _local4:myButton_takmicenje;
var _local5:TextFormat;
super();
moj_izbor = _arg1;
vrsta_odabira = _arg3;
_local4 = new myButton_takmicenje();
_local5 = new TextFormat();
_local5.font = "_sans";
_local5.bold = true;
_local4._tekst.text = _arg2;
_local4._tekst.setTextFormat(_local5);
_local4._tekst.mouseEnabled = false;
_local4.baza_dugmeta.scaleX = 1.15;
if (vrsta_odabira == "biranje_tima"){
_local4.baza_dugmeta.scaleY = 0.4;
_local4.baza_dugmeta.scaleX = 1.1;
};
_local4.addEventListener(MouseEvent.MOUSE_DOWN, klik_dugme, false, 0, true);
addChild(_local4);
}
private function klik_dugme(_arg1:MouseEvent):void{
dispatchEvent(new myCustomEvent(moj_izbor));
}
}
}//package dkicker_meniji
Section 26
//myButtonClass (dkicker_meniji.myButtonClass)
package dkicker_meniji {
import flash.events.*;
import flash.display.*;
public class myButtonClass extends MovieClip {
var my_button_species:int;
var button_smer:int;
public function myButtonClass(_arg1:int){
var _local2:myButton;
super();
my_button_species = _arg1;
_local2 = new myButton();
_local2.natpis.gotoAndStop(my_button_species);
_local2.natpis.mouseEnabled = false;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, klik_dugme, false, 0, true);
addChild(_local2);
}
private function klik_dugme(_arg1:MouseEvent):void{
dispatchEvent(new myCustomEvent(my_button_species));
}
}
}//package dkicker_meniji
Section 27
//myCustomEvent (dkicker_meniji.myCustomEvent)
package dkicker_meniji {
import flash.events.*;
public class myCustomEvent extends Event {
public var myMessage:int;
public function myCustomEvent(_arg1:int){
super("myCustomEvent");
myMessage = _arg1;
}
}
}//package dkicker_meniji
Section 28
//prihvatStartnih (dkicker_meniji.prihvatStartnih)
package dkicker_meniji {
import flash.events.*;
import flash.display.*;
import com.utils.*;
import flash.text.*;
import flash.net.*;
import flash.errors.*;
public class prihvatStartnih extends MovieClip {
var korektna_adresa:String;// = "http://www.flashfooty.com"
var _sekuritatea:String;
var _username:String;
var confirm_flag:int;// = 1
var _time:int;
var serverTime:int;
var _securResult:int;
var _igra:GameMain;
var _tajnaRec:String;// = "milooteen2010"
var privatnostFF:int;
var serverTimeHash:String;
public function prihvatStartnih(_arg1:DisplayObject){
var _local2:String;
_tajnaRec = "milooteen2010";
confirm_flag = 1;
korektna_adresa = "http://www.flashfooty.com";
super();
_username = "unknown_mnbvcxz";
_local2 = _arg1.loaderInfo.url.substr(0, 25);
if (_local2 != korektna_adresa){
_igra = new GameMain(0, _username);
addChild(_igra);
} else {
ulaznaBezbednost();
};
}
function onSecurityError(_arg1:SecurityErrorEvent){
}
function ulaznaBezbednost():void{
var request_1:URLRequest;
var myLoader:URLLoader;
var nowFlash:Date;
var nowHour:int;
var nowMinutes:int;
var FlashTimeCode:*;
var variables:URLVariables;
var enc:sha1Encrypt;
var sekuritatea:String;
var onDataLoad:Function;
onDataLoad = function (_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:Date;
var _local5:int;
var _local6:int;
var _local7:*;
var _local8:sha1Encrypt;
var _local9:String;
_local2 = _arg1.target.data.al_potvrda;
_time = _arg1.target.data.al_time;
_username = _arg1.target.data.al_player;
_sekuritatea = _arg1.target.data.al_sekuritatea;
_local3 = 0;
_local4 = new Date();
_local5 = _local4.getHours();
_local6 = _local4.getMinutes();
_local7 = ((_local5 * 60) + _local6);
if ((((((_time == _local7)) || (((_local7 - _time) == -1)))) || (((_local7 - _time) == 1439)))){
_local3 = 1;
};
_local8 = new sha1Encrypt(true);
_local9 = sha1Encrypt.encrypt(((_time + _username) + _tajnaRec));
if ((((_local9 == _sekuritatea)) && ((_local3 == 1)))){
if (_username != "unknown_mnbvcxz"){
_igra = new GameMain(1, _username);
} else {
_igra = new GameMain(2, _username);
};
addChild(_igra);
//unresolved jump
};
};
request_1 = new URLRequest("include_dkicker/startingDataDKICKER.php");
request_1.method = URLRequestMethod.POST;
myLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
nowFlash = new Date();
nowHour = nowFlash.getHours();
nowMinutes = nowFlash.getMinutes();
FlashTimeCode = ((nowHour * 60) + nowMinutes);
variables = new URLVariables();
variables.nFlashTimeCode = FlashTimeCode;
enc = new sha1Encrypt(true);
sekuritatea = sha1Encrypt.encrypt((FlashTimeCode + _tajnaRec));
variables.nFlashTimeCodeHash = sekuritatea;
request_1.data = variables;
myLoader.load(request_1);
myLoader.addEventListener(Event.COMPLETE, onDataLoad);
myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus);
}
function onHTTPStatus(_arg1:HTTPStatusEvent){
return ("Pogresni ulazni podaci");
}
function onIOError(_arg1:IOErrorEvent){
}
}
}//package dkicker_meniji
Section 29
//takmicenje (dkicker_meniji.takmicenje)
package dkicker_meniji {
import flash.events.*;
import flash.display.*;
import dkicker_akcija.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
public class takmicenje extends MovieClip {
var game_state:int;
var poluindex_narednog_protivnika:int;
var igracev_winner:int;
var takm_brojevi:Array;
var gol1:Array;
var poruke_posle:Array;
var index_pobednika:int;
var runda:int;
var _pozadina_sure:pozadina_sure;
var poruke_poraza:Array;
var broj_timova:int;
var privatno:int;
var primljeni_golovi_u_takmicenju:Array;
var index_lige:int;
var i:int;
var timovi_aktivnost:Array;
var _userName:String;
var prihvacene_lopte:int;
var _button:myButtonClass;
var poeni_za_listu:int;
var _pozadina_overview:pozadina_overview;
var poruke_pobede:Array;
var index_narednog_protivnika:int;
var naziv_runde:Array;
var _utakmica:bazni;
var tip_igre:String;
var igracev_semifin:int;
var _dressColor:Array;
var upis:String;
var lige:Array;
var dugme_timovi:myButton_takmicenje_Class;
var ukupno_dato_golova:int;
var pocetni_broj_pokusaja:int;
var igracev_fin:int;
var razlog:int;
var poruke_pre:Array;
var timovi_napad:Array;
var timovi_odbrana:Array;
var dati_golovi_u_takmicenju:Array;
var podloga:glavna_podloga;
var maksBrojSuteva:int;
var shorts:Array;
var tip_dresa:Array;
var prethodni_rez:Array;
var komp_golovi:int;
var pola:int;
var igracev_quarterfin:int;
var potrebno_golova:int;
var timovi:Array;
var protivnik_u_takmicenju:Array;
var dugme_takmicenje:myButton_takmicenje_Class;
var igr_golovi:int;
var moj_tim_index:int;
var dres1:Array;
var dres2:Array;
static var interno_stanje_takmicenja:int;
public function takmicenje(_arg1:int, _arg2:int, _arg3:String){
poruke_pre = ["Pairs of 1/16 finals", "Pairs of 1/8 finals", "Pairs of 1/4 finals", "Pairs of 1/2 finals", "Final match"];
poruke_posle = ["Results of 1/16 finals", "Results of 1/8 finals", "Results of 1/4 finals", "Results of 1/2 finals", "Final match result"];
poruke_pobede = ["Good work, now let's go to the next round.", "Well done! You have qualified for 1/4 finals.", "Great! You are in the semifinals.", "Brilliant! The final match awaits for you.", "You are the winner! Congratulations!"];
poruke_poraza = ["You're out of the cup. Sorry.", "Defeat is only a temporary setback. Try again.", "You played well, but that wasn't enough...", "What a pity. You were so close...", "You were excellent, but not lucky enough..."];
naziv_runde = ["1/16 Fin", "1/8 Fin", "1/4 Fin", "1/2 Fin", "Final match"];
lige = ["World cup", "English cup", "Spanish cup", "German cup", "French cup", "Italian cup", "European cup", "Brazilian cup", "Argentinean cup", "Libertadores"];
_dressColor = [4294967295, 4294901760, 4278190335, 4294967040, 4288269567, 4294927872, 4294941132, 4288230195, 4281584691, 4284874956, 4278203238, 4278190080, 4288217088, 4278205440, 4284927231, 4291611852, 4294954137];
super();
privatno = _arg2;
_userName = _arg3;
game_state = _arg1;
interno_stanje_takmicenja = 1;
provera_statusa_tekuceg_takmicenja();
}
private function generisanje_nizova_timova():void{
if (index_lige == 0){
timovi = ["Germany", "Chile", "Denmark", "Uruguay", "England", "Paraguay", "Honduras", "Sweden", "Argentina", "Cote d'Ivoire", "Serbia", "Netherlands", "Mexico", "Iran", "Korea DDR", "Portugal", "Italy", "Ghana", "USA", "Greece", "Brazil", "Slovenia", "Australia", "Japan", "Spain", "Slovakia", "New Zealand", "Algeria", "France", "Korea Republic", "Switzerland", "Cameroon"];
dres1 = [0, 1, 1, 14, 0, 1, 0, 3, 0, 8, 1, 5, 8, 0, 1, 1, 2, 0, 0, 2, 3, 0, 8, 2, 1, 0, 0, 0, 2, 1, 1, 8];
dres2 = [0, 1, 1, 14, 0, 0, 0, 3, 4, 8, 1, 5, 8, 0, 1, 1, 2, 0, 0, 2, 3, 0, 8, 2, 1, 0, 0, 0, 2, 1, 1, 8];
shorts = [11, 2, 0, 11, 10, 2, 0, 2, 11, 8, 2, 5, 0, 0, 1, 8, 0, 11, 0, 2, 2, 8, 5, 2, 10, 0, 0, 0, 0, 2, 1, 1];
tip_dresa = [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1];
timovi_napad = [3, 1, 2, 2, 3, 2, 1, 2, 3, 1, 2, 3, 2, 1, 1, 2, 3, 1, 1, 2, 3, 2, 1, 1, 2, 2, 1, 1, 3, 2, 2, 1];
timovi_odbrana = [4, 2, 3, 3, 4, 3, 2, 3, 4, 2, 3, 4, 3, 2, 2, 3, 4, 3, 3, 3, 4, 3, 3, 3, 4, 3, 2, 2, 4, 2, 3, 2];
};
if (index_lige == 1){
timovi = ["Manchester Utd", "Blackburn R", "Leicester City", "Norwich City", "Arsenal", "Everton", "Charlton Athletic", "Fulham", "Liverpool", "Southampton", "Queen's Park R", "Crystal Palace", "Chelsea", "West Ham", "Derby County", "Birmingham C", "Newcastle Utd", "Middlesbrough", "Bolton W", "Sheffield United", "Aston Villa", "Coventry City", "Nottingham F", "Portsmouth", "Leeds United", "Sheffield W", "Ipswich Town", "Stoke City", "Tottenham ", "Manchester City", "Sunderland", "Wolverhampton"];
dres1 = [1, 2, 2, 3, 0, 2, 1, 0, 1, 0, 0, 2, 2, 4, 0, 2, 11, 1, 0, 0, 4, 0, 1, 2, 0, 0, 2, 1, 0, 4, 0, 5];
dres2 = [1, 0, 2, 3, 1, 2, 1, 0, 1, 1, 2, 1, 2, 7, 0, 2, 0, 1, 0, 1, 7, 4, 1, 2, 0, 2, 2, 0, 0, 4, 1, 5];
shorts = [0, 0, 0, 8, 0, 0, 0, 11, 1, 11, 0, 2, 2, 0, 11, 0, 11, 1, 0, 11, 0, 0, 0, 0, 0, 11, 0, 0, 10, 0, 11, 11];
tip_dresa = [1, 4, 1, 1, 6, 1, 1, 1, 1, 1, 2, 1, 1, 6, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
timovi_napad = [3, 2, 1, 1, 3, 2, 2, 2, 3, 1, 2, 1, 3, 1, 2, 2, 3, 2, 1, 2, 3, 2, 1, 2, 2, 2, 1, 1, 3, 2, 2, 1];
timovi_odbrana = [4, 2, 1, 1, 4, 2, 2, 2, 4, 1, 2, 2, 4, 1, 1, 2, 3, 1, 1, 2, 3, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1];
};
if (index_lige == 2){
timovi = ["Real Madrid", "Real Zaragoza", "UD Las Palmas", "Cadiz CF", "Sevilla FC", "Celta de Vigo", "Osasuna", "Rayo Vallecano", "Athletic Bilbao", "Real Betis", "Malaga", "Alaves", "Valencia CF", "Real Oviedo", "Hercules", "Villarreal CF", "RCD Espanyol", "Sporting Gijon", "Elche", "Salamanca", "Atletico Madrid", "Real Valladolid", "Mallorca", "Logrones", "Real Sociedad", "Racing Sant.", "Murcia", "Albacete", "FC Barcelona", "Dep. La Coruna", "Tenerife", "Sabadell FC"];
dres1 = [0, 0, 3, 3, 0, 14, 1, 0, 0, 0, 0, 2, 0, 10, 0, 3, 0, 0, 0, 0, 0, 0, 1, 0, 0, 8, 1, 0, 7, 0, 0, 2];
dres2 = [0, 0, 3, 3, 0, 14, 1, 1, 1, 8, 2, 0, 0, 10, 2, 3, 2, 1, 8, 0, 1, 9, 1, 1, 2, 8, 1, 0, 10, 2, 0, 0];
shorts = [0, 2, 2, 2, 0, 0, 10, 11, 11, 0, 2, 2, 11, 0, 11, 2, 2, 0, 0, 11, 2, 0, 11, 11, 0, 11, 0, 0, 10, 2, 2, 2];
tip_dresa = [1, 1, 1, 1, 1, 1, 2, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1];
timovi_napad = [3, 2, 1, 1, 3, 2, 2, 1, 3, 2, 2, 2, 3, 1, 1, 3, 2, 2, 1, 2, 3, 2, 1, 1, 2, 2, 1, 2, 3, 2, 1, 1];
timovi_odbrana = [4, 2, 1, 1, 3, 2, 2, 1, 3, 2, 2, 2, 4, 1, 1, 2, 2, 1, 1, 2, 4, 2, 1, 1, 2, 2, 1, 1, 4, 3, 2, 1];
};
if (index_lige == 3){
timovi = ["Bayern Munchen", "Eintracht Fr.", "Hansa R", "St. Pauli", "FC Schalke 04", "Koln", "Freiburg", "Fortuna D", "Werder Bremen", "Bayer 04 Lvk", "Wolfsburg", "Uerdingen 05", "Stuttgart", "Bochum", "Waldhof M", "Wattenscheid 09", "Borussia Dortm", "Hertha Berlin", "Braunschweig", "Offenbacher FC", "Kaiserslautern", "Duisburg", "Hannover 96", "Saarbrucken", "Borussia M", "Nurnberg", "Arminia B", "Dynamo Dr.", "Hamburger SV", "Karlsruher SC", "Munchen 1860", "Rot-Weiss Essen"];
dres1 = [0, 1, 0, 7, 2, 0, 1, 1, 0, 1, 8, 2, 0, 2, 2, 0, 3, 0, 3, 0, 1, 2, 1, 2, 8, 1, 2, 11, 0, 10, 2, 1];
dres2 = [1, 11, 2, 7, 2, 0, 1, 1, 8, 11, 0, 2, 0, 2, 2, 0, 11, 10, 3, 0, 1, 0, 1, 2, 11, 1, 2, 3, 0, 10, 11, 1];
shorts = [1, 11, 2, 7, 0, 1, 11, 0, 0, 1, 0, 1, 0, 0, 0, 0, 11, 10, 2, 0, 1, 0, 11, 10, 11, 11, 11, 11, 1, 10, 11, 0];
tip_dresa = [2, 4, 6, 1, 1, 1, 2, 1, 1, 1, 4, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1];
timovi_napad = [3, 2, 2, 1, 3, 2, 2, 1, 3, 3, 2, 1, 3, 1, 1, 1, 3, 2, 1, 2, 2, 2, 1, 1, 2, 2, 1, 1, 3, 2, 2, 1];
timovi_odbrana = [4, 2, 2, 1, 4, 2, 2, 1, 3, 4, 3, 1, 4, 1, 1, 2, 3, 3, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 1, 2, 1];
};
if (index_lige == 4){
timovi = ["Lyon", "Lille", "Rennes", "Tolouse", "Bordeaux", "Lens", "Troyes", "Metz", "Auxerre", "Grenoble", "Valenciennes", "Ajaccio", "Marseille", "Strasbourg", "Le Mans", "Le Havre", "PSG", "Chateauroux", "Sedan", "Lorient", "Nantes", "Nice", "Nancy", "Cannes", "St. Etienne", "Sochaux", "Bastia", "Guingamp", "Monaco", "Caen", "Montpellier", "Reims"];
dres1 = [0, 1, 1, 9, 10, 1, 2, 7, 0, 2, 1, 0, 0, 0, 1, 4, 10, 1, 8, 5, 3, 1, 0, 1, 8, 5, 2, 1, 0, 1, 2, 0];
dres2 = [0, 1, 1, 0, 10, 3, 2, 7, 0, 2, 1, 0, 0, 0, 1, 4, 12, 2, 8, 5, 3, 11, 0, 1, 0, 5, 2, 11, 1, 2, 2, 0];
shorts = [0, 10, 11, 0, 10, 11, 2, 7, 0, 0, 1, 0, 0, 2, 1, 2, 10, 10, 1, 11, 8, 11, 0, 0, 0, 10, 2, 11, 1, 1, 1, 0];
tip_dresa = [1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 1, 1, 1];
timovi_napad = [3, 2, 1, 1, 3, 2, 1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 1, 1, 2, 2, 2, 1, 2, 3, 2, 2, 1, 3, 2, 2, 1];
timovi_odbrana = [4, 2, 1, 1, 3, 2, 1, 2, 3, 1, 2, 2, 3, 2, 1, 2, 3, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 3, 2, 2, 1];
};
if (index_lige == 5){
timovi = ["Juventus", "Napoli", "Vicenza", "Messina", "Inter", "Sampdoria", "Bari", "Cesena", "Milan", "Atalanta", "Verona", "Empoli", "Roma", "Genoa", "Brescia", "Cremonese", "Fiorentina", "Udinese", "Palermo", "Piacenza", "Torino", "Chievo Verona", "Treviso", "Siena", "Bologna", "Cagliari", "Livorno", "Reggina", "Lazio", "Parma", "Ascoli", "Lecce"];
dres1 = [0, 4, 0, 3, 2, 2, 0, 0, 1, 2, 3, 2, 12, 1, 2, 12, 9, 11, 6, 1, 7, 2, 2, 11, 1, 1, 12, 7, 14, 3, 0, 3];
dres2 = [11, 4, 1, 1, 11, 0, 0, 0, 11, 11, 3, 2, 12, 11, 2, 1, 9, 0, 6, 1, 7, 3, 2, 0, 2, 10, 12, 7, 14, 10, 11, 1];
shorts = [0, 0, 0, 1, 11, 0, 1, 11, 11, 11, 2, 2, 0, 11, 0, 1, 0, 11, 11, 0, 0, 2, 2, 11, 0, 10, 11, 0, 0, 10, 0, 10];
tip_dresa = [1, 1, 1, 1, 1, 7, 2, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 4, 4, 1, 2, 1, 1, 1, 1];
timovi_napad = [3, 2, 1, 1, 3, 2, 2, 1, 3, 2, 2, 1, 3, 2, 1, 2, 3, 2, 2, 2, 3, 2, 1, 1, 2, 2, 1, 1, 3, 2, 2, 1];
timovi_odbrana = [4, 2, 1, 1, 4, 2, 2, 2, 4, 1, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1, 1, 3, 2, 1, 2];
};
if (index_lige == 6){
timovi = ["Real Madrid", "Lyon", "Rapid Wienna", "Red Star Bgd", "Juventus", "Anderlecht", "Spartak M", "Liverpool", "Milan", "Porto", "Legia Warsaw", "Panathinaikos", "Hamburger", "Ajax", "Steaua", "CSKA Sofia", "Chelsea", "Bayern M", "Dinamo Kiev", "Olympiakos", "PSV", "Valencia", "Rosenborg", "Internazionale", "FC Barcelona", "Marseille", "Basel", "Celtic", "Manchester Utd", "Benfica", "Galatasaray", "Sparta Praha"];
dres1 = [0, 7, 0, 0, 0, 9, 0, 1, 1, 0, 0, 8, 0, 0, 2, 1, 2, 1, 0, 0, 0, 0, 0, 2, 7, 14, 1, 0, 1, 1, 3, 7];
dres2 = [0, 10, 8, 1, 11, 0, 1, 1, 11, 2, 0, 8, 0, 1, 1, 1, 2, 2, 0, 1, 1, 0, 0, 11, 10, 0, 2, 8, 1, 1, 3, 7];
shorts = [0, 10, 0, 0, 11, 0, 0, 1, 0, 2, 11, 8, 1, 0, 1, 1, 2, 2, 0, 1, 11, 11, 11, 11, 10, 0, 2, 0, 0, 0, 1, 0];
tip_dresa = [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1];
timovi_napad = [3, 3, 1, 1, 3, 1, 2, 3, 3, 2, 1, 1, 2, 2, 1, 1, 3, 3, 2, 1, 2, 3, 1, 3, 3, 2, 2, 2, 3, 2, 2, 1];
timovi_odbrana = [4, 3, 1, 2, 4, 2, 2, 4, 4, 3, 1, 2, 2, 2, 1, 1, 3, 4, 2, 1, 2, 3, 2, 4, 4, 3, 2, 1, 4, 2, 1, 2];
};
if (index_lige == 7){
timovi = ["Sao Paulo", "Palmeiras", "Corinthians", "Santos", "Flamengo", "Vasco da Gama", "Fluminense", "Botafogo", "Cruzeiro", "Atlético-MG", "Internacional", "Grêmio", "Sport", "Nautico", "Figueirense", "Juventude", "Goias", "Parana", "América-RN", "Atlético-PR", "Bahia", "Vitória", "Paysandu", "Remo", "Fortaleza", "Ceara", "Santa Cruz", "Coritiba", "Avai", "Criciúma", "Ponte Preta", "Guarani"];
dres1 = [0, 8, 0, 0, 1, 0, 1, 11, 2, 11, 1, 4, 11, 1, 11, 8, 8, 1, 1, 1, 0, 1, 4, 10, 1, 11, 0, 13, 2, 3, 11, 8];
dres2 = [0, 8, 0, 0, 11, 11, 8, 0, 2, 0, 1, 11, 1, 0, 0, 0, 8, 2, 1, 11, 0, 11, 0, 10, 2, 0, 0, 0, 0, 3, 0, 8];
shorts = [0, 0, 11, 0, 0, 11, 0, 11, 0, 11, 0, 11, 11, 1, 11, 0, 0, 0, 0, 11, 2, 11, 4, 0, 2, 11, 11, 13, 2, 11, 0, 0];
tip_dresa = [2, 1, 1, 1, 2, 5, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1];
timovi_napad = [3, 3, 3, 3, 3, 3, 3, 2, 3, 2, 1, 1, 2, 2, 1, 1, 3, 3, 2, 1, 2, 3, 1, 3, 3, 2, 2, 2, 3, 2, 2, 1];
timovi_odbrana = [3, 3, 4, 2, 4, 2, 2, 2, 3, 2, 2, 2, 2, 2, 1, 1, 3, 3, 2, 1, 2, 3, 2, 3, 3, 2, 1, 2, 3, 2, 1, 2];
};
if (index_lige == 8){
timovi = ["Independiente", "Boca Juniors", "Estudiantes LP", "River Plate", "Vélez Sarsfield", "Argentinos Jun.", "Racing Avellaneda ", "San Lorenzo", "Gimnasia LP", "Lanús", "Rosario Central", "Colón Santa Fe", "Huracan", "Newell's old b.", "Ferrocaril Oeste", "Quilmes", "Chacarita Jun.", "Atlético Banfield", "Unión Santa Fe", "Racing (CBA)", "Talleres", "Tigre", "Arsenal Sarandi", "Platense", "Olimpo", "San Martin SJ", "Gimnasia Jujuy", "Depor. Español", "Almirante Brown", "Belgrano (CBA)", "Godoy Cruz", "Ind. Rivadavia"];
dres1 = [1, 10, 0, 0, 0, 1, 14, 1, 0, 7, 3, 1, 0, 1, 8, 0, 1, 0, 0, 0, 0, 2, 14, 0, 3, 8, 14, 1, 3, 14, 10, 0];
dres2 = [1, 3, 1, 1, 0, 1, 0, 2, 10, 7, 2, 11, 0, 11, 8, 0, 11, 8, 1, 0, 2, 1, 1, 0, 11, 11, 2, 1, 11, 14, 0, 0];
shorts = [1, 10, 11, 0, 0, 1, 0, 0, 10, 0, 2, 0, 0, 11, 8, 0, 11, 0, 0, 0, 2, 2, 14, 0, 11, 0, 10, 10, 11, 0, 10, 0];
tip_dresa = [1, 7, 1, 5, 1, 1, 1, 1, 7, 1, 1, 4, 1, 4, 1, 1, 1, 1, 1, 1, 1, 7, 4, 1, 1, 1, 7, 1, 1, 1, 1, 1];
timovi_napad = [3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 2, 2, 2, 1, 1, 1, 1, 1];
timovi_odbrana = [4, 4, 3, 4, 3, 3, 2, 3, 3, 2, 2, 2, 2, 2, 1, 1, 3, 3, 2, 1, 2, 3, 2, 3, 3, 2, 1, 2, 3, 2, 1, 2];
};
if (index_lige == 9){
timovi = ["Independiente", "Boca Juniors", "Peñarol", "Sao Paulo", "Olimpia Asunción", "Nacional", "Cruz Azul", "River Plate", "Grêmio", "Cruzeiro", "The Strongest L.Paz", "Palmeiras", "Internacional", "Colo-Colo", "Atlético Nacional", "Los Millonarios", "Vasco da Gama", "Vélez Sarsfield", "Caracas F.C.", "Flamengo", "Racing Club", "Cerro Porteño", "América de Cali", "Bolivar", "Univers. Católica", "Universitario", "Barcelona SC", "Alianza Lima", "San Lorenzo", "El Nacional Quito", "Club América ", "Chivas"];
dres1 = [1, 10, 3, 0, 0, 0, 14, 0, 14, 2, 3, 8, 1, 0, 0, 2, 0, 0, 1, 1, 14, 1, 1, 14, 0, 16, 3, 10, 1, 1, 3, 0];
dres2 = [1, 3, 11, 1, 11, 0, 14, 1, 11, 2, 11, 8, 1, 0, 8, 0, 11, 0, 1, 11, 0, 2, 1, 14, 0, 16, 3, 0, 2, 1, 3, 1];
shorts = [1, 10, 11, 0, 0, 2, 0, 0, 11, 0, 11, 0, 0, 11, 0, 0, 11, 0, 11, 11, 0, 0, 1, 14, 2, 16, 3, 10, 0, 1, 2, 10];
tip_dresa = [1, 7, 1, 7, 7, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 2, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1];
timovi_napad = [3, 3, 3, 3, 3, 3, 2, 3, 3, 2, 2, 3, 2, 2, 2, 2, 3, 3, 2, 2, 2, 3, 2, 3, 3, 2, 2, 2, 3, 2, 2, 2];
timovi_odbrana = [4, 4, 3, 3, 3, 3, 2, 4, 3, 2, 2, 4, 2, 2, 2, 2, 3, 3, 2, 2, 2, 4, 2, 3, 4, 2, 2, 2, 3, 2, 2, 2];
};
}
private function cancel_menu(_arg1:MouseEvent):void{
if (podloga.getChildByName("pozadina_s")){
podloga.removeChild(_pozadina_sure);
};
if (podloga.getChildByName("pozadina_o")){
podloga.removeChild(_pozadina_overview);
};
}
private function next_or_cancel(_arg1:myCustomEvent):void{
var _local2:int;
var _local3:int;
var _local4:prethodnik;
switch (_arg1.myMessage){
case 6:
_pozadina_sure = new pozadina_sure();
_pozadina_sure.x = 300;
_pozadina_sure.y = 200;
_pozadina_sure._gasidugme.addEventListener(MouseEvent.MOUSE_DOWN, cancel_menu, false, 0, true);
_pozadina_sure._menu_bezuslovan.addEventListener(MouseEvent.MOUSE_DOWN, back_to_menu, false, 0, true);
_pozadina_sure.name = "pozadina_s";
podloga.addChild(_pozadina_sure);
break;
case 7:
interno_stanje_takmicenja++;
if (interno_stanje_takmicenja == 9){
runda++;
broj_timova = (broj_timova * 0.5);
if (runda < 5){
interno_stanje_takmicenja = 4;
} else {
interno_stanje_takmicenja = 1;
};
};
provera_statusa_tekuceg_takmicenja();
break;
case 12:
_pozadina_overview = new pozadina_overview();
_pozadina_overview.x = 300;
_pozadina_overview.y = 200;
_pozadina_overview._gasidugme.addEventListener(MouseEvent.MOUSE_DOWN, cancel_menu, false, 0, true);
_pozadina_overview.name = "pozadina_o";
_local2 = 0;
_local3 = 0;
while (_local3 < protivnik_u_takmicenju.length) {
_local4 = new prethodnik();
_local4.x = 0;
_local4.y = ((-28 * _local3) + 45);
_local4.kolo.text = ((((((naziv_runde[_local3] + ": ") + protivnik_u_takmicenju[_local3]) + " ") + dati_golovi_u_takmicenju[_local3]) + ":") + primljeni_golovi_u_takmicenju[_local3]);
_local2 = (_local2 + dati_golovi_u_takmicenju[_local3]);
_pozadina_overview.addChild(_local4);
_local3++;
};
_pozadina_overview.broj_golova.text = ("Total goals scored: " + _local2);
podloga.addChild(_pozadina_overview);
break;
};
}
function training_session(_arg1:myCustomEvent):void{
interno_stanje_takmicenja = 14;
provera_statusa_tekuceg_takmicenja();
}
function start_over(_arg1:myCustomEvent):void{
interno_stanje_takmicenja = 1;
provera_statusa_tekuceg_takmicenja();
}
private function provera_statusa_tekuceg_takmicenja():void{
var _local1:go_training_tekst;
var _local2:int;
var _local3:*;
var _local4:*;
var _local5:Array;
var _local6:String;
var _local7:String;
var _local8:final_result_natpis;
var _local9:String;
var _local10:String;
var _local11:TextFormat;
var _local12:String;
var _local13:String;
var _local14:objasnjenje_posle_treninga;
var _local15:upisPoena;
var _local16:vrtilopta;
if (podloga){
removeChild(podloga);
};
podloga = new glavna_podloga();
addChild(podloga);
switch (interno_stanje_takmicenja){
case 1:
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = "Pick the competition:");
upis = "neupisano";
index_lige = 0;
poeni_za_listu = 0;
ukupno_dato_golova = 0;
broj_timova = 32;
runda = 0;
igracev_quarterfin = 0;
igracev_semifin = 0;
igracev_fin = 0;
igracev_winner = 0;
protivnik_u_takmicenju = new Array();
dati_golovi_u_takmicenju = new Array();
primljeni_golovi_u_takmicenju = new Array();
prethodni_rez = new Array();
timovi_aktivnost = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
i = 0;
while (i < 10) {
dugme_takmicenje = new myButton_takmicenje_Class(i, lige[i], "biranje_takmicenja");
dugme_takmicenje.x = (200 + (Math.floor((i / 5)) * 190));
dugme_takmicenje.y = ((95 + (45 * i)) - (225 * Math.floor((i / 5))));
dugme_takmicenje.addEventListener("myCustomEvent", odabrano_takmicenje, false, 0, true);
podloga.addChild(dugme_takmicenje);
i++;
};
_local1 = new go_training_tekst();
_local1.x = 300;
_local1.y = 330;
_local1.practice_tekst.text = (_local1.practice_tekst_senka.text = "OR YOU CAN TAKE SOME PRACTICE \n(RECOMMENDED FOR NEW PLAYERS)");
podloga.addChild(_local1);
_button = new myButtonClass(14);
_button.x = 300;
_button.y = 370;
_button.addEventListener("myCustomEvent", training_session, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 150, 0, 0, 0);
podloga.addChild(_button);
break;
case 2:
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = "Choose your team:");
i = 0;
while (i < 32) {
dugme_timovi = new myButton_takmicenje_Class(i, timovi[i], "biranje_tima");
dugme_timovi.x = (210 + (Math.floor((i / 16)) * 165));
dugme_timovi.y = ((70 + (21 * i)) - (336 * Math.floor((i / 16))));
dugme_timovi.addEventListener("myCustomEvent", odabran_tim, false, 0, true);
podloga.addChild(dugme_timovi);
i++;
};
break;
case 3:
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = ("You have chosen " + timovi[moj_tim_index]));
prikaz_dresa(moj_tim_index, "bez_korigovanja");
postavka_dva_dugmeta("uz_ivice");
break;
case 4:
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = poruke_pre[runda]);
zreb();
postavka_dva_dugmeta("uz_ivice");
break;
case 5:
poluindex_narednog_protivnika = 999;
i = 0;
while (i < broj_timova) {
if (takm_brojevi[i] == moj_tim_index){
poluindex_narednog_protivnika = i;
};
i++;
};
if (poluindex_narednog_protivnika == 999){
interno_stanje_takmicenja = 8;
provera_statusa_tekuceg_takmicenja();
} else {
najava_sledeceg();
};
break;
case 6:
_local2 = (timovi_odbrana[index_narednog_protivnika] + 4);
tip_igre = "flashfooty cup";
_local3 = _dressColor[dres1[moj_tim_index]];
_local4 = _dressColor[dres2[moj_tim_index]];
_local5 = [1, 2, 0, 3, 4, 5, 6, 5];
_local6 = _local5[(tip_dresa[index_narednog_protivnika] - 1)];
_local7 = _local5[(tip_dresa[moj_tim_index] - 1)];
if (dres1[moj_tim_index] < 10){
_local7 = (_local7 + "0");
};
_local7 = (_local7 + dres1[moj_tim_index]);
if (dres2[moj_tim_index] < 10){
_local7 = (_local7 + "0");
};
_local7 = (_local7 + dres2[moj_tim_index]);
if (shorts[moj_tim_index] < 10){
_local7 = (_local7 + "0");
};
_local7 = (_local7 + shorts[moj_tim_index]);
if ((((dres1[index_narednog_protivnika] == dres1[moj_tim_index])) && ((dres2[index_narednog_protivnika] == dres2[moj_tim_index])))){
_local6 = (_local6 + "0015");
} else {
if (dres1[index_narednog_protivnika] < 10){
_local6 = (_local6 + "0");
};
_local6 = (_local6 + dres1[index_narednog_protivnika]);
if (dres2[index_narednog_protivnika] < 10){
_local6 = (_local6 + "0");
};
_local6 = (_local6 + dres2[index_narednog_protivnika]);
};
if (shorts[index_narednog_protivnika] < 10){
_local6 = (_local6 + "0");
};
_local6 = (_local6 + shorts[index_narednog_protivnika]);
maksBrojSuteva = pocetni_broj_pokusaja;
_utakmica = new bazni(_local2, tip_igre, _local7, _local6, maksBrojSuteva, potrebno_golova, timovi[moj_tim_index], timovi[index_narednog_protivnika], runda, mainMenu.MuzickaLogika);
_utakmica.addEventListener("myCustomEvent_kraj_meca", kraj_meca, false, 0, true);
addChild(_utakmica);
break;
case 7:
_utakmica.removeEventListener("myCustomEvent_kraj_meca", kraj_meca);
removeChild(_utakmica);
_local8 = new final_result_natpis();
_local8.x = 300;
_local8.y = 45;
podloga.addChild(_local8);
podloga.poruka_osnov.y = (podloga.poruka_osnov.y + 75);
podloga.poruka_uslov.y = (podloga.poruka_uslov.y + 60);
if (igr_golovi >= potrebno_golova){
komp_golovi = (potrebno_golova - 1);
_local9 = "pobeda";
} else {
_local9 = "poraz";
komp_golovi = potrebno_golova;
};
poeni_za_listu = 0;
protivnik_u_takmicenju[runda] = timovi[index_narednog_protivnika];
dati_golovi_u_takmicenju[runda] = igr_golovi;
primljeni_golovi_u_takmicenju[runda] = komp_golovi;
i = 0;
while (i <= runda) {
prethodni_rez[i] = ((((((naziv_runde[i] + ": ") + protivnik_u_takmicenju[i]) + " ") + dati_golovi_u_takmicenju[i]) + ":") + primljeni_golovi_u_takmicenju[i]);
i++;
};
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = ((("You won with " + igr_golovi) + ":") + komp_golovi));
podloga.poruka_uslov.poruka_uopstena.text = (podloga.poruka_uslov.poruka_senka.text = poruke_pobede[runda]);
postavka_dva_dugmeta("jedno_ispod_drugog");
ukupno_dato_golova = 0;
i = 0;
while (i < dati_golovi_u_takmicenju.length) {
ukupno_dato_golova = (ukupno_dato_golova + dati_golovi_u_takmicenju[i]);
i++;
};
if ((((runda == 4)) && ((_local9 == "pobeda")))){
igracev_winner = 1;
poeni_za_listu = (ukupno_dato_golova * 2);
_local10 = "+100% bonus points for the victory).";
};
if (_local9 == "poraz"){
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = ((("You lost with " + igr_golovi) + ":") + komp_golovi));
podloga.poruka_uslov.poruka_uopstena.text = (podloga.poruka_uslov.poruka_senka.text = poruke_poraza[runda]);
if (runda == 1){
poeni_za_listu = Math.round((ukupno_dato_golova * 1));
_local10 = ").";
};
if (runda == 2){
igracev_quarterfin = 1;
poeni_za_listu = Math.round((ukupno_dato_golova * 1));
_local10 = ").";
};
if (runda == 3){
igracev_semifin = 1;
poeni_za_listu = Math.round((ukupno_dato_golova * 1.2));
_local10 = "+20% bonus points for qualification).";
};
if (runda == 4){
igracev_fin = 1;
poeni_za_listu = Math.round((ukupno_dato_golova * 1.5));
_local10 = "+50% bonus points for the second place).";
};
};
_local11 = new TextFormat();
_local11.font = "_sans";
_local11.bold = true;
_local11.size = 20;
_local11.color = 4294954188;
podloga.poruka_uslov.poruka_uopstena.setTextFormat(_local11);
_local11.color = 4278190080;
podloga.poruka_uslov.poruka_senka.setTextFormat(_local11);
_local12 = " points";
if (poeni_za_listu == 1){
_local12 = " point";
};
if (poeni_za_listu > 0){
podloga.getChildByName("next").y = (podloga.getChildByName("next").y + 35);
podloga.getChildByName("meni").y = (podloga.getChildByName("meni").y + 60);
podloga.getChildByName("overview").y = (podloga.getChildByName("overview").y - 30);
if (upis != "neupisano"){
dispatchEvent(new myCustomEvent(7));
};
if ((((((privatno == 1)) || ((privatno == 2)))) && ((upis == "neupisano")))){
_button = new myButtonClass(10);
_button.x = 300;
_button.y = 260;
_button.scaleX = (_button.scaleY = 0.8);
_button.addEventListener("myCustomEvent", submit_points, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 150, 0, 0, 0);
podloga.addChild(_button);
if (privatno == 1){
podloga.poruka_poena.text = ((((((("You have won " + poeni_za_listu) + _local12) + " for your team (you scored ") + ukupno_dato_golova) + " goals") + _local10) + " Click 'Submit' to record them.");
};
if (privatno == 2){
podloga.poruka_poena.text = (((((("You have won " + poeni_za_listu) + _local12) + " for your team (you scored ") + ukupno_dato_golova) + " goals") + _local10);
podloga.poruka_poena.appendText(" Log in to the FlashFooty account to get your name on the top scorers list, too.");
};
podloga.poruka_poena_senka.text = podloga.poruka_poena.text;
};
if (privatno == 0){
_button = new myButtonClass(11);
_button.x = 300;
_button.y = 260;
_button.scaleX = (_button.scaleY = 0.8);
_button.addEventListener("myCustomEvent", visit_flashfooty, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 150, 0, 0, 0);
podloga.addChild(_button);
podloga.poruka_poena.text = ((("You have won " + poeni_za_listu) + _local12) + ", but points can be submitted only on www.flashfooty.com.");
podloga.poruka_poena_senka.text = podloga.poruka_poena.text;
};
if (privatno == 2){
_local11.size = 16;
};
podloga.poruka_poena_senka.setTextFormat(_local11);
_local11.color = 4294953984;
podloga.poruka_poena.setTextFormat(_local11);
};
break;
case 8:
ostali_rezultati();
break;
case 14:
_utakmica = new bazni(1, "flashfooty training", "1010101", "1020202", 10, 0, "", "", 0, mainMenu.MuzickaLogika);
_utakmica.addEventListener("myCustomEvent_kraj_meca", kraj_meca, false, 0, true);
addChild(_utakmica);
break;
case 15:
_utakmica.removeEventListener("myCustomEvent_kraj_meca", kraj_meca);
removeChild(_utakmica);
_local13 = "";
if (igr_golovi != 1){
_local13 = "s";
};
_local14 = new objasnjenje_posle_treninga();
_local14.x = 300;
_local14.y = 220;
_local14.osnovni.text = "End of the training. \n";
_local14.osnovni.appendText(((("\n You have scored " + igr_golovi) + " goal") + _local13));
_local14.osnovni.appendText(" of 10 shots. \n");
if (igr_golovi == 0){
_local14.osnovni.appendText("Please, read the instructions carefully and try again. \n");
};
if ((((igr_golovi >= 1)) && ((igr_golovi < 3)))){
_local14.osnovni.appendText("You still need a lot of practice. \n");
};
if ((((igr_golovi >= 3)) && ((igr_golovi < 6)))){
_local14.osnovni.appendText("This is good but can be better. \n");
};
if ((((igr_golovi >= 6)) && ((igr_golovi < 9)))){
_local14.osnovni.appendText("Very good, you are ready for the real tournament. \n");
};
if (igr_golovi >= 9){
_local14.osnovni.appendText("Brilliant! Now go get the cup, champ. \n");
};
if (prihvacene_lopte < 4){
_local14.osnovni.appendText("\n Practice receiving the ball before the shot. You don't have to always shoot immediately. \n");
_local14.osnovni.appendText("After you calm the ball, you can position better and shoot.\n");
};
_local14.osnovni_senka.text = (_local14.osnovni_senka2.text = _local14.osnovni.text);
podloga.addChild(_local14);
_button = new myButtonClass(13);
_button.x = 550;
_button.y = 370;
_button.addEventListener("myCustomEvent", start_over, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 150, 0, 0, 0);
podloga.addChild(_button);
break;
case 99:
podloga.poruka_uslov.poruka_uopstena.text = (podloga.poruka_uslov.poruka_senka.text = "Recording your results. Please wait.");
_local15 = new upisPoena(poeni_za_listu, moj_tim_index, index_lige, ukupno_dato_golova, igracev_quarterfin, igracev_semifin, igracev_fin, igracev_winner);
_local15.addEventListener("myCustomEvent", sudbina_upisa, false, 0, true);
addChild(_local15);
_local16 = new vrtilopta();
_local16.x = 300;
_local16.y = 150;
addChild(_local16);
break;
case 100:
podloga.poruka_uslov.poruka_uopstena.text = (podloga.poruka_uslov.poruka_senka.text = "Connection to the database couldn't be established.");
_button = new myButtonClass(15);
_button.x = 300;
_button.y = 250;
_button.addEventListener("myCustomEvent", submit_points, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 150, 0, 0, 0);
podloga.addChild(_button);
_button = new myButtonClass(16);
_button.x = 300;
_button.y = 300;
_button.addEventListener("myCustomEvent", go_to_results, false, 0, true);
podloga.addChild(_button);
break;
case 101:
if (privatno == 1){
podloga.poruka_uslov.poruka_uopstena.text = "Your points were successfully recorded.";
};
if (privatno == 2){
podloga.poruka_uslov.poruka_uopstena.text = "Your points were successfully added to your team's balance.";
podloga.poruka_uslov.poruka_uopstena.appendText("\n Logged users also get points added to their personal records.");
};
podloga.poruka_uslov.poruka_senka.text = podloga.poruka_uslov.poruka_uopstena.text;
upis = "upisano";
_button = new myButtonClass(16);
_button.x = 300;
_button.y = 250;
_button.addEventListener("myCustomEvent", go_to_results, false, 0, true);
podloga.addChild(_button);
break;
};
}
function submit_points(_arg1:myCustomEvent):void{
interno_stanje_takmicenja = 99;
provera_statusa_tekuceg_takmicenja();
}
private function odabrano_takmicenje(_arg1:myCustomEvent):void{
index_lige = _arg1.myMessage;
generisanje_nizova_timova();
interno_stanje_takmicenja = 2;
provera_statusa_tekuceg_takmicenja();
}
private function odabran_tim(_arg1:myCustomEvent):void{
moj_tim_index = _arg1.myMessage;
interno_stanje_takmicenja = 3;
generisanje_nizova_timova();
provera_statusa_tekuceg_takmicenja();
}
private function najava_sledeceg():void{
var _local1:int;
var _local2:String;
var _local3:String;
index_narednog_protivnika = takm_brojevi[((broj_timova - 1) - poluindex_narednog_protivnika)];
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = ("Your next opponent is " + timovi[index_narednog_protivnika]));
prikaz_dresa(index_narednog_protivnika, "moguce_korigovanje");
potrebno_golova = 0;
_local1 = (timovi_napad[moj_tim_index] - timovi_napad[index_narednog_protivnika]);
if (_local1 == 0){
pocetni_broj_pokusaja = 5;
potrebno_golova = 2;
};
if (_local1 == 1){
pocetni_broj_pokusaja = 6;
potrebno_golova = 2;
};
if (_local1 >= 2){
pocetni_broj_pokusaja = 5;
potrebno_golova = 1;
};
if (_local1 == -1){
pocetni_broj_pokusaja = 6;
potrebno_golova = 3;
};
if (_local1 == -2){
pocetni_broj_pokusaja = 5;
potrebno_golova = 3;
};
_local2 = "qualify";
if (runda == 4){
_local2 = "win";
};
_local3 = "goals";
if (potrebno_golova == 1){
_local3 = "goal";
};
podloga.poruka_uslov.poruka_uopstena.text = (podloga.poruka_uslov.poruka_senka.text = (((((((("To " + _local2) + ", you need to score ") + potrebno_golova) + " ") + _local3) + ", from ") + pocetni_broj_pokusaja) + " attempts."));
postavka_dva_dugmeta("jedno_ispod_drugog");
}
function kraj_meca(_arg1:myCustomEvent_kraj_meca):void{
if (_arg1.myMessage == 22){
interno_stanje_takmicenja = 7;
igr_golovi = _arg1.brojGolova;
provera_statusa_tekuceg_takmicenja();
};
if (_arg1.myMessage == 11){
interno_stanje_takmicenja = 15;
igr_golovi = _arg1.brojGolova;
prihvacene_lopte = _arg1.brojPrihvacenihLopti;
provera_statusa_tekuceg_takmicenja();
};
}
function prikaz_dresa(_arg1:int, _arg2:String):void{
var _local3:dres_p;
var _local4:ColorTransform;
var _local5:ColorTransform;
_local3 = new dres_p();
_local3.x = 300;
_local3.y = 200;
if (interno_stanje_takmicenja == 5){
_local3.y = (_local3.y + 20);
};
_local3.sarenilo.gotoAndStop(tip_dresa[_arg1]);
_local4 = _local3.osnovna.transform.colorTransform;
_local5 = _local3.sarenilo.transform.colorTransform;
if (_arg2 == "bez_korigovanja"){
_local4.color = _dressColor[dres1[_arg1]];
_local5.color = _dressColor[dres2[_arg1]];
} else {
if ((((dres1[_arg1] == dres1[moj_tim_index])) && ((dres2[_arg1] == dres2[moj_tim_index])))){
_local4.color = _dressColor[0];
_local5.color = _dressColor[15];
} else {
_local4.color = _dressColor[dres1[_arg1]];
_local5.color = _dressColor[dres2[_arg1]];
};
};
_local3.osnovna.transform.colorTransform = _local4;
_local3.sarenilo.transform.colorTransform = _local5;
podloga.addChild(_local3);
}
function visit_flashfooty(_arg1:myCustomEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.flashfooty.com/igre/dkicker/");
navigateToURL(_local2, "_blank");
}
private function back_to_menu(_arg1:MouseEvent):void{
dispatchEvent(new myCustomEvent(7));
}
function sudbina_upisa(_arg1:myCustomEvent):void{
if (_arg1.myMessage != 1){
razlog = _arg1.myMessage;
interno_stanje_takmicenja = 100;
provera_statusa_tekuceg_takmicenja();
};
if (_arg1.myMessage == 1){
interno_stanje_takmicenja = 101;
provera_statusa_tekuceg_takmicenja();
};
}
private function postavka_dva_dugmeta(_arg1:String=""):void{
_button = new myButtonClass(6);
_button.x = 70;
_button.y = 200;
if (_arg1 == "jedno_ispod_drugog"){
_button.x = 300;
_button.y = 365;
if (interno_stanje_takmicenja == 7){
_button.y = 315;
};
};
_button.scaleX = (_button.scaleY = 0.8);
_button.addEventListener("myCustomEvent", next_or_cancel, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0);
_button.name = "meni";
podloga.addChild(_button);
_button = new myButtonClass(7);
_button.x = 530;
_button.y = 200;
if (_arg1 == "jedno_ispod_drugog"){
_button.x = 300;
_button.y = 315;
if (interno_stanje_takmicenja == 7){
_button.y = 265;
};
};
_button.scaleX = (_button.scaleY = 0.8);
_button.addEventListener("myCustomEvent", next_or_cancel, false, 0, true);
_button.name = "next";
podloga.addChild(_button);
if (interno_stanje_takmicenja == 7){
_button = new myButtonClass(12);
_button.x = 300;
_button.y = 365;
_button.scaleX = (_button.scaleY = 0.8);
_button.addEventListener("myCustomEvent", next_or_cancel, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 205, 105, 0, 0);
_button.name = "overview";
podloga.addChild(_button);
};
}
function ostali_rezultati():void{
var _local1:int;
var _local2:*;
var _local3:int;
var _local4:int;
var _local5:main_menu_bezuslovan;
podloga.poruka_osnov.poruka_uopstena.text = (podloga.poruka_osnov.poruka_senka.text = poruke_posle[runda]);
pola = (broj_timova / 2);
gol1 = new Array();
_local1 = 0;
while (_local1 < 32) {
gol1.push(0);
_local1++;
};
_local1 = 0;
while (_local1 < broj_timova) {
_local4 = 0;
while (_local4 < 6) {
_local2 = (Math.random() * timovi_napad[takm_brojevi[_local1]]);
_local3 = ((Math.random() * timovi_odbrana[takm_brojevi[((broj_timova - 1) - _local1)]]) * 3);
gol1[takm_brojevi[_local1]] = (gol1[takm_brojevi[_local1]] + (_local2 > _local3));
_local4++;
};
_local1++;
};
_local1 = 0;
while (_local1 < broj_timova) {
if (gol1[takm_brojevi[_local1]] == gol1[takm_brojevi[((broj_timova - 1) - _local1)]]){
if (Math.random() > 0.5){
var _local6 = gol1;
var _local7 = takm_brojevi[_local1];
var _local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
} else {
_local6 = gol1;
_local7 = takm_brojevi[((broj_timova - 1) - _local1)];
_local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
};
};
_local1++;
};
if (timovi_aktivnost[moj_tim_index] == 1){
gol1[moj_tim_index] = igr_golovi;
gol1[takm_brojevi[((broj_timova - 1) - poluindex_narednog_protivnika)]] = komp_golovi;
};
prikaz_parova("rezultati");
_local1 = 0;
while (_local1 < broj_timova) {
if (gol1[takm_brojevi[_local1]] > gol1[takm_brojevi[((broj_timova - 1) - _local1)]]){
timovi_aktivnost[takm_brojevi[_local1]] = 1;
} else {
timovi_aktivnost[takm_brojevi[_local1]] = 0;
};
_local1++;
};
_local1 = 0;
while (_local1 < broj_timova) {
_local1++;
};
if (runda == 4){
_button = new myButtonClass(12);
_button.x = 300;
_button.y = 365;
_button.scaleX = (_button.scaleY = 0.8);
_button.addEventListener("myCustomEvent", next_or_cancel, false, 0, true);
_button.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 205, 105, 0, 0);
_button.name = "overview";
podloga.addChild(_button);
_local5 = new main_menu_bezuslovan();
_local5.x = 300;
_local5.y = 315;
_local5.addEventListener(MouseEvent.MOUSE_DOWN, back_to_menu, false, 0, true);
podloga.addChild(_local5);
podloga.poruka_uslov.y = (podloga.poruka_uslov.y + 30);
_local1 = 0;
while (_local1 < 32) {
if (timovi_aktivnost[_local1] == 1){
index_pobednika = _local1;
};
_local1++;
};
podloga.poruka_uslov.poruka_uopstena.text = (podloga.poruka_uslov.poruka_senka.text = ("The champion is " + timovi[index_pobednika]));
prikaz_dresa(index_pobednika, "bez_korigovanja");
} else {
postavka_dva_dugmeta();
};
}
private function prikaz_parova(_arg1:String):void{
var _local2:int;
var _local3:podloga_imena;
var _local4:int;
var _local5:podloga_rezultata;
_local2 = 0;
while (_local2 < broj_timova) {
_local3 = new podloga_imena();
if (_local2 < pola){
_local4 = takm_brojevi[_local2];
} else {
_local4 = takm_brojevi[(((broj_timova * 1.5) - 1) - _local2)];
};
_local3.x = (215 + (160 * Math.floor((_local2 / pola))));
_local3.y = ((70 + (_local2 * 20)) - ((pola * 20) * Math.floor((_local2 / pola))));
_local3.tekst.text = timovi[_local4];
if (_local4 == moj_tim_index){
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
};
podloga.addChild(_local3);
if (_local2 < pola){
_local5 = new podloga_rezultata();
_local5.x = 295;
_local5.y = (70 + (_local2 * 20));
if (_arg1 == "zreb"){
_local5.rezultat.text = (_local5.rezultat_senka.text = "-:-");
} else {
_local5.rezultat.text = (_local5.rezultat_senka.text = ((gol1[takm_brojevi[_local2]] + ":") + gol1[takm_brojevi[((broj_timova - 1) - _local2)]]));
};
podloga.addChild(_local5);
};
_local2++;
};
}
private function zreb():void{
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
pola = (broj_timova / 2);
_local1 = new Array();
takm_brojevi = new Array();
_local3 = 0;
_local4 = 0;
while (_local4 < 32) {
if (timovi_aktivnost[_local4] == 1){
_local1[_local3] = _local4;
_local3++;
};
_local4++;
};
_local4 = 0;
while (_local1.length > 0) {
_local2 = Math.round((Math.random() * (_local1.length - 1)));
takm_brojevi[_local4] = _local1[_local2];
_local4++;
_local1.splice(_local2, 1);
};
prikaz_parova("zreb");
}
function go_to_results(_arg1:myCustomEvent):void{
interno_stanje_takmicenja = 8;
provera_statusa_tekuceg_takmicenja();
}
}
}//package dkicker_meniji
Section 30
//upisPoena (dkicker_meniji.upisPoena)
package dkicker_meniji {
import flash.events.*;
import flash.display.*;
import com.utils.*;
import flash.text.*;
import flash.net.*;
import flash.errors.*;
public class upisPoena extends MovieClip {
var _moj_tim_index:int;
var _index_lige:int;
var _sekuritatea:String;
var _username:String;
var _igracev_winner:int;
var _igracev_quarterfin:int;
var _igracev_fin:int;
var confirm_flag:int;// = 1
var _time:int;
var serverTime:int;
var _securResult:int;
var _poeni_za_listu:int;
var _igracev_semifin:int;
var _tajnaRec:String;// = "milooteen2010"
var _ukupno_dato_golova:int;
var privatnostFF:int;
var serverTimeHash:String;
public function upisPoena(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):void{
var request_1:URLRequest;
var myLoader:URLLoader;
var onDataLoad:Function;
var poeni_za_listu = _arg1;
var moj_tim_index = _arg2;
var index_lige = _arg3;
var ukupno_dato_golova = _arg4;
var igracev_quarterfin = _arg5;
var igracev_semifin = _arg6;
var igracev_fin = _arg7;
var igracev_winner = _arg8;
_tajnaRec = "milooteen2010";
confirm_flag = 1;
super();
onDataLoad = function (_arg1:Event){
var _local2:sha1Encrypt;
var _local3:String;
serverTime = _arg1.target.data.al_time;
serverTimeHash = _arg1.target.data.al_time_hash;
_local2 = new sha1Encrypt(true);
_local3 = sha1Encrypt.encrypt((serverTime + _tajnaRec));
if (_local3 == serverTimeHash){
_securResult = 1;
};
confirmRecording_part2();
};
_securResult = 0;
_poeni_za_listu = poeni_za_listu;
_moj_tim_index = (moj_tim_index + 1);
_index_lige = index_lige;
_ukupno_dato_golova = ukupno_dato_golova;
_igracev_quarterfin = igracev_quarterfin;
_igracev_semifin = igracev_semifin;
_igracev_fin = igracev_fin;
_igracev_winner = igracev_winner;
request_1 = new URLRequest("include_dkicker/serverTime.php");
request_1.method = URLRequestMethod.POST;
myLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
myLoader.load(request_1);
myLoader.addEventListener(Event.COMPLETE, onDataLoad);
myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus);
}
function confirmRecording_part2():void{
var request_1:URLRequest;
var variables:URLVariables;
var enc:sha1Encrypt;
var privr:String;
var sekuritatea:String;
var sender:URLLoader;
var completeHandler_receive:Function;
if (_securResult == 1){
completeHandler_receive = function (_arg1:Event):void{
var _local2:URLVariables;
var _local3:int;
_local2 = new URLVariables(sender.data);
_local3 = _local2.al_potvrda;
if (_local3 == 1){
dispatchEvent(new myCustomEvent(1));
} else {
dispatchEvent(new myCustomEvent(_local3));
};
};
request_1 = new URLRequest("include_dkicker/DKICKER_upis.php");
request_1.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.br_lige = _index_lige;
variables.id_kluba = _moj_tim_index;
variables.poeni_kluba = _poeni_za_listu;
variables.dato_golova = _ukupno_dato_golova;
variables.cetvrtfin = _igracev_quarterfin;
variables.polufin = _igracev_semifin;
variables.fin = _igracev_fin;
variables.pobednik = _igracev_winner;
enc = new sha1Encrypt(true);
privr = ((((String(serverTime) + String(_index_lige)) + String(_moj_tim_index)) + String(_poeni_za_listu)) + String(_ukupno_dato_golova));
privr = (privr + ((((String(_igracev_quarterfin) + String(_igracev_semifin)) + String(_igracev_fin)) + String(_igracev_winner)) + _tajnaRec));
sekuritatea = sha1Encrypt.encrypt(privr);
variables.nFlashTime = serverTime;
variables.nFlashHash = sekuritatea;
request_1.data = variables;
sender = new URLLoader();
sender.dataFormat = URLLoaderDataFormat.VARIABLES;
sender.addEventListener(Event.COMPLETE, completeHandler_receive);
sender.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
sender.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
sender.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus);
sender.load(request_1);
} else {
dispatchEvent(new myCustomEvent(0));
};
}
function onSecurityError(_arg1:SecurityErrorEvent){
}
function onIOError(_arg1:IOErrorEvent){
}
function onHTTPStatus(_arg1:HTTPStatusEvent){
return ("Pogresni ulazni podaci");
}
}
}//package dkicker_meniji
Section 31
//additionalInfo (additionalInfo)
package {
import flash.display.*;
import flash.text.*;
public dynamic class additionalInfo extends MovieClip {
public var _addInfoText:TextField;
}
}//package
Section 32
//BulletP (BulletP)
package {
import flash.display.*;
public dynamic class BulletP extends MovieClip {
}
}//package
Section 33
//crno (crno)
package {
import flash.display.*;
public dynamic class crno extends BitmapData {
public function crno(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 34
//dkicker_prl (dkicker_prl)
package {
import flash.events.*;
import dkicker_meniji.*;
import flash.display.*;
public dynamic class dkicker_prl extends MovieClip {
public var titleStarted:Boolean;// = false
public var percentLoaded:int;
public var gameState:int;// = 0
public var loaderStarted:Boolean;// = false
public var loadingBox:LoadingBox;
public static const STATE_SYSTEM_LOADER:int = 0;
public static const STATE_SYSTEM_TITLE:int = 1;
public function dkicker_prl():void{
gameState = STATE_SYSTEM_LOADER;
loaderStarted = false;
titleStarted = false;
super();
addFrameScript(0, frame1, 1, frame2, 3, frame4);
stage.showDefaultContextMenu = false;
addEventListener(Event.ENTER_FRAME, runGame);
}
public function runGame(_arg1:Event):void{
switch (gameState){
case STATE_SYSTEM_LOADER:
doLoadScreen();
break;
case STATE_SYSTEM_TITLE:
doTitleScreen();
break;
};
}
function frame1(){
}
public function doTitleScreen():void{
var _local1:prihvatStartnih;
if (((!(titleStarted)) && ((currentFrame == 4)))){
_local1 = new prihvatStartnih(root);
addChild(_local1);
titleStarted = true;
removeEventListener(Event.ENTER_FRAME, runGame);
};
}
function frame4(){
stop();
}
function frame2(){
}
public function loadingProgress(_arg1:Event):void{
percentLoaded = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
loadingBox.update(percentLoaded);
}
public function loadingComplete(_arg1:Event){
removeChild(loadingBox);
loadingBox = null;
this.loaderInfo.removeEventListener(Event.COMPLETE, loadingComplete);
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadingProgress);
finishPreload();
}
public function doLoadScreen():void{
if (!loaderStarted){
if (this.loaderInfo.bytesLoaded >= this.loaderInfo.bytesTotal){
this.loaderInfo.removeEventListener(Event.COMPLETE, loadingComplete);
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadingProgress);
finishPreload();
} else {
loadingBox = new LoadingBox();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadingProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, loadingComplete);
loaderStarted = true;
loadingBox.x = 0;
loadingBox.y = 0;
addChild(loadingBox);
};
};
}
public function finishPreload():void{
this.play();
gameState = STATE_SYSTEM_TITLE;
}
}
}//package
Section 35
//DOOP (DOOP)
package {
import flash.media.*;
public dynamic class DOOP extends Sound {
}
}//package
Section 36
//dres_ajax_pruge (dres_ajax_pruge)
package {
import flash.display.*;
public dynamic class dres_ajax_pruge extends BitmapData {
public function dres_ajax_pruge(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 37
//dres_boka (dres_boka)
package {
import flash.display.*;
public dynamic class dres_boka extends BitmapData {
public function dres_boka(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 38
//dres_dijagonalne (dres_dijagonalne)
package {
import flash.display.*;
public dynamic class dres_dijagonalne extends BitmapData {
public function dres_dijagonalne(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 39
//dres_p (dres_p)
package {
import flash.display.*;
public dynamic class dres_p extends MovieClip {
public var osnovna:MovieClip;
public var sarenilo:MovieClip;
}
}//package
Section 40
//dres_podela_dijagonalna (dres_podela_dijagonalna)
package {
import flash.display.*;
public dynamic class dres_podela_dijagonalna extends BitmapData {
public function dres_podela_dijagonalna(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 41
//dres_pola_pola (dres_pola_pola)
package {
import flash.display.*;
public dynamic class dres_pola_pola extends BitmapData {
public function dres_pola_pola(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 42
//dres_poprecne_pruge (dres_poprecne_pruge)
package {
import flash.display.*;
public dynamic class dres_poprecne_pruge extends BitmapData {
public function dres_poprecne_pruge(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 43
//dres_pruge (dres_pruge)
package {
import flash.display.*;
public dynamic class dres_pruge extends BitmapData {
public function dres_pruge(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 44
//final_result_natpis (final_result_natpis)
package {
import flash.display.*;
public dynamic class final_result_natpis extends MovieClip {
}
}//package
Section 45
//glavna_podloga (glavna_podloga)
package {
import flash.display.*;
import flash.text.*;
public dynamic class glavna_podloga extends MovieClip {
public var poruka_poena_senka:TextField;
public var poruka_uslov:poruka;
public var poruka_osnov:poruka;
public var poruka_poena:TextField;
}
}//package
Section 46
//gledaliste (gledaliste)
package {
import flash.display.*;
public dynamic class gledaliste extends MovieClip {
}
}//package
Section 47
//go_training_tekst (go_training_tekst)
package {
import flash.display.*;
import flash.text.*;
public dynamic class go_training_tekst extends MovieClip {
public var practice_tekst:TextField;
public var practice_tekst_senka:TextField;
}
}//package
Section 48
//golmanFinal (golmanFinal)
package {
import flash.display.*;
public dynamic class golmanFinal extends BitmapData {
public function golmanFinal(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 49
//gool (gool)
package {
import flash.media.*;
public dynamic class gool extends Sound {
}
}//package
Section 50
//hurryUP (hurryUP)
package {
import flash.display.*;
public dynamic class hurryUP extends MovieClip {
}
}//package
Section 51
//igracTrkFinal (igracTrkFinal)
package {
import flash.display.*;
public dynamic class igracTrkFinal extends BitmapData {
public function igracTrkFinal(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 52
//indikator_cilja (indikator_cilja)
package {
import flash.display.*;
public dynamic class indikator_cilja extends MovieClip {
}
}//package
Section 53
//instructionsClip (instructionsClip)
package {
import flash.display.*;
public dynamic class instructionsClip extends MovieClip {
public var inst_dugme:SimpleButton;
}
}//package
Section 54
//instructionsMC (instructionsMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class instructionsMC extends MovieClip {
public var akciona_poruka:TextField;
}
}//package
Section 55
//instructionsMC_pokretni (instructionsMC_pokretni)
package {
import flash.display.*;
public dynamic class instructionsMC_pokretni extends MovieClip {
public var instr_baza:instructionsMC;
public function instructionsMC_pokretni(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 56
//kosa1 (kosa1)
package {
import flash.display.*;
public dynamic class kosa1 extends BitmapData {
public function kosa1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 57
//kosa2 (kosa2)
package {
import flash.display.*;
public dynamic class kosa2 extends BitmapData {
public function kosa2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 58
//kosa3 (kosa3)
package {
import flash.display.*;
public dynamic class kosa3 extends BitmapData {
public function kosa3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 59
//kosa4 (kosa4)
package {
import flash.display.*;
public dynamic class kosa4 extends BitmapData {
public function kosa4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 60
//krov_stadiona (krov_stadiona)
package {
import flash.display.*;
public dynamic class krov_stadiona extends BitmapData {
public function krov_stadiona(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 61
//kruzici (kruzici)
package {
import flash.display.*;
public dynamic class kruzici extends BitmapData {
public function kruzici(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 62
//LoadingBox (LoadingBox)
package {
import flash.display.*;
import flash.text.*;
public class LoadingBox extends MovieClip {
public var loading_txt:TextField;
public function update(_arg1:int):void{
loading_txt.text = (String(_arg1) + "%");
}
}
}//package
Section 63
//lopta (lopta)
package {
import flash.display.*;
public dynamic class lopta extends MovieClip {
public function lopta(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
gotoAndStop(1);
}
function frame1(){
}
}
}//package
Section 64
//loptaMC (loptaMC)
package {
import flash.display.*;
public dynamic class loptaMC extends MovieClip {
public function loptaMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 65
//loptaSenkaMC (loptaSenkaMC)
package {
import flash.display.*;
public dynamic class loptaSenkaMC extends MovieClip {
}
}//package
Section 66
//main_menu_bezuslovan (main_menu_bezuslovan)
package {
import flash.display.*;
public dynamic class main_menu_bezuslovan extends SimpleButton {
}
}//package
Section 67
//mrezaMC (mrezaMC)
package {
import flash.display.*;
public dynamic class mrezaMC extends MovieClip {
public var bocna_mreza_desno:MovieClip;
public var zadnja_mreza:MovieClip;
public var bocna_mreza_levo:MovieClip;
}
}//package
Section 68
//muzDugme (muzDugme)
package {
import flash.display.*;
public dynamic class muzDugme extends MovieClip {
public var MuzickoDugme:muzDugmeOsnov;
}
}//package
Section 69
//muzDugmeOsnov (muzDugmeOsnov)
package {
import flash.display.*;
public dynamic class muzDugmeOsnov extends MovieClip {
public function muzDugmeOsnov(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 70
//MuzickoDugme (MuzickoDugme)
package {
import flash.display.*;
public dynamic class MuzickoDugme extends SimpleButton {
}
}//package
Section 71
//muzika (muzika)
package {
import flash.media.*;
public dynamic class muzika extends Sound {
}
}//package
Section 72
//myButton (myButton)
package {
import flash.display.*;
public dynamic class myButton extends MovieClip {
public var osnova_dugmeta:SimpleButton;
public var natpis:MovieClip;
}
}//package
Section 73
//myButton_takmicenje (myButton_takmicenje)
package {
import flash.display.*;
import flash.text.*;
public dynamic class myButton_takmicenje extends MovieClip {
public var _tekst:TextField;
public var baza_dugmeta:SimpleButton;
}
}//package
Section 74
//najava_sledeceg (najava_sledeceg)
package {
import flash.display.*;
import flash.text.*;
public dynamic class najava_sledeceg extends MovieClip {
public var _obavestenje:TextField;
public var _obavestenjeSenka:TextField;
public var nextShotDugme:SimpleButton;
}
}//package
Section 75
//naslovi (naslovi)
package {
import flash.display.*;
public dynamic class naslovi extends MovieClip {
}
}//package
Section 76
//objasnjenje_posle_treninga (objasnjenje_posle_treninga)
package {
import flash.display.*;
import flash.text.*;
public dynamic class objasnjenje_posle_treninga extends MovieClip {
public var osnovni:TextField;
public var osnovni_senka2:TextField;
public var osnovni_senka:TextField;
}
}//package
Section 77
//odbitak (odbitak)
package {
import flash.media.*;
public dynamic class odbitak extends Sound {
}
}//package
Section 78
//odjavaMC (odjavaMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class odjavaMC extends MovieClip {
public var _obavestenje:TextField;
public var _obavestenjeSenka:TextField;
}
}//package
Section 79
//Osnovni_font (Osnovni_font)
package {
import flash.text.*;
public dynamic class Osnovni_font extends Font {
}
}//package
Section 80
//podloga_imena (podloga_imena)
package {
import flash.display.*;
import flash.text.*;
public dynamic class podloga_imena extends MovieClip {
public var tekst:TextField;
}
}//package
Section 81
//podloga_rezultata (podloga_rezultata)
package {
import flash.display.*;
import flash.text.*;
public dynamic class podloga_rezultata extends MovieClip {
public var rezultat_senka:TextField;
public var rezultat:TextField;
}
}//package
Section 82
//podloga_za_tajmer (podloga_za_tajmer)
package {
import flash.display.*;
public dynamic class podloga_za_tajmer extends MovieClip {
}
}//package
Section 83
//podloge (podloge)
package {
import flash.display.*;
public dynamic class podloge extends MovieClip {
public var _podloga_za_tajmer:podloga_za_tajmer;
}
}//package
Section 84
//polje (polje)
package {
import flash.display.*;
public dynamic class polje extends MovieClip {
}
}//package
Section 85
//poruka (poruka)
package {
import flash.display.*;
import flash.text.*;
public dynamic class poruka extends MovieClip {
public var poruka_senka:TextField;
public var poruka_uopstena:TextField;
}
}//package
Section 86
//poruka_uslov (poruka_uslov)
package {
import flash.display.*;
import flash.text.*;
public dynamic class poruka_uslov extends MovieClip {
public var poruka_brg_senka:TextField;
public var poruka_brg:TextField;
}
}//package
Section 87
//pozadina_overview (pozadina_overview)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pozadina_overview extends MovieClip {
public var mala_podloga:MovieClip;
public var _gasidugme:SimpleButton;
public var broj_golova:TextField;
}
}//package
Section 88
//pozadina_sure (pozadina_sure)
package {
import flash.display.*;
public dynamic class pozadina_sure extends MovieClip {
public var _menu_bezuslovan:main_menu_bezuslovan;
public var mala_podloga:MovieClip;
public var _gasidugme:SimpleButton;
}
}//package
Section 89
//precka_i_stative (precka_i_stative)
package {
import flash.display.*;
public dynamic class precka_i_stative extends MovieClip {
public var stat_pr_instanca:MovieClip;
}
}//package
Section 90
//prethodnik (prethodnik)
package {
import flash.display.*;
import flash.text.*;
public dynamic class prethodnik extends MovieClip {
public var kolo:TextField;
}
}//package
Section 91
//privremeni_pointer (privremeni_pointer)
package {
import flash.display.*;
public dynamic class privremeni_pointer extends MovieClip {
}
}//package
Section 92
//promasaj (promasaj)
package {
import flash.media.*;
public dynamic class promasaj extends Sound {
}
}//package
Section 93
//publika_radost (publika_radost)
package {
import flash.display.*;
public dynamic class publika_radost extends BitmapData {
public function publika_radost(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 94
//publikaGif (publikaGif)
package {
import flash.display.*;
public dynamic class publikaGif extends BitmapData {
public function publikaGif(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 95
//qualifiedT (qualifiedT)
package {
import flash.display.*;
public dynamic class qualifiedT extends MovieClip {
}
}//package
Section 96
//reklame (reklame)
package {
import flash.display.*;
public dynamic class reklame extends MovieClip {
}
}//package
Section 97
//semafor (semafor)
package {
import flash.display.*;
import flash.text.*;
public dynamic class semafor extends MovieClip {
public var _odbrojavacSenka:TextField;
public var _podloga:podloge;
public var _odbrojavac:TextField;
public var _statistikeSenka:TextField;
public var _statistike:TextField;
}
}//package
Section 98
//shut (shut)
package {
import flash.media.*;
public dynamic class shut extends Sound {
}
}//package
Section 99
//st_ajax_pruge (st_ajax_pruge)
package {
import flash.display.*;
public dynamic class st_ajax_pruge extends BitmapData {
public function st_ajax_pruge(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 100
//st_boka (st_boka)
package {
import flash.display.*;
public dynamic class st_boka extends BitmapData {
public function st_boka(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 101
//st_dijagonalna_podela (st_dijagonalna_podela)
package {
import flash.display.*;
public dynamic class st_dijagonalna_podela extends BitmapData {
public function st_dijagonalna_podela(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 102
//st_dijagonalna_pruga (st_dijagonalna_pruga)
package {
import flash.display.*;
public dynamic class st_dijagonalna_pruga extends BitmapData {
public function st_dijagonalna_pruga(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 103
//st_kosa_bradica (st_kosa_bradica)
package {
import flash.display.*;
public dynamic class st_kosa_bradica extends BitmapData {
public function st_kosa_bradica(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 104
//st_kosa_klasik (st_kosa_klasik)
package {
import flash.display.*;
public dynamic class st_kosa_klasik extends BitmapData {
public function st_kosa_klasik(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 105
//st_kosa_kratka (st_kosa_kratka)
package {
import flash.display.*;
public dynamic class st_kosa_kratka extends BitmapData {
public function st_kosa_kratka(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 106
//st_kosa_repovi (st_kosa_repovi)
package {
import flash.display.*;
public dynamic class st_kosa_repovi extends BitmapData {
public function st_kosa_repovi(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 107
//st_pola_pola (st_pola_pola)
package {
import flash.display.*;
public dynamic class st_pola_pola extends BitmapData {
public function st_pola_pola(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 108
//st_poprecne_pruge (st_poprecne_pruge)
package {
import flash.display.*;
public dynamic class st_poprecne_pruge extends BitmapData {
public function st_poprecne_pruge(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 109
//st_uzduzne_pruge (st_uzduzne_pruge)
package {
import flash.display.*;
public dynamic class st_uzduzne_pruge extends BitmapData {
public function st_uzduzne_pruge(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 110
//startDugme (startDugme)
package {
import flash.display.*;
public dynamic class startDugme extends SimpleButton {
}
}//package
Section 111
//startDugme_klip (startDugme_klip)
package {
import flash.display.*;
import flash.text.*;
public dynamic class startDugme_klip extends MovieClip {
public var naslov_dugme:TextField;
}
}//package
Section 112
//staticniFudbaler (staticniFudbaler)
package {
import flash.display.*;
public dynamic class staticniFudbaler extends BitmapData {
public function staticniFudbaler(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 113
//swoosh (swoosh)
package {
import flash.media.*;
public dynamic class swoosh extends Sound {
}
}//package
Section 114
//tribine_stolica (tribine_stolica)
package {
import flash.display.*;
public dynamic class tribine_stolica extends BitmapData {
public function tribine_stolica(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 115
//vrtilopta (vrtilopta)
package {
import flash.display.*;
public dynamic class vrtilopta extends MovieClip {
}
}//package
Section 116
//zvizdukSudija (zvizdukSudija)
package {
import flash.media.*;
public dynamic class zvizdukSudija extends Sound {
}
}//package