Frame 1
MochiAd.showPreloaderAd({id:"89d460d29d11dd56", res:"700x500", color:6684672, background:0, outline:6684672});
Frame 4
var Music = new Sound();
Music.attachSound("NativeAmerican");
Music.start(0, 99999);
Frame 5
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("e435993f", this, 10301, true);
Frame 7
gotoAndPlay ("MenuMain");
Frame 8
function MakeWave(Amm) {
a = 1;
while (a <= Amm) {
PTC = Spirits.attachMovie("Spirit", Spirits.getNextHighestDepth(), Spirits.getNextHighestDepth());
Temp = Math.ceil(Math.random() * 4);
PTC._rotation = (Math.random() * 180) - (Math.random() * 180);
if (Temp == 1) {
PTC._x = Math.random() * Stage.width;
PTC._y = Stage.height;
}
if (Temp == 2) {
PTC._x = Math.random() * Stage.width;
PTC._y = 0;
}
if (Temp == 3) {
PTC._x = Stage.width;
PTC._y = Math.random() * Stage.height;
}
if (Temp == 4) {
PTC._x = 0;
PTC._y = Math.random() * Stage.height;
}
a++;
}
}
function SetLife(Num) {
Life = Life + Num;
if (Life > 15) {
Life = 15;
}
if (Life <= 0) {
GameOver();
} else {
CherryTree.gotoAndStop(Number(Life));
}
}
function GameOver() {
PartText.PartText.PartText.text = "Game Over";
GameOverText.text = (("Part " + Part) + " - Wave ") + Waves;
PartText.gotoAndPlay("Display");
Pause = true;
MenuButton._x = Stage.width / 2;
MoreGamesButton._x = Stage.width / 2;
GaOv = true;
}
function MuteMusic() {
if (MusicOn) {
Music.stop();
PauseMenu.Soundwaves._visible = false;
MusicOn = false;
} else {
Music.start(0, 9999);
PauseMenu.Soundwaves._visible = true;
MusicOn = true;
}
}
function Wiggle() {
if (Add > (Turn * AddRef)) {
AddType = -1;
}
if (Add < ((-Turn) * AddRef)) {
AddType = 1;
}
Add = Add + ((Turn / 2) * AddType);
}
var Speed = 6;
var AddRef = 2;
var Turn = 5;
var MaxWaves = 7;
var MaxInterval = 240;
var MouseMode = false;
var PTC;
var a = 0;
var Temp = 0;
var Temp2 = 0;
var Add = 0;
var AddType = 1;
var DragX = Head._x;
var DragY = Head._y;
var DragR = 0;
var Pause = false;
var PKeyDown = false;
var GaOv = false;
var MusicOn = true;
var Pop = new Sound();
Pop.attachSound("Pop");
var SoftHit = new Sound();
SoftHit.attachSound("SoftHit");
var Part = 0;
var SetType = 0;
var Waves = MaxWaves;
var Interval = 0;
var AmmPerWave = 0;
var Life = 15;
SetLife(0);
Frame 44
if (Key.isDown(80) && (GaOv == false)) {
if (PKeyDown == false) {
if (Pause == true) {
Pause = false;
PauseMenu._x = -1000;
if (PartText.Going) {
PartText.play();
}
} else {
Pause = true;
PauseMenu._x = Stage.width / 2;
PartText.stop();
}
PKeyDown = true;
}
} else {
PKeyDown = false;
}
if (Pause == false) {
DragX = DragX + (Math.cos(Head._rotation * (Math.PI/180)) * Speed);
DragY = DragY + (Math.sin(Head._rotation * (Math.PI/180)) * Math.abs(Speed));
if (!MouseMode) {
if (Key.isDown(38)) {
if ((DragR < (-90 + Turn)) && (DragR > (-90 - Turn))) {
DragR = -90;
Wiggle();
} else if ((DragR > 90) || (DragR < -90)) {
DragR = DragR + Turn;
} else {
DragR = DragR - Turn;
}
}
if (Key.isDown(40)) {
if ((DragR < (90 + Turn)) && (DragR > (90 - Turn))) {
DragR = 90;
Wiggle();
} else if ((DragR > 90) || (DragR < -90)) {
DragR = DragR - Turn;
} else {
DragR = DragR + Turn;
}
}
if (Key.isDown(37)) {
if ((DragR > (180 - Turn)) || (DragR < (-180 + Turn))) {
DragR = 180;
Wiggle();
} else if ((DragR < 180) && (DragR > 0)) {
DragR = DragR + Turn;
} else {
DragR = DragR - Turn;
}
}
if (Key.isDown(39)) {
if ((DragR < (0 + Turn)) && (DragR > (-Turn))) {
DragR = 0;
Wiggle();
} else if ((DragR < 180) && (DragR > 0)) {
DragR = DragR - Turn;
} else {
DragR = DragR + Turn;
}
}
if ((((!Key.isDown(39)) & (!Key.isDown(37))) & (!Key.isDown(38))) & (!Key.isDown(40))) {
Wiggle();
}
}
if (MouseMode) {
Temp = Math.atan((Head._y - _ymouse) / (Head._x - _xmouse)) / (Math.PI/180);
if (Head._x < _xmouse) {
Temp = Temp - 180;
}
Temp2 = DragR + 180;
if (Temp < -180) {
Temp = Temp + 360;
}
if (Temp > 180) {
Temp = Temp - 360;
}
if (Temp2 < -180) {
Temp2 = Temp2 + 360;
}
if (Temp2 > 180) {
Temp2 = Temp2 - 360;
}
if (Math.abs(Math.abs(Temp) - Math.abs(Temp2)) > (Turn * AddRef)) {
if (Temp < 0) {
if ((Head._rotation > Temp) && (Head._rotation < (180 - Math.abs(Temp)))) {
DragR = DragR + Turn;
} else {
DragR = DragR - Turn;
}
} else if ((Head._rotation < Temp) && (Head._rotation > (-(180 - Math.abs(Temp))))) {
DragR = DragR - Turn;
} else {
DragR = DragR + Turn;
}
}
if (Math.abs(Math.abs(Temp) - Math.abs(Temp2)) < ((Turn * AddRef) - 1)) {
Wiggle();
}
}
if (DragR < -180) {
DragR = DragR + 360;
}
if (DragR > 180) {
DragR = DragR - 360;
}
if (DragX > Stage.width) {
DragX = 1;
}
if (DragX < 0) {
DragX = Stage.width - 1;
}
if (DragY > Stage.height) {
DragY = 1;
}
if (DragY < 0) {
DragY = Stage.height - 1;
}
Head._x = DragX;
Head._y = DragY;
Head._rotation = DragR + Add;
PTC = Segments.attachMovie("Body", Segments.getNextHighestDepth(), Segments.getNextHighestDepth());
PTC._x = DragX;
PTC._y = DragY;
PTC._rotation = DragR;
if (Interval >= MaxInterval) {
if (Waves < MaxWaves) {
Waves++;
MakeWave(AmmPerWave);
} else {
Part++;
PartText.PartText.PartText.text = "Part " + Part;
PartText.gotoAndPlay("Display");
Waves = 0;
if (Part != 3) {
AmmPerWave++;
}
if (SetType < 3) {
SetType++;
}
}
Interval = 0;
} else {
Interval++;
}
if (_quality == "HIGH") {
if ((Math.random() < 0.05) && (Life > 6)) {
PTC = Particles.attachMovie("Petal", Particles.getNextHighestDepth(), Particles.getNextHighestDepth());
PTC._x = (CherryTree._x + (Math.random() * (CherryTree._width / 2))) - (Math.random() * (CherryTree._width / 2));
PTC._y = CherryTree._y;
}
}
}
Frame 45
gotoAndPlay ("Main");
Symbol 4 MovieClip [LogoParticle] Frame 81
this.swapDepths(0);
this.removeMovieClip();
Symbol 219 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 8 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=spiritdragon", "_blank");
}
Symbol 35 Button
on (release) {
getURL ("http://kongregate.com/", "_blank");
}
Symbol 36 MovieClip Frame 1
_root.stop();
Symbol 36 MovieClip Frame 159
_root.play();
Symbol 37 Button
on (release) {
getURL ("http://www.Particlasm.com/", "_blank");
}
Symbol 43 MovieClip Frame 10
stop();
Symbol 48 MovieClip Frame 10
stop();
Symbol 53 MovieClip Frame 10
stop();
Symbol 58 MovieClip Frame 10
stop();
Symbol 63 MovieClip Frame 10
stop();
Symbol 68 MovieClip Frame 10
stop();
Symbol 73 MovieClip Frame 10
stop();
Symbol 78 MovieClip Frame 10
stop();
Symbol 83 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 20
stop();
Symbol 89 Button
on (release) {
getURL ("http://www.freeplaymusic.com/", "_blank");
}
Symbol 90 MovieClip Frame 1
_root.stop();
var PTC;
var a;
var CurrentItem;
var Rand;
var Rand2;
var LogoSound = new Sound();
LogoSound.attachSound("LogoSound");
Symbol 90 MovieClip Frame 5
CurrentItem = LogoP;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 9
CurrentItem = LogoC;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 13
CurrentItem = LogoR;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 17
CurrentItem = LogoT;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 21
CurrentItem = LogoI;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 25
CurrentItem = LogoA;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 29
CurrentItem = LogoM;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 33
CurrentItem = LogoA2;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 37
CurrentItem = LogoS;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 41
CurrentItem = LogoL;
Rand = Math.random() * 360;
Rand2 = 5 + Math.ceil(Math.random() * 5);
a = 1;
while (a <= Rand2) {
PTC = LogoParticleHolder.attachMovie("LogoParticle", LogoParticleHolder.getNextHighestDepth(), LogoParticleHolder.getNextHighestDepth());
PTC._x = CurrentItem._x;
PTC._y = CurrentItem._y;
PTC._rotation = Rand + ((a * 360) / Rand2);
a++;
}
LogoSound.start();
Symbol 90 MovieClip Frame 178
stop();
_root.play();
Symbol 110 MovieClip Frame 16
stop();
Symbol 119 Button
on (release) {
_root.gotoAndPlay("LoadDump");
}
Symbol 126 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=spiritdragon", "_blank");
}
Symbol 158 MovieClip Frame 1
var Pas = false;
Symbol 158 MovieClip Frame 2
if (_root.Pause == true) {
Eyebrow.stop();
Beard.stop();
Wisker.stop();
Pas = true;
} else if (Pas == true) {
Eyebrow.play();
Beard.play();
Wisker.play();
Pas = false;
}
Symbol 158 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 161 MovieClip Frame 1
Going = false;
stop();
Symbol 161 MovieClip Frame 2
Going = true;
Symbol 161 MovieClip Frame 63
if (PartText.PartText.text == "Game Over") {
stop();
}
Symbol 161 MovieClip Frame 180
stop();
Symbol 166 Button
on (release) {
Selector._x = Keys._x;
Selector._y = Keys._y;
_root.MouseMode = false;
}
Symbol 170 Button
on (release) {
Selector._x = MousePic._x;
Selector._y = MousePic._y;
_root.MouseMode = true;
}
Symbol 174 Button
on (release) {
_root.MuteMusic();
}
Symbol 178 Button
on (release) {
CherryTree.gotoAndPlay(1);
_root.gotoAndPlay("MenuLoad");
}
Symbol 192 MovieClip Frame 4903
this._parent.Ended = true;
stop();
Symbol 193 MovieClip Frame 1
var Pas = false;
var Ended = false;
Symbol 193 MovieClip Frame 2
if (Ended == false) {
if (_root.Pause == true) {
Tutorial.stop();
Pas = true;
} else if (Pas == true) {
Tutorial.play();
Pas = false;
}
}
Symbol 193 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 194 Button
on (release) {
if (_root.GaOv == true) {
getURL ("http://www.kongregate.com/?gamereferral=spiritdragon", "_blank");
}
}
Symbol 201 MovieClip Frame 40
this._parent.swapDepths(0);
this._parent.removeMovieClip();
Symbol 202 MovieClip [Body] Frame 1
var Pas = false;
Symbol 202 MovieClip [Body] Frame 2
if (_root.Pause == true) {
Tail.stop();
Pas = true;
} else if (Pas == true) {
Tail.play();
Pas = false;
}
Symbol 202 MovieClip [Body] Frame 3
gotoAndPlay ("Main");
Symbol 205 MovieClip Frame 51
this._parent.swapDepths(0);
this._parent.removeMovieClip();
Symbol 206 MovieClip [SpiritTail] Frame 1
var Pas = false;
Symbol 206 MovieClip [SpiritTail] Frame 2
if (_root.Pause == true) {
Tail.stop();
Pas = true;
} else if (Pas == true) {
Tail.play();
Pas = false;
}
Symbol 206 MovieClip [SpiritTail] Frame 3
gotoAndPlay ("Main");
Symbol 209 MovieClip [Spirit] Frame 1
function SetType(Typ) {
if (Typ == 3) {
ColTran.ra = 80;
ColTran.ga = 50;
ColTran.ba = 50;
}
if (Typ == 2) {
ColTran.ra = 40;
ColTran.ga = 40;
ColTran.ba = 40;
}
if (Typ == 1) {
ColTran.ra = 55;
ColTran.ga = 55;
ColTran.ba = 55;
}
if (Typ == 0) {
ColTran.ra = 80;
ColTran.ga = 80;
ColTran.ba = 90;
}
Col.setTransform(ColTran);
}
function Die() {
if (_root._quality != "LOW") {
a = 0;
while (a <= 25) {
PTC = _root.Particles.attachMovie("Spark", _root.Particles.getNextHighestDepth(), _root.Particles.getNextHighestDepth());
PTC._x = this._x;
PTC._y = this._y;
PTC._rotation = Math.random() * 360;
PTC._xscale = Math.random() * 100;
PTC._yscale = PTC._xscale;
a++;
}
}
_root.Pop.start();
this.swapDepths(0);
this.removeMovieClip();
}
var BounceInt = 30;
var Speed = 2;
var Turn = 1;
var Bounced = 0;
var PTC;
var a = 0;
var Temp;
var TailThick = 0;
var Type = Math.ceil(Math.random() * _root.SetType);
var Col = new Color(this);
var ColTran = new Object();
if ((Type == 3) && (Math.random() < 0.5)) {
Type = Math.ceil(Math.random() * 2);
}
SetType(Type);
Symbol 209 MovieClip [Spirit] Frame 2
if (_root.Pause == false) {
Temp = Math.atan((this._y - _root.CherryTree._y) / (this._x - _root.CherryTree._x)) / (Math.PI/180);
if (_root.CherryTree._x < this._x) {
Temp = Temp - 180;
}
if (Temp < -180) {
Temp = Temp + 360;
}
if (Temp > 180) {
Temp = Temp - 360;
}
if (Temp < 0) {
if ((this._rotation > Temp) && (this._rotation < (180 - Math.abs(Temp)))) {
this._rotation = this._rotation - Turn;
} else {
this._rotation = this._rotation + Turn;
}
} else if ((this._rotation < Temp) && (this._rotation > (-(180 - Math.abs(Temp))))) {
this._rotation = this._rotation + Turn;
} else {
this._rotation = this._rotation - Turn;
}
this._x = this._x + (Math.cos(this._rotation * (Math.PI/180)) * Speed);
this._y = this._y + (Math.sin(this._rotation * (Math.PI/180)) * Math.abs(Speed));
if (_root._quality != "LOW") {
if (TailThick >= 3) {
PTC = _root.Particles.attachMovie("SpiritTail", _root.Particles.getNextHighestDepth(), _root.Particles.getNextHighestDepth());
PTC._x = this._x;
PTC._y = this._y;
PTC._rotation = this._rotation;
TailThick = 0;
} else {
TailThick++;
}
}
if (_root.CherryTree.hitTest(this._x, this._y, true)) {
if (Type == 0) {
_root.SetLife(1);
} else {
_root.SetLife(-1);
}
Die();
}
if (_root.Segments.hitTest(this._x, this._y, true) || (_root.Head.hitTest(this._x, this._y, true) && (Type != 3))) {
if (Bounced <= 0) {
this._rotation = this._rotation + 180;
_root.SoftHit.start();
if (_root._quality == "HIGH") {
a = 0;
while (a <= 10) {
PTC = _root.Particles.attachMovie("Petal", _root.Particles.getNextHighestDepth(), _root.Particles.getNextHighestDepth());
PTC._x = (this._x + (Math.random() * 5)) - (Math.random() * 5);
PTC._y = (this._y + (Math.random() * 5)) - (Math.random() * 5);
a++;
}
}
if ((Type > 0) && (Type < 3)) {
Type--;
SetType(Type);
}
Bounced = BounceInt;
}
} else if (Bounced > 0) {
Bounced--;
}
if (_root.Head.hitTest(this._x, this._y, true) && (Type == 3)) {
Die();
}
}
Symbol 209 MovieClip [Spirit] Frame 3
gotoAndPlay ("Main");
Symbol 212 MovieClip [Petal] Frame 1
var MaxX = 0;
var NextX = 0;
var NextY = 0;
var Dir;
var Down = true;
this._xscale = 50 + (Math.random() * 50);
this._yscale = this._xscale;
if (Math.random() < 0.5) {
Dir = -1;
} else {
Dir = 1;
}
Symbol 212 MovieClip [Petal] Frame 2
if (_root.Pause == false) {
if ((NextX <= 0) && (Down == true)) {
MaxX = 0.5 + (Math.random() * 1);
Dir = Dir * -1;
Down = false;
}
if (NextX >= MaxX) {
Down = true;
}
if (Down == false) {
NextX = NextX + 0.05;
} else {
NextX = NextX - 0.05;
}
NextY = 0.8 * NextX;
this._x = this._x + (NextX * Dir);
this._y = this._y + NextY;
this._alpha = this._alpha - ((101 - this._alpha) * 0.005);
if (this._alpha <= 0) {
this.swapDepths(0);
this.removeMovieClip();
}
}
Symbol 212 MovieClip [Petal] Frame 3
gotoAndPlay ("Main");
Symbol 217 MovieClip Frame 16
this._parent.swapDepths(0);
this._parent.removeMovieClip();
Symbol 218 MovieClip [Spark] Frame 1
var Pas = false;
var Ended = false;
Symbol 218 MovieClip [Spark] Frame 2
if (Ended == false) {
if (_root.Pause == true) {
Spark.stop();
Pas = true;
} else if (Pas == true) {
Spark.play();
Pas = false;
}
}
Symbol 218 MovieClip [Spark] Frame 3
gotoAndPlay ("Main");