Frame 2
gotoAndPlay (6);
Frame 6
stop();
Frame 7
function affectMusic(musicNum) {
if (currentMusicSelection == musicNum) {
currentMusicSelection = 0;
musics.gotoAndPlay(1);
} else {
currentMusicSelection = musicNum;
musics.gotoAndPlay(1);
}
}
function addBonusItem(bonusIndex) {
if (bonusIndex == 0) {
addDragObject("bonus", "bonus_penicorn_horn_avatar", 1, "bonus_penicorn_horn", null, "Severed penicorn horn");
}
if (bonusIndex == 1) {
addDragObject("bonus", "bonus_clockface_avatar", 1, "bonus_clockface", null, "Clock face");
}
if (bonusIndex == 2) {
addDragObject("bonus", "bonus_mister_t_avatar", 1, "bonus_mister_t", null, "Mister T");
}
if (bonusIndex == 3) {
addDragObject("bonus", "bonus_swf_file_avatar", 1, "bonus_swf_file", null, "SWF file");
}
if (bonusIndex == 4) {
addDragObject("bonus", "bonus_dead_kitty_krew_cat_avatar", 1, "bonus_dead_kitty_krew_cat", null, "Dead Krew member");
}
if (bonusIndex == 5) {
addDragObject("bonus", "bonus_folding_chair_avatar", 1, "bonus_folding_chair", null, "Golden folding chair");
}
if (bonusIndex == 6) {
addDragObject("bonus", "bonus_guitar_avatar", 1, "bonus_guitar", null, "Electric guitar");
}
}
function activateBonus(bonusIndex) {
if (!bonusItems[bonusIndex]) {
bonusUnlock.gotoAndPlay(2);
bonusItems[bonusIndex] = true;
if (controls.bonus_appears._currentframe == 1) {
controls.bonus_appears.gotoAndPlay(2);
}
addBonusItem(bonusIndex);
if (currentDisplayCategory == "bonus") {
pushDisplayCategory(currentDisplayCategory);
}
storeBonusData();
}
}
function processBonusData() {
var _local1;
var _local2;
if (myLocal_so.data.bonusdata != undefined) {
_local2 = myLocal_so.data.bonusdata.split("|");
_local1 = 0;
while (_local1 < _local2.length) {
if (((_local2[_local1] != undefined) && (_local2[_local1] != null)) && ((_local2[_local1] + "").length > 0)) {
bonusItems[_local2[_local1] - 0] = true;
controls.bonus_appears.gotoAndStop(controls.bonus_appears._totalframes);
}
_local1++;
}
}
}
function storeBonusData() {
var _local1;
var _local2;
_local2 = "";
_local1 = 0;
while (_local1 < bonusItems.length) {
if (bonusItems[_local1]) {
_local2 = _local2 + (_local1 + "|");
}
_local1++;
}
myLocal_so.data.bonusdata = _local2;
myLocal_so.flush();
}
function countOfActiveObjects(category) {
var _local1;
var _local2;
_local2 = 0;
_local1 = 0;
while (_local1 < DODex) {
if (dragObjects[_local1].category == category) {
_local2++;
}
_local1++;
}
return(_local2);
}
function processAllBonuses() {
if (countOfActiveObjects("bonus") == 0) {
i = 0;
while (i < bonusItems.length) {
if (bonusItems[i]) {
addBonusItem(i);
}
i++;
}
}
}
function dist(xCoord1, yCoord1, xCoord2, yCoord2) {
var _local1 = Math.sqrt(Math.pow(xCoord1 - xCoord2, 2) + Math.pow(yCoord1 - yCoord2, 2));
return(_local1);
}
function toRadians(angleInDegrees) {
return((Math.PI * angleInDegrees) / 180);
}
function toDegrees(angleInRadians) {
return((180 * angleInRadians) / Math.PI);
}
function retIndexOfMinElement(testArray) {
var _local1;
var _local3 = 0;
_local1 = 0;
while (_local1 < testArray.length) {
if (testArray[_local1] < testArray[_local3]) {
_local3 = _local1;
}
_local1++;
}
return(_local3);
}
function retIndexOfMaxElement(testArray) {
var _local1;
var _local3 = 0;
_local1 = 0;
while (_local1 < testArray.length) {
if (testArray[_local1] > testArray[_local3]) {
_local3 = _local1;
}
_local1++;
}
return(_local3);
}
function randomBounded(lowerBound, upperBound) {
var _local1 = (upperBound - lowerBound) + 1;
var _local2 = Math.random() * _local1;
return(lowerBound + parseInt(_local2));
}
function copyArray(vec, fromIndex, toIndex) {
var _local3 = new Array();
var _local2 = 0;
var _local1;
_local1 = fromIndex;
while (_local1 <= toIndex) {
_local3[_local2] = vec[_local1];
_local2++;
_local1++;
}
return(_local3);
}
function lineBetween(drawStage, p1x, p1y, p2x, p2y, colorInfo, alphInfo) {
with (drawStage) {
lineStyle(3, colorInfo, alphInfo);
moveTo(p1x, p1y);
lineTo(p2x, p2y);
}
}
function attachDot(targetClip, dotX, dotY) {
targetClip.attachMovie("attachDot", "attachDot", 99999);
targetClip.attachDot._x = dotX;
targetClip.attachDot._y = dotY;
}
function QuickSortSub(aQuickSort, i1, i2, vec2) {
var _local1;
var _local2;
var _local10;
var _local11;
var _local4;
var _local6;
var _local5 = true;
_local11 = Math.floor((i1 + i2) / 2);
_local1 = _local11;
_local10 = _local1--;
_local4 = aQuickSort[_local10];
while ((_local1 >= i1) && (_local5)) {
_local2 = _local1--;
_local5 = _local4 == aQuickSort[_local2];
}
_local1 = _local11 + 1;
while ((_local1 <= i2) && (_local5)) {
_local2 = _local1++;
_local5 = _local4 == aQuickSort[_local2];
}
if (_local5) {
return(-1);
}
if (aQuickSort[_local2] > _local4) {
_local10 = _local2;
_local4 = aQuickSort[_local10];
}
_local1 = i1;
_local2 = i2;
while (_local1 <= _local2) {
while (_local4 > aQuickSort[_local1]) {
_local1++;
}
while (_local4 <= aQuickSort[_local2]) {
_local2--;
}
if (_local1 < _local2) {
_local6 = aQuickSort[_local2];
aQuickSort[_local2] = aQuickSort[_local1];
aQuickSort[_local1] = _local6;
_local6 = vec2[_local2];
vec2[_local2] = vec2[_local1];
vec2[_local1] = _local6;
_local2--;
_local1++;
}
}
return(_local1);
}
function QuickSort(aQuickSort, first, last, vec2) {
var _local1;
if (first < last) {
_local1 = QuickSortSub(aQuickSort, first, last, vec2);
if (_local1 != -1) {
QuickSort(aQuickSort, first, _local1 - 1, vec2);
QuickSort(aQuickSort, _local1, last, vec2);
}
}
}
function showHelp() {
help.gotoAndPlay("show");
}
function hideHelp() {
help.gotoAndPlay("hide");
}
function drawWithChain(mClip) {
var minX = 0;
var maxX = 0;
var minY = 0;
var maxY = 0;
mClip.createEmptyMovieClip("effects" + effectLayer, mClip.getNextHighestDepth());
mClip["effects" + effectLayer].closedUp = false;
mClip["effects" + effectLayer].activated = false;
mClip["effects" + effectLayer].currentLink = 1;
mClip["effects" + effectLayer].linkDex = 0;
mClip["effects" + effectLayer].minX = 0;
mClip["effects" + effectLayer].maxX = 0;
mClip["effects" + effectLayer].minY = 0;
mClip["effects" + effectLayer].maxY = 0;
mClip["effects" + effectLayer].lastX = mClip._xmouse;
mClip["effects" + effectLayer].lastY = mClip._ymouse;
mClip["effects" + effectLayer].attachLink = function () {
var _local2 = this.linkDex;
if (this.linkDex == 2) {
this.link0._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link0._y - this.link1._y, this.link0._x - this.link1._x));
}
if (this.linkDex == 3) {
this.link1._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link2._y - this.link2._y, this.link1._x - this.link2._x));
}
if (this.currentLink == 2) {
_local2 = _local2 + 1000;
}
this.attachMovie("chain_link" + this.currentLink, "link" + this.linkDex, _local2);
this["link" + this.linkDex]._x = this._xmouse;
this["link" + this.linkDex]._y = this._ymouse;
this["link" + this.linkDex]._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this["link" + this.linkDex]._y - this.lastY, this["link" + this.linkDex]._x - this.lastX));
if (this._xmouse < this.minX) {
this.minX = this._xmouse;
}
if (this._xmouse > this.maxX) {
this.maxX = this._xmouse;
}
if (this._ymouse > this.maxY) {
this.maxY = this._ymouse;
}
if (this._ymouse < this.minY) {
this.minY = this._ymouse;
}
this.linkDex++;
this.currentLink = (2 - this.currentLink) + 1;
};
mClip["effects" + effectLayer].onMouseMove = function () {
if (this._parent._parent._parent.theMouseIsDown) {
if (!this.activated) {
this.attachLink();
this.activated = true;
} else if (this._parent._parent._parent.dist(this._xmouse, this._ymouse, this.lastX, this.lastY) > 18) {
this.attachLink();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
}
} else if (this.activated) {
delete this.onMouseMove;
}
};
effectLayer++;
return(mClip["effects" + (effectLayer - 1)]);
}
function detNumSegs(fullSize) {
if ((fullSize >= 0) && (fullSize < 40)) {
numSegs = randomBounded(2, 3);
}
if ((fullSize >= 40) && (fullSize < 80)) {
numSegs = randomBounded(4, 6);
}
if (fullSize >= 100) {
numSegs = randomBounded(8, 12);
}
return(numSegs);
}
function drawBolt(targetClip, fromX, fromY, toX, toY) {
var _local11 = dist(fromX, fromY, toX, toY);
var _local6 = detNumSegs(_local11);
var _local12 = Math.atan2(toY - fromY, toX - fromX);
var _local9;
var _local10;
var _local5;
var _local4;
var _local2 = fromX;
var _local1 = fromY;
i = 0;
while (i < _local6) {
if (i < (_local6 - 1)) {
if ((i % 2) == 0) {
_local9 = 1;
} else {
_local9 = -1;
}
_local10 = _local9 * toRadians(randomBounded(15, 45));
_local5 = _local2 + (Math.cos(_local12 + _local10) * (_local11 / _local6));
_local4 = _local1 + (Math.sin(_local12 + _local10) * (_local11 / _local6));
lineBetween(targetClip, _local2, _local1 - 1, _local5, _local4 - 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1 + 1, _local5, _local4 + 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1, _local5, _local4, 15329023, 100, 2);
_local2 = _local5;
_local1 = _local4;
} else {
lineBetween(targetClip, _local2, _local1 - 1, toX, toY - 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1 + 1, toX, toY + 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1, toX, toY, 15329023, 100, 2);
}
i++;
}
_local2 = fromX;
_local1 = fromY;
_local6--;
i = 0;
while (i < _local6) {
if (i < (_local6 - 1)) {
if ((i % 2) == 0) {
_local9 = 1;
} else {
_local9 = -1;
}
_local10 = _local9 * toRadians(randomBounded(15, 45));
_local5 = _local2 + (Math.cos(_local12 + _local10) * (_local11 / _local6));
_local4 = _local1 + (Math.sin(_local12 + _local10) * (_local11 / _local6));
lineBetween(targetClip, _local2, _local1 - 1, _local5, _local4 - 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1 + 1, _local5, _local4 + 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1, _local5, _local4, 15329023, 100, 2);
_local2 = _local5;
_local1 = _local4;
} else {
lineBetween(targetClip, _local2, _local1 - 1, toX, toY - 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1 + 1, toX, toY + 1, 292607, 100, 3);
lineBetween(targetClip, _local2, _local1, toX, toY, 15329023, 100, 2);
}
i++;
}
}
function drawWithElectricity(mClip) {
var minX = 9999;
var maxX = -9999;
var minY = 9999;
var maxY = -9999;
mClip.createEmptyMovieClip("effects" + effectLayer, mClip.getNextHighestDepth());
mClip["effects" + effectLayer].activated = false;
mClip["effects" + effectLayer].minX = 0;
mClip["effects" + effectLayer].maxX = 0;
mClip["effects" + effectLayer].minY = 0;
mClip["effects" + effectLayer].maxY = 0;
mClip["effects" + effectLayer].lastX = mClip["effects" + effectLayer]._xmouse;
mClip["effects" + effectLayer].lastY = mClip["effects" + effectLayer]._ymouse;
mClip["effects" + effectLayer].createEmptyMovieClip("drawClip", 0);
mClip["effects" + effectLayer].attachLink = function () {
if (this._xmouse < this.minX) {
this.minX = this._xmouse;
}
if (this._xmouse > this.maxX) {
this.maxX = this._xmouse;
}
if (this._ymouse > this.maxY) {
this.maxY = this._ymouse;
}
if (this._ymouse < this.minY) {
this.minY = this._ymouse;
}
};
mClip["effects" + effectLayer].onMouseMove = function () {
var _local2;
if (this._parent._parent._parent.theMouseIsDown) {
if (!this.activated) {
this.activated = true;
this.lastX = this._xmouse;
this.lastY = this._ymouse;
} else {
_local2 = this._parent._parent._parent.dist(this.lastX, this.lastY, this._xmouse, this._ymouse);
if (_local2 >= 40) {
this._parent._parent._parent.drawBolt(this.drawClip, this.lastX, this.lastY, this._xmouse, this._ymouse);
this.attachLink();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
}
}
} else if (this.activated) {
delete this.onMouseMove;
}
};
effectLayer++;
return(mClip["effects" + (effectLayer - 1)]);
}
function drawWithRope(mClip) {
var minX = 9999;
var maxX = -9999;
var minY = 9999;
var maxY = -9999;
mClip.createEmptyMovieClip("effects" + effectLayer, mClip.getNextHighestDepth());
mClip["effects" + effectLayer].closedUp = false;
mClip["effects" + effectLayer].activated = false;
mClip["effects" + effectLayer].currentLink = 1;
mClip["effects" + effectLayer].linkDex = 0;
mClip["effects" + effectLayer].minX = 0;
mClip["effects" + effectLayer].maxX = 0;
mClip["effects" + effectLayer].minY = 0;
mClip["effects" + effectLayer].maxY = 0;
mClip["effects" + effectLayer].lastX = mClip._xmouse;
mClip["effects" + effectLayer].lastY = mClip._ymouse;
mClip["effects" + effectLayer].attachLink = function () {
var _local2 = this.linkDex;
if (this.linkDex == 2) {
this.link0._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link0._y - this.link1._y, this.link0._x - this.link1._x));
}
if (this.linkDex == 3) {
this.link1._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link2._y - this.link2._y, this.link1._x - this.link2._x));
}
if (this.currentLink == 2) {
_local2 = _local2 + 1000;
}
this.attachMovie("rope_segment" + this.currentLink, "link" + this.linkDex, _local2);
this["link" + this.linkDex]._x = this._xmouse;
this["link" + this.linkDex]._y = this._ymouse;
this["link" + this.linkDex]._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this["link" + this.linkDex]._y - this.lastY, this["link" + this.linkDex]._x - this.lastX));
if (this._xmouse < this.minX) {
this.minX = this._xmouse;
}
if (this._xmouse > this.maxX) {
this.maxX = this._xmouse;
}
if (this._ymouse > this.maxY) {
this.maxY = this._ymouse;
}
if (this._ymouse < this.minY) {
this.minY = this._ymouse;
}
this.linkDex++;
this.currentLink = 1;
};
mClip["effects" + effectLayer].onMouseMove = function () {
if (this._parent._parent._parent.theMouseIsDown) {
if (!this.activated) {
this.attachLink();
this.activated = true;
} else if (this._parent._parent._parent.dist(this._xmouse, this._ymouse, this.lastX, this.lastY) > 10) {
this.attachLink();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
}
}
};
effectLayer++;
return(mClip["effects" + (effectLayer - 1)]);
}
function drawWithSkullBeads(mClip) {
var minX = 0;
var maxX = 0;
var minY = 0;
var maxY = 0;
mClip.createEmptyMovieClip("effects" + effectLayer, mClip.getNextHighestDepth());
mClip["effects" + effectLayer].closedUp = false;
mClip["effects" + effectLayer].activated = false;
mClip["effects" + effectLayer].currentLink = 1;
mClip["effects" + effectLayer].linkDex = 0;
mClip["effects" + effectLayer].minX = 0;
mClip["effects" + effectLayer].maxX = 0;
mClip["effects" + effectLayer].minY = 0;
mClip["effects" + effectLayer].maxY = 0;
mClip["effects" + effectLayer].lastX = mClip._xmouse;
mClip["effects" + effectLayer].lastY = mClip._ymouse;
mClip["effects" + effectLayer].attachLink = function () {
var _local2 = this.linkDex;
if (this.linkDex == 2) {
this.link0._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link0._y - this.link1._y, this.link0._x - this.link1._x));
}
if (this.linkDex == 3) {
this.link1._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link2._y - this.link2._y, this.link1._x - this.link2._x));
}
this.attachMovie("paint_skull_bead" + this.currentLink, "link" + this.linkDex, _local2);
this["link" + this.linkDex]._x = this._xmouse;
this["link" + this.linkDex]._y = this._ymouse;
this["link" + this.linkDex]._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this["link" + this.linkDex]._y - this.lastY, this["link" + this.linkDex]._x - this.lastX));
if (this._xmouse < this.minX) {
this.minX = this._xmouse;
}
if (this._xmouse > this.maxX) {
this.maxX = this._xmouse;
}
if (this._ymouse > this.maxY) {
this.maxY = this._ymouse;
}
if (this._ymouse < this.minY) {
this.minY = this._ymouse;
}
this.linkDex++;
this.currentLink++;
if (this.currentLink == 9) {
this.currentLink = 1;
}
};
mClip["effects" + effectLayer].onMouseMove = function () {
if (this._parent._parent._parent.theMouseIsDown) {
if (!this.activated) {
this.attachLink();
this.activated = true;
} else if (this._parent._parent._parent.dist(this._xmouse, this._ymouse, this.lastX, this.lastY) > 30) {
this.attachLink();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
}
} else if (this.activated) {
delete this.onMouseMove;
}
};
effectLayer++;
return(mClip["effects" + (effectLayer - 1)]);
}
function drawWithReeds(mClip) {
var minX = 0;
var maxX = 0;
var minY = 0;
var maxY = 0;
mClip.createEmptyMovieClip("effects" + effectLayer, mClip.getNextHighestDepth());
mClip["effects" + effectLayer].closedUp = false;
mClip["effects" + effectLayer].activated = false;
mClip["effects" + effectLayer].currentLink = 1;
mClip["effects" + effectLayer].linkDex = 0;
mClip["effects" + effectLayer].minX = 0;
mClip["effects" + effectLayer].maxX = 0;
mClip["effects" + effectLayer].minY = 0;
mClip["effects" + effectLayer].maxY = 0;
mClip["effects" + effectLayer].lastX = mClip._xmouse;
mClip["effects" + effectLayer].lastY = mClip._ymouse;
mClip["effects" + effectLayer].attachLink = function () {
var _local2 = this.linkDex;
if (this.linkDex == 2) {
this.link0._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link0._y - this.link1._y, this.link0._x - this.link1._x));
}
if (this.linkDex == 3) {
this.link1._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this.link2._y - this.link2._y, this.link1._x - this.link2._x));
}
this.attachMovie("paint_reed" + this.currentLink, "link" + this.linkDex, _local2);
this["link" + this.linkDex]._x = this._xmouse;
this["link" + this.linkDex]._y = this._ymouse;
this["link" + this.linkDex]._rotation = this._parent._parent._parent.toDegrees(Math.atan2(this["link" + this.linkDex]._y - this.lastY, this["link" + this.linkDex]._x - this.lastX));
if (this._xmouse < this.minX) {
this.minX = this._xmouse;
}
if (this._xmouse > this.maxX) {
this.maxX = this._xmouse;
}
if (this._ymouse > this.maxY) {
this.maxY = this._ymouse;
}
if (this._ymouse < this.minY) {
this.minY = this._ymouse;
}
this.linkDex++;
this.currentLink++;
if (this.currentLink == 4) {
this.currentLink = 1;
}
};
mClip["effects" + effectLayer].onMouseMove = function () {
if (this._parent._parent._parent.theMouseIsDown) {
if (!this.activated) {
this.attachLink();
this.activated = true;
} else if (this._parent._parent._parent.dist(this._xmouse, this._ymouse, this.lastX, this.lastY) > 40) {
this.attachLink();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
}
} else if (this.activated) {
delete this.onMouseMove;
}
};
effectLayer++;
return(mClip["effects" + (effectLayer - 1)]);
}
function drawWithBlood(mClip) {
var minX = 0;
var maxX = 0;
var minY = 0;
var maxY = 0;
mClip.createEmptyMovieClip("effects" + effectLayer, mClip.getNextHighestDepth());
mClip["effects" + effectLayer].closedUp = false;
mClip["effects" + effectLayer].activated = false;
mClip["effects" + effectLayer].currentLink = 1;
mClip["effects" + effectLayer].linkDex = 0;
mClip["effects" + effectLayer].minX = 0;
mClip["effects" + effectLayer].maxX = 0;
mClip["effects" + effectLayer].minY = 0;
mClip["effects" + effectLayer].maxY = 0;
mClip["effects" + effectLayer].lastX = mClip._xmouse;
mClip["effects" + effectLayer].lastY = mClip._ymouse;
mClip["effects" + effectLayer].attachLink = function () {
var _local2 = this.linkDex;
this.attachMovie("paint_blood" + this.currentLink, "link" + this.linkDex, _local2);
this["link" + this.linkDex]._x = this._xmouse;
this["link" + this.linkDex]._y = this._ymouse;
if (this._xmouse < this.minX) {
this.minX = this._xmouse;
}
if (this._xmouse > this.maxX) {
this.maxX = this._xmouse;
}
if (this._ymouse > this.maxY) {
this.maxY = this._ymouse;
}
if (this._ymouse < this.minY) {
this.minY = this._ymouse;
}
this.linkDex++;
this.currentLink++;
if (this.currentLink == 4) {
this.currentLink = 1;
}
};
mClip["effects" + effectLayer].onMouseMove = function () {
if (this._parent._parent._parent.theMouseIsDown) {
if (!this.activated) {
this.attachLink();
this.activated = true;
} else if (this._parent._parent._parent.dist(this._xmouse, this._ymouse, this.lastX, this.lastY) > 15) {
this.attachLink();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
}
} else if (this.activated) {
delete this.onMouseMove;
}
};
effectLayer++;
return(mClip["effects" + (effectLayer - 1)]);
}
function createTextClip(theText) {
var _local2;
var _local3;
var _local6;
var _local7 = 2;
var _local9 = 4;
var _local4 = 3;
var _local8 = 0;
var _local5;
this.createEmptyMovieClip("textClip", 999999);
_local2 = 0;
while (_local2 < theText.length) {
_local5 = true;
_local3 = theText.substring(_local2, _local2 + 1);
if (_local3 == " ") {
_local4 = _local4 + _local9;
_local5 = false;
} else if (_local3 == "-") {
this.textClip.attachMovie("hyphen", "lett" + _local2, _local2);
} else if (_local3 == ":") {
this.textClip.attachMovie("colon", "lett" + _local2, _local2);
} else if (_local3 == "|") {
_local4 = 3;
_local8 = _local8 + (this.textClip._height + _local7);
_local5 = false;
} else if (_local3.toUpperCase() == _local3) {
this.textClip.attachMovie("cap_" + _local3.toLowerCase(), "lett" + _local2, _local2);
} else {
this.textClip.attachMovie("low_" + _local3.toLowerCase(), "lett" + _local2, _local2);
}
if (_local5) {
this.textClip["lett" + _local2]._x = _local4;
_local4 = _local4 + (_local7 + this.textClip["lett" + _local2]._width);
this.textClip["lett" + _local2]._y = _local8;
}
_local2++;
}
_local6 = textClip;
_local6.lineStyle(1, 0, 100);
_local6.beginFill(15657995, 100);
_local6.moveTo(0, -_local9);
_local6.lineTo(_local4 + _local7, -_local9);
_local6.lineTo(_local4 + _local7, (_local8 + _local6.lett0._height) + _local9);
_local6.lineTo(0, (_local8 + _local6.lett0._height) + _local9);
_local6.lineTo(0, -_local9);
_local6.endFill();
_local6.frameCount = 0;
_local6.onEnterFrame = function () {
this.frameCount++;
if (this.frameCount >= 72) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
_local6._x = _xmouse - 10;
_local6._y = _ymouse - (_local6._height - 5);
if ((_local6._x + _local6._width) >= Stage.width) {
_local6._x = Stage.width - _local6._width;
}
}
function deleteTextClip() {
textClip.removeMovieClip();
}
function affectFrame(theClip, frameDir) {
if (frameDir > 0) {
if (theClip._currentframe < theClip._totalframes) {
theClip.gotoAndStop(theClip._currentframe + 1);
} else {
theClip.gotoAndStop(1);
}
} else if (theClip._currentframe > 1) {
theClip.gotoAndStop(theClip._currentframe - 1);
} else {
theClip.gotoAndStop(theClip._totalframes);
}
}
function selectionObject() {
this.selections = new Array();
this.selectionDex = 0;
this.selectionClip = null;
this.centerPoint = [0, 0];
this.addToTheSelection = function (clipToAdd) {
if (!this.isPartOfSelection(clipToAdd)) {
this.selections[this.selectionDex] = clipToAdd;
this.selectionDex++;
this.processSelection();
}
};
this.removeFromSelection = function (clipToRemove) {
if (this.isPartOfSelection(clipToRemove)) {
var _local2;
_local2 = 0;
while (_local2 < this.selectionDex) {
if (this.selections[_local2]._name == clipToRemove._name) {
this.selections[_local2].clear();
this.selections[_local2].isSelected = false;
this.selections[_local2] = null;
}
_local2++;
}
}
};
this.clearTheSelection = function () {
var _local2;
_local2 = 0;
while (_local2 < this.selectionDex) {
this.selections[_local2].clear();
this.selections[_local2].isSelected = false;
this.selections[_local2] = null;
_local2++;
}
this.selectionDex = 0;
this.selectionClip.removeMovieClip();
};
this.isPartOfSelection = function (compClip) {
var _local2;
_local2 = 0;
while (_local2 < this.selectionDex) {
if (this.selections[_local2]._name == compClip._name) {
return(true);
}
_local2++;
}
return(false);
};
this.findCenter = function () {
this.centerPoint[0] = controls.theCenter._x;
this.centerPoint[1] = controls.theCenter._y;
};
this.processSelection = function () {
var _local9;
var _local2;
var _local3;
var _local4;
var _local8;
var _local6;
var _local7;
var _local5;
_local9 = 0;
while (_local9 < this.selectionDex) {
_local2 = this.selections[_local9];
_local2.clear();
_local8 = [_local2.minX, _local2.minY];
_local6 = [_local2.maxX, _local2.minY];
_local7 = [_local2.maxX, _local2.maxY];
_local5 = [_local2.minX, _local2.maxY];
_local3 = 0;
_local4 = 0;
lineBetween(_local2, _local8[0] + _local3, _local8[1] + _local4, _local6[0] + _local3, _local6[1] + _local4, 16711935, 100);
lineBetween(_local2, _local6[0] + _local3, _local6[1] + _local4, _local7[0] + _local3, _local7[1] + _local4, 16711935, 100);
lineBetween(_local2, _local7[0] + _local3, _local7[1] + _local4, _local5[0] + _local3, _local5[1] + _local4, 16711935, 100);
lineBetween(_local2, _local5[0] + _local3, _local5[1] + _local4, _local8[0] + _local3, _local8[1] + _local4, 16711935, 100);
_local9++;
}
this.findCenter();
};
this.rotateSelection = function (degrees) {
var _local4;
var _local8;
var _local7;
var _local10;
var _local9;
var _local2;
var _local3 = toRadians(degrees);
var _local6 = this.centerPoint[0];
var _local5 = this.centerPoint[1];
_local4 = 0;
while (_local4 < this.selectionDex) {
_local2 = this.selections[_local4];
if (_local2 != null) {
_local8 = _local2._x;
_local7 = _local2._y;
_local10 = (_local6 + ((_local8 - _local6) * Math.cos(_local3))) - ((_local7 - _local5) * Math.sin(_local3));
_local9 = (_local5 + ((_local8 - _local6) * Math.sin(_local3))) + ((_local7 - _local5) * Math.cos(_local3));
_local2._rotation = _local2._rotation + degrees;
_local2._x = _local10;
_local2._y = _local9;
if (_local2.refOBJ.objectType == 2) {
_local2.brotherOBJ._rotation = _local2._rotation;
_local2.brotherOBJ._x = _local2._x;
_local2.brotherOBJ._y = _local2._y;
}
}
_local4++;
}
};
this.resizeSelection = function (dir) {
var _local3;
var _local4;
var _local2;
var _local5;
var _local8 = dir;
var _local6 = false;
_local3 = 0;
while (_local3 < this.selectionDex) {
if (this.selections[_local3] != null) {
_local4 = this.selections[_local3];
break;
}
_local3++;
}
_local3 = 0;
while (_local3 < this.selectionDex) {
if (this.selections[_local3] != null) {
_local2 = this.selections[_local3];
_local2.angleAndDist = [Math.atan2(_local2._y - _local4._y, _local2._x - _local4._x), dist(_local2._x, _local2._y, _local4._x, _local4._y)];
}
_local3++;
}
_local5 = dir / _local4._xscale;
if (Math.abs(dir) > 1) {
dir = -2 * _local4._xscale;
_local8 = 0;
_local4._xscale = _local4._xscale + dir;
_local6 = true;
} else {
_local4._xscale = _local4._xscale + (dir * (_local4._xscale / Math.abs(_local4._xscale)));
}
_local4._yscale = _local4._yscale + _local8;
if (_local4.refOBJ.objectType == 2) {
_local4.brotherOBJ._xscale = _local4._xscale;
_local4.brotherOBJ._yscale = _local4._yscale;
_local4.brotherOBJ._x = _local4._x;
_local4.brotherOBJ._y = _local4._y;
}
_local3 = 0;
while (_local3 < this.selectionDex) {
if ((this.selections[_local3] != null) && (this.selections[_local3]._name != _local4._name)) {
_local2 = this.selections[_local3];
if (!_local6) {
if ((_local2._xscale > 1) || (_local5 > 0)) {
_local2._xscale = _local2._xscale + (_local5 * _local2._xscale);
_local2._yscale = _local2._yscale + (_local5 * _local2._yscale);
_local2._x = _local4._x + ((Math.cos(_local2.angleAndDist[0]) * _local2.angleAndDist[1]) * (1 + _local5));
_local2._y = _local4._y + ((Math.sin(_local2.angleAndDist[0]) * _local2.angleAndDist[1]) * (1 + _local5));
}
if (_local2.refOBJ.objectType == 2) {
_local2.brotherOBJ._xscale = _local2._xscale;
_local2.brotherOBJ._yscale = _local2._yscale;
_local2.brotherOBJ._x = _local2._x;
_local2.brotherOBJ._y = _local2._y;
}
} else {
_local2.onRelease();
}
}
_local3++;
}
};
this.getDepthArray = function () {
var _local2;
var _local3;
var _local5 = new Array();
var _local4 = 0;
_local2 = 0;
while (_local2 < this.selectionDex) {
_local3 = this.selections[_local2];
if (_local3 != null) {
_local5[_local4] = _local3.getDepth();
_local4++;
}
_local2++;
}
return(_local5);
};
this.redepthSelection = function (dir) {
var _local9;
var _local3;
var _local2 = null;
var _local6;
var _local8;
var _local5 = this.getDepthArray();
var _local7 = copyArray(this.selections, 0, this.selectionDex - 1);
QuickSort(_local5, 0, _local5.length - 1, _local7);
var _local10 = new Array();
var _local11 = new Array();
var _local4 = 0;
for (_local9 in controls.objAttach) {
if (typeof(controls.objAttach[_local9].indexOf("movieclip")) != -1) {
_local2 = controls.objAttach[_local9];
if (dir < 0) {
if (((_local2.getDepth() < _local5[0]) && (!this.isPartOfSelection(_local2))) && (!_local2.isABrother)) {
_local10[_local4] = _local2.getDepth();
_local11[_local4] = _local2;
_local4++;
}
} else if (((_local2.getDepth() > _local5[_local5.length - 1]) && (!this.isPartOfSelection(_local2))) && (!_local2.isABrother)) {
_local10[_local4] = _local2.getDepth();
_local11[_local4] = _local2;
_local4++;
}
}
}
if (_local4 == 0) {
} else {
QuickSort(_local10, 0, _local4 - 1, _local11);
if (dir < 0) {
_local6 = _local10[_local4 - 1];
_local3 = 0;
while (_local3 < _local5.length) {
_local8 = _local7[_local3].getDepth();
_local7[_local3].swapDepths(_local6);
_local6 = _local8;
_local3++;
}
} else {
_local6 = _local10[0];
_local3 = _local5.length - 1;
while (_local3 >= 0) {
_local8 = _local7[_local3].getDepth();
_local7[_local3].swapDepths(_local6);
_local6 = _local8;
_local3--;
}
}
}
};
this.frameOn = function (frameDir) {
var _local4;
var _local3;
var _local2;
var _local5;
_local5 = false;
if (this.selectionDex == 0) {
_local5 = true;
}
_local4 = 0;
while (_local4 < this.selectionDex) {
_local2 = this.selections[_local4];
affectFrame(_local2, frameDir);
if (_local2._totalframes > 4) {
_local2.framesAccessed[_local2._currentframe - 1] = true;
_local3 = 0;
while (_local3 < _local2.framesAccessed.length) {
if (!_local2.framesAccessed[_local3]) {
_local5 = true;
}
_local3++;
}
} else {
_local5 = true;
}
if (_local2.refOBJ.objectType == 2) {
affectFrame(_local2.brotherOBJ, frameDir);
}
_local4++;
}
if (!_local5) {
activateBonus(0);
}
};
this.deleteSelection = function () {
var _local3;
var _local2;
var _local4 = new Date().getTime();
if ((_local4 - lastDeletePress) < 500) {
deleteAll();
this.clearTheSelection();
} else {
activateBonus(3);
_local3 = 0;
while (_local3 < this.selectionDex) {
_local2 = this.selections[_local3];
if (_local2.refOBJ.objectType == 2) {
_local2.brotherOBJ.removeMovieClip();
}
_local2.removeMovieClip();
_local3++;
}
this.clearTheSelection();
}
lastDeletePress = _local4;
};
this.moveAll = function (draggedOBJ, lastX, lastY) {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < this.selectionDex) {
_local2 = this.selections[_local3];
if (_local2._name != draggedOBJ._name) {
_local2._x = _local2._x + (draggedOBJ._x - lastX);
_local2._y = _local2._y + (draggedOBJ._y - lastY);
}
if (_local2.refOBJ.objectType == 2) {
_local2.brotherOBJ._x = _local2._x;
_local2.brotherOBJ._y = _local2._y;
}
_local3++;
}
};
}
function selectObject(objectToSelect) {
if (!Key.isDown(16)) {
if (!theSelection.isPartOfSelection(objectToSelect)) {
theSelection.clearTheSelection();
}
}
objectToSelect.isSelected = true;
theSelection.addToTheSelection(objectToSelect);
}
function anyClipsAttached() {
for (variable in controls.objAttach) {
if (typeof(controls.objAttach[variable].indexOf("movieclip")) != -1) {
return(true);
}
}
return(false);
}
function dragOutObject(category, avatar, objectType, movieRefs, executable, descript) {
this.category = category;
this.avatar = avatar;
this.objectType = objectType;
this.movieRefs = movieRefs;
this.executable = executable;
this.currentPaintIndex = 0;
this.descript = descript;
this.createMyObject = function () {
var _local3;
var _local2 = null;
var _local5 = null;
var _local6 = "";
var _local4 = controls.objAttach.getNextHighestDepth();
if (!anyClipsAttached()) {
_local4 = 1000;
}
switch (this.objectType) {
case 1 :
controls.objAttach.attachMovie(this.movieRefs, "obj" + _local4, _local4);
_local2 = controls.objAttach["obj" + _local4];
_local2.minX = 0;
_local2.maxX = _local2._width;
_local2.minY = 0;
_local2.maxY = _local2._height;
break;
case 2 :
_local6 = this.movieRefs.split(",");
controls.objAttach.attachMovie(_local6[0], "obj" + _local4, _local4);
_local2 = controls.objAttach["obj" + _local4];
_local2.minX = 0;
_local2.maxX = _local2._width;
_local2.minY = 0;
_local2.maxY = _local2._height;
controls.objAttach.attachMovie(_local6[1], "obj" + (_local4 - brotherOBJDisplacement), _local4 - brotherOBJDisplacement);
_local5 = controls.objAttach["obj" + (_local4 - brotherOBJDisplacement)];
_local5.minX = 0;
_local5.maxX = _local5._width;
_local5.minY = 0;
_local5.maxY = _local5._height;
_local5.isABrother = true;
_local2.brotherOBJ = _local5;
break;
case 3 :
_local2 = this.executable(controls.objAttach);
painting = true;
}
if (_local2 != null) {
timesContentAdded++;
if (timesContentAdded >= 5) {
activateBonus(4);
}
_local2.isABrother = false;
_local2._parent._parent._parent.firstClipAttached = true;
_local2.beingDragged = false;
_local2.onPress = function () {
if (!this._parent._parent._parent.painting) {
this.lastX = this._x;
this.lastY = this._y;
this.beingDragged = true;
this.isSelected = false;
this.onMouseMove = function () {
if (this.beingDragged) {
this._parent._parent._parent.selectObject(this);
this._parent._parent._parent.theSelection.moveAll(this, this.lastX, this.lastY);
}
this.lastX = this._x;
this.lastY = this._y;
};
this.startDrag();
}
};
_local2.onRelease = function () {
this.beingDragged = false;
this.stopDrag();
if (this._parent._parent._parent.theSelection.isPartOfSelection(this)) {
if ((this.lastX == this._x) && (this.lastY == this._y)) {
this._parent._parent._parent.theSelection.removeFromSelection(this);
} else {
this._parent._parent._parent.selectObject(this);
}
} else {
this._parent._parent._parent.selectObject(this);
}
};
_local2.onReleaseOutside = _local2.onRelease;
_local2.refOBJ = this;
if (_local2._totalframes > 4) {
_local2.framesAccessed = new Array(_local2._totalframes);
_local2.framesAccessed[0] = true;
_local3 = 1;
while (_local3 < _local2._totalframes) {
_local2.framesAccessed[_local3] = false;
_local3++;
}
}
}
if (_local2 != null) {
if (!_local2._parent._parent._parent.bonusItems[1]) {
testBonus2();
}
}
};
}
function addDragObject(category, avatar, objectType, movieRefs, executable, descript) {
dragObjects[DODex] = new dragOutObject(category, avatar, objectType, movieRefs, executable, descript);
DODex++;
}
function scrollDisplayContent(percentAndDirection) {
var _local2 = 40;
var _local1 = controls.displayPanel.attachClip;
if (scrollMax == 0) {
scrollMax = _local1._y;
}
if (scrollMin == 0) {
if (controls.displayPanel.masking._height < _local1._height) {
scrollMin = -(_local1._height - controls.displayPanel.masking._height);
} else {
scrollMin = _local1._y;
}
}
if (percentAndDirection > 0) {
if (_local1._y > scrollMin) {
_local1._y = _local1._y - (_local2 * percentAndDirection);
} else {
_local1._y = scrollMin;
if (scrollMin < -700) {
activateBonus(6);
}
}
} else if (_local1._y < scrollMax) {
_local1._y = _local1._y - (_local2 * percentAndDirection);
} else {
_local1._y = scrollMax;
}
}
function clearAllAvatars() {
var _local1 = controls.displayPanel.attachClip;
var _local2;
for (_local2 in _local1) {
if (typeof(_local1[_local2].indexOf("movieclip")) != -1) {
if (_local1[_local2]._name.indexOf("avatar") == 0) {
_local1[_local2].theBorder.play();
}
}
}
}
function pushDisplayCategory(catName) {
var _local2;
var _local3;
var _local6 = 0;
var _local4 = 14;
var _local8 = 80;
var _local5 = _local4;
var _local7 = _local4;
if (catName == "bonus") {
processAllBonuses();
}
if ((currentDisplayCategory != catName) || (catName == "bonus")) {
currentDisplayCategory = catName;
scrollMin = 0;
if (scrollMax != 0) {
controls.displayPanel.attachClip._y = scrollMax;
}
clearAllAvatars();
_local2 = 0;
while (_local2 < DODex) {
if (dragObjects[_local2].category == catName) {
controls.displayPanel.attachClip.attachMovie(dragObjects[_local2].avatar, "avatar" + _local2, _local2);
_local3 = controls.displayPanel.attachClip["avatar" + _local2];
_local3._x = _local5;
_local5 = _local5 + (_local8 + _local4);
_local3._y = _local7;
_local3.refOBJ = dragObjects[_local2];
if ((_local6 % 2) == 1) {
_local5 = _local4;
_local7 = _local7 + (_local8 + _local4);
}
_local3.onRelease = function () {
this.refOBJ.createMyObject();
deleteTextClip();
};
_local3.onReleaseOutside = function () {
deleteTextClip();
};
_local3.onRollOver = function () {
this.timeCount = 0;
this.onEnterFrame = function () {
this.timeCount++;
if (this.timeCount >= 16) {
createTextClip(this.refOBJ.descript);
}
};
};
_local3.onRollOut = function () {
deleteTextClip();
delete this.onEnterFrame;
};
_local6++;
}
_local2++;
}
}
}
function controlVisibility() {
var _local1;
var _local2;
if (border._visible) {
_local2 = true;
} else {
theSelection.clearTheSelection();
border.makeCompliment();
_local2 = false;
}
border._visible = !_local2;
for (_local1 in controls) {
if (typeof(controls[_local1].indexOf("movieclip")) != -1) {
if (controls[_local1]._name.indexOf("objAttach") == -1) {
controls[_local1]._visible = _local2;
}
}
}
if (!_local2) {
for (_local1 in controls.objAttach) {
if (typeof(controls.objAttach[_local1].indexOf("movieclip")) != -1) {
controls.objAttach[_local1].storedX = controls.objAttach[_local1]._x;
controls.objAttach[_local1].storedY = controls.objAttach[_local1]._y;
controls.objAttach[_local1].storedXScale = controls.objAttach[_local1]._xscale;
controls.objAttach[_local1].storedYScale = controls.objAttach[_local1]._yscale;
controls.objAttach[_local1]._x = (controls.miniObjAttach._x - controls.objAttach._x) + (controls.objAttach[_local1]._x * 0.33);
controls.objAttach[_local1]._y = (controls.miniObjAttach._y - controls.objAttach._y) + (controls.objAttach[_local1]._y * 0.33);
controls.objAttach[_local1]._xscale = controls.objAttach[_local1]._xscale * 0.33;
controls.objAttach[_local1]._yscale = controls.objAttach[_local1]._yscale * 0.33;
}
}
} else {
for (_local1 in controls.objAttach) {
if (typeof(controls.objAttach[_local1].indexOf("movieclip")) != -1) {
controls.objAttach[_local1]._x = controls.objAttach[_local1].storedX;
controls.objAttach[_local1]._y = controls.objAttach[_local1].storedY;
controls.objAttach[_local1]._xscale = controls.objAttach[_local1].storedXScale;
controls.objAttach[_local1]._yscale = controls.objAttach[_local1].storedYScale;
}
}
}
miniObjAttach._x;
}
function testBonus2() {
var _local1;
var _local2 = false;
var _local3 = false;
for (_local1 in controls.objAttach) {
if (typeof(controls.objAttach[_local1].indexOf("movieclip")) != -1) {
if (controls.objAttach[_local1].refOBJ.descript == "Ornate crown") {
_local3 = true;
}
if (controls.objAttach[_local1].refOBJ.descript == "Strawberry") {
_local2 = true;
}
}
}
if (_local3 && (_local2)) {
activateBonus(1);
}
}
function makeConglomeratedName() {
var _local2;
var _local4 = "";
var _local3 = 0;
var _local1;
for (_local2 in controls.objAttach) {
if (typeof(controls.objAttach[_local2].indexOf("movieclip")) != -1) {
if (_local3 < 3) {
_local1 = controls.objAttach[_local2].refOBJ.descript.split(" ");
_local4 = _local4 + (_local1[randomBounded(1, _local1.length) - 1].toLowerCase() + " ");
_local3++;
}
}
}
return(_local4);
}
function deleteAll() {
var _local1;
for (_local1 in controls.objAttach) {
if (typeof(controls.objAttach[_local1].indexOf("movieclip")) != -1) {
controls.objAttach[_local1].removeMovieClip();
}
}
}
var effectLayer = 0;
var theMouseIsDown = false;
var painting = false;
var brotherOBJDisplacement = 500;
var timesContentAdded = 0;
var lastDeletePress = 0;
var bonusItems = new Array(7);
var currentDisplayCategory = "";
var myLocal_so = SharedObject.getLocal("icon_creator_bonuses");
var currentMusicSelection = 0;
bonusItems[0] = false;
bonusItems[1] = false;
bonusItems[2] = false;
bonusItems[3] = false;
bonusItems[4] = false;
bonusItems[5] = false;
bonusItems[6] = false;
if (myLocal_so.data.bonusdata != undefined) {
processBonusData();
}
border._visible = false;
this.onMouseDown = function () {
theMouseIsDown = true;
};
this.onMouseUp = function () {
theMouseIsDown = false;
if (painting) {
activateBonus(5);
}
painting = false;
};
var theSelection = new selectionObject();
var dragObjects = new Array();
var DODex = 0;
addDragObject("base", "handle_metal_avatar", 1, "handle_metal", null, "Metal rod");
addDragObject("base", "handle_wooden_avatar", 1, "handle_wooden", null, "Wooden rod");
addDragObject("base", "base_sword_hilt_jeweled_avatar", 1, "base_sword_hilt_jeweled", null, "Jewelled sword hilt");
addDragObject("base", "base_sword_hilt_organic_avatar", 1, "base_sword_hilt_organic", null, "Organic sword hilt");
addDragObject("base", "base_sword_hilt_rams_head_avatar", 1, "base_sword_hilt_rams_head", null, "Rams head sword hilt");
addDragObject("base", "base_sword_hilt_sun_avatar", 1, "base_sword_hilt_sun", null, "Sun sword hilt");
addDragObject("base", "base_sword_hilt_stylized_avatar", 2, "base_sword_hilt_stylized_front,base_sword_hilt_stylized_back", null, "Stylized sword hilt");
addDragObject("base", "base_sword_straight_hilt_avatar", 2, "base_sword_straight_hilt", null, "Simple sword hilt");
addDragObject("base", "base_sword_handle_ball_avatar", 1, "base_sword_handle_ball", null, "Sword handle");
addDragObject("base", "base_sword_handle_claw_avatar", 1, "base_sword_handle_claw", null, "Sword handle");
addDragObject("base", "base_handle_knuckled_avatar", 1, "base_handle_knuckled", null, "Knuckled dagger handle");
addDragObject("base", "base_staff_branch_avatar", 1, "base_staff_branch", null, "Wooden staff");
addDragObject("base", "base_wooden_stake_avatar", 2, "base_wooden_stake_top,base_wooden_stake_bottom", null, "Impaling wooden stake");
addDragObject("head", "head_spear_carved_avatar", 1, "head_spear_carved", null, "Carved stone spear head");
addDragObject("head", "head_spear_jagged_avatar", 1, "head_spear_jagged", null, "Cast metal spear head with barbs");
addDragObject("head", "head_spear_sleek_avatar", 1, "head_spear_sleek", null, "Cast metal spear head sleek");
addDragObject("head", "head_sword_comical_avatar", 1, "head_sword_comical", null, "Comical sword blade");
addDragObject("head", "head_sword_serrated_avatar", 1, "head_sword_serrated", null, "Serrated sword blade");
addDragObject("head", "head_sword_wavy_avatar", 1, "head_sword_wavy", null, "Wavy sword blade");
addDragObject("head", "head_sword_tapered_avatar", 1, "head_sword_tapered", null, "Tapered sword blade");
addDragObject("head", "head_sword_tang_avatar", 1, "head_sword_tang", null, "Tapered sword blade with tang");
addDragObject("head", "head_sword_straight_avatar", 1, "head_sword_straight", null, "Straight sword blade");
addDragObject("head", "head_sword_rod_blade_avatar", 1, "head_sword_rod_blade", null, "Rod and sword tip blade");
addDragObject("head", "head_dagger_tapered_avatar", 1, "head_dagger_tapered", null, "Tapered dagger blade");
addDragObject("head", "head_dagger_serrated_avatar", 1, "head_dagger_serrated", null, "Serrated dagger blade");
addDragObject("head", "head_axe_spear_avatar", 1, "head_axe_spear", null, "Axe head");
addDragObject("head", "head_axe_stone_avatar", 1, "head_axe_stone", null, "Stone axe head");
addDragObject("head", "head_axe_small_avatar", 1, "head_axe_small", null, "Small axe head");
addDragObject("head", "head_mace_flanged_avatar", 1, "head_mace_flanged", null, "Flanged mace head");
addDragObject("head", "head_mace_clown_avatar", 1, "head_mace_clown", null, "Clown mace head");
addDragObject("head", "head_spear_stinger_avatar", 1, "head_spear_stinger", null, "Large bee stinger");
addDragObject("head", "head_ornate_cross_avatar", 1, "head_ornate_cross", null, "Ornate cross staff head");
addDragObject("paint", "paint_chain_avatar", 3, "chain_link1,chain_link2", drawWithChain, "Draw with chain");
addDragObject("paint", "paint_rope_avatar", 3, "rope_segment", drawWithRope, "Draw with rope");
addDragObject("paint", "paint_electricity_avatar", 3, "lightning", drawWithElectricity, "Draw with electricity");
addDragObject("paint", "paint_skull_beads_avatar", 3, "paint_skull_bead1,paint_skull_bead2,paint_skull_bead3,paint_skull_bead4,paint_skull_bead5,paint_skull_bead6,paint_skull_bead7,paint_skull_bead8", drawWithSkullBeads, "Draw with skulls");
addDragObject("paint", "paint_reeds_avatar", 3, "paint_reed1,paint_reed2,paint_reed3", drawWithReeds, "Draw with reeds");
addDragObject("paint", "paint_blood_avatar", 3, "paint_blood1,paint_blood2,paint_blood3", drawWithBlood, "Draw with blood");
addDragObject("misc", "misc_bone_openhand_avatar", 1, "misc_bone_openhand", null, "Outstretched bone hand");
addDragObject("misc", "misc_bone_griphand_avatar", 2, "misc_bone_griphand_top,misc_bone_griphand_bottom", null, "Gripping bone hand");
addDragObject("misc", "misc_bone_fore_arm_avatar", 1, "misc_bone_fore_arm", null, "Bone fore-arm");
addDragObject("misc", "misc_skull_avatar", 1, "misc_skull", null, "Tribal skull");
addDragObject("misc", "misc_skull_deco_avatar", 1, "misc_skull_deco", null, "Deco skull");
addDragObject("misc", "misc_hand_upright_avatar", 1, "misc_hand_upright", null, "Upright hand");
addDragObject("misc", "misc_jutting_nail2_avatar", 1, "misc_jutting_nail2", null, "Jutting nail");
addDragObject("misc", "misc_jutting_nail_avatar", 1, "misc_jutting_nail", null, "Jutting nail");
addDragObject("misc", "misc_crown_avatar", 2, "misc_crown_top,misc_crown_bottom", null, "Ornate crown");
addDragObject("misc", "misc_strawberry_avatar", 1, "misc_strawberry", null, "Strawberry");
addDragObject("misc", "misc_eyeball_avatar", 1, "misc_eyeball", null, "Eyeball");
addDragObject("misc", "misc_lens_flare_avatar", 1, "misc_lens_flare", null, "Lens flare");
addDragObject("misc", "misc_lens_flare2_avatar", 1, "misc_lens_flare2", null, "Lens flare");
addDragObject("misc", "misc_bomb_avatar", 1, "misc_bomb", null, "Classic fuse bomb");
addDragObject("misc", "misc_flame1_avatar", 1, "misc_flame1", null, "Single flame");
addDragObject("misc", "misc_crystal1_avatar", 1, "misc_crystal1", null, "Large crystal");
addDragObject("misc", "misc_crystal2_avatar", 1, "misc_crystal2", null, "Small crystal");
addDragObject("misc", "misc_crystal3_avatar", 1, "misc_crystal3", null, "Small crystal");
addDragObject("misc", "misc_crystal4_avatar", 1, "misc_crystal4", null, "Crystal backward");
addDragObject("misc", "misc_crystal_ball_avatar", 1, "misc_crystal_ball", null, "Crystal ball");
addDragObject("misc", "misc_glass_shard1_avatar", 1, "misc_glass_shard1", null, "Glass shard");
addDragObject("misc", "misc_glass_shard2_avatar", 1, "misc_glass_shard2", null, "Glass shard");
addDragObject("misc", "misc_popcicle_firecracker_avatar", 1, "misc_popcicle_firecracker", null, "Firecracker popcicle");
addDragObject("misc", "misc_ham_leg_avatar", 1, "misc_ham_leg", null, "Ham leg");
addDragObject("misc", "misc_donut_avatar", 2, "misc_donut_top,misc_donut_bottom", null, "Donut with sprinkles");
addDragObject("misc", "misc_pepper_avatar", 1, "misc_pepper", null, "Hot pepper");
addDragObject("misc", "misc_cheese_avatar", 1, "misc_cheese", null, "Swiss cheese");
addDragObject("misc", "misc_jewel_diamond_avatar", 1, "misc_jewel_diamond", null, "Diamond-cut jewel");
addDragObject("misc", "misc_jewel_cabochon_avatar", 1, "misc_jewel_cabochon", null, "Round jewel cabochon");
addDragObject("misc", "misc_jewel_oval_avatar", 1, "misc_jewel_oval", null, "Oval jewel cabochon");
addDragObject("misc", "misc_jewel_radiant_avatar", 1, "misc_jewel_radiant", null, "Radiant-cut jewel");
var scrollMin = 0;
var scrollMax = 0;
musics.gotoAndStop(1);
stop();
Instance of Symbol 787 MovieClip "border" in Frame 7
on (release) {
}
Symbol 20 MovieClip Frame 6
stop();
Symbol 20 MovieClip Frame 9
_parent.removeMovieClip();
Symbol 171 MovieClip Frame 1
function randomBounded(lowerBound, upperBound) {
var _local1 = (upperBound - lowerBound) + 1;
var _local2 = Math.random() * _local1;
return(lowerBound + parseInt(_local2));
}
function preloaderBox(clip) {
this.clip = clip;
this.active = false;
this.alive = true;
this.jumpspeed = 0;
this.jumpstart = -randomBounded(5, 15);
var _local2 = randomBounded(1, 3) - 2;
if (_local2 == 0) {
_local2 = randomBounded(1, 3) - 2;
}
this.rotative = _local2 * randomBounded(5, 25);
this.velocity = _local2 * randomBounded(3, 8);
this.scaleIncrement = randomBounded(1, 5);
}
function activateByPercentLoad(percent) {
i = lowDex;
while (i < percent) {
if (!boxArray[i].active) {
boxArray[i].active = true;
boxArray[i].jumpspeed = boxArray[i].jumpstart;
if (i == 99) {
gotoAndPlay ("loaded");
}
}
i++;
}
}
var theBox;
var gravity = 2;
var boxArray = new Array(100);
var boxDex = 0;
j = 0;
while (j < 10) {
i = 0;
while (i < 10) {
boxattach.attachMovie("preloader_box", (("box_" + i) + "_") + j, 100 - ((j * 10) + i));
theBox = boxattach[(("box_" + i) + "_") + j];
theBox._x = (theBox._width * i) + (theBox._width / 2);
theBox._y = (theBox._height * j) + (theBox._height / 2);
boxArray[boxDex] = new preloaderBox(theBox);
boxDex++;
i++;
}
j++;
}
var lowDex = 0;
this.onEnterFrame = function () {
var _local1;
var _local2;
_local2 = false;
_local1 = lowDex;
while (_local1 < boxArray.length) {
if (boxArray[_local1].active && (boxArray[_local1].alive)) {
if (!_local2) {
_local2 = true;
lowDex = _local1;
}
boxArray[_local1].clip._rotation = boxArray[_local1].clip._rotation + boxArray[_local1].rotative;
boxArray[_local1].jumpspeed = boxArray[_local1].jumpspeed + gravity;
boxArray[_local1].clip._x = boxArray[_local1].clip._x + boxArray[_local1].velocity;
boxArray[_local1].clip._y = boxArray[_local1].clip._y + boxArray[_local1].jumpspeed;
boxArray[_local1].clip._xscale = boxArray[_local1].clip._xscale + boxArray[_local1].scaleIncrement;
boxArray[_local1].clip._yscale = boxArray[_local1].clip._yscale + boxArray[_local1].scaleIncrement;
if (boxArray[_local1].alive && (boxArray[_local1].clip._y >= (Stage.height + (boxArray[_local1].clip._height * 2)))) {
boxArray[_local1].clip.removeMovieClip();
boxArray[_local1].alive = false;
}
}
_local1++;
}
};
_parent.stop();
Symbol 171 MovieClip Frame 2
totalBytes = _parent.getBytesTotal();
loadedBytes = _parent.getBytesLoaded();
percentDone = int((loadedBytes / totalBytes) * 100);
activateByPercentLoad(percentDone);
if ((_parent._framesloaded == _parent._totalframes) || (percentDone == 100)) {
}
Symbol 171 MovieClip Frame 3
gotoAndPlay ("keeploading");
Symbol 171 MovieClip Frame 83
_parent.play();
Symbol 177 MovieClip [base_staff_branch] Frame 1
stop();
Symbol 177 MovieClip [base_staff_branch] Frame 2
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 1
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 2
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 3
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 4
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 5
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 6
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 7
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 8
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 9
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 10
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 11
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 12
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 13
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 14
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 15
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 16
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 17
stop();
Symbol 193 MovieClip [base_sword_handle_claw] Frame 18
stop();
Symbol 194 MovieClip [base_sword_handle_claw_avatar] Frame 1
handle.gotoAndStop(15);
Symbol 206 MovieClip [misc_jewel_oval] Frame 1
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 2
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 3
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 4
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 5
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 6
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 7
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 8
stop();
Symbol 206 MovieClip [misc_jewel_oval] Frame 9
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 1
jewel.gotoAndStop(1);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 2
jewel.gotoAndStop(2);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 3
jewel.gotoAndStop(3);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 4
jewel.gotoAndStop(4);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 5
jewel.gotoAndStop(5);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 6
jewel.gotoAndStop(6);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 7
jewel.gotoAndStop(7);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 8
jewel.gotoAndStop(8);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 9
jewel.gotoAndStop(9);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 10
jewel.gotoAndStop(1);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 11
jewel.gotoAndStop(2);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 12
jewel.gotoAndStop(3);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 13
jewel.gotoAndStop(4);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 14
jewel.gotoAndStop(5);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 15
jewel.gotoAndStop(6);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 16
jewel.gotoAndStop(7);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 17
jewel.gotoAndStop(8);
stop();
Symbol 208 MovieClip [base_sword_hilt_jeweled] Frame 18
jewel.gotoAndStop(9);
stop();
Symbol 218 MovieClip [base_sword_hilt_rams_head] Frame 1
stop();
Symbol 218 MovieClip [base_sword_hilt_rams_head] Frame 2
stop();
Symbol 218 MovieClip [base_sword_hilt_rams_head] Frame 3
stop();
Symbol 223 MovieClip [base_sword_hilt_stylized_front] Frame 1
stop();
Symbol 224 MovieClip [base_sword_hilt_stylized_avatar] Frame 1
handle.gotoAndStop(15);
Symbol 242 MovieClip [handle_metal] Frame 1
stop();
Symbol 242 MovieClip [handle_metal] Frame 2
stop();
Symbol 242 MovieClip [handle_metal] Frame 3
stop();
Symbol 242 MovieClip [handle_metal] Frame 4
stop();
Symbol 242 MovieClip [handle_metal] Frame 5
stop();
Symbol 242 MovieClip [handle_metal] Frame 6
stop();
Symbol 246 MovieClip [handle_wooden] Frame 1
stop();
Symbol 246 MovieClip [handle_wooden] Frame 2
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
play();
Symbol 252 MovieClip Frame 10
stop();
Symbol 252 MovieClip Frame 11
play();
Symbol 252 MovieClip Frame 20
gotoAndPlay ("static");
Symbol 252 MovieClip Frame 21
play();
Symbol 252 MovieClip Frame 30
stop();
Symbol 252 MovieClip Frame 40
gotoAndPlay ("static");
Symbol 252 MovieClip Frame 50
stop();
Symbol 252 MovieClip Frame 60
gotoAndPlay ("static");
Symbol 252 MovieClip Frame 70
stop();
Symbol 252 MovieClip Frame 80
gotoAndPlay ("static");
Symbol 276 MovieClip [bonus_clockface] Frame 1
stop();
Symbol 276 MovieClip [bonus_clockface] Frame 2
play();
Symbol 276 MovieClip [bonus_clockface] Frame 15
stop();
Symbol 276 MovieClip [bonus_clockface] Frame 16
play();
Symbol 276 MovieClip [bonus_clockface] Frame 31
play();
Symbol 276 MovieClip [bonus_clockface] Frame 45
stop();
Symbol 276 MovieClip [bonus_clockface] Frame 46
play();
Symbol 276 MovieClip [bonus_clockface] Frame 61
play();
Symbol 276 MovieClip [bonus_clockface] Frame 75
stop();
Symbol 276 MovieClip [bonus_clockface] Frame 76
play();
Symbol 276 MovieClip [bonus_clockface] Frame 91
play();
Symbol 276 MovieClip [bonus_clockface] Frame 99
stop();
Symbol 276 MovieClip [bonus_clockface] Frame 100
play();
Symbol 276 MovieClip [bonus_clockface] Frame 107
gotoAndPlay ("straight");
Symbol 280 MovieClip [bonus_dead_kitty_krew_cat] Frame 1
stop();
Symbol 280 MovieClip [bonus_dead_kitty_krew_cat] Frame 2
stop();
Symbol 296 MovieClip [head_axe_small] Frame 1
stop();
Symbol 296 MovieClip [head_axe_small] Frame 2
stop();
Symbol 296 MovieClip [head_axe_small] Frame 3
stop();
Symbol 296 MovieClip [head_axe_small] Frame 4
stop();
Symbol 304 MovieClip [head_axe_spear] Frame 1
stop();
Symbol 304 MovieClip [head_axe_spear] Frame 2
stop();
Symbol 304 MovieClip [head_axe_spear] Frame 3
stop();
Symbol 304 MovieClip [head_axe_spear] Frame 4
stop();
Symbol 308 MovieClip [head_axe_stone] Frame 1
stop();
Symbol 308 MovieClip [head_axe_stone] Frame 2
stop();
Symbol 308 MovieClip [head_axe_stone] Frame 3
stop();
Symbol 308 MovieClip [head_axe_stone] Frame 4
stop();
Symbol 322 MovieClip [head_mace_clown] Frame 1
stop();
Symbol 322 MovieClip [head_mace_clown] Frame 2
stop();
Symbol 322 MovieClip [head_mace_clown] Frame 3
stop();
Symbol 326 MovieClip [head_mace_flanged] Frame 1
stop();
Symbol 326 MovieClip [head_mace_flanged] Frame 2
stop();
Symbol 334 MovieClip [head_spear_jagged] Frame 1
stop();
Symbol 334 MovieClip [head_spear_jagged] Frame 2
stop();
Symbol 334 MovieClip [head_spear_jagged] Frame 3
stop();
Symbol 334 MovieClip [head_spear_jagged] Frame 4
stop();
Symbol 339 MovieClip [head_spear_sleek] Frame 1
stop();
Symbol 339 MovieClip [head_spear_sleek] Frame 2
stop();
Symbol 339 MovieClip [head_spear_sleek] Frame 3
stop();
Symbol 339 MovieClip [head_spear_sleek] Frame 4
stop();
Symbol 347 MovieClip [head_sword_comical] Frame 1
stop();
Symbol 347 MovieClip [head_sword_comical] Frame 2
stop();
Symbol 347 MovieClip [head_sword_comical] Frame 3
stop();
Symbol 347 MovieClip [head_sword_comical] Frame 4
stop();
Symbol 364 MovieClip [head_sword_tang] Frame 1
stop();
Symbol 364 MovieClip [head_sword_tang] Frame 2
stop();
Symbol 364 MovieClip [head_sword_tang] Frame 3
stop();
Symbol 364 MovieClip [head_sword_tang] Frame 4
stop();
Symbol 367 MovieClip [head_sword_tapered] Frame 1
stop();
Symbol 367 MovieClip [head_sword_tapered] Frame 2
stop();
Symbol 367 MovieClip [head_sword_tapered] Frame 3
stop();
Symbol 367 MovieClip [head_sword_tapered] Frame 4
stop();
Symbol 372 MovieClip [head_sword_wavy] Frame 1
stop();
Symbol 372 MovieClip [head_sword_wavy] Frame 2
stop();
Symbol 372 MovieClip [head_sword_wavy] Frame 3
stop();
Symbol 372 MovieClip [head_sword_wavy] Frame 4
stop();
Symbol 383 MovieClip [misc_bone_fore_arm] Frame 1
stop();
Symbol 383 MovieClip [misc_bone_fore_arm] Frame 2
stop();
Symbol 383 MovieClip [misc_bone_fore_arm] Frame 3
stop();
Symbol 397 MovieClip [misc_bone_griphand_bottom] Frame 1
stop();
Symbol 397 MovieClip [misc_bone_griphand_bottom] Frame 2
stop();
Symbol 397 MovieClip [misc_bone_griphand_bottom] Frame 3
stop();
Symbol 416 MovieClip [misc_bone_griphand_top] Frame 1
stop();
Symbol 416 MovieClip [misc_bone_griphand_top] Frame 2
stop();
Symbol 416 MovieClip [misc_bone_griphand_top] Frame 3
stop();
Symbol 418 MovieClip [misc_bone_openhand] Frame 1
stop();
Symbol 418 MovieClip [misc_bone_openhand] Frame 2
stop();
Symbol 418 MovieClip [misc_bone_openhand] Frame 3
stop();
Symbol 422 MovieClip [misc_cheese] Frame 1
stop();
Symbol 422 MovieClip [misc_cheese] Frame 2
stop();
Symbol 435 MovieClip [misc_crystal_ball] Frame 1
stop();
Symbol 435 MovieClip [misc_crystal_ball] Frame 2
stop();
Symbol 435 MovieClip [misc_crystal_ball] Frame 3
stop();
Symbol 435 MovieClip [misc_crystal_ball] Frame 4
stop();
Symbol 445 MovieClip [misc_crystal1] Frame 1
stop();
Symbol 445 MovieClip [misc_crystal1] Frame 2
stop();
Symbol 449 MovieClip [misc_crystal2] Frame 1
stop();
Symbol 449 MovieClip [misc_crystal2] Frame 2
stop();
Symbol 453 MovieClip [misc_crystal3] Frame 1
stop();
Symbol 453 MovieClip [misc_crystal3] Frame 2
stop();
Symbol 457 MovieClip [misc_crystal4] Frame 1
stop();
Symbol 457 MovieClip [misc_crystal4] Frame 2
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 1
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 2
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 3
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 4
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 5
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 11
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 12
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 13
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 14
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 15
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 16
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 17
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 18
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 19
stop();
Symbol 471 MovieClip [misc_eyeball] Frame 20
stop();
Symbol 476 MovieClip [misc_flame1] Frame 1
stop();
Symbol 476 MovieClip [misc_flame1] Frame 2
stop();
Symbol 476 MovieClip [misc_flame1] Frame 3
stop();
Symbol 480 MovieClip [misc_glass_shard1] Frame 1
stop();
Symbol 480 MovieClip [misc_glass_shard1] Frame 2
stop();
Symbol 484 MovieClip [misc_glass_shard2] Frame 1
stop();
Symbol 484 MovieClip [misc_glass_shard2] Frame 2
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 1
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 2
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 3
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 4
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 5
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 6
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 7
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 8
stop();
Symbol 499 MovieClip [misc_jewel_cabochon] Frame 9
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 1
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 2
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 3
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 4
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 5
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 6
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 7
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 8
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 9
stop();
Symbol 512 MovieClip [misc_jewel_diamond] Frame 10
stop();
Symbol 513 MovieClip [misc_jewel_diamond_avatar] Frame 1
jewel.gotoAndStop(10);
Symbol 514 MovieClip [misc_jewel_oval_avatar] Frame 1
jewel.gotoAndStop(4);
Symbol 525 MovieClip [misc_jewel_radiant] Frame 1
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 2
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 3
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 4
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 5
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 6
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 7
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 8
stop();
Symbol 525 MovieClip [misc_jewel_radiant] Frame 9
stop();
Symbol 526 MovieClip [misc_jewel_radiant_avatar] Frame 1
jewel.gotoAndStop(6);
Symbol 529 MovieClip [misc_jutting_nail] Frame 1
stop();
Symbol 529 MovieClip [misc_jutting_nail] Frame 2
stop();
Symbol 530 MovieClip [misc_jutting_nail_avatar] Frame 1
jewel.gotoAndStop(6);
Symbol 533 MovieClip [misc_jutting_nail2] Frame 1
stop();
Symbol 533 MovieClip [misc_jutting_nail2] Frame 2
stop();
Symbol 538 MovieClip [misc_lens_flare_avatar] Frame 1
jewel.gotoAndStop(6);
Symbol 541 MovieClip [misc_lens_flare2_avatar] Frame 1
jewel.gotoAndStop(6);
Symbol 544 MovieClip [misc_pepper] Frame 1
stop();
Symbol 544 MovieClip [misc_pepper] Frame 2
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 1
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 2
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 3
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 4
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 5
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 6
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 7
stop();
Symbol 560 MovieClip [misc_skull_deco] Frame 8
stop();
Symbol 574 MovieClip [lightning] Frame 1
function detNumSegs() {
if ((fullSize >= 0) && (fullSize < 30)) {
numSegs = 2;
}
if ((fullSize >= 30) && (fullSize < 200)) {
numSegs = 6;
}
if (fullSize >= 200) {
numSegs = 12;
}
}
function randomBounded(lowerBound, upperBound) {
var _local1 = (upperBound - lowerBound) + 1;
var _local2 = Math.random() * _local1;
return(lowerBound + parseInt(_local2));
}
function lineBetween(drawStage, p1x, p1y, p2x, p2y, colorInfo, alphInfo, lStyle) {
with (drawStage) {
lineStyle(lStyle, colorInfo, alphInfo);
moveTo(p1x, p1y);
lineTo(p2x, p2y);
}
}
function drawBolt() {
var _local6;
var _local5;
var _local4;
var _local2 = 0;
var _local3 = 0;
_local6 = 0;
while (_local6 < numSegs) {
_local5 = _local2;
_local4 = _local3;
_local2 = _local2 + randomBounded(minSegSize, maxSegSize);
_local3 = maxDiverge - (2 * randomBounded(minDiverge, maxDiverge));
if ((_local2 > fullSize) || ((fullSize - _local2) < maxSegSize)) {
_local2 = fullSize;
_local3 = 0;
_local6 = numSegs;
}
lineBetween(this, _local5, _local4 - 1, _local2, _local3 - 1, 292607, 100, 3);
lineBetween(this, _local5, _local4 + 1, _local2, _local3 + 1, 292607, 100, 3);
lineBetween(this, _local5, _local4, _local2, _local3, 15329023, 100, 2);
_local6++;
}
}
var fullSize;
var numSegs = 12;
var minSegSize = Math.floor(fullSize / numSegs);
var maxSegSize = Math.floor((fullSize / numSegs) + (0.1 * (fullSize / numSegs)));
var minDiverge = 0;
var maxDiverge = 9;
var minNumBolts = 1;
var maxNumBolts = 3;
var processCount = 0;
var i;
var numBolts;
detNumSegs();
minSegSize = Math.floor(fullSize / numSegs);
maxSegSize = Math.floor((fullSize / numSegs) + (0.1 * (fullSize / numSegs)));
numBolts = randomBounded(minNumBolts, maxNumBolts);
this.clear();
i = 1;
while (i <= numBolts) {
drawBolt();
i++;
}
Symbol 613 MovieClip [bonus_guitar] Frame 1
stop();
Symbol 613 MovieClip [bonus_guitar] Frame 2
stop();
Symbol 613 MovieClip [bonus_guitar] Frame 3
stop();
Symbol 621 Button
on (release) {
gotoAndPlay (7);
}
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 2
stop();
Symbol 634 MovieClip Frame 3
stop();
Symbol 634 MovieClip Frame 4
stop();
Symbol 634 MovieClip Frame 5
stop();
Symbol 634 MovieClip Frame 6
stop();
Symbol 648 MovieClip Frame 1
_parent._parent._parent._parent.auras_small.gotoAndStop(this._currentframe);
stop();
Symbol 648 MovieClip Frame 2
_parent._parent._parent._parent.auras_small.gotoAndStop(this._currentframe);
stop();
Symbol 648 MovieClip Frame 3
_parent._parent._parent._parent.auras_small.gotoAndStop(this._currentframe);
stop();
Symbol 648 MovieClip Frame 4
_parent._parent._parent._parent.auras_small.gotoAndStop(this._currentframe);
stop();
Symbol 648 MovieClip Frame 5
_parent._parent._parent._parent.auras_small.gotoAndStop(this._currentframe);
stop();
Symbol 648 MovieClip Frame 6
_parent._parent._parent._parent.auras_small.gotoAndStop(this._currentframe);
stop();
Symbol 663 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 8
var curFrame = _parent.auras_all._currentframe;
var totFrame = _parent.auras_all._totalframes;
if (_parent.forward == true) {
if (curFrame == totFrame) {
_parent.auras_all.gotoAndStop(1);
} else {
_parent.auras_all.gotoAndStop(curFrame + 1);
}
} else if (curFrame == 1) {
_parent.auras_all.gotoAndStop(totFrame);
} else {
_parent.auras_all.gotoAndStop(curFrame - 1);
}
Symbol 664 MovieClip Frame 1
var forward = true;
Instance of Symbol 648 MovieClip "auras_all" in Symbol 664 MovieClip Frame 1
on (release) {
_parent._parent._parent._parent.theSelection.clearTheSelection();
}
Symbol 667 Button
on (release) {
auras.forward = true;
auras.transition.play();
}
Symbol 669 Button
on (release) {
auras.forward = false;
auras.transition.play();
}
Symbol 671 Button
on (rollOver) {
_parent._parent.showHelp();
}
on (rollOut) {
_parent._parent.hideHelp();
}
Symbol 687 Button
on (release) {
_parent.affectMusic(1);
}
Symbol 689 Button
on (release) {
_parent.affectMusic(2);
}
Symbol 691 Button
on (release) {
_parent.affectMusic(3);
}
Symbol 701 MovieClip Frame 1
var dragging = false;
var evalScrolling = false;
this.onEnterFrame = function () {
if (evalScrolling) {
this._parent._parent.scrollDisplayContent(knob.percentMove);
}
};
knob.speed = 50;
knob.onMouseMove = function () {
this.percentMove = this._y / (this._parent.scrollbase._height / 3);
if (dragging && (this.percentMove != 0)) {
this._parent.evalScrolling = true;
}
};
Instance of Symbol 700 MovieClip "knob" in Symbol 701 MovieClip Frame 1
on (press) {
delete this.onEnterFrame;
this.startDrag(false, 0, (-this._parent.scrollbase._height) / 3, 0, this._parent.scrollbase._height / 3);
this._parent.dragging = true;
}
on (release) {
this.onEnterFrame = function () {
if (this._y != 0) {
if (Math.abs(this._y) > this.speed) {
this._y = this._y - ((this._y / Math.abs(this._y)) * this.speed);
} else {
this._y = 0;
delete this.onEnterFrame;
}
}
};
this._parent.dragging = false;
this._parent.evalScrolling = false;
stopDrag();
}
on (releaseOutside) {
this.onEnterFrame = function () {
if (this._y != 0) {
if (Math.abs(this._y) > this.speed) {
this._y = this._y - ((this._y / Math.abs(this._y)) * this.speed);
} else {
this._y = 0;
delete this.onEnterFrame;
}
}
};
this._parent.dragging = false;
this._parent.evalScrolling = false;
stopDrag();
}
Symbol 708 Button
on (release) {
_parent.pushDisplayCategory("base");
}
Symbol 711 Button
on (release) {
_parent.pushDisplayCategory("paint");
}
Symbol 714 Button
on (release) {
_parent.pushDisplayCategory("head");
}
Symbol 717 Button
on (release) {
_parent.pushDisplayCategory("misc");
}
Symbol 719 Button
on (release) {
_parent._parent.pushDisplayCategory("bonus");
}
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 10
stop();
Symbol 728 Button
on (release) {
_parent.theSelection.deleteSelection();
}
Symbol 731 Button
on (press) {
this.onEnterFrame = function () {
if (currentFunction == "size") {
this._parent._parent.theSelection.resizeSelection(-1);
} else {
this._parent._parent.theSelection.redepthSelection(-1);
}
};
}
on (release) {
this._parent._parent.theSelection.resizeComplete();
delete this.onEnterFrame;
}
on (releaseOutside) {
this._parent._parent.theSelection.resizeComplete();
delete this.onEnterFrame;
}
Symbol 734 Button
on (press) {
this.onEnterFrame = function () {
if (currentFunction == "size") {
this._parent._parent.theSelection.resizeSelection(1);
} else {
this._parent._parent.theSelection.redepthSelection(1);
}
};
}
on (release) {
this._parent._parent.theSelection.resizeComplete();
delete this.onEnterFrame;
}
on (releaseOutside) {
this._parent._parent.theSelection.resizeComplete();
delete this.onEnterFrame;
}
Symbol 747 MovieClip Frame 1
_parent.currentFunction = "size";
stop();
Instance of Symbol 738 MovieClip "top" in Symbol 747 MovieClip Frame 1
on (press) {
this._parent.lastY = this._parent._ymouse;
this._parent.onMouseMove = function () {
if (this._ymouse > this.lastY) {
if (this._currentframe == 1) {
this.onEnterFrame = function () {
if (this._currentframe != this._totalframes) {
this.gotoAndStop(this._currentframe + 1);
trace(this._currentframe);
} else {
trace((this._currentframe + ",") + this._totalframes);
delete this.onEnterFrame;
delete this.onMouseMove;
}
};
}
}
if (this._ymouse < this.lastY) {
if (this._currentframe == this._totalframes) {
this.onEnterFrame = function () {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
} else {
delete this.onEnterFrame;
delete this.onMouseMove;
}
};
}
}
};
}
Symbol 747 MovieClip Frame 4
_parent._parent._parent.activateBonus(2);
Symbol 747 MovieClip Frame 7
_parent.currentFunction = "depth";
stop();
Instance of Symbol 738 MovieClip "top" in Symbol 747 MovieClip Frame 7
on (press) {
this._parent.lastY = this._parent._ymouse;
this._parent.onMouseMove = function () {
if (this._ymouse > this.lastY) {
if (this._currentframe == 1) {
this.onEnterFrame = function () {
if (this._currentframe != this._totalframes) {
this.gotoAndStop(this._currentframe + 1);
trace(this._currentframe);
} else {
trace((this._currentframe + ",") + this._totalframes);
delete this.onEnterFrame;
delete this.onMouseMove;
}
};
}
}
if (this._ymouse < this.lastY) {
if (this._currentframe == this._totalframes) {
this.onEnterFrame = function () {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
} else {
delete this.onEnterFrame;
delete this.onMouseMove;
}
};
}
}
};
}
Symbol 748 MovieClip Frame 1
this.currentFunction = "size";
Symbol 752 Button
on (release) {
this._parent._parent.theSelection.frameOn(1);
}
Symbol 753 Button
on (release) {
this._parent._parent.theSelection.frameOn(-1);
}
Symbol 758 Button
on (release) {
_parent.theSelection.resizeSelection(-100);
}
Instance of Symbol 723 MovieClip in Symbol 759 MovieClip Frame 1
on (press) {
this.lastX = this._parent._xmouse;
this.lastY = this._parent._ymouse;
this.onMouseMove = function () {
this._parent.clear();
var _local7 = this._parent._xmouse;
var _local6 = this._parent._ymouse;
var _local5 = this._x;
var _local4 = this._y;
var _local3 = this._parent._parent.toDegrees(Math.atan2(_local6 - _local4, _local7 - _local5));
var _local2 = this._parent._parent.toDegrees(Math.atan2(this.lastY - _local4, this.lastX - _local5));
this._parent._parent.theSelection.rotateSelection(_local3 - _local2);
this._rotation = this._rotation + (_local3 - _local2);
this.lastX = this._parent._xmouse;
this.lastY = this._parent._ymouse;
};
}
on (release) {
delete this.onMouseMove;
}
on (releaseOutside) {
delete this.onMouseMove;
}
Symbol 777 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 7
stop();
Symbol 782 MovieClip Frame 4
if (_parent.currentMusicSelection > 0) {
gotoAndStop(_parent.currentMusicSelection + 4);
} else {
stop();
}
Symbol 787 MovieClip Frame 1
function myReplace(startText, replaceText, replacementText) {
if (startText.indexOf(replaceText) != -1) {
var _local3 = startText.substring(0, startText.indexOf(replaceText));
var _local4 = startText.substring(startText.indexOf(replaceText) + replaceText.length, startText.length);
return((_local3 + replacementText) + _local4);
}
return(startText);
}
function makeCompliment() {
var _local2 = compliments[_parent.randomBounded(1, compliments.length) - 1];
_local2 = myReplace(_local2, "<congName>", _parent.makeConglomeratedName());
_local2 = myReplace(_local2, "<city>", cities[_parent.randomBounded(1, cities.length) - 1]);
compliment.text = _local2;
}
var compliments = new Array();
compliments[0] = "Nice one. Now screen-cap that bad-boy.";
compliments[1] = "It is more beautiful than I would have ever imagined...";
compliments[2] = "Behold... the <congName>level icon!";
compliments[3] = "What the hell kind of level is that supposed to be?";
compliments[4] = "I'm pretty sure what you have just created would be illegal in most states.";
compliments[5] = "You know, from looking at you, I would never have guessed that you were capable of creating such bad-assed-ness.";
compliments[6] = "It's fucking great.";
compliments[7] = "Needs more dramatic rotation and lens flaration (I made that last word up).";
compliments[8] = "Just checking, but, do you have any idea what you are doing?";
compliments[9] = "They would have loved it in the eighties.";
compliments[10] = "Where's the beef?";
compliments[11] = "[insert random comment]";
compliments[12] = "Well, your mother certainly likes it.";
compliments[13] = "I would have said something tailored to the icon below... but its just way too sloppy bitch-ish.";
compliments[14] = "Here you are again I see, fishing for compliments.";
compliments[15] = "Why so suck?";
compliments[16] = "I'd 5 it.";
compliments[17] = "Let me try and keep this review constructive... you lick hairy goats balls.";
compliments[18] = "OMG WTF?";
compliments[19] = "Hey, I could have used something like that last week in <city>!";
compliments[20] = "Man... I told him not to put that shit in here.";
compliments[21] = "You're a god-damned genius!";
compliments[22] = "The level-icon choice of champions.";
var cities = ["Detroit", "New York", "New Jersey", "Philly"];
Symbol 789 Button
on (release) {
controlVisibility();
}
Symbol 792 MovieClip Frame 1
stop();