Frame 1
var reset = false;
Frame 12
function checkAngle(x1, x2, y1, y2) {
return((Math.atan2(y1 - y2, x1 - x2) * 180) / Math.PI);
}
function startCharSplit(charName, charX, charY) {
trace("YOOOO");
trace(((((("startCharSplit(" + charName) + ",") + charX) + ",") + charY) + ")");
var _local4 = 400;
var _local2 = 250;
slope = (endY - startY) / (endX - startX);
if (startX < endX) {
var _local5 = Number((slope * ((endX + _local2) - endX)) + endY);
var _local6 = Number((slope * ((startX - _local2) - endX)) + endY);
var _local14 = [startX - _local2, startY - _local4];
var _local13 = [endX + _local2, startY - _local4];
var _local12 = [endX + _local2, _local5];
var _local10 = [startX - _local2, _local6];
var _local11 = [startX - _local2, _local6];
var _local9 = [endX + _local2, _local5];
var _local8 = [endX + _local2, endY + _local4];
var _local7 = [startX - _local2, startY + _local4];
} else {
var _local5 = Number((slope * ((endX - _local2) - endX)) + endY);
var _local6 = Number((slope * ((startX + _local2) - endX)) + endY);
var _local14 = [endX - _local2, endY - _local4];
var _local13 = [startX + _local2, endY - _local4];
var _local12 = [startX + _local2, _local6];
var _local10 = [endX - _local2, _local5];
var _local11 = [endX - _local2, _local5];
var _local9 = [startX + _local2, _local6];
var _local8 = [startX + _local2, startY + _local4];
var _local7 = [endX - _local2, endY + _local4];
}
m1_mc = monsters_container[charName].createEmptyMovieClip("m1_mc", 1000);
drawMask(m1_mc, _local14, _local13, _local12, _local10, "0xff33ff");
m1_mc._alpha = 0;
monsters_container[charName].c1.setMask(m1_mc);
m2_mc = monsters_container[charName].createEmptyMovieClip("m2_mc", 2000);
drawMask(m2_mc, _local11, _local9, _local8, _local7, "0xffff33");
m2_mc._alpha = 0;
monsters_container[charName].c2.setMask(m2_mc);
gs.TweenLite.to(monsters_container[charName].c1, 0.5, {_y:"-50", _alpha:0});
gs.TweenLite.to(monsters_container[charName].m1_mc, 0.5, {_y:"-50"});
trace(monsters_container[charName].m1_mc);
this._lockroot = true;
gs.TweenLite.to(monsters_container[charName].c2, 0.5, {_y:"50", _alpha:0, delay:0, onComplete:this["reload_" + charName]});
gs.TweenLite.to(monsters_container[charName].m2_mc, 0.5, {_y:"50", _alpha:0});
}
function drawMask(newMask_mc, pt1, pt2, pt3, pt4, color) {
trace("drawMask()");
newMask_mc.beginFill(color);
newMask_mc.moveTo(pt1[0], pt1[1]);
newMask_mc.lineTo(pt2[0], pt2[1]);
newMask_mc.lineTo(pt3[0], pt3[1]);
newMask_mc.lineTo(pt4[0], pt4[1]);
newMask_mc.lineTo(pt1[0], pt1[1]);
newMask_mc.endFill();
}
function doCharRollover(char) {
useSword = true;
slashing = true;
}
function doCharReload(char) {
trace("((((((((((((((((((((((((((((((" + char);
char.c1.setMask(null);
char.c2.setMask(null);
removeMovieClip(char.m1_mc);
removeMovieClip(char.m2_mc);
_parent._lockroot = false;
slashing = false;
char.play();
}
function checkSlashedQuota() {
trace("FINITO");
if (numSlashed == slashQuota) {
adFinish();
}
}
if ((sitePhase == "main") || (sitePhase == undefined)) {
stop();
}
var slashing = false;
var useSword = false;
var curCharName;
var curCharClip;
var slope;
var mouseIsDown = false;
var easing = 2;
monsters_container.mc_wiisword.onEnterFrame = function () {
if (useSword == true) {
this._x = this._x + ((_xmouse - this._x) / easing);
this._y = this._y + ((_ymouse - this._y) / easing);
this._alpha = this._alpha + ((100 - this._alpha) / 2);
}
if (useSword == false) {
this._x = this._x + ((200 - this._x) / 2);
this._y = this._y + ((500 - this._y) / 2);
this._alpha = this._alpha + ((-this._alpha) / 2);
}
};
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
trace("mouseListener.onMouseDown");
startX = _xmouse;
startY = _ymouse;
curCharName = "";
curCharClip = undefined;
mouseIsDown = true;
};
mouseListener.onMouseMove = function () {
if (mouseIsDown) {
var _local3 = 0;
while (_local3 < characters.length) {
var _local2 = characters[_local3];
var _local4 = _root._xmouse;
if (_local2.hitTest(_local4, _root._ymouse, true) && (curCharName == "")) {
curCharName = _local2._name;
curCharClip = _local2;
trace(((" * curCharName = " + curCharName) + " ") + _local2);
}
_local3++;
}
}
updateAfterEvent();
};
mouseListener.onMouseUp = function () {
gs.TweenLite.to(introJewel, 0.5, {_alpha:0});
trace("mouseListener.onMouseUp");
if (mouseIsDown && (curCharClip._currentframe == 1)) {
startX = startX - curCharClip._x;
startY = startY - curCharClip._y;
endX = curCharClip._xmouse;
endY = curCharClip._ymouse;
slope = (endY - startY) / (endX - startX);
attachMovie("slash", "newSlash", 500);
count = 1;
newSlash._x = _xmouse;
newSlash._y = _ymouse;
newSlash._rotation = checkAngle(endX, startX, endY, startY);
gs.TweenLite.to(mc_slashinfo, 2, {_alpha:0});
startCharSplit(curCharName, curCharClip._x, curCharClip._y);
slashing = false;
}
mouseIsDown = false;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
monsters_container.hittest1.onRollOver = function () {
useSword = true;
slashing = true;
gs.TweenLite.to(monsters_container.mc_wiisword.mc_sword, 2, {_alpha:100});
gs.TweenLite.to(monsters_container.mc_wiisword.mc_wii, 2, {_alpha:40});
};
monsters_container.hittest1.onDragOut = function () {
gs.TweenLite.to(monsters_container.mc_wiisword.mc_sword, 2, {_alpha:0});
gs.TweenLite.to(monsters_container.mc_wiisword.mc_wii, 2, {_alpha:100});
};
monsters_container.hittest2.onRollOver = function () {
useSword = false;
gs.TweenLite.to(monsters_container.mc_wiisword.mc_sword, 2, {_alpha:100});
gs.TweenLite.to(monsters_container.mc_wiisword.mc_wii, 2, {_alpha:100});
};
brick_boy_mc.onRollOver = function () {
trace("brick_boy.onRollOver");
doCharRollover(this);
};
reload_brick_boy_mc = function () {
trace("reload_brick_boy_mc");
doCharReload(_root.brick_boy_mc);
};
flying_crow_mc.onRollOver = function () {
trace("flying_crow_mc.onRollOver");
doCharRollover(this);
};
reload_flying_crow_mc = function () {
trace("reload_flying_crow_mc");
doCharReload(_root.flying_crow_mc);
};
flying_blob_mc.onRollOver = function () {
trace("flying_blob_mc.onRollOver");
doCharRollover(this);
};
reload_flying_blob_mc = function () {
trace("reload_flying_blob_mc");
doCharReload(_root.flying_blob_mc);
};
blue_blob1_mc.onRollOver = function () {
trace("blue_blob1_mc.onRollOver");
doCharRollover(this);
};
reload_blue_blob1_mc = function () {
trace("reload_blue_blob1_mc");
doCharReload(_root.blue_blob1_mc);
};
blue_blob2_mc.onRollOver = function () {
trace("blue_blob2_mc.onRollOver");
doCharRollover(this);
};
reload_blue_blob2_mc = function () {
trace("reload_blue_blob2_mc");
doCharReload(_root.blue_blob2_mc);
};
orange_blob_mc.onRollOver = function () {
trace("orange_blob_mc.onRollOver");
doCharRollover(this);
};
reload_orange_blob_mc = function () {
trace("reload_orange_blob_mc");
doCharReload(_root.orange_blob_mc);
};
slime1_mc.onRollOver = function () {
trace("slime1_mc.onRollOver");
doCharRollover(this);
};
reload_slime1_mc = function () {
trace("reload_slime1_mc");
doCharReload(_root.slime1_mc);
};
slime2_mc.onRollOver = function () {
trace("slime2_mc.onRollOver");
doCharRollover(this);
};
reload_slime2_mc = function () {
trace("reload_slime2_mc");
doCharReload(_root.slime2_mc);
};
slime3_mc.onRollOver = function () {
trace("slime3_mc.onRollOver");
doCharRollover(this);
};
reload_slime3_mc = function () {
trace("reload_slime3_mc");
doCharReload(_root.slime3_mc);
};
monsters_container.introBlob1_mc.onRollOver = function () {
trace("introBlob1_mc.onRollOver");
doCharRollover(this);
};
reload_introBlob1_mc = function () {
trace("reload_introBlob1_mc");
doCharReload(_root.monsters_container.introBlob1_mc);
};
monsters_container.introBlob2_mc.onRollOver = function () {
trace("introBlob2_mc.onRollOver");
doCharRollover(this);
};
reload_introBlob2_mc = function () {
trace("reload_introBlob2_mc");
doCharReload(_root.monsters_container.introBlob2_mc);
};
monsters_container.introBlob3_mc.onRollOver = function () {
trace("introBlob3_mc.onRollOver");
doCharRollover(this);
};
reload_introBlob3_mc = function () {
trace("reload_introBlob3_mc");
doCharReload(_root.monsters_container.introBlob3_mc);
};
targetBtn.onRelease = function () {
getURL (_root.clickTAG, "_blank");
};
Glareout1 = function () {
trace("glareout 1");
gs.TweenLite.to(logo_container.glare1, 0.75, {_x:-50, _rotation:-30, delay:0.2});
};
Glareout2 = function () {
trace("glareout 2");
gs.TweenLite.to(logo_container.glare2, 0.75, {_x:350, _rotation:30, delay:0.2, onComplete:logoOut});
};
logoOut = function () {
trace("logoOut");
gs.TweenLite.to(logo_container.logo_dragonquest, 0.5, {_alpha:0});
gs.TweenLite.to(logo_container.logo_swordstype, 0.5, {_alpha:0});
gs.TweenLite.to(logo_container.logo_subcopy, 0.5, {_alpha:0});
gs.TweenLite.to(logo_container.logo_sword, 0.5, {_alpha:0, delay:0.1, onComplete:startSlashing});
gs.TweenLite.to(logo_container.logo_shadow, 0.5, {_alpha:0, delay:0.1, onComplete:logoShiftUp});
gs.TweenLite.to(targetBtn, 0.5, {_y:-250});
};
logoShiftUp = function () {
trace("logo Shift Up");
gs.TweenLite.to(logo_container.logo_dragonquest, 0.5, {_y:33, delay:0, onComplete:startSlashing});
gs.TweenLite.to(logo_container.logo_swordstype, 0.5, {_y:72});
gs.TweenLite.to(logo_container.logo_subcopy, 0.5, {_y:113});
gs.TweenLite.to(logo_container.logo_sword, 0.5, {_y:18});
gs.TweenLite.to(logo_container.logo_shadow, 0.5, {_y:70});
};
init = function () {
if (reset == false) {
gs.TweenLite.to(logo_container.logo_dragonquest, 0.4, {_alpha:100, _xscale:100, _yscale:100, _x:150, _y:90, delay:0.5});
gs.TweenLite.to(logo_container.logo_swordstype, 0.4, {_alpha:100, _xscale:100, _yscale:100, _x:151, _y:129, delay:0.8});
gs.TweenLite.to(logo_container.logo_subcopy, 1, {_alpha:100, _xscale:100, _yscale:100, _x:151, _y:170, delay:0.8});
gs.TweenLite.to(logo_container.logo_sword, 0.4, {_alpha:100, _xscale:100, _yscale:100, _x:1, delay:0.9});
gs.TweenLite.to(logo_container.logo_shadow, 0.25, {_alpha:100, delay:1.3});
gs.TweenLite.to(logo_container.glare1, 0.75, {_x:350, _rotation:30, delay:0.9, onComplete:Glareout1});
gs.TweenLite.to(logo_container.glare2, 0.75, {_x:-50, _rotation:-30, delay:0.9, onComplete:Glareout2});
} else {
trace("TRUE DAT");
gs.TweenLite.to(logo_container.logo_dragonquest, 0.5, {_alpha:0, _y:33});
gs.TweenLite.to(logo_container.logo_swordstype, 0.5, {_alpha:0, _y:72});
gs.TweenLite.to(logo_container.logo_subcopy, 0.5, {_alpha:0, _y:113});
gs.TweenLite.to(logo_container.logo_sword, 0.5, {_alpha:0, _y:18});
gs.TweenLite.to(logo_container.logo_shadow, 0.5, {_alpha:0, _y:70, delay:0, onComplete:startSlashing});
gs.TweenLite.to(targetBtn, 0.5, {_y:-250});
}
};
startSlashing = function () {
trace("slashing!!!");
gotoAndStop ("slashing");
if (reset == false) {
gs.TweenLite.to(introJewel, 0.5, {_alpha:100, overwrite:false});
} else {
gs.TweenLite.to(introJewel, 0.5, {_alpha:100, overwrite:false});
}
};
noSlashAnimationEnd = function () {
if (monsters_container.introBlob1_mc._currentframe == 2) {
} else {
monsters_container.introBlob1_mc.gotoAndStop("out");
gs.TweenLite.to(monsters_container.introBlob1_mc.c1, 0.5, {_y:"-50", _alpha:0, delay:0.75});
gs.TweenLite.to(monsters_container.introBlob1_mc.c2, 0.5, {_y:"50", _alpha:0, delay:0.75});
gs.TweenLite.to(monsters_container.introBlob1_mc.m1, 0.5, {_y:"-50", _alpha:0, delay:0.75});
gs.TweenLite.to(monsters_container.introBlob1_mc.m2, 0.5, {_y:"50", _alpha:0, delay:0.75});
gs.TweenLite.to(monsters_container.introBlob1_mc.mc_shadow, 0.75, {_y:"-50", _alpha:0, delay:0.2, ease:mx.transitions.easing.Bounce.easeOut});
}
if (monsters_container.introBlob2_mc._currentframe == 2) {
} else {
monsters_container.introBlob2_mc.gotoAndStop("out");
gs.TweenLite.to(monsters_container.introBlob2_mc.c1, 0.5, {_y:"-50", _alpha:0, delay:0.5});
gs.TweenLite.to(monsters_container.introBlob2_mc.c2, 0.5, {_y:"50", _alpha:0, delay:0.5});
gs.TweenLite.to(monsters_container.introBlob2_mc.m1, 0.5, {_y:"-50", _alpha:0, delay:0.5});
gs.TweenLite.to(monsters_container.introBlob2_mc.m2, 0.5, {_y:"50", _alpha:0, delay:0.5});
gs.TweenLite.to(monsters_container.introBlob2_mc.mc_shadow, 0.75, {_y:"-50", _alpha:0, ease:mx.transitions.easing.Bounce.easeOut});
}
if (monsters_container.introBlob3_mc._currentframe == 2) {
} else {
monsters_container.introBlob3_mc.gotoAndStop("out");
gs.TweenLite.to(monsters_container.introBlob3_mc.c1, 0.5, {_y:"-50", _alpha:0, delay:0});
gs.TweenLite.to(monsters_container.introBlob3_mc.c2, 0.5, {_y:"50", _alpha:0, delay:0});
gs.TweenLite.to(monsters_container.introBlob3_mc.m1, 0.5, {_y:"-50", _alpha:0, delay:0});
gs.TweenLite.to(monsters_container.introBlob3_mc.m2, 0.5, {_y:"50", _alpha:0, delay:0, onComplete:adFinish});
gs.TweenLite.to(monsters_container.introBlob3_mc.mc_shadow, 0.75, {_y:"-50", _alpha:0, delay:0.2, ease:mx.transitions.easing.Bounce.easeOut});
}
};
adFinish = function () {
gs.TweenLite.to(introJewel, 0.5, {_alpha:0});
gs.TweenLite.to(logo_container.logo_dragonquest, 0.5, {_alpha:100, _y:33});
gs.TweenLite.to(logo_container.logo_swordstype, 0.5, {_alpha:100, _y:72});
gs.TweenLite.to(logo_container.logo_subcopy, 0.5, {_alpha:100, _y:113});
gs.TweenLite.to(logo_container.logo_sword, 0.5, {_alpha:100, _y:18});
gs.TweenLite.to(logo_container.logo_shadow, 0.5, {_alpha:100, _y:70});
gs.TweenLite.to(playAgain, 0.5, {_alpha:100, delay:0.5});
gs.TweenLite.to(targetBtn, 0.5, {_y:0});
endScroll.play();
monsters_container.mc_wiisword.onEnterFrame = null;
gs.TweenLite.to(monsters_container.mc_wiisword, 0.5, {_alpha:0, _y:500});
};
playAgain.onRollOver = function () {
playAgain.gotoAndStop("on");
};
playAgain.onRollOut = function () {
playAgain.gotoAndStop("off");
};
playAgain.onRelease = function () {
trace("YOOOOOOO");
gs.TweenLite.to(playAgain, 0.5, {_alpha:0});
reset = true;
gs.TweenLite.to(logo_container.logo_dragonquest, 0.5, {_alpha:0, _y:33});
gs.TweenLite.to(logo_container.logo_swordstype, 0.5, {_alpha:0, _y:72});
gs.TweenLite.to(logo_container.logo_subcopy, 0.5, {_alpha:0, _y:113});
gs.TweenLite.to(logo_container.logo_sword, 0.5, {_alpha:0, _y:18});
gs.TweenLite.to(logo_container.logo_shadow, 0.5, {_alpha:0, _y:70, delay:0, onComplete:resetAd});
gs.TweenLite.to(targetBtn, 0.5, {_y:-250});
gs.TweenLite.to(monsters_container.introBlob1_mc, 0, {_xscale:0, _yscale:0, _alpha:0, delay:0, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob2_mc, 0, {_xscale:0, _yscale:0, _alpha:0, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob3_mc, 0, {_xscale:0, _yscale:0, _alpha:0, delay:0, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob3_mc.mc_shadow, 0, {_alpha:0, delay:0, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob2_mc.mc_shadow, 0, {_alpha:0, ease:mx.transitions.easing.Bounce.easeOut});
};
resetAd = function () {
monsters_container.introBlob1_mc.gotoAndStop(1);
monsters_container.introBlob2_mc.gotoAndStop(1);
monsters_container.introBlob3_mc.gotoAndStop(1);
clearInterval(go);
gotoAndPlay (2);
};
count = 1;
countInaction = function () {
count++;
trace(count);
if (count > 15) {
noSlashAnimationEnd();
clearInterval(go);
}
};
go = setInterval(countInaction, 1000);
init();
stop();
Frame 40
function checkAngle(x1, x2, y1, y2) {
return((Math.atan2(y1 - y2, x1 - x2) * 180) / Math.PI);
}
function startCharSplit(charName, charX, charY) {
trace("YOOOO");
trace(((((("startCharSplit(" + charName) + ",") + charX) + ",") + charY) + ")");
var _local4 = 400;
var _local2 = 250;
slope = (endY - startY) / (endX - startX);
if (startX < endX) {
var _local5 = Number((slope * ((endX + _local2) - endX)) + endY);
var _local6 = Number((slope * ((startX - _local2) - endX)) + endY);
var _local14 = [startX - _local2, startY - _local4];
var _local13 = [endX + _local2, startY - _local4];
var _local12 = [endX + _local2, _local5];
var _local10 = [startX - _local2, _local6];
var _local11 = [startX - _local2, _local6];
var _local9 = [endX + _local2, _local5];
var _local8 = [endX + _local2, endY + _local4];
var _local7 = [startX - _local2, startY + _local4];
} else {
var _local5 = Number((slope * ((endX - _local2) - endX)) + endY);
var _local6 = Number((slope * ((startX + _local2) - endX)) + endY);
var _local14 = [endX - _local2, endY - _local4];
var _local13 = [startX + _local2, endY - _local4];
var _local12 = [startX + _local2, _local6];
var _local10 = [endX - _local2, _local5];
var _local11 = [endX - _local2, _local5];
var _local9 = [startX + _local2, _local6];
var _local8 = [startX + _local2, startY + _local4];
var _local7 = [endX - _local2, endY + _local4];
}
m1_mc = monsters_container[charName].createEmptyMovieClip("m1_mc", 1000);
drawMask(m1_mc, _local14, _local13, _local12, _local10, "0xff33ff");
m1_mc._alpha = 0;
monsters_container[charName].c1.setMask(m1_mc);
m2_mc = monsters_container[charName].createEmptyMovieClip("m2_mc", 2000);
drawMask(m2_mc, _local11, _local9, _local8, _local7, "0xffff33");
m2_mc._alpha = 0;
monsters_container[charName].c2.setMask(m2_mc);
gs.TweenLite.to(monsters_container[charName].c1, 0.5, {_y:"-50", _alpha:0});
gs.TweenLite.to(monsters_container[charName].m1_mc, 0.5, {_y:"-50"});
trace(monsters_container[charName].m1_mc);
this._lockroot = true;
gs.TweenLite.to(monsters_container[charName].c2, 0.5, {_y:"50", _alpha:0, delay:0, onComplete:this["reload_" + charName]});
gs.TweenLite.to(monsters_container[charName].m2_mc, 0.5, {_y:"50", _alpha:0});
}
function drawMask(newMask_mc, pt1, pt2, pt3, pt4, color) {
trace("drawMask()");
newMask_mc.beginFill(color);
newMask_mc.moveTo(pt1[0], pt1[1]);
newMask_mc.lineTo(pt2[0], pt2[1]);
newMask_mc.lineTo(pt3[0], pt3[1]);
newMask_mc.lineTo(pt4[0], pt4[1]);
newMask_mc.lineTo(pt1[0], pt1[1]);
newMask_mc.endFill();
}
function doCharRollover(char) {
useSword = true;
slashing = true;
}
function doCharReload(char) {
trace("((((((((((((((((((((((((((((((" + char);
char.c1.setMask(null);
char.c2.setMask(null);
removeMovieClip(char.m1_mc);
removeMovieClip(char.m2_mc);
_parent._lockroot = false;
slashing = false;
char.play();
}
function checkSlashedQuota() {
trace("FINITO");
if (numSlashed == slashQuota) {
adFinish();
}
}
gs.TweenLite.to(monsters_container.introBlob1_mc, 0.75, {_xscale:100, _yscale:100, _alpha:100, delay:0.2, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob2_mc, 0.75, {_xscale:100, _yscale:100, _alpha:100, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob3_mc, 0.75, {_xscale:70, _yscale:70, _alpha:100, delay:0.4, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob3_mc.mc_shadow, 0.75, {_alpha:100, delay:0.2, ease:mx.transitions.easing.Bounce.easeOut});
gs.TweenLite.to(monsters_container.introBlob2_mc.mc_shadow, 0.75, {_alpha:100, ease:mx.transitions.easing.Bounce.easeOut});
initItemsPosition();
init_slashSnd();
var characters = [monsters_container.introBlob1_mc, monsters_container.introBlob2_mc, monsters_container.introBlob3_mc];
var numSlashed = 0;
var slashQuota = 3;
var quotaDestFrame = "intro";
sitePhase = "loadIntro";
if ((sitePhase == "main") || (sitePhase == undefined)) {
stop();
}
var slashing = false;
var useSword = false;
var curCharName;
var curCharClip;
var slope;
var mouseIsDown = false;
var easing = 2;
monsters_container.mc_wiisword.onEnterFrame = function () {
if (useSword == true) {
this._x = this._x + ((_xmouse - this._x) / easing);
this._y = this._y + ((_ymouse - this._y) / easing);
this._alpha = this._alpha + ((100 - this._alpha) / 2);
}
if (useSword == false) {
this._x = this._x + ((200 - this._x) / 2);
this._y = this._y + ((500 - this._y) / 2);
this._alpha = this._alpha + ((-this._alpha) / 2);
}
};
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
trace("mouseListener.onMouseDown");
startX = _xmouse;
startY = _ymouse;
curCharName = "";
curCharClip = undefined;
mouseIsDown = true;
};
mouseListener.onMouseMove = function () {
if (mouseIsDown) {
var _local3 = 0;
while (_local3 < characters.length) {
var _local2 = characters[_local3];
var _local4 = _root._xmouse;
if (_local2.hitTest(_local4, _root._ymouse, true) && (curCharName == "")) {
curCharName = _local2._name;
curCharClip = _local2;
trace(((" * curCharName = " + curCharName) + " ") + _local2);
}
_local3++;
}
}
updateAfterEvent();
};
mouseListener.onMouseUp = function () {
gs.TweenLite.to(introJewel, 0.5, {_alpha:0});
trace("mouseListener.onMouseUp");
if (mouseIsDown && (curCharClip._currentframe == 1)) {
startX = startX - curCharClip._x;
startY = startY - curCharClip._y;
endX = curCharClip._xmouse;
endY = curCharClip._ymouse;
slope = (endY - startY) / (endX - startX);
attachMovie("slash", "newSlash", 500);
count = 1;
newSlash._x = _xmouse;
newSlash._y = _ymouse;
newSlash._rotation = checkAngle(endX, startX, endY, startY);
gs.TweenLite.to(mc_slashinfo, 2, {_alpha:0});
startCharSplit(curCharName, curCharClip._x, curCharClip._y);
slashing = false;
}
mouseIsDown = false;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
monsters_container.hittest1.onRollOver = function () {
useSword = true;
slashing = true;
gs.TweenLite.to(monsters_container.mc_wiisword.mc_sword, 2, {_alpha:100});
gs.TweenLite.to(monsters_container.mc_wiisword.mc_wii, 2, {_alpha:40});
};
monsters_container.hittest1.onDragOut = function () {
gs.TweenLite.to(monsters_container.mc_wiisword.mc_sword, 2, {_alpha:0});
gs.TweenLite.to(monsters_container.mc_wiisword.mc_wii, 2, {_alpha:100});
};
monsters_container.hittest2.onRollOver = function () {
useSword = false;
gs.TweenLite.to(monsters_container.mc_wiisword.mc_sword, 2, {_alpha:100});
gs.TweenLite.to(monsters_container.mc_wiisword.mc_wii, 2, {_alpha:100});
};
brick_boy_mc.onRollOver = function () {
trace("brick_boy.onRollOver");
doCharRollover(this);
};
reload_brick_boy_mc = function () {
trace("reload_brick_boy_mc");
doCharReload(_root.brick_boy_mc);
};
flying_crow_mc.onRollOver = function () {
trace("flying_crow_mc.onRollOver");
doCharRollover(this);
};
reload_flying_crow_mc = function () {
trace("reload_flying_crow_mc");
doCharReload(_root.flying_crow_mc);
};
flying_blob_mc.onRollOver = function () {
trace("flying_blob_mc.onRollOver");
doCharRollover(this);
};
reload_flying_blob_mc = function () {
trace("reload_flying_blob_mc");
doCharReload(_root.flying_blob_mc);
};
blue_blob1_mc.onRollOver = function () {
trace("blue_blob1_mc.onRollOver");
doCharRollover(this);
};
reload_blue_blob1_mc = function () {
trace("reload_blue_blob1_mc");
doCharReload(_root.blue_blob1_mc);
};
blue_blob2_mc.onRollOver = function () {
trace("blue_blob2_mc.onRollOver");
doCharRollover(this);
};
reload_blue_blob2_mc = function () {
trace("reload_blue_blob2_mc");
doCharReload(_root.blue_blob2_mc);
};
orange_blob_mc.onRollOver = function () {
trace("orange_blob_mc.onRollOver");
doCharRollover(this);
};
reload_orange_blob_mc = function () {
trace("reload_orange_blob_mc");
doCharReload(_root.orange_blob_mc);
};
slime1_mc.onRollOver = function () {
trace("slime1_mc.onRollOver");
doCharRollover(this);
};
reload_slime1_mc = function () {
trace("reload_slime1_mc");
doCharReload(_root.slime1_mc);
};
slime2_mc.onRollOver = function () {
trace("slime2_mc.onRollOver");
doCharRollover(this);
};
reload_slime2_mc = function () {
trace("reload_slime2_mc");
doCharReload(_root.slime2_mc);
};
slime3_mc.onRollOver = function () {
trace("slime3_mc.onRollOver");
doCharRollover(this);
};
reload_slime3_mc = function () {
trace("reload_slime3_mc");
doCharReload(_root.slime3_mc);
};
monsters_container.introBlob1_mc.onRollOver = function () {
trace("introBlob1_mc.onRollOver");
doCharRollover(this);
};
reload_introBlob1_mc = function () {
trace("reload_introBlob1_mc");
doCharReload(_root.monsters_container.introBlob1_mc);
};
monsters_container.introBlob2_mc.onRollOver = function () {
trace("introBlob2_mc.onRollOver");
doCharRollover(this);
};
reload_introBlob2_mc = function () {
trace("reload_introBlob2_mc");
doCharReload(_root.monsters_container.introBlob2_mc);
};
monsters_container.introBlob3_mc.onRollOver = function () {
trace("introBlob3_mc.onRollOver");
doCharRollover(this);
};
reload_introBlob3_mc = function () {
trace("reload_introBlob3_mc");
doCharReload(_root.monsters_container.introBlob3_mc);
};
stop();
Frame 60
stop();
Symbol 8 MovieClip [slash] Frame 20
this.unloadMovie();
Symbol 29 MovieClip Frame 5
stop();
Symbol 46 MovieClip Frame 32
this.unloadMovie();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 2
_level0.numSlashed++;
_level0.checkSlashedQuota();
trace("++++++++++++++++++++++++++" + this);
stop();
Symbol 47 MovieClip Frame 10
stop();
Symbol 52 MovieClip Frame 42
this.unloadMovie();
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
_root.numSlashed++;
_root.checkSlashedQuota();
stop();
Symbol 53 MovieClip Frame 10
trace("OOOOOOOOOOUTTTTTTTTTTTTTTTTTT");
stop();
Symbol 60 MovieClip Frame 19
this.unloadMovie();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
_root.numSlashed++;
_root.checkSlashedQuota();
stop();
Symbol 61 MovieClip Frame 10
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 10
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 110 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _gc;
var tweenID, endTargetID, vars, duration, delay, target, _endTarget, tweens, extraTweens, initTime, _active, color, colorParts, _sound, startTime, __get__endTarget;
function TweenLite ($target, $duration, $vars) {
_cnt++;
tweenID = "tw" + _cnt;
endTargetID = getID($target, true);
if (($vars.overwrite != false) && ($target != undefined)) {
delete _all[endTargetID];
_all[endTargetID] = {info:[$target, endTargetID]};
}
_all[endTargetID][tweenID] = this;
vars = $vars;
duration = $duration;
delay = $vars.delay || 0;
if ($duration == 0) {
duration = 0.001;
if (delay == 0) {
vars.runBackwards = true;
}
}
target = (_endTarget = $target);
if (typeof(vars.ease) != "function") {
vars.ease = easeOut;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
if (vars.mcColor != undefined) {
vars.tint = vars.mcColor;
}
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
}
tweens = {};
extraTweens = {};
initTime = getTimer();
if (vars.runBackwards == true) {
initTweenVals();
}
_active = false;
if (($duration == 0) && (delay == 0)) {
complete(true);
} else {
if (_e._visible != false) {
if (!_root.tweenLite_mc) {
var _local5 = _root.getNextHighestDepth() || 9999;
_e = _root.createEmptyMovieClip("tweenLite_mc", _local5);
_e.swapDepths(-1);
} else {
_e = _root.tweenLite_mc;
}
_e._visible = false;
clearInterval(_gc);
_gc = setInterval(killGarbage, 2000);
}
_e.onEnterFrame = executeAll;
}
}
function initTweenVals() {
var _local5 = delay - ((getTimer() - initTime) / 1000);
var _local8;
if (target instanceof Array) {
var _local7 = vars.endArray || ([]);
var _local2 = 0;
while (_local2 < _local7.length) {
if ((target[_local2] != _local7[_local2]) && (target[_local2] != undefined)) {
tweens[_local2.toString()] = {o:target, s:target[_local2], c:_local7[_local2] - target[_local2]};
}
_local2++;
}
} else {
for (var _local27 in vars) {
if ((((((((((((((_local27 == "delay") || (_local27 == "ease")) || (_local27 == "overwrite")) || (_local27 == "onComplete")) || (_local27 == "onCompleteParams")) || (_local27 == "runBackwards")) || (_local27 == "onUpdate")) || (_local27 == "onUpdateParams")) || (_local27 == "autoAlpha")) || (_local27 == "onStart")) || (_local27 == "onStartParams")) || (_local27 == "easeParams")) || (_local27 == "mcColor")) || (_local27 == "type")) {
} else if ((_local27 == "tint") && ((typeof(target) == "movieclip") || (target instanceof TextField))) {
color = new Color(target);
colorParts = color.getTransform();
var _local6;
var _local4;
if ((vars[_local27] == null) || (vars[_local27] == "")) {
if (vars._alpha != undefined) {
_local4 = vars._alpha;
delete vars._alpha;
delete tweens._alpha;
} else {
_local4 = target._alpha;
}
_local6 = {rb:0, gb:0, bb:0, ra:_local4, ga:_local4, ba:_local4, ease:vars.ease, delay:_local5, overwrite:false, runBackwards:vars.runBackwards};
} else {
_local6 = {rb:vars[_local27] >> 16, gb:(vars[_local27] >> 8) & 255, bb:vars[_local27] & 255, ra:0, ga:0, ba:0, ease:vars.ease, delay:_local5, overwrite:false, runBackwards:vars.runBackwards};
}
var _local10 = new gs.TweenLite(colorParts, duration, _local6);
var _local11 = new gs.TweenLite(this, duration, {colorProxy:1, delay:_local5, overwrite:false, runBackwards:vars.runBackwards});
_local10.endTarget = (_local11.endTarget = target);
} else if ((_local27 == "volume") && (typeof(target) == "movieclip")) {
_sound = new Sound(target);
var _local9 = new gs.TweenLite(this, duration, {volumeProxy:vars[_local27], ease:easeOut, delay:_local5, overwrite:false, runBackwards:vars.runBackwards});
_local9.endTarget = target;
} else if (target[_local27] != undefined) {
if (typeof(vars[_local27]) == "number") {
_local8 = vars[_local27] - target[_local27];
} else {
_local8 = Number(vars[_local27]);
}
tweens[_local27] = {o:target, s:target[_local27], c:_local8};
} else {
extraTweens[_local27] = {o:target, s:0, c:0, v:vars[_local27]};
}
}
}
if (vars.runBackwards == true) {
var _local3;
for (var _local27 in tweens) {
_local3 = tweens[_local27];
_local3.s = _local3.s + _local3.c;
_local3.c = _local3.c * -1;
_local3.o[_local27] = _local3.s;
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
}
if (typeof(vars.autoAlpha) == "number") {
target._visible = !((vars.runBackwards == true) && (target._alpha == 0));
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, overwrite:false}));
}
static function removeTween($t) {
_all[$t.endTargetID][$t.tweenID] = {active:false};
delete _all[$t.endTargetID][$t.tweenID];
}
static function killTweensOf($tg, $complete) {
var _local3 = getID($tg, true);
if ($complete) {
var _local1 = _all[_local3];
for (var _local2 in _local1) {
_local1[_local2].complete(false);
}
}
delete _all[_local3];
}
function complete($skipRender) {
if ($skipRender != true) {
startTime = 0;
render(duration * 1000);
return(undefined);
}
if ((typeof(vars.autoAlpha) == "number") && (target._alpha == 0)) {
target._visible = false;
}
if (vars.onComplete) {
vars.onComplete.apply(null, vars.onCompleteParams);
}
removeTween(this);
}
static function getID($tg, $lookup) {
var _local3;
if ($lookup) {
var _local1 = _all;
if (typeof($tg) == "movieclip") {
if (_local1[String($tg)] != undefined) {
return(String($tg));
}
_local3 = String($tg);
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].info[0] == $tg) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
_all[_local3] = {info:[$tg, _local3]};
return(_local3);
}
function render(t) {
var _local4 = (t - startTime) / 1000;
if (_local4 > duration) {
_local4 = duration;
}
var _local2;
var _local3 = vars.ease(_local4, 0, 1, duration);
for (var _local5 in tweens) {
_local2 = tweens[_local5];
_local2.o[_local5] = _local2.s + (_local3 * _local2.c);
}
if (vars.onUpdate != undefined) {
vars.onUpdate.apply(null, vars.onUpdateParams);
}
if (_local4 == duration) {
complete(true);
}
}
static function executeAll() {
var _local2 = _all;
var _local3 = getTimer();
var _local1;
for (var _local5 in _local2) {
for (var _local4 in _local2[_local5]) {
_local1 = _local2[_local5][_local4];
if (_local1.active) {
_local1.render(_local3);
}
}
}
}
static function killGarbage() {
if (_e.onEnterFrame != null) {
var _local1 = _all;
var _local2;
var _local3;
var _local5;
var _local6 = 0;
var _local4 = 0;
for (_local3 in _local1) {
_local4 = 0;
for (_local5 in _local1[_local3]) {
_local2 = _local1[_local3][_local5];
if (_local2.tweens == undefined) {
} else {
_local4++;
}
}
if (_local4 == 0) {
delete _local1[_local3];
} else {
_local6++;
}
}
if (_local6 == 0) {
_e.onEnterFrame = null;
}
}
}
static function easeOut($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
var _local3 = this;
return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams)));
}
function get active() {
if (_active) {
return(true);
}
if (((getTimer() - initTime) / 1000) > delay) {
_active = true;
startTime = initTime + (delay * 1000);
if (vars.runBackwards != true) {
initTweenVals();
} else if (typeof(vars.autoAlpha) == "number") {
target._visible = true;
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(null, vars.onStartParams);
}
return(true);
}
return(false);
}
function set endTarget($t) {
if ((duration == 0.001) && (delay <= 0)) {
removeTween(this);
} else {
_all[endTargetID][tweenID] = {active:false};
delete _all[endTargetID][tweenID];
endTargetID = getID($t, true);
_endTarget = $t;
_all[endTargetID][tweenID] = this;
}
//return(__get__endTarget());
}
function set volumeProxy($n) {
_sound.setVolume($n);
//return(volumeProxy);
}
function get volumeProxy() {
return(_sound.getVolume());
}
function set colorProxy($n) {
color.setTransform(colorParts);
//return(colorProxy);
}
function get colorProxy() {
return(0);
}
static var version = 5.87;
static var _all = new Object();
static var _cnt = -16000;
static var killDelayedCallsTo = killTweensOf;
}
Symbol 111 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 73
stop();