Frame 1
header = "<header><vrs>2</vrs><gid>419</gid><mid>0</mid><dat>2011-09-18 14:19:41</dat></header>";
values = "<parameters><element0><pid></pid><val></val><par>-1</par></element0><element1><pid>4382</pid><val>2012</val><par>-1</par></element1><element2><pid>4381</pid><val>5</val><par>-1</par></element2><element3><pid>4380</pid><val>25</val><par>-1</par></element3><element4><pid>4379</pid><val>10</val><par>-1</par></element4><element5><pid>4378</pid><val>30</val><par>-1</par></element5><element6><pid>4377</pid><val>0</val><par>-1</par></element6><element7><pid>4376</pid><val>0</val><par>-1</par></element7><element8><pid></pid><val></val><par>-1</par></element8><element9><pid>4584</pid><val>273</val><par>-1</par></element9><element10><pid></pid><val></val><par>-1</par></element10><element11><pid>4576</pid><val>true</val><par>-1</par></element11><element12><pid>4569</pid><val>DO WAKACJI\rkostek</val><par>-1</par></element12><element13><pid>4570</pid><val>0x555555</val><par>-1</par></element13><element14><pid>4571</pid><val>15</val><par>-1</par></element14><element15><pid>4572</pid><val>false</val><par>-1</par></element15><element16><pid>4573</pid><val>10</val><par>-1</par></element16><element17><pid>4574</pid><val>false</val><par>-1</par></element17><element18><pid>4575</pid><val>true</val><par>-1</par></element18><element19><pid>4577</pid><val>2</val><par>-1</par></element19><element20><pid></pid><val></val><par>-1</par></element20><element21><pid>4582</pid><val>true</val><par>-1</par></element21><element22><pid>4578</pid><val>WAKACJE!!!!!</val><par>-1</par></element22><element23><pid>4579</pid><val>0xFF0808</val><par>-1</par></element23><element24><pid>4580</pid><val>25</val><par>-1</par></element24><element25><pid>4581</pid><val>false</val><par>-1</par></element25><element26><pid>4583</pid><val>2</val><par>-1</par></element26><element27><pid></pid><val></val><par>-1</par></element27><element28><pid>4429</pid><val>Weeks</val><par>-1</par></element28><element29><pid>4451</pid><val>Days</val><par>-1</par></element29><element30><pid>4473</pid><val>Hours</val><par>-1</par></element30><element31><pid>4495</pid><val>Minutes</val><par>-1</par></element31><element32><pid>4517</pid><val>Seconds</val><par>-1</par></element32><element33><pid>4539</pid><val>Milliseconds</val><par>-1</par></element33><element34><pid></pid><val></val><par>-1</par></element34><element35><pid>4383</pid><val>true</val><par>-1</par></element35><element36><pid>4384</pid><val>true</val><par>-1</par></element36><element37><pid></pid><val></val><par>-1</par></element37><element38><pid>4565</pid><val>20</val><par>-1</par></element38><element39><pid>4566</pid><val>20</val><par>-1</par></element39><element40><pid>4567</pid><val>20</val><par>-1</par></element40><element41><pid>4568</pid><val>20</val><par>-1</par></element41><element42><pid></pid><val></val><par>-1</par></element42><element43><pid>4392</pid><val>0x555555</val><par>-1</par></element43><element44><pid>4393</pid><val>0x555555</val><par>-1</par></element44><element45><pid>4394</pid><val>0x555555</val><par>-1</par></element45><element46><pid>4395</pid><val>0x555555</val><par>-1</par></element46><element47><pid>4396</pid><val>0x555555</val><par>-1</par></element47><element48><pid>4388</pid><val>true</val><par>-1</par></element48><element49><pid>4387</pid><val>3</val><par>-1</par></element49><element50><pid>4389</pid><val>10</val><par>-1</par></element50><element51><pid>4390</pid><val>10</val><par>-1</par></element51><element52><pid>4386</pid><val>0</val><par>-1</par></element52><element53><pid>4391</pid><val>5</val><par>-1</par></element53><element54><pid></pid><val></val><par>-1</par></element54><element55><pid>4401</pid><val>0x555555</val><par>-1</par></element55><element56><pid>4402</pid><val>0x555555</val><par>-1</par></element56><element57><pid>4403</pid><val>0x555555</val><par>-1</par></element57><element58><pid>4404</pid><val>0x555555</val><par>-1</par></element58><element59><pid>4405</pid><val>0x555555</val><par>-1</par></element59><element60><pid>4398</pid><val>3</val><par>-1</par></element60><element61><pid>4399</pid><val>5</val><par>-1</par></element61><element62><pid>4400</pid><val>1</val><par>-1</par></element62><element63><pid>4407</pid><val>3</val><par>-1</par></element63><element64><pid>4397</pid><val>0</val><par>-1</par></element64><element65><pid>4406</pid><val>15</val><par>-1</par></element65><element66><pid></pid><val></val><par>-1</par></element66><element67><pid>4414</pid><val>true</val><par>-1</par></element67><element68><pid>4408</pid><val>0x555555</val><par>-1</par></element68><element69><pid>4409</pid><val>8</val><par>-1</par></element69><element70><pid>4411</pid><val>5</val><par>-1</par></element70><element71><pid>4410</pid><val>false</val><par>-1</par></element71><element72><pid>4412</pid><val>2</val><par>-1</par></element72><element73><pid>4413</pid><val>1</val><par>-1</par></element73><element74><pid>4415</pid><val>35</val><par>-1</par></element74><element75><pid>4416</pid><val>100</val><par>-1</par></element75><element76><pid>4417</pid><val>10</val><par>-1</par></element76><element77><pid></pid><val></val><par>-1</par></element77><element78><pid>4550</pid><val>1</val><par>-1</par></element78><element79><pid></pid><val></val><par>-1</par></element79><element80><pid>4375</pid><val>C9C9C9</val><par>-1</par></element80><element81><pid></pid><val></val><par>-1</par></element81><element82><pid>4552</pid><val>0xFFFFFF</val><par>-1</par></element82><element83><pid>4553</pid><val>0xB0B0B0</val><par>-1</par></element83><element84><pid>4554</pid><val>100</val><par>-1</par></element84><element85><pid>4555</pid><val>100</val><par>-1</par></element85><element86><pid>4556</pid><val>0</val><par>-1</par></element86><element87><pid>4557</pid><val>255</val><par>-1</par></element87><element88><pid>4558</pid><val>2</val><par>-1</par></element88><element89><pid></pid><val></val><par>-1</par></element89><element90><pid>4559</pid><val>0xFF0000</val><par>-1</par></element90><element91><pid>4560</pid><val>0xFFFFFF</val><par>-1</par></element91><element92><pid>4561</pid><val>100</val><par>-1</par></element92><element93><pid>4562</pid><val>100</val><par>-1</par></element93><element94><pid>4563</pid><val>0</val><par>-1</par></element94><element95><pid>4564</pid><val>255</val><par>-1</par></element95><element96><pid></pid><val></val><par>-1</par></element96><element97><pid>4372</pid><val></val><par>-1</par></element97><element98><pid>4373</pid><val></val><par>-1</par></element98><element99><pid></pid><val></val><par>-1</par></element99><element100><pid>4656</pid><val>0_419_203</val><par>-1</par></element100></parameters>";
getvalue = function (gval, gtype, defval) {
ngval = gval;
if (gtype == 0) {
if (isNaN(ngval) == false) {
ngval = Number(ngval);
} else {
ngval = defval;
}
}
if (gtype == 1) {
if (ngval == "false") {
ngval = false;
} else if (ngval == "true") {
ngval = true;
} else {
ngval = defval;
}
}
return(ngval);
};
updatebackground = function (fixedwidth, fixedheight) {
transparent = getvalue("{backgroundtransparent}", 1, false);
backgroundtype = getvalue("1", 0, 2);
backgroundcolor = getvalue("{backgroundcolor}", 0, 16711680);
backgroundlinearcolor1 = getvalue("0xFFFFFF", 0, 16711680);
backgroundlinearcolor2 = getvalue("0xB0B0B0", 0, 0);
backgroundlinearcolor1alpha = getvalue("100", 0, 100);
backgroundlinearcolor2alpha = getvalue("100", 0, 100);
backgroundlinearcolor1ratio = getvalue("0", 0, 0);
backgroundlinearcolor2ratio = getvalue("255", 0, 255);
backgroundlinearcolordirection = getvalue("2", 0, 0);
backgroundradialcolor1 = getvalue("0xFF0000", 0, 16711680);
backgroundradialcolor2 = getvalue("0xFFFFFF", 0, 0);
backgroundradialcolor1alpha = getvalue("100", 0, 100);
backgroundradialcolor2alpha = getvalue("100", 0, 100);
backgroundradialcolor1ratio = getvalue("0", 0, 0);
backgroundradialcolor2ratio = getvalue("255", 0, 255);
if (transparent != true) {
back.removeMovieClip();
createEmptyMovieClip("back", getNextHighestDepth());
if (backgroundtype == 0) {
back.removeMovieClip();
}
if (backgroundtype == 1) {
with (back) {
m = new flash.geom.Matrix();
if (backgroundlinearcolordirection == 0) {
radian = 0;
}
if (backgroundlinearcolordirection == 1) {
radian = 3.1111;
}
if (backgroundlinearcolordirection == 2) {
radian = 1.555555;
}
if (backgroundlinearcolordirection == 3) {
radian = 4.7;
}
m.createGradientBox(fixedwidth, fixedheight, radian);
lineStyle(0, backgroundcolor, 0);
beginGradientFill("linear", [backgroundlinearcolor1, backgroundlinearcolor2], [backgroundlinearcolor1alpha, backgroundlinearcolor2alpha], [backgroundlinearcolor1ratio, backgroundlinearcolor2ratio], m);
lineTo(fixedwidth, 0);
lineTo(fixedwidth, fixedheight);
lineTo(0, fixedheight);
lineTo(0, 0);
}
}
if (backgroundtype == 2) {
with (back) {
m = new flash.geom.Matrix();
m.createGradientBox(fixedwidth, fixedheight, 0);
lineStyle(0, backgroundcolor, 0);
beginGradientFill("radial", [backgroundradialcolor1, backgroundradialcolor2], [backgroundradialcolor1alpha, backgroundradialcolor2alpha], [backgroundradialcolor1ratio, backgroundradialcolor2ratio], m);
lineTo(fixedwidth, 0);
lineTo(fixedwidth, fixedheight);
lineTo(0, fixedheight);
lineTo(0, 0);
}
}
}
};
updatebackground(Stage.width, Stage.height);
leftmargin = getvalue("20", 0, 20);
rightmargin = getvalue("20", 0, 20);
topmargin = getvalue("20", 0, 20);
bottommargin = getvalue("20", 0, 20);
infotext1 = getvalue("DO WAKACJI\rkostek");
infotext1color = getvalue("0x555555", 0, 16777215);
infotext1size = getvalue("15", 0, 20);
infotext1underline = getvalue("false", 1, false);
infotext1gap = getvalue("10", 0, 0);
infotext1position = getvalue("false", 0, 1);
infotext1alignwithclock = getvalue("true", 1, false);
showinfotext1 = getvalue("true", 1, true);
infotext1align = getvalue("2", 0, 2);
infotext2 = getvalue("WAKACJE!!!!!");
infotext2color = getvalue("0xFF0808", 0, 16777215);
infotext2size = getvalue("25", 0, 20);
infotext2underline = getvalue("false", 1, true);
showinfotext2 = getvalue("true", 1, true);
infotext2align = getvalue("2", 0, 2);
settextformat = function (textnum, txt) {
fmt = new TextFormat();
fmt.color = this[("infotext" + textnum) + "color"];
fmt.size = this[("infotext" + textnum) + "size"];
fmt.underline = this[("infotext" + textnum) + "underline"];
if (textnum == 1) {
if (infotext1align == 0) {
fmt.align = "left";
}
if (infotext1align == 1) {
fmt.align = "right";
}
if (infotext1align == 2) {
fmt.align = "center";
}
}
if (textnum == 2) {
if (infotext2align == 0) {
fmt.align = "left";
}
if (infotext2align == 1) {
fmt.align = "right";
}
if (infotext2align == 2) {
fmt.align = "center";
}
}
txt1.txt.text = (("textnum - " + textnum) + " align - ") + infotext1align;
txt.txt.text = this["infotext" + textnum];
txt.txt.autoSize = true;
txt.txt.setTextFormat(fmt);
};
if (showinfotext1 == true) {
attachMovie("infotext", "info1", getNextHighestDepth());
settextformat(1, info1);
info1._alpha = 0;
}
attachMovie("clock", "clock", getNextHighestDepth());
getwidth = function () {
if (_root.autoWidth == "1") {
info1.txt._width = clock._width;
return((clock._width + leftmargin) + rightmargin);
}
if (infotext1alignwithclock == true) {
info1.txt._width = clock._width;
} else {
info1.txt._width = Stage.width;
}
return(Stage.width);
};
getheight = function () {
if (_root.autoHeight == "1") {
if (showinfotext1 == true) {
return((((clock._height + info1._height) + infotext1gap) + topmargin) + bottommargin);
}
return((clock._height + topmargin) + bottommargin);
}
return(Stage.height);
};
adjustdimensions = function () {
tempwidth = getwidth();
tempheight = getheight();
if ((_root.autoWidth == "1") || (_root.autoHeight == "1")) {
width = Math.ceil(tempwidth);
height = Math.ceil(tempheight);
getURL (((((((((("javascript:flashVortexSetFlashSize('" + _root.divId) + "',") + _root.autoWidth) + ",") + _root.autoHeight) + ",") + ((width == null) ? 0 : (width))) + ",") + ((height == null) ? 0 : (height))) + ")");
}
if (showinfotext1 == true) {
if (infotext1position == 0) {
info1._y = (tempheight - ((info1._height + clock._height) + infotext1gap)) / 2;
clock._y = (info1._y + info1._height) + infotext1gap;
} else {
clock._y = (tempheight - ((info1._height + clock._height) + infotext1gap)) / 2;
info1._y = (clock._y + clock._height) + infotext1gap;
}
info1._x = (tempwidth - info1._width) / 2;
} else {
clock._y = (tempheight - clock._height) / 2;
}
clock._x = (tempwidth - clock._width) / 2;
updatebackground(tempwidth, tempheight);
clock.swapDepths(getNextHighestDepth());
info1.swapDepths(getNextHighestDepth());
info2.swapDepths(getNextHighestDepth());
txt1.swapDepths(getNextHighestDepth());
movieWidth = Math.ceil(getwidth());
movieHeight = Math.ceil(getheight());
hideLinkBack = "0_419_203".split("_");
if (hideLinkBack[0] == false) {
this.attachMovie("linkBack", "linkBack", 1000, {movieWidth:movieWidth, movieHeight:movieHeight, xPosition:"right", yPosition:"bottom", hBorders:1, vBorders:0, upAlpha:50, overAlpha:80, generatorId:hideLinkBack[1], saveId:hideLinkBack[2]});
}
};
setfinished = function () {
clock.onEnterFrame = function () {
animate(this, "_alpha", 0, undefined, true);
animate(info1, "_alpha", 0, undefined, true);
if (this._alpha == this.previous_alpha) {
info1.removeMovieClip();
this.removeMovieClip();
}
};
attachMovie("infotext", "info2", getNextHighestDepth());
settextformat(2, info2);
onEnterFrame = function () {
if ((prevwidth != Stage.width) || (prevheight != Stage.height)) {
info2.txt._width = Stage.width - (leftmargin + rightmargin);
info2.txt._x = (Stage.width - info2._width) / 2;
info2.txt._y = (Stage.height - info2._height) / 2;
prevwidth = Stage.width;
prevheight = Stage.height;
}
};
prevwidth = undefined;
onEnterFrame();
};
animate = function (mov, prop, val, anispeed, feedattribute) {
if (anispeed == undefined) {
anispeed = 5;
}
if (feedattribute == true) {
mov["previous" + prop] = mov[prop];
}
if (Math.abs(mov[prop] - val) > 1) {
if (mov[prop] > val) {
mov[prop] = mov[prop] - ((mov[prop] - val) / anispeed);
} else {
mov[prop] = mov[prop] + ((val - mov[prop]) / anispeed);
}
} else {
mov[prop] = val;
}
};
Symbol 1 MovieClip Frame 1
this.onMouseMove = function () {
this.predX = (_root._xmouse - this._x) * 5;
this.predY = (_root._ymouse - this._y) * 5;
this._x = _root._xmouse;
this._y = _root._ymouse;
};
Symbol 9 Button
on (rollOver) {
linkBack._alpha = 100;
}
on (rollOut) {
linkBack._alpha = overAlpha;
}
on (release) {
getURL ((("http://www.flashvortex.com/referer.php?generatorId=" + generatorId) + "&saveId=") + saveId, "_top");
}
Symbol 10 MovieClip [linkBack] Frame 1
this.onEnterFrame = function () {
if (start == true) {
if (((((_root._xmouse + this.mouseCheck.predX) > movieWidth) || ((_root._ymouse + this.mouseCheck.predY) > movieHeight)) || ((_root._xmouse + this.mouseCheck.predX) < 0)) || ((_root._ymouse + this.mouseCheck.predY) < 0)) {
mouseOn = false;
} else {
mouseOn = true;
}
}
if (mouseOn == true) {
if (linkBack._alpha < overAlpha) {
linkBack._alpha = linkBack._alpha + showSpeed;
}
} else if (linkBack._alpha > upAlpha) {
linkBack._alpha = linkBack._alpha - hideSpeed;
}
};
this.onMouseMove = function () {
start = true;
};
if (movieWidth == undefined) {
movieWidth = Stage.width;
}
if (movieHeight == undefined) {
movieHeight = Stage.height;
}
if (hBorders == undefined) {
hBorders = 1;
}
if (vBorders == undefined) {
vBorders = 0;
}
if (xPosition == undefined) {
xPosition = "right";
}
if (yPosition == undefined) {
yPosition = "bottom";
}
if (upAlpha == undefined) {
upAlpha = 50;
}
if (overAlpha == undefined) {
overAlpha = 80;
}
if (showSpeed == undefined) {
showSpeed = 4;
}
if (hideSpeed == undefined) {
hideSpeed = 3;
}
linkBack._alpha = upAlpha;
start = false;
if (typeof(xPosition) == "string") {
if (xPosition == "left") {
linkBack._x = hBorders;
}
if (xPosition == "center") {
linkBack._x = Math.floor((movieWidth - linkBack._width) / 2);
}
if (xPosition == "right") {
linkBack._x = (movieWidth - linkBack._width) - hBorders;
}
} else {
linkBack._x = xPosition;
}
if (typeof(yPosition) == "string") {
if (yPosition == "top") {
linkBack._y = vBorders;
}
if (yPosition == "middle") {
linkBack._y = Math.floor((movieHeight - linkBack._height) / 2);
}
if (yPosition == "bottom") {
linkBack._y = (movieHeight - linkBack._height) - vBorders;
}
} else {
linkBack._y = yPosition;
}
stop();
Symbol 17 MovieClip [clock] Frame 1
getvalue = _parent.getvalue;
toyear = getvalue("2012", 0, 2010);
tomonth = getvalue("5", 0, 11);
todate = getvalue("25", 0, 25);
tohour = getvalue("10", 0, 0);
tominute = getvalue("30", 0, 0);
tosecond = getvalue("0", 0, 0);
tomillisecond = getvalue("0", 0, 0);
date = new Date(toyear, tomonth, todate, tohour, tominute, tosecond, tomillisecond);
showweeks = getvalue("true", 1, true);
showmilliseconds = getvalue("true", 1, true);
separatesettings = getvalue("separatesettings", 1, false);
centerdottype = getvalue("0", 0, 4);
centerdotsize = getvalue("3", 0, 10);
showcenterdots = getvalue("true", 1, true);
centergap = getvalue("10", 0, 10);
centerdotgap = getvalue("10", 0, 20);
centerdotrotationspeed = getvalue("5", 0, 20);
centerdotcolor1 = getvalue("0x555555", 0, 16777215);
centerdotcolor2 = getvalue("0x555555", 0, 16777215);
centerdotcolor3 = getvalue("0x555555", 0, 16777215);
centerdotcolor4 = getvalue("0x555555", 0, 16777215);
centerdotcolor5 = getvalue("0x555555", 0, 16777215);
centerdotcolors = new Array(centerdotcolor1, centerdotcolor2, centerdotcolor3, centerdotcolor4, centerdotcolor5);
dottype = getvalue("0", 0, 0);
dotsize = getvalue("3", 0, 4);
dotcount = getvalue("5", 0, 6);
if (dotcount < 3) {
dotcount = 3;
}
dotgap = getvalue("1", 0, 2);
dotcolor1 = getvalue("0x555555", 0, 16777215);
dotcolor2 = getvalue("0x555555", 0, 16777215);
dotcolor3 = getvalue("0x555555", 0, 16777215);
dotcolor4 = getvalue("0x555555", 0, 16777215);
dotcolor5 = getvalue("0x555555", 0, 16777215);
dotrotationspeed = getvalue("15", 0, 20);
numbergaps = getvalue("3", 0, 5);
textcolor = getvalue("0x555555", 0, 16777215);
textsize = getvalue("8", 0, 10);
textunderline = getvalue("false", 1, false);
textgap = getvalue("5", 0, 0);
textalign = getvalue("2", 0, 2);
textposition = getvalue("1", 0, 1);
showtext = getvalue("true", 1, true);
alphaspeed = getvalue("35", 0, 50);
alphaspeed = 55 - alphaspeed;
showalpha = getvalue("100", 0, 100);
hidealpha = getvalue("10", 0, 10);
dotcolors = new Array(dotcolor1, dotcolor2, dotcolor3, dotcolor4, dotcolor5);
weektextstring = getvalue("Weeks");
daytextstring = getvalue("Days");
hourtextstring = getvalue("Hours");
minutetextstring = getvalue("Minutes");
secondtextstring = getvalue("Seconds");
millisecondtextstring = getvalue("Milliseconds");
onEnterFrame = function () {
cdate = new Date();
dif = date.getTime() - cdate.getTime();
ms = dif % 1000;
dif = (dif - ms) / 1000;
sec = dif % 60;
dif = (dif - sec) / 60;
min = dif % 60;
dif = (dif - min) / 60;
hour = dif % 24;
days = (dif - hour) / 24;
if (cdate.getTime() >= date.getTime()) {
if (_parent.showinfotext2 == true) {
clearInterval(showinterval);
clearInterval(checkinterval);
_parent.setfinished();
} else {
weeks = 0;
days = 0;
hour = 0;
min = 0;
sec = 0;
ms = 0;
delete this.onEnterFrame;
}
return(undefined);
}
if (showmilliseconds == true) {
shownumberdots("millisecond", ms);
}
};
checknumbers = function () {
if (cdate.getTime() < date.getTime()) {
if (showweeks == true) {
weeks = (days - (days % 7)) / 7;
days = days % 7;
if (prevweeks != weeks) {
shownumberdots("week", weeks);
prevweeks = weeks;
}
}
}
if (prevsec != sec) {
shownumberdots("second", sec);
prevsec = sec;
}
if (prevmin != min) {
shownumberdots("minute", min);
prevmin = min;
}
if (prevhour != hour) {
shownumberdots("hour", hour);
prevhour = hour;
}
if (prevdays != days) {
shownumberdots("day", days);
prevdays = days;
}
};
checkinterval = setInterval(checknumbers, 50);
shownumberdots = function (type, value) {
num1 = this[type + "num1"];
num2 = this[type + "num2"];
if (String(value).length == 1) {
setsinglenumber(num1, 0);
setsinglenumber(num2, value);
} else {
setsinglenumber(num1, String(value).substr(0, 1));
setsinglenumber(num2, String(value).substr(1, 1));
}
};
setsinglenumber = function (snum, digit) {
if (digit == 0) {
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = true;
i++;
}
}
if (digit == 1) {
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
}
if (digit == 2) {
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = true;
i++;
}
i = 0;
while (i <= (Math.ceil(snum.arrayright.length / 2) - 1)) {
snum.arrayright[i].v = true;
i++;
}
i = Math.ceil(snum.arrayleft.length / 2);
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = true;
i++;
}
}
if (digit == 3) {
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
}
if (digit == 4) {
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = true;
i++;
}
i = 0;
while (i <= (Math.ceil(snum.arrayleft.length / 2) - 1)) {
snum.arrayleft[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
}
if (digit == 5) {
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = true;
i++;
}
i = 0;
while (i <= (Math.ceil(snum.arrayleft.length / 2) - 1)) {
snum.arrayleft[i].v = true;
i++;
}
i = Math.ceil(snum.arrayright.length / 2);
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
}
if (digit == 6) {
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = true;
i++;
}
i = Math.ceil(snum.arrayright.length / 2);
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = true;
i++;
}
}
if (digit == 7) {
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
}
if (digit == 8) {
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
}
if (digit == 9) {
i = 0;
while (i <= (snum.arrayleft.length - 1)) {
snum.arrayleft[i].v = false;
i++;
}
i = 0;
while (i <= (snum.arraycenter.length - 1)) {
snum.arraycenter[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraytop.length - 1)) {
snum.arraytop[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arraybottom.length - 1)) {
snum.arraybottom[i].v = true;
i++;
}
i = 0;
while (i <= (Math.ceil(snum.arrayleft.length / 2) - 1)) {
snum.arrayleft[i].v = true;
i++;
}
i = 0;
while (i <= (snum.arrayright.length - 1)) {
snum.arrayright[i].v = true;
i++;
}
}
};
setdotsettings = function (sdot, dtype, drotationspeed) {
if (drotationspeed > 0) {
sdot.inner.rot = 1 + random(drotationspeed);
}
sdot.inner.dir = random(2);
if (sdot.inner.dir == 0) {
sdot.inner.dir = -1;
}
sdot.inner.enterframe = function () {
this._parent._rotation = this._parent._rotation + (this.rot * this.dir);
};
};
createnumber = function (type, numcount) {
mov = createEmptyMovieClip("number" + getNextHighestDepth(), getNextHighestDepth());
this[(type + "num") + numcount] = mov;
count = getsetting(type, "dotcount");
if (count < 3) {
count = 3;
}
mov.arraytop = new Array();
mov.arrayleft = new Array();
mov.arrayright = new Array();
mov.arraycenter = new Array();
mov.arraybottom = new Array();
mov.arrayall = new Array();
dtype = getsetting(type, "dottype");
if (dtype == 0) {
dtype = "dot";
}
if (dtype == 1) {
dtype = "triangle";
}
if (dtype == 2) {
dtype = "rectangle";
}
if (dtype == 3) {
dtype = "pantagon";
}
if (dtype == 4) {
dtype = "star";
}
drotationspeed = getsetting(type, "dotrotationspeed");
if (dtype == "dot") {
drotationspeed = 0;
}
i = 0;
while (i <= (count - 1)) {
dot = mov.attachMovie(dtype, "dot" + mov.getNextHighestDepth(), mov.getNextHighestDepth());
mov.arrayall.push(dot);
mov.arraytop.push(dot);
if (i == 0) {
mov.arrayleft.push(dot);
}
if (i == (count - 1)) {
mov.arrayright.push(dot);
}
setdotsettings(dot, dtype, drotationspeed);
dot._width = getsetting(type, "dotsize");
dot._height = dot._width;
dot._x = (dot._width + getsetting(type, "dotgap")) * i;
currentx = dot._x;
setcolor(dot, type);
i++;
}
i = 1;
while (i <= (count - 1)) {
dot = mov.attachMovie(dtype, "dot" + mov.getNextHighestDepth(), mov.getNextHighestDepth());
mov.arrayall.push(dot);
mov.arrayleft.push(dot);
setdotsettings(dot, dtype, drotationspeed);
dot._width = getsetting(type, "dotsize");
dot._height = dot._width;
dot._y = (dot._height + getsetting(type, "dotgap")) * i;
currenty = (dot._y + dot._height) + getsetting(type, "dotgap");
if (i == (count - 1)) {
mov.arraycenter.push(dot);
}
setcolor(dot, type);
i++;
}
i = 0;
while (i <= (count - 2)) {
dot = mov.attachMovie(dtype, "dot" + mov.getNextHighestDepth(), mov.getNextHighestDepth());
mov.arrayall.push(dot);
mov.arrayleft.push(dot);
setdotsettings(dot, dtype, drotationspeed);
dot._width = getsetting(type, "dotsize");
dot._height = dot._width;
dot._y = currenty + ((dot._height + getsetting(type, "dotgap")) * i);
if (i == (count - 2)) {
mov.arraybottom.push(dot);
}
setcolor(dot, type);
i++;
}
i = 1;
while (i <= (count - 1)) {
dot = mov.attachMovie(dtype, "dot" + mov.getNextHighestDepth(), mov.getNextHighestDepth());
mov.arrayall.push(dot);
mov.arrayright.push(dot);
setdotsettings(dot, dtype, drotationspeed);
dot._width = getsetting(type, "dotsize");
dot._height = dot._width;
dot._x = currentx;
dot._y = (dot._height + getsetting(type, "dotgap")) * i;
currenty = (dot._y + dot._height) + getsetting(type, "dotgap");
if (i == (count - 1)) {
mov.arraycenter.push(dot);
}
setcolor(dot, type);
i++;
}
middley = dot._y;
i = 0;
while (i <= (count - 2)) {
dot = mov.attachMovie(dtype, "dot" + mov.getNextHighestDepth(), mov.getNextHighestDepth());
mov.arrayall.push(dot);
mov.arrayright.push(dot);
setdotsettings(dot, dtype, drotationspeed);
dot._width = getsetting(type, "dotsize");
dot._height = dot._width;
dot._x = currentx;
dot._y = currenty + ((dot._height + getsetting(type, "dotgap")) * i);
if (i == (count - 2)) {
mov.arraybottom.push(dot);
}
setcolor(dot, type);
i++;
}
currenty = dot._y;
i = 1;
while (i <= (count - 2)) {
dot = mov.attachMovie(dtype, "dot" + mov.getNextHighestDepth(), mov.getNextHighestDepth());
mov.arrayall.push(dot);
mov.arraybottom.push(dot);
setdotsettings(dot, dtype, drotationspeed);
dot._width = getsetting(type, "dotsize");
dot._height = dot._width;
dot._x = i * (dot._width + getsetting(type, "dotgap"));
dot._y = currenty;
setcolor(dot, type);
i++;
}
i = 1;
while (i <= (count - 2)) {
dot = mov.attachMovie(dtype, "dot" + mov.getNextHighestDepth(), mov.getNextHighestDepth());
mov.arrayall.push(dot);
mov.arraycenter.push(dot);
setdotsettings(dot, dtype, drotationspeed);
dot._width = getsetting(type, "dotsize");
dot._height = dot._width;
dot._x = i * (dot._width + getsetting(type, "dotgap"));
dot._y = middley;
setcolor(dot, type);
i++;
}
i = 0;
while (i <= (mov.arrayall.length - 1)) {
mov.arrayall[i]._x = mov.arrayall[i]._x + (mov.arrayall[i]._width / 2);
mov.arrayall[i]._y = mov.arrayall[i]._y + (mov.arrayall[i]._height / 2);
mov.arrayall[i].alphaspeed = 2 + random(getsetting(type, "alphaspeed"));
mov.arrayall[i].showalpha = getsetting(type, "showalpha");
mov.arrayall[i].hidealpha = getsetting(type, "hidealpha");
if (type != "millisecond") {
mov.arrayall[i].onEnterFrame = function () {
this.inner.enterframe();
if (this.v == true) {
animate(this, "_alpha", this.showalpha, this.alphaspeed);
} else {
animate(this, "_alpha", this.hidealpha, this.alphaspeed);
}
};
} else {
mov.arrayall[i].onEnterFrame = function () {
this.inner.enterframe();
if (this.v == true) {
this._alpha = this.showalpha;
} else {
this._alpha = this.hidealpha;
}
};
}
i++;
}
return(mov);
};
setcolor = function (colormov, type) {
rndcolor = random(5);
clr = new Color(colormov);
if (separatesettings != true) {
clr.setRGB(dotcolors[rndcolor]);
} else {
clr.setRGB(this[type + "dotcolors"][rndcolor]);
}
};
getsetting = function (type, settingname) {
if (separatesettings == true) {
return(this[type + settingname]);
}
return(this[settingname]);
};
settextandformat = function (type) {
fmt = new TextFormat();
fmt.color = getsetting(type, "textcolor");
fmt.size = getsetting(type, "textsize");
fmt.underline = getsetting(type, "textunderline");
if (getsetting(type, "showtext") == true) {
txt = attachMovie("text", "text" + getNextHighestDepth(), getNextHighestDepth());
txt.txt.text = this[type + "textstring"];
txt.txt.setTextFormat(fmt);
txt.txt.autoSize = true;
align = getsetting(type, "textalign");
if (align == 1) {
txt._x = this[type + "num1"]._x + (this[type + "totalwidth"] - txt._width);
}
if (align == 0) {
txt._x = this[type + "num1"]._x;
}
if (align == 2) {
txt._x = this[type + "num1"]._x + ((this[type + "totalwidth"] - txt._width) / 2);
}
position = getsetting(type, "textposition");
if (position == 0) {
this[type + "num1"]._y = (this[type + "num2"]._y = txt._height + getsetting(type, "textgap"));
} else {
txt._y = this[type + "num1"]._height + getsetting(type, "textgap");
}
}
return(txt);
};
actualx = 0;
createnumbers = function (type) {
num1 = createnumber(type);
num1._x = actualx;
num2 = createnumber(type);
actualx = actualx + (num1._width + getsetting(type, "numbergaps"));
num2._x = actualx;
actualx = actualx + num2._width;
this[type + "num1"] = num1;
this[type + "num2"] = num2;
this[type + "totalwidth"] = (num1._width + getsetting(type, "numbergaps")) + num2._width;
this[type + "text"] = settextandformat(type);
this[type + "totalheight"] = (num1._height + getsetting(type, "textgap")) + this[type + "text"]._height;
if (((type != "second") && (type != "millisecond")) || ((type == "second") && (showmilliseconds == true))) {
if (showcenterdots == true) {
if (centerdottype == 0) {
cdtype = "dot";
}
if (centerdottype == 1) {
cdtype = "triangle";
}
if (centerdottype == 2) {
cdtype = "rectangle";
}
if (centerdottype == 3) {
cdtype = "pantagon";
}
if (centerdottype == 4) {
cdtype = "star";
}
dotnum1 = attachMovie(cdtype, "centerdot" + getNextHighestDepth(), getNextHighestDepth());
dotnum2 = attachMovie(cdtype, "centerdot" + getNextHighestDepth(), getNextHighestDepth());
dotnum1._width = (dotnum1._height = (dotnum2._width = (dotnum2._height = centerdotsize)));
dotnum1._x = (dotnum2._x = (actualx + centergap) + (dotnum1._width / 2));
actualx = ((dotnum1._x + dotnum1._width) + centergap) - (dotnum1._width / 2);
dotnum1._y = (num1._y + ((num1._height - ((dotnum1._height + dotnum2._height) + centerdotgap)) / 2)) + (dotnum1._height / 2);
dotnum2._y = (dotnum1._y + dotnum1._height) + centerdotgap;
clr = new Color(dotnum1);
clr.setRGB(centerdotcolors[random(centerdotcolors.length)]);
clr = new Color(dotnum2);
clr.setRGB(centerdotcolors[random(centerdotcolors.length)]);
if (cdtype != "dot") {
setdotsettings(dotnum1, cdtype, centerdotrotationspeed);
setdotsettings(dotnum2, cdtype, centerdotrotationspeed);
dotnum1.onEnterFrame = function () {
this.inner.enterframe();
};
dotnum2.onEnterFrame = function () {
this.inner.enterframe();
};
}
this[type + "dotnum1"] = dotnum1;
this[type + "dotnum2"] = dotnum2;
} else {
actualx = actualx + centergap;
}
}
};
if (showweeks == true) {
createnumbers("week");
}
createnumbers("day");
createnumbers("hour");
createnumbers("minute");
createnumbers("second");
if (showmilliseconds == true) {
createnumbers("millisecond");
}
_alpha = 0;
showmovie = function () {
animate(me, "_alpha", 110, 15, true);
animate(_parent.info1, "_alpha", 110, 15, true);
if (me._alpha == me.previous_alpha) {
clearInterval(showinterval);
}
};
showinterval = setInterval(showmovie, 33.3333333333333);
me = this;
animate = function (mov, prop, val, anispeed, feedattribute) {
if (anispeed == undefined) {
anispeed = 5;
}
if (feedattribute == true) {
mov["previous" + prop] = mov[prop];
}
if (Math.abs(mov[prop] - val) > 1) {
if (mov[prop] > val) {
mov[prop] = mov[prop] - ((mov[prop] - val) / anispeed);
} else {
mov[prop] = mov[prop] + ((val - mov[prop]) / anispeed);
}
} else {
mov[prop] = val;
}
};
_parent.adjustdimensions();
onEnterFrame();
checknumbers();