Combined Code
movieClip 2 wpoint {
}
movieClip 3 positionmarker {
}
movieClip 6 {
}
movieClip 8 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 11 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 24 {
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 32 {
}
movieClip 35 {
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 39 mousecursor {
frame 1 {
stop();
var fLabel = 'normal';
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
this._alpha = 0;
var t = 5;
var zz = 10;
var ledge = 100;
var redge = 700;
var tedge = 100;
var bedge = 500;
var m = _parent;
var v = _root.selectedSprout;
}
onClipEvent (enterFrame) {
var g = _root.game;
if (_root.GameTime == true) {
if (Key.isDown(2)) {
_root.mousecursor.gotoAndStop(1);
}
if (_root.worldView == false) {
if (_root.draggingScreen == false) {
if (_root.movingSprout == true) {
if (m._x < ledge) {
t = 10 - Number(m._x / zz);
if (g._x < 0) {
g._x += t;
if (_root.movingSprout == true) {
_root.selectedSprout._x = m._x - g._x;
}
}
}
if (m._y < tedge) {
t = 10 - Number(m._y / zz);
if (g._y < 0) {
g._y += t;
if (_root.movingSprout == true) {
_root.selectedSprout._y = m._y - g._y;
}
}
}
if (m._x > redge) {
t = 10 - Number(Number(800 - m._x) / zz);
if (g._x > -800) {
g._x -= t;
if (_root.movingSprout == true) {
_root.selectedSprout._x = m._x - g._x;
}
}
}
if (m._y > bedge) {
t = 10 - Number(Number(600 - m._y) / zz);
if (g._y > -1400) {
g._y -= t;
if (_root.movingSprout == true) {
_root.selectedSprout._y = m._y - g._y;
}
}
}
if (g._x < -800) {
g._x = -800;
}
if (g._x > 0) {
g._x = 0;
}
if (g._y < -1400) {
g._y = -1400;
}
if (g._y > 0) {
g._y = 0;
}
} else {
if (_root.HUD.col.hitTest(_root.mousecursor._x, _root.mousecursor._y, true) == false && _root.outOfBounds == false) {
if (m._x < ledge) {
t = 10 - Number(m._x / zz);
if (g._x < 0) {
g._x += t;
}
}
if (m._y < tedge) {
t = 10 - Number(m._y / zz);
if (g._y < 0) {
g._y += t;
}
}
if (m._x > redge) {
t = 10 - Number(Number(800 - m._x) / zz);
if (g._x > -800) {
g._x -= t;
}
}
if (m._y > bedge) {
t = 10 - Number(Number(600 - m._y) / zz);
if (g._y > -1400) {
g._y -= t;
}
}
if (g._x < -800) {
g._x = -800;
}
if (g._x > 0) {
g._x = 0;
}
if (g._y < -1400) {
g._y = -1400;
}
if (g._y > 0) {
g._y = 0;
}
}
}
}
}
}
}
}
frame 2 {
stop();
var fLabel = 'rain';
}
instance spellCol of movieClip 3 positionmarker {
onClipEvent (load) {
this._alpha = 0;
_parent.spellTip.gotoAndStop(2);
}
}
frame 3 {
stop();
var fLabel = 'sun';
}
frame 4 {
stop();
var fLabel = 'wind';
}
frame 5 {
stop();
var fLabel = 'lightning';
}
instance spellCol of movieClip 3 positionmarker {
onClipEvent (load) {
this._alpha = 0;
_parent.spellTip.gotoAndStop(1);
}
}
frame 6 {
stop();
var fLabel = 'rainbow';
}
frame 7 {
stop();
var fLabel = 'gift';
}
instance spellCol of movieClip 3 positionmarker {
onClipEvent (load) {
this._alpha = 0;
_parent.spellTip.gotoAndStop(2);
}
onClipEvent (mouseMove) {
var cc = _root.checkCollision(this, _root.game.BG.col);
if (cc == true) {
_parent.spellTip.gotoAndStop(2);
} else {
_parent.spellTip.gotoAndStop(1);
}
}
}
frame 8 {
stop();
var fLabel = 'sproutling';
}
frame 9 {
stop();
var fLabel = 'vision';
}
instance spellCol of movieClip 3 positionmarker {
onClipEvent (load) {
this._alpha = 0;
_parent.spellTip.gotoAndStop(2);
}
}
frame 10 {
stop();
var fLabel = 'magicFlower';
}
instance spellCol of movieClip 3 positionmarker {
onClipEvent (load) {
this._alpha = 0;
_parent.spellTip.gotoAndStop(2);
}
onClipEvent (mouseMove) {
var cc = _root.checkCollision(this, _root.game.BG.col);
if (cc == true) {
_parent.spellTip.gotoAndStop(2);
} else {
_parent.spellTip.gotoAndStop(1);
}
}
}
frame 11 {
stop();
var fLabel = 'fallingStar';
}
frame 12 {
stop();
var fLabel = 'earthquake';
}
instance spellCol of movieClip 3 positionmarker {
onClipEvent (load) {
this._alpha = 0;
_parent.spellTip.gotoAndStop(1);
}
}
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 44 buildHammerShell {
}
movieClip 46 fader {
}
movieClip 48 {
}
movieClip 149 TMPkgrmfld5a {
frame 1 {
play();
}
}
movieClip 150 fireBaseShell {
frame 1 {
function activity(cs) {
if (cs.sSpeed == 0.5) {
cs.sTask = 'none';
_root.playSproutQuip('shout');
cs.col.shouldWander('running', 6 + random(3));
cs.col.setDesc('Burning');
_root.bubbleMaker(cs.sNum, -10, 'motivation');
}
}
stop();
this.col.onRollOver = function () {
if (_root.mousecursor.fLabel == 'rain') {
_root.mousecursor.spellTip.gotoAndStop(1);
}
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.FireTitleXX, _root.FireDescriptionXX, this._parent.pnum);
}
};
this.col.onReleaseOutside = function () {
if (this._parent.pDiscovered >= 1) {
_root.mousecursor.spellTip.gotoAndStop(2);
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
this.col.onRollOut = this.col.onReleaseOutside;
this.col.onPress = function () {
if (_root.mousecursor.fLabel == 'rain') {
_root.HUD.rainButton.updateButton(1);
_root.effectsLayer.attachMovie('rainEffectShell', 'spell_rain', 11000 + _root.effectNum);
_root.effectsLayer.spell_rain._x = this._parent._x;
_root.effectsLayer.spell_rain._y = this._parent._y - 3;
_root.effectsLayer.spell_rain._alpha = 0;
_root.effectsLayer.spell_rain.makePuddle = true;
killRain3 = function () {
_root.removeFromZandPOIArrays(_root.game.lfire);
_root.effectsLayer.spell_rain.removeMovieClip();
};
killRain2 = function () {
_root.genericBubbleMaker(_root.game.lfire, 5, 'karma');
_root.effectsLayer.spell_rain.alphaTo(0, 1, 'linear', 0, killRain3);
};
killRain = function () {
_root.effectsLayer.spell_rain.alphaTo(100, 3, 'linear', 0, killRain2);
};
this._parent.alphaTo(0, 3, 'linear');
_root.effectsLayer.spell_rain.alphaTo(100, 1, 'linear', 0, killRain);
_root.mousecursor.gotoAndStop(1);
}
};
}
}
movieClip 152 {
}
// unknown tag 88 length 92
movieClip 155 {
}
movieClip 156 ButtonMC {
frame 1 {
this.onLoad = function () {
var homeScale = this._xscale;
var destScale = homeScale + 20;
};
this.onRollOver = function () {
this.alphaTo(100, 0.15, 'easeOutQuad');
this.scaleTo(this.destScale, 0.1, 'easeOutQuad');
};
this.onReleaseOutside = function () {
this.alphaTo(65, 0.35, 'easeOutQuad');
this.scaleTo(this.homeScale, 0.1, 'easeOutQuad');
};
this.onRollOut = this.onReleaseOutside;
this.alphaTo(65, 0.55, 'easeOutQuad');
}
}
movieClip 158 {
}
movieClip 160 {
}
// unknown tag 88 length 92
movieClip 163 SproutHoverEffectShell {
}
movieClip 166 {
}
movieClip 169 {
}
movieClip 172 {
}
movieClip 175 {
}
movieClip 178 {
}
movieClip 181 {
}
movieClip 184 {
}
movieClip 187 {
}
movieClip 190 {
}
movieClip 193 {
}
movieClip 196 {
}
movieClip 199 {
}
movieClip 202 {
}
movieClip 205 {
}
movieClip 208 {
}
movieClip 211 {
}
movieClip 214 {
}
movieClip 217 {
}
movieClip 220 {
}
movieClip 223 {
}
movieClip 226 {
}
movieClip 229 {
}
movieClip 232 {
}
movieClip 235 {
}
movieClip 238 {
}
movieClip 241 {
}
movieClip 244 {
}
movieClip 247 {
}
movieClip 250 {
}
movieClip 253 {
}
movieClip 256 {
}
movieClip 259 {
}
movieClip 260 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 291 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 322 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 353 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 384 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 415 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 446 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 477 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 508 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 539 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 570 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 601 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 632 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 663 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 694 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 725 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 756 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 787 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 818 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 849 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 880 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 911 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 942 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 973 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1004 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1035 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1066 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1097 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1128 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1159 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1190 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1221 {
frame 7 {
stop();
var q = random(8) + 1;
var qq = random(3) + 1;
if (_parent._parent._parent.sTask == 'reasearching') {
_root.playSound('S_anvilhit' + qq);
} else {
_root.playSound('S_hit' + q);
}
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1252 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 1253 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 1314 {
}
movieClip 1375 {
}
movieClip 1436 {
}
movieClip 1497 {
}
movieClip 1558 {
}
movieClip 1619 {
}
movieClip 1680 {
}
movieClip 1741 {
}
movieClip 1802 {
}
movieClip 1863 {
}
movieClip 1924 {
}
movieClip 1985 {
}
movieClip 2046 {
}
movieClip 2107 {
}
movieClip 2168 {
}
movieClip 2229 {
}
movieClip 2290 {
}
movieClip 2351 {
}
movieClip 2412 {
}
movieClip 2473 {
}
movieClip 2534 {
}
movieClip 2595 {
}
movieClip 2656 {
}
movieClip 2717 {
}
movieClip 2778 {
}
movieClip 2839 {
}
movieClip 2900 {
}
movieClip 2961 {
}
movieClip 3022 {
}
movieClip 3083 {
}
movieClip 3144 {
}
movieClip 3205 {
}
movieClip 3206 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 3237 {
}
movieClip 3268 {
}
movieClip 3299 {
}
movieClip 3330 {
}
movieClip 3361 {
}
movieClip 3392 {
}
movieClip 3423 {
}
movieClip 3454 {
}
movieClip 3485 {
}
movieClip 3516 {
}
movieClip 3547 {
}
movieClip 3578 {
}
movieClip 3609 {
}
movieClip 3640 {
}
movieClip 3671 {
}
movieClip 3702 {
}
movieClip 3733 {
}
movieClip 3764 {
}
movieClip 3795 {
}
movieClip 3826 {
}
movieClip 3857 {
}
movieClip 3888 {
}
movieClip 3919 {
}
movieClip 3950 {
}
movieClip 3981 {
}
movieClip 4012 {
}
movieClip 4043 {
}
movieClip 4074 {
}
movieClip 4105 {
}
movieClip 4136 {
}
movieClip 4167 {
}
movieClip 4198 {
}
movieClip 4199 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 4240 {
}
movieClip 4281 {
}
movieClip 4322 {
}
movieClip 4363 {
}
movieClip 4404 {
}
movieClip 4445 {
}
movieClip 4486 {
}
movieClip 4527 {
}
movieClip 4568 {
}
movieClip 4609 {
}
movieClip 4650 {
}
movieClip 4691 {
}
movieClip 4732 {
}
movieClip 4773 {
}
movieClip 4814 {
}
movieClip 4855 {
}
movieClip 4896 {
}
movieClip 4937 {
}
movieClip 4978 {
}
movieClip 5019 {
}
movieClip 5060 {
}
movieClip 5101 {
}
movieClip 5142 {
}
movieClip 5183 {
}
movieClip 5224 {
}
movieClip 5265 {
}
movieClip 5306 {
}
movieClip 5347 {
}
movieClip 5388 {
}
movieClip 5429 {
}
movieClip 5468 {
}
movieClip 5509 {
}
movieClip 5510 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 5551 {
}
movieClip 5592 {
}
movieClip 5633 {
}
movieClip 5674 {
}
movieClip 5715 {
}
movieClip 5756 {
}
movieClip 5797 {
}
movieClip 5838 {
}
movieClip 5879 {
}
movieClip 5920 {
}
movieClip 5961 {
}
movieClip 6002 {
}
movieClip 6043 {
}
movieClip 6084 {
}
movieClip 6125 {
}
movieClip 6166 {
}
movieClip 6207 {
}
movieClip 6248 {
}
movieClip 6289 {
}
movieClip 6330 {
}
movieClip 6371 {
}
movieClip 6412 {
}
movieClip 6453 {
}
movieClip 6494 {
}
movieClip 6535 {
}
movieClip 6576 {
}
movieClip 6617 {
}
movieClip 6658 {
}
movieClip 6699 {
}
movieClip 6740 {
}
movieClip 6781 {
}
movieClip 6822 {
}
movieClip 6823 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 6826 {
}
movieClip 6829 {
}
movieClip 6832 {
}
movieClip 6835 {
}
movieClip 6838 {
}
movieClip 6841 {
}
movieClip 6844 {
}
movieClip 6847 {
}
movieClip 6848 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 6909 {
}
movieClip 6912 {
}
movieClip 6973 {
}
movieClip 6976 {
}
movieClip 7037 {
}
movieClip 7040 {
}
movieClip 7101 {
}
movieClip 7104 {
}
movieClip 7165 {
}
movieClip 7168 {
}
movieClip 7229 {
}
movieClip 7232 {
}
movieClip 7233 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 7294 {
frame 30 {
stop();
}
}
movieClip 7355 {
frame 30 {
stop();
}
}
movieClip 7356 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 7359 {
}
movieClip 7362 {
}
movieClip 7365 {
}
movieClip 7368 {
}
movieClip 7371 {
}
movieClip 7374 {
}
movieClip 7377 {
}
movieClip 7380 {
}
movieClip 7383 {
}
movieClip 7386 {
}
movieClip 7389 {
}
movieClip 7392 {
}
movieClip 7395 {
}
movieClip 7398 {
}
movieClip 7401 {
}
movieClip 7404 {
}
movieClip 7407 {
}
movieClip 7410 {
}
movieClip 7413 {
}
movieClip 7416 {
}
movieClip 7419 {
}
movieClip 7422 {
}
movieClip 7425 {
}
movieClip 7428 {
}
movieClip 7431 {
}
movieClip 7434 {
}
movieClip 7437 {
}
movieClip 7440 {
}
movieClip 7443 {
}
movieClip 7446 {
}
movieClip 7449 {
}
movieClip 7452 {
}
movieClip 7453 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
_root.changeColor(this.sprout, 0, 0, 0, _root.femaleColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 7454 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 7456 {
}
movieClip 7465 {
}
movieClip 7467 {
}
movieClip 7471 {
}
movieClip 7473 {
frame 1 {
stop();
var fLabel = 'sun';
}
frame 2 {
stop();
var fLabel = 'rain';
}
frame 3 {
stop();
var fLabel = 'sproutling';
}
frame 4 {
stop();
var fLabel = 'gift';
}
frame 5 {
stop();
var fLabel = 'wind';
}
frame 6 {
stop();
var fLabel = 'vision';
}
frame 7 {
stop();
var fLabel = 'rainbow';
}
frame 8 {
stop();
var fLabel = 'fallingstar';
}
}
movieClip 7476 {
}
movieClip 7478 {
frame 1 {
stop();
var fLabel = 'none';
}
frame 2 {
stop();
var fLabel = 'hunger';
}
frame 3 {
stop();
var fLabel = 'sleepy';
}
frame 4 {
stop();
var fLabel = 'brainstorming';
}
frame 5 {
stop();
var fLabel = 'idea';
}
frame 6 {
stop();
var fLabel = 'wants';
}
frame 10 {
stop();
var fLabel = 'talk';
}
}
movieClip 7479 fSproutShell {
}
frame 1 {
function createSprout(SproutX, SproutY, gender, ns, n, bage) {
++_root.totalActiveSprouts;
++_root.totalCareerSprouts;
var i = _root.totalActiveSprouts;
if (i == 12) {
if (_root.achievements[2] == 0) {
_root.achievements[2] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 2;
}
}
if (ns == 1) {
if (gender != 'm' && gender != 'f') {
var t = random(100);
if (t > 50) {
var newGender = 'f';
} else {
var newGender = 'm';
}
} else {
var newGender = gender;
}
_root.game.attachMovie(newGender + 'SproutShell', 'SS' + i, 5000 + i);
var cs = _root.game['SS' + i];
cs._x = SproutX;
cs._y = SproutY;
cs.sGender = newGender;
cs.sName = _root.getNewSproutName(newGender);
cs.hover.t.text = cs.sName;
cs.sCuriosity = 20 + random(30);
if (bage != null) {
cs.sAge = bage;
} else {
cs.sAge = 5 + random(15);
}
cs.sMotivation = 20 + random(80);
cs.sHunger = 15 + random(20);
cs.sSleepiness = 0;
cs.sSpeed = 0.5;
cs.pointOfInterest = 0;
cs.oldPointOfInterest = 0;
cs.sLikes = '';
cs.sDislikes = 0;
cs.sColor = _root.getNewSproutColor(newGender);
cs.sTask = 'none';
cs.sDescription = 'none';
cs.pDiscovered = 1;
cs.sWorkforce = 0;
cs.selectedWithNoSpell = true;
if (cs.Age < _root.workAge) {
cs._yscale = _root.setSproutSize(cs.sAge);
cs._xscale = cs._yscale;
}
cs.pickupOffset = 0;
cs.sNum = i;
cs.myDegrees = 0;
cs.sXspeed = 0;
cs.sYspeed = 0;
cs.onSprout = 0;
cs.col.sel = false;
cs.col.dep = _root.game['SS' + i].getDepth();
cs.col.xhome = false;
cs.col.yhome = false;
var t = _root.sproutArray.length + 1;
_root['sprout' + t][0] = cs.sName;
_root['sprout' + t][1] = cs._x;
_root['sprout' + t][2] = cs._y;
_root['sprout' + t][3] = cs.sAge;
_root['sprout' + t][4] = cs.sGender;
_root['sprout' + t][5] = cs.sTask;
_root['sprout' + t][6] = cs.sMotivation;
_root['sprout' + t][7] = cs.sCuriosity;
_root['sprout' + t][8] = cs.sHunger;
_root['sprout' + t][9] = cs.sSleepiness;
_root['sprout' + t][10] = cs.sColor;
_root['sprout' + t][12] = cs.sLikes;
_root['sprout' + t][12] = cs.sDislikes;
_root['sprout' + t][13] = cs.sSpeed;
setMe = function () {
_root.sproutsToTask(this);
};
cs.alphaTo(100, 0.2, 'linear', 0, setMe);
} else {
_root.game.attachMovie(_root['sprout' + n][4] + 'SproutShell', 'SS' + n, 5000 + n);
var cs = _root.game['SS' + n];
cs.sName = _root['sprout' + n][0];
cs._x = _root['sprout' + n][1];
cs._y = _root['sprout' + n][2];
cs.sAge = _root['sprout' + n][3];
cs.sGender = _root['sprout' + n][4];
cs.sTask = _root['sprout' + n][5];
cs.sMotivation = _root['sprout' + n][6];
cs.sCuriosity = _root['sprout' + n][7];
cs.sHunger = _root['sprout' + n][8];
cs.sSleepiness = _root['sprout' + n][9];
cs.sColor = _root['sprout' + n][10];
cs.sLikes = _root['sprout' + n][11];
cs.sDislikes = _root['sprout' + n][12];
cs.sSpeed = _root['sprout' + n][13];
cs.pickupOffset = 0;
cs.sNum = n;
cs.myDegrees = 0;
cs.sXspeed = 0;
cs.sYspeed = 0;
cs.onSprout = 0;
cs.sDescription = 'none';
cs.pDiscovered = 1;
cs.sWorkforce = 0;
cs.selectedWithNoSpell = true;
if (cs.Age < _root.workAge) {
cs._yscale = _root.setSproutSize(cs.sAge);
cs._xscale = cs._yscale;
}
cs.hover.t.text = cs.sName;
cs.pointOfInterest = 0;
cs.oldPointOfInterest = 0;
cs.col.sel = false;
cs.col.dep = _root.game['SS' + i].getDepth();
cs.col.xhome = 0;
cs.col.yhome = 0;
}
cs.col.onPress = function () {
if (_root.GameTime == true) {
if (_root.mousecursor._currentframe != 1) {
if (_root.mousecursor.spellTip._currentframe == 1) {
delete cs.onEnterFrame;
delete cs.col.onEnterFrame;
cs.stopTween();
cs.col.stopTween();
cs._alpha = 100;
if (_root.effectNum > 10) {
_root.effectNum = 0;
} else {
++_root.effectNum;
}
if (_root.mousecursor.fLabel == 'sun') {
if (cs.sTask == 'gardening') {
_root.game.garden01.col.onPress();
} else {
if (cs.needBubble.fLabel == 'wants' && cs.needBubble.wants.fLabel == 'sun') {
_root.playSproutQuip('wishfullfilled');
cs.needBubble._alpha = 0;
_root.bubbleMaker(cs.sNum, 5, 'karma');
_root.tipBoxMaker(cs.sName + _root['GotWish' + Number(random(3) + 1) + cs.sGender + 'XX']);
}
_root.HUD.sunButton.updateButton(1);
_root.effectsLayer.attachMovie('sunShineEffectShell', 'spell_sunshine', 11000 + _root.effectNum);
_root.effectsLayer.spell_sunshine._x = cs._x;
_root.effectsLayer.spell_sunshine._y = cs._y - 3;
_root.effectsLayer.spell_sunshine._alpha = 0;
killsun2 = function () {
cs.col.shouldWander('walking', 0);
_root.effectsLayer.spell_sunshine.removeMovieClip();
};
killsun = function () {
_root.effectsLayer.spell_sunshine.alphaTo(0, 1, 'linear', 0, killsun2);
};
startSun = function () {
_root.effectsLayer.spell_sunshine.alphaTo(100, 2, 'linear', 0, killsun);
};
_root.effectsLayer.spell_sunshine.alphaTo(100, 0.5, 'linear', 0, startSun);
delete cs.onEnterFrame;
cs.sTask = 'none';
if (cs.pointOfInterest != 0) {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
}
cs.ani.gotoAndStop('idle');
cs.ani.rot.gotoAndStop(13);
_root.mousecursor.gotoAndStop(1);
}
} else {
if (_root.mousecursor.fLabel == 'rain') {
if (cs.sTask == 'gardening') {
_root.game.garden01.col.onPress();
} else {
if (cs.needBubble.fLabel == 'wants' && cs.needBubble.wants.fLabel == 'rain') {
_root.playSproutQuip('wishfullfilled');
cs.needBubble._alpha = 0;
_root.bubbleMaker(cs.sNum, 5, 'karma');
_root.tipBoxMaker(cs.sName + _root['GotWish' + Number(random(3) + 1) + cs.sGender + 'XX']);
}
_root.HUD.rainButton.updateButton(1);
_root.effectsLayer.attachMovie('rainEffectShell', 'spell_rain', 11000 + _root.effectNum);
_root.effectsLayer.spell_rain._x = cs._x;
_root.effectsLayer.spell_rain._y = cs._y - 3;
_root.effectsLayer.spell_rain._alpha = 0;
_root.effectsLayer.spell_rain.makePuddle = true;
killRain3 = function () {
cs.col.shouldWander('walking', 0);
_root.effectsLayer.spell_rain.removeMovieClip();
};
killRain2 = function () {
_root.effectsLayer.spell_rain.alphaTo(0, 1, 'linear', 0, killRain3);
};
killRain = function () {
_root.effectsLayer.spell_rain.alphaTo(100, 3, 'linear', 0, killRain2);
};
_root.effectsLayer.spell_rain.alphaTo(100, 1, 'linear', 0, killRain);
delete cs.onEnterFrame;
cs.sTask = 'none';
if (cs.pointOfInterest != 0) {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
}
cs.ani.gotoAndStop('idle');
cs.ani.rot.gotoAndStop(13);
_root.mousecursor.gotoAndStop(1);
}
} else {
if (_root.mousecursor.fLabel == 'wind') {
if (cs.needBubble.fLabel == 'wants' && cs.needBubble.wants.fLabel == 'wind') {
_root.playSproutQuip('wishfullfilled');
cs.needBubble._alpha = 0;
_root.bubbleMaker(cs.sNum, 5, 'karma');
_root.tipBoxMaker(cs.sName + _root['GotWish' + Number(random(3) + 1) + cs.sGender + 'XX']);
}
if (cs.sTask == 'tryingToKite') {
_root.pointsOfInterest[cs.pointOfInterest].col.onPress();
} else {
if (cs.sTask != 'kiting' && cs.sTask != 'kiting2' && cs.sTask != 'kiting3') {
if (cs.pointOfInterest != 0) {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
}
delete cs.onEnterFrame;
cs.sTask = 'none';
cs.ani.gotoAndStop('idle');
cs.ani.rot.gotoAndStop(13);
}
}
_root.bubbleMaker(cs.sNum, 10, 'awake');
_root.HUD.windButton.updateButton(1);
_root.effectsLayer.attachMovie('spellWindEffect', 'spell_wind', 11000 + _root.effectNum);
_root.effectsLayer.spell_wind._x = cs._x;
_root.effectsLayer.spell_wind._y = cs._y - 3;
_root.mousecursor.gotoAndStop(1);
} else {
if (_root.mousecursor.fLabel == 'vision') {
if (cs.needBubble.fLabel == 'wants' && cs.needBubble.wants.fLabel == 'vision') {
_root.playSproutQuip('wishfullfilled');
cs.needBubble._alpha = 0;
_root.bubbleMaker(cs.sNum, 5, 'karma');
}
_root.effectsLayer.attachMovie('visionRayShell', 'spell_vision', 11000 + _root.effectNum);
_root.effectsLayer.spell_vision._x = cs._x;
_root.effectsLayer.spell_vision._y = cs._y - 3;
_root.effectsLayer.spell_vision.sprout = cs;
_root.mousecursor.gotoAndStop(1);
_root.bubbleMaker(cs.sNum, 100, 'motivation');
_root.HUD.visionButton.updateButton(1);
if (cs.pointOfInterest != 0) {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
}
delete cs.onEnterFrame;
cs.sDislikes = 2000;
cs.sTask = 'none';
cs.ani.gotoAndStop('idle');
cs.ani.rot.gotoAndStop(13);
}
}
}
}
}
} else {
if (_root.lightningOn == true && cs.sTask != 'hanggliding' && cs.sTask != 'ballooning' && cs.sTask != 'barrelride') {
rlight = function () {
cs.col.shouldWander('walking', 0);
cs.col.setDesc('HitByLightning');
};
cs.sTask = 'lightning';
cs.ani.gotoAndStop('electrify');
cs.alphaTo(100, 2, 'linear', 0, rlight);
} else {
if (cs.sTask == 'barrelride') {
_root.game.barrelRide.col.onPress();
} else {
if (_root.worldView == false && cs.sTask != 'hanggliding' && cs.sTask != 'ballooning') {
cs.selectedWithNoSpell = true;
cs._alpha = 100;
delete cs.col.onEnterFrame;
delete cs.onEnterFrame;
_root.HUD.adjustHUD('sprout', cs.sName, cs.sTask, cs.sNum);
_root.selectedSprout = cs;
_root.lastSprout = _root.selectedSprout;
_root.draggingScreen = false;
_root.movingSprout = true;
_root.holdingSprout = cs;
cs.stopTween();
cs.ani.stopTween();
cs.stopTween();
cs.ani._y = -25;
cs.hover.alphaTo(100, 0.1, 'linear');
cs.col.dep = cs.getDepth();
cs.col.xhome = cs._x + _root.game._x;
cs.col.yhome = Number(cs._y + _root.game._y) + cs.pickupOffset;
cs.col.sel = true;
cs.sha.scaleTo(100, 0.1, 'easeOutQuad');
cs.sha.slideTo(10, 20, 0.1, 'easeOutQuad');
if (cs.col.dep != _root.selectionDepth) {
cs.swapDepths(_root.selectionDepth);
}
cs.ani.gotoAndStop('idle');
if (cs.sTask != 'none') {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
}
if (cs.sTask == 'eating') {
} else {
cs.sTask = 'none';
}
var resetOldPOI = false;
cs.col.onEnterFrame = function () {
cs.col.setRot();
var foundPOI = false;
cs._x = _root.mousecursor._x - _root.game._x;
cs._y = Number(_root.mousecursor._y - _root.game._y) + cs.pickupOffset;
i = 0;
while (i < _root.pointsOfInterest.length) {
if (cs.col2.hitTest(_root.pointsOfInterest[i].col) && _root.pointsOfInterest[i] != cs) {
if (_root.pointsOfInterest[i].pDiscovered >= 1) {
if (i != cs.pointOfInterest) {
var foundPOI = true;
_root.pointsOfInterest[cs.pointOfInterest].hover.alphaTo(0, 0.3, 'easeOutQuad');
cs.pointOfInterest = i;
_root.pointsOfInterest[i].hover.alphaTo(100, 0.3, 'easeOutQuad');
}
}
} else {
if (foundPOI == false) {
_root.pointsOfInterest[cs.pointOfInterest].hover.alphaTo(0, 0.3, 'easeOutQuad');
cs.pointOfInterest = 0;
}
}
++i;
}
};
}
}
}
}
}
};
cs.col.onRelease = function () {
if (_root.GameTime == true && cs.selectedWithNoSpell == true) {
cs.selectedWithNoSpell = false;
delete cs.col.onEnterFrame;
if (_root.tutorialOn == 1) {
_root.tutorialScript(1);
}
_root.movingSprout = false;
_root.holdingSprout = 0;
cs.hover._alpha = 0;
cs.col.sel = false;
cs.hover.alphaTo(80, 0.1, 'linear');
_root.pointsOfInterest[cs.pointOfInterest].hover.alphaTo(0, 0.15, 'easeOutQuad');
cs.sha.scaleTo(64, 0.1, 'easeOutQuad');
cs.sha.slideTo(0, 0, 0.1, 'easeOutQuad');
if (cs.pointOfInterest == 0) {
cs.swapDepths(cs.col.dep);
var cc = _root.checkCollision(cs.col2, _root.game.BG.col);
if (cc == true) {
_root.sproutBadPlace(cs);
} else {
cs.sTask == 'none';
if (cs.sLikes != 'idea' || cs.sLikes != 'brainstorming') {
if (cs.sAge > _root.workAge) {
cs.col.setDesc('Nothing');
} else {
cs.col.setDesc('Babble');
_root.playSproutQuip('baby');
}
}
cs.col.shouldWander('walking', 0);
}
} else {
cs.swapDepths(_root.pointsOfInterest[cs.pointOfInterest]._y + 1);
j = 0;
while (j < _root.bs.length) {
if (_root.pointsOfInterest[cs.pointOfInterest] == _root.game[_root.bs[j]]) {
if (_root.game[_root.bs[j]].pDiscovered >= 1) {
if (_root.pointsOfInterest[cs.pointOfInterest].pComplete < 100) {
if (_root.pointsOfInterest[cs.pointOfInterest] == _root.game.garden01) {
_root.game[_root.bs[j]].activity(cs);
} else {
if (cs.sAge > _root.workAge) {
if (_root.tutorialOn <= 11 && _root.pointsOfInterest[cs.pointOfInterest] == _root.game.shelter1) {
_root.tutorialScript(11);
}
if (_root.tutorialOn == 12 && _root.pointsOfInterest[cs.pointOfInterest] == _root.game.shelter1) {
_root.tutorialScript(12);
}
_root.game[_root.bs[j]].activity(cs);
} else {
var zz = _root.bs[j];
_root.playSproutQuip('baby');
var tx = _root.game.BG[zz + Number(cs.sNum)]._x;
var ty = _root.game.BG[zz + Number(cs.sNum)]._y;
st = function () {
cs.col.shouldWander('walking', 0);
};
cs.col.setDesc('Babble');
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
}
}
} else {
if (cs.sAge > _root.workAge) {
_root.pointsOfInterest[cs.pointOfInterest].activity(cs);
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
} else {
if (_root.pointsOfInterest[cs.pointOfInterest] != _root.game.observatory && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.balloon && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.kite1 && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.kite2 && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.kite3 && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.toolShop && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.wishingWell && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.bridge && _root.pointsOfInterest[cs.pointOfInterest] != _root.game.pier) {
_root.pointsOfInterest[cs.pointOfInterest].activity(cs);
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
} else {
_root.playSproutQuip('baby');
var tx = _root.game.BG[_root.bs[_root.pointsOfInterest[cs.pointOfInterest].pnum] + Number(cs.sNum)]._x;
var ty = _root.game.BG[_root.bs[_root.pointsOfInterest[cs.pointOfInterest].pnum] + Number(cs.sNum)]._y;
st = function () {
cs.col.shouldWander('walking', 0);
};
cs.col.setDesc('Babble');
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
}
}
}
} else {
var cc = _root.checkCollision(cs.col2, _root.game.BG.col);
if (cc == true) {
_root.sproutBadPlace(cs);
} else {
cs.col.setDesc('Nothing');
cs.col.shouldWander('walking', 0);
}
}
}
++j;
}
gg = 1;
while (gg < 13) {
if (_root.pointsOfInterest[cs.pointOfInterest] == _root.game['SS' + gg]) {
if (_root.pointsOfInterest[cs.pointOfInterest].sTask == 'none') {
delete cs.onEnterFrame;
delete _root.pointsOfInterest[cs.pointOfInterest].onEnterFrame;
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
setro = function () {
cs.col.setRot(1, _root.pointsOfInterest[cs.pointOfInterest]._x, _root.pointsOfInterest[cs.pointOfInterest]._y);
_root.pointsOfInterest[cs.pointOfInterest].col.setRot(1, cs._x, cs._y);
_root.pointsOfInterest[cs.pointOfInterest].startDancing();
cs.startDancing();
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('dance');
} else {
_root.playSproutQuip('baby');
}
if (_root.pointsOfInterest[cs.pointOfInterest].sAge > _root.workAge) {
_root.playSproutQuip('dance');
} else {
_root.playSproutQuip('baby');
}
};
_root.pointsOfInterest[cs.pointOfInterest].xSlideTo(_root.pointsOfInterest[cs.pointOfInterest]._x + 30, 0.3, 'easeInQuad');
cs.xSlideTo(_root.pointsOfInterest[cs.pointOfInterest]._x - 30, 0.3, 'easeInQuad', 0, setro);
} else {
if (cs.sAge > _root.workAge || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'sleeping' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'sleeping2' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'fishing' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'fishing2' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'eating' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'jumping' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'kicking' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'kicking2' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'kicking3' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'observing' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'brainstorming' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'learning' || _root.pointsOfInterest[cs.pointOfInterest].sTask == 'zooing') {
_root.pointsOfInterest[_root.pointsOfInterest[cs.pointOfInterest].pointOfInterest].activity(cs);
cs.pointOfInterest = _root.pointsOfInterest[cs.pointOfInterest].pointOfInterest;
} else {
_root.playSproutQuip('baby');
var tx = _root.game.BG[_root[bs[cs.pointOfInterest]] + Number(cs.sNum)]._x;
var ty = _root.game.BG[_root[bs[cs.pointOfInterest]] + Number(cs.sNum)]._y;
st = function () {
cs.col.shouldWander('walking', 0);
};
cs.col.setDesc('Babble');
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
}
}
}
++gg;
}
if (cs.sTask != 'sick') {
i = 55;
while (i >= 0) {
if (_root.pointsOfInterest[cs.pointOfInterest] == _root.game['Stone' + i] || _root.pointsOfInterest[cs.pointOfInterest] == _root.game['BFly' + i] || _root.pointsOfInterest[cs.pointOfInterest] == _root.game['Weed' + i] || _root.pointsOfInterest[cs.pointOfInterest] == _root.game['F' + i] || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.giftBox || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.magicFlowerBud) {
if (_root.pointsOfInterest[cs.pointOfInterest] == _root.game['Weed' + i]) {
_root.pointsOfInterest[cs.pointOfInterest].activity(cs);
} else {
_root.pointsOfInterest[cs.pointOfInterest].activity(cs);
cs.pointOfInterest = 0;
}
}
--i;
}
if (_root.pointsOfInterest[cs.pointOfInterest] == _root.game.mball1 || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.mball2 || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.mball3 || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.puddles || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.trampoline || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.lfire || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.fstarShell1) {
_root.pointsOfInterest[cs.pointOfInterest].activity(cs);
}
if (_root.pointsOfInterest[cs.pointOfInterest] == _root.game.kite1 || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.kite2 || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.kite3 || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.hangGlider || _root.pointsOfInterest[cs.pointOfInterest] == _root.game.barrelRide) {
if (cs.sAge > _root.workAge) {
_root.pointsOfInterest[cs.pointOfInterest].activity(cs);
} else {
_root.playSproutQuip('baby');
var tx = _root.game.BG[_root[bs[cs.pointOfInterest]] + Number(cs.sNum)]._x;
var ty = _root.game.BG[_root[bs[cs.pointOfInterest]] + Number(cs.sNum)]._y;
st = function () {
cs.col.shouldWander('walking', 0);
};
cs.col.setDesc('Babble');
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
}
}
} else {
cs.col.shouldWander('walking', 0);
}
}
_root.pointsOfInterest[cs.pointOfInterest].hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
cs.col.onRollOut = function () {
_root.movingSprout = false;
cs.col.sel = false;
_root.selectedSprout = 'none';
cs.hover.alphaTo(0, 0.15, 'easeOutQuad');
_root.zSortObjects();
if (cs.sTask == 'sleeping') {
cs.alphaTo(65, 0.15, 'easeOutQuad');
}
if (_root.mousecursor._currentframe != 1) {
_root.mousecursor.spellTip.gotoAndStop(2);
}
};
cs.col.onRollOver = function () {
if (_root.GameTime == true) {
if (_root.selectedSprout == 'none' && cs.sTask != 'hanggliding' && cs.sTask != 'ballooning') {
if (cs.sTask == 'barrelride') {
_root.HUD.adjustHUD('misc', _root.BarrelRideTitleXX, _root.BarrelRideReturnXX, this._parent.pnum);
} else {
if (cs.sTask == 'sleeping' || cs.sTask == 'sleeping2') {
cs.alphaTo(100, 0.15, 'easeOutQuad');
}
if (_root.mousecursor.fLabel == 'sun' || _root.mousecursor.fLabel == 'rain' || _root.mousecursor.fLabel == 'wind' || _root.mousecursor.fLabel == 'lightning' || _root.mousecursor.fLabel == 'vision') {
_root.mousecursor.spellTip.gotoAndStop(1);
}
cs.col.dep = cs.getDepth();
cs.swapDepths(_root.selectionDepth);
cs.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.selectedSprout = cs;
_root.lastSprout = _root.selectedSprout;
_root.lastSproutNum = cs.sNum;
_root.HUD.adjustHUD('sprout', cs.sName, cs.sTask, cs.sNum);
}
}
}
};
cs.col.colDone = function () {
cs.resumeTween();
};
cs.col.setRot = function (type, posx, posy) {
var g = 0;
if (type == 1) {
var d_x = posx - cs._x;
var d_y = posy - cs._y;
var xa = posx;
var ya = posy;
var myRadians = Math.atan2(ya - cs._y, xa - cs._x);
} else {
if (type == 2) {
var d_x = posx;
var d_y = posy;
var xa = posx;
var ya = posy;
var myRadians = Math.atan2(ya - cs._y, xa - cs._x);
} else {
var d_x = _root.mousecursor._x - cs.col.xhome;
var d_y = _root.mousecursor._y - cs.col.yhome;
var xa = _root.mousecursor._x;
var ya = _root.mousecursor._y;
var myRadians = Math.atan2(ya - cs.col.yhome, xa - cs.col.xhome);
}
}
var d = Math.sqrt(d_x * d_x + d_y * d_y);
var myDegrees = Math.round(myRadians * 180 / Math.PI);
if (d > 15 || type == 1 || type == 2) {
if (myDegrees > 168.75 || myDegrees < -168.75) {
g = 1;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < -146.25 && myDegrees > -168.75) {
g = 2;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < -123.75 && myDegrees > -146.25) {
g = 3;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < -101.25 && myDegrees > -123.75) {
g = 4;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < -78.75 && myDegrees > -101.25) {
g = 5;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < -56.25 && myDegrees > -78.75) {
g = 6;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < -33.75 && myDegrees > -56.25) {
g = 7;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < -11.25 && myDegrees > -33.75) {
g = 8;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 11.25 && myDegrees > -11.25) {
g = 9;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 33.75 && myDegrees > 11.25) {
g = 10;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 56.25 && myDegrees > 33.75) {
g = 11;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 78.75 && myDegrees > 56.25) {
g = 12;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 101.25 && myDegrees > 78.75) {
g = 13;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 123.75 && myDegrees > 101.25) {
g = 14;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 146.25 && myDegrees > 123.75) {
g = 15;
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
if (myDegrees < 168.75 || myDegrees > 146.25) {
g = 16;
}
cs.ani.rot.gotoAndStop(g);
return myDegrees;
}
};
cs.col.setDesc = function (task, e) {
if (cs.sLikes == '') {
var q = 0;
var foundEnd = false;
if (e == undefined) {
i = 1;
while (i < 100) {
if (_root[task + i + 'XX'] != undefined && foundEnd == false) {
++q;
} else {
if (foundEnd == false) {
foundEnd = true;
cs.sDescription = _root[task + Number(random(q) + 1) + 'XX'];
}
}
++i;
}
} else {
cs.sDescription = _root[task + e + 'XX'];
}
}
};
cs.col.shouldWander = function (anim, time, v) {
if (cs.sTask != 'sick') {
if (_root.holdingSprout != cs) {
if (cs.sTask == 'kicking') {
var bb = _root.game.mball1;
var mballsave = 'mushroomBall';
} else {
if (cs.sTask == 'kicking2') {
var bb = _root.game.mball2;
var mballsave = 'mushroomBall1';
} else {
if (cs.sTask == 'kicking3') {
var bb = _root.game.mball3;
var mballsave = 'mushroomBall2';
} else {
if (cs.sLikes == 'brainstorming') {
cs.sTask = 'brainstorming';
} else {
if (cs.sTask == 'gardening') {
} else {
cs.sTask = 'none';
}
}
}
}
}
var ox = cs._x;
var oy = cs._y;
var nx = Number(cs._x - 50) + Number(random(100));
var ny = Number(cs._y - 50) + Number(random(100));
if (nx == cs._x && ny == cs._y) {
nx = cs._x + 5;
ny = cs._y + 5;
}
var n = cs.sNum;
_root.game.attachMovie('wpoint', 'wanderPoint' + n, 4000 + n);
_root.game['wanderPoint' + n]._x = nx;
_root.game['wanderPoint' + n]._y = ny;
if (_root.wanderPointsVisible == false) {
_root.game['wanderPoint' + n]._alpha = 0;
} else {
_root.game['wanderPoint' + n]._alpha = 100;
}
if (_root.playedObservatoryMovie == 1 && _root.completedFinalBalloon == 0) {
cs.col.setDesc('WrongWithEgg');
}
var cc = _root.checkCollision(_root.game['wanderPoint' + n], _root.game.BG.col);
if (cc == true) {
if (v == undefined) {
var v = 1;
} else {
++v;
}
if (v > 100) {
trace('over 100 times!!!');
} else {
cs.col.shouldWander(anim, time, v);
}
} else {
if (anim == 'running' || anim == 'kicking' || anim == 'kicking2' || anim == 'kicking3') {
anim = 'running';
cs.sSpeed = 1.5;
} else {
cs.sSpeed = 0.5;
}
var at = random(15) + 1;
cs.ani.gotoAndStop(anim);
cs.ani.flower.gotoAndPlay(at);
cs.ani.sprout.gotoAndPlay(at);
var rp = cs.col.setRot(1, _root.game['wanderPoint' + n]._x, _root.game['wanderPoint' + n]._y);
cs.myDegrees = rp + 90;
cs.sXspeed = cs.sSpeed * Math.sin(cs.myDegrees * 0.0174532925199433);
cs.sYspeed = cs.sSpeed * Math.cos(cs.myDegrees * 0.0174532925199433);
if (cs.sTask == 'kicking' || cs.sTask == 'kicking2' || cs.sTask == 'kicking3') {
var tsf = random(100);
if (tsf >= 99) {
_root.playSproutQuip('wee');
}
bb.stopTween();
doneRolling = function () {
this.ball.stop();
};
bb.ball.rotateTo(bb.ball._rotation + 60, 0.5, 'easeOutQuad');
bb.slideTo(nx, ny, 0.5, 'easeOutQuad', 0, doneRolling);
bb.ball.play();
_root[mballsave][0] = bb._x;
_root[mballsave][1] = bb._y;
}
cs.onEnterFrame = function (n) {
if (_root.GameTime == true || _root.playingInGameMovie == true) {
if (this.sTask != 'sick') {
this._x += this.sXspeed;
this._y -= this.sYspeed;
if (this.col2.hitTest(_root.game['wanderPoint' + this.sNum])) {
framesPassed = 0;
if (time > 0) {
--time;
if (time == 0) {
cs.col.setDesc('Nothing');
cs.sTask = 'none';
cs.col.shouldWander('walking', 0);
} else {
cs.col.shouldWander(anim, time);
}
} else {
cs.col.shouldWander(anim, time);
}
}
}
}
};
}
}
}
};
cs.startDancing = function () {
this.stopTween();
sDancing = function () {
doneDancing = function () {
if (this.sTask == 'none') {
this.col.setDesc('Nothing');
this.col.shouldWander('walking', 0);
this.pointOfInterest = 0;
}
};
var rt = 4;
var rf = random(15) + 1;
var thisRotation = this.ani.rot._currentframe;
this.ani.gotoAndStop('dancing');
this.ani.rot.gotoAndStop(thisRotation);
this.ani.rot.flower.gotoAndPlay(rf);
this.ani.rot.sprout.gotoAndPlay(rf);
this.alphaTo(100, rt, 'linear', 0, doneDancing);
};
this.alphaTo(100, 0.1, 'linear', 0, sDancing);
};
_root.sproutArray.push(cs);
_root.zSortArray.push(cs);
_root.pointsOfInterest.push(cs);
}
function sproutsToTask(cs) {
if (_root.playingInGameMovie != true) {
if (cs.sDislikes > 0) {
cs.visionShell.alphaTo(100, 0.5, 'linear');
}
if (cs.sAge == 1) {
cs.col.setDesc('Babble');
cs.col.shouldWander('walking', 0);
}
if (cs.sLikes == 'brainstorming') {
cs.col.setDesc('Brainstorming');
cs.sLikes = 'brainstorming';
cs.sTask = 'none';
cs.needBubble.gotoAndStop('brainstorming');
cs.needBubble._alpha = 100;
_root.discoveryCheckInterval = setInterval(_root.discoveryCheck, 2200);
cs.col.shouldWander('walking', 0);
}
if (cs.sLikes == 'idea') {
_root.brainstorming = 100;
cs.attachMovie('newIdeaShell', 'newIdeaShell', 3452);
cs.newIdeaShell._y = -65;
cs.needBubble._alpha = 0;
cssLikes = 'idea';
cs.sTask = 'none';
_root.playSound('S_idea');
_root.playSproutQuip('idea');
delete _root.game['SS' + h].onEnterFrame;
cs.col.stopTween();
cs.stopTween();
cs.ani.gotoAndStop('dancing');
cs.ani.rot.gotoAndStop(13);
}
if (cs.sTask == 'none' && cs.sLikes != 'idea' && cs.sLikes != 'brainstorming') {
cs.col.setDesc('Nothing');
cs.col.shouldWander('walking', 0);
} else {
if (cs.sTask == 'eating') {
var gto = _root.game.garden01;
} else {
if (cs.sTask == 'kiting') {
var gto = _root.game.kite1;
} else {
if (cs.sTask == 'kiting2') {
var gto = _root.game.kite2;
} else {
if (cs.sTask == 'kiting3') {
var gto = _root.game.kite3;
} else {
if (cs.sTask == 'kicking') {
var gto = _root.game.mball1;
} else {
if (cs.sTask == 'kicking2') {
var gto = _root.game.mball2;
} else {
if (cs.sTask == 'kicking3') {
var gto = _root.game.mball3;
} else {
if (cs.sTask == 'hanggliding') {
var gto = _root.game.hangGlider;
} else {
if (cs.sTask == 'barrelride') {
var gto = _root.game.barrelRide;
} else {
if (cs.sTask == 'sleeping' || cs.sTask == 'shelter1') {
var gto = _root.game.shelter1;
} else {
if (cs.sTask == 'sleeping2' || cs.sTask == 'shelter2') {
var gto = _root.game.shelter2;
} else {
if (cs.sTask == 'fishing' || cs.sTask == 'bridge') {
var gto = _root.game.bridge;
} else {
if (cs.sTask == 'balloon' || cs.sTask == 'ballooning') {
var gto = _root.game.balloon;
} else {
if (cs.sTask == 'wishingWell' || cs.sTask == 'wishing') {
var gto = _root.game.wishingWell;
} else {
if (cs.sTask == 'learning' || cs.sTask == 'school' || cs.sTask == 'teaching') {
var gto = _root.game.school;
} else {
if (cs.sTask == 'researching' || cs.sTask == 'toolShop') {
var gto = _root.game.toolShop;
} else {
if (cs.sTask == 'fishing2' || cs.sTask == 'pier') {
var gto = _root.game.pier;
} else {
if (cs.sTask == 'zooing' || cs.sTask == 'zoo') {
var gto = _root.game.zoo;
} else {
if (cs.sTask == 'jumping') {
var gto = _root.game.trampoline;
} else {
if (cs.sTask == 'cooking' || cs.sTask == 'windMill') {
var gto = _root.game.windMill;
} else {
if (cs.sTask == 'observing' || cs.sTask == 'observatory') {
var gto = _root.game.observatory;
} else {
if (cs.sTask == 'sick') {
cs.sTask = 'sick';
cs.col.setDesc('Sick');
cs.ani.gotoAndStop('sleeping');
cs.ani.rot.gotoAndStop(random(4) + 1);
cs.needBubble.gotoAndStop('sick');
cs.needBubble._alpha = 100;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
i = 0;
while (i < _root.pointsOfInterest.length) {
if (_root.pointsOfInterest[i] == gto) {
cs.pointOfInterest = i;
}
++i;
}
gto.activity(cs);
}
}
}
function getNewSproutName(newGender) {
var n = '';
var i = 0;
if (newGender == 'f') {
var t = random(_root.fNames.length);
n = _root.fNames[t];
var matching = false;
while (i < 13) {
if (n == _root.game['SS' + i].sName) {
matching = true;
}
if (i == 12 && matching == false) {
return n;
break;
} else {
if (i == 12 && matching == true) {
i = 0;
matching = false;
t = random(_root.fNames.length);
n = _root.fNames[t];
}
}
++i;
}
} else {
var t = random(_root.mNames.length);
n = _root.mNames[t];
var matching = false;
while (i < 13) {
if (n == _root.game['SS' + i].sName) {
matching = true;
}
if (i == 12 && matching == false) {
return n;
break;
} else {
if (i == 12 && matching == true) {
i = 0;
matching = false;
t = random(_root.mNames.length);
n = _root.mNames[t];
}
}
++i;
}
}
}
function getNewSproutColor(newGender) {
var n = '';
if (newGender == 'f') {
var t = random(_root.fColors.length);
n = _root.fColors[t];
return n;
} else {
var t = random(_root.mColors.length);
n = _root.mColors[t];
return n;
}
}
function updateProgress() {
var n = _root.game;
var inter = false;
var j = [5, 5, 7, 5, 10, 12, 15, 10, 15, 20, 20, 25, 10];
if (_root.GameTime == true) {
_root.garden01WF = 0;
_root.shelter1WF = 0;
_root.bridgeWF = 0;
_root.schoolWF = 0;
_root.wishingWellWF = 0;
_root.toolShopWF = 0;
_root.windMillWF = 0;
_root.shelter2WF = 0;
_root.zooWF = 0;
_root.pierWF = 0;
_root.balloonWF = 0;
_root.observatoryWF = 0;
_root.eggWF = 0;
_root.timePlayed += 2000;
var day = 360;
var sTime = _root.timePlayed / 1000;
_root.tod = Number(sTime / day);
_root.todd = tod - Math.floor(tod);
var spTotal = 0;
var allTotal = 275 * _root.totalActiveSprouts;
var sHap = 0;
var allProgress = 9230;
var totalProgress = 0;
var xstones = 0;
var xbutt = 0;
var xach = 0;
var xdis = 0;
var xcom = 0;
var xspro = _root.totalActiveSprouts;
if (n.toolShop.pComplete == undefined) {
var xinv = 0;
} else {
var xinv = n.toolShop.pComplete - 100;
}
var sar = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning', 'vision', 'magicFlower', 'rainbow', 'fallingStar'];
var xspe = 0;
i = 0;
while (i < 15) {
if (_root.stones[i] == 1) {
++xstones;
}
if (_root.butterflies[i] == 1) {
++xbutt;
}
if (_root.achievements[i] == 1) {
++xach;
}
if (n[_root.bs[i]].pDiscovered >= 1) {
++xdis;
}
if (n[_root.bs[i]].pComplete != undefined) {
if (n[_root.bs[i]].pComplete >= 100) {
xcom += 100;
} else {
xcom += n[_root.bs[i]].pComplete;
}
}
if (_root.karmaPoints >= _root[sar[i] + 'UnlockPoints']) {
xspe = xspe++;
}
if (i == 14) {
totalProgress = xcom + Number(xdis * 20) + Number(xinv * 2) + Number(xspro * 200) + Number(xbutt * 20) + Number(xstones * 20) + Number(xspe * 200) + Number(xach * 100);
var tpf = totalProgress / allProgress;
var tpf = Math.round(tpf * 100);
_root.HUD.progressMeter.meter.xScaleTo(tpf, 1, 'easeOutQuad');
}
++i;
}
var dayNumber = Math.floor(_root.tod);
_root.HUD.dup.text = _root.DayXX + '-' + Number(dayNumber + 1);
if (_root.todd == 0) {
if (_root.mousecursor.fLabel == 'fallingStar' || _root.mousecursor.fLabel == 'sproutling') {
_root.mousecursor.gotoAndStop(1);
}
_root.HUD.sunButton._alpha = 100;
_root.HUD.rainbowButton._alpha = 100;
_root.HUD.fallingStarButton._alpha = 45;
_root.HUD.sproutlingButton._alpha = 45;
_root.playSound('S_rooster');
_root.goldStarRecieved = 0;
}
if (_root.todd == 0.5) {
if (_root.mousecursor.fLabel == 'sun' || _root.mousecursor.fLabel == 'rainbow') {
_root.mousecursor.gotoAndStop(1);
}
_root.HUD.sunButton._alpha = 45;
_root.HUD.rainbowButton._alpha = 45;
_root.HUD.fallingStarButton._alpha = 100;
_root.HUD.sproutlingButton._alpha = 100;
}
if (_root.todd <= 0.5) {
_root.nightTime._alpha = 0;
} else {
if (_root.todd <= 0.75) {
_root.nightTime._alpha = Number(Number(_root.todd - 0.5) * 400);
} else {
_root.nightTime._alpha = 100 - Number(Number(_root.todd - 0.75) * 400);
}
}
var toddd = _root.todd * 100;
var ramnt = Number(toddd * 3.6);
var tempsound = _root.soundVolume / 100;
if (_root.todd <= 0.25) {
var dbase = 50 + Number(_root.todd * 200);
var nbase = 50 - Number(_root.todd * 200);
} else {
if (_root.todd <= 0.5) {
var dbase = 100 - Number(_root.todd * 100);
var nbase = Number(_root.todd) * 100;
} else {
if (_root.todd <= 0.75) {
var dbase = 50 - Number(Number(_root.todd - 0.25) * 100);
var nbase = 50 + Number(Number(_root.todd - 0.25) * 100);
} else {
var dbase = Number(_root.todd - 0.75) * 100;
var nbase = 100 - Number(Number(_root.todd - 0.75) * 100);
}
}
}
if (_root.appFocused == true) {
_root.S_daytime.setVolume(dbase * tempsound);
_root.S_nighttime.setVolume(nbase * tempsound);
}
var newAngle = ramnt;
var dist = Math.abs(newAngle - _root.HUD.back.timeDial._rotation);
this._rotation %= 360;
if (dist > 180) {
if (newAngle > _root.HUD.back.timeDial._rotation) {
newAngle -= 360;
} else {
newAngle += 360;
}
}
new mx.transitions.Tween(_root.HUD.back.timeDial, '_rotation', mx.transitions.easing.Regular.easeOut, _root.HUD.back.timeDial._rotation, newAngle, 1, true);
if (n.BG.col._currentframe >= 4) {
if (n.BG.sPoints._currentframe == 1) {
_root.safePoints = [];
n.BG.sPoints.gotoAndStop(5);
}
}
var sCnt = _root.totalActiveSprouts + 1;
h = 1;
while (h < sCnt) {
var cs = n['SS' + h];
spTotal = spTotal + Number(Number(100 - cs.sHunger) / 2) + Number(Number(100 - cs.sSleepiness) / 2) + cs.sCuriosity + cs.sMotivation;
cs.sAge += 0.0023;
var ram = Number(random(10) + 1) / 20;
if (cs.sDislikes != 0) {
if (cs.sDislikes > 300000) {
cs.visionShell.alphaTo(0, 1.5, 'linear');
cs.sDislikes = 0;
} else {
cs.sDislikes += 2000;
}
}
var ca = 0.2;
var ma = 0.2;
var ha = 0.3;
var sa = 0.2;
if (cs.sTask == 'none' && _root.holdingSprout != cs) {
if (cs.ani._currentframe == 3 || cs.ani._currentframe == 6) {
var rp = cs.col.setRot(1, _root.game['wanderPoint' + cs.sNum]._x, _root.game['wanderPoint' + cs.sNum]._y);
cs.myDegrees = rp + 90;
cs.sXspeed = cs.sSpeed * Math.sin(cs.myDegrees * 0.0174532925199433);
cs.sYspeed = cs.sSpeed * Math.cos(cs.myDegrees * 0.0174532925199433);
}
} else {
if (cs.sTask == 'eating') {
ca = 0.2;
ma = 0.2;
ha = 5;
sa = 0.15;
var yawnchance = random(100);
if (yawnchance > 70) {
_root.playSproutQuip('eating');
}
} else {
if (cs.sTask == 'sleeping' || cs.sTask == 'sleeping2') {
ca = 0.15;
ma = 0.15;
ha = 0.1;
sa = 2;
var yawnchance = random(100);
if (yawnchance > 70) {
_root.playSproutQuip('snoring');
}
} else {
if (cs.sTask == 'researching') {
ca = 0.3 + ram;
ma = -0.3;
ha = 0.2;
sa = 0.2;
if (_root.accelerateTime == false) {
n.toolShop.pComplete += 0.1;
} else {
n.toolShop.pComplete = Math.round(n.toolShop.pComplete) + 1;
}
if (n.toolShop.pComplete >= 200 && n.toolShop.pComplete < 201) {
n.toolShop.pComplete = 201;
n.attachMovie('inventionMover', 'IM', 6764);
n.IM._x = cs._x;
n.IM._y = cs._y - 60;
n.IM.invention = 'trampolineShell';
n.IM.namer = 'trampoline';
n.IM.dest = n.BG.trampolineSP1;
_root.playSproutQuip('invented');
}
if (n.toolShop.pComplete >= 300 && n.toolShop.pComplete < 301) {
n.toolShop.pComplete = 301;
n.attachMovie('inventionMover', 'IM', 6764);
n.IM._x = cs._x;
n.IM._y = cs._y - 60;
n.IM.invention = 'mushroomBall2Shell';
n.IM.namer = 'mball2';
n.IM.dest = n.BG.mushroomBall2SP;
_root.playSproutQuip('invented');
}
if (n.toolShop.pComplete >= 400 && n.toolShop.pComplete < 401) {
n.toolShop.pComplete = 401;
n.attachMovie('inventionMover', 'IM', 6764);
n.IM._x = cs._x;
n.IM._y = cs._y - 60;
n.IM.invention = 'kite2Shell';
n.IM.namer = 'kite2';
n.IM.dest = n.BG.kite2SP;
_root.playSproutQuip('invented');
}
if (n.toolShop.pComplete >= 500 && n.toolShop.pComplete < 501) {
n.toolShop.pComplete = 501;
n.attachMovie('inventionMover', 'IM', 6764);
n.IM._x = cs._x;
n.IM._y = cs._y - 60;
n.IM.invention = 'barrelRideShell';
n.IM.namer = 'barrelRide';
n.IM.dest = n.BG.barrelRideSP;
_root.playSproutQuip('invented');
}
if (n.toolShop.pComplete >= 600 && n.toolShop.pComplete < 601) {
n.toolShop.pComplete = 601;
n.attachMovie('inventionMover', 'IM', 6764);
n.IM._x = cs._x;
n.IM._y = cs._y - 60;
n.IM.invention = 'mushroomBall3Shell';
n.IM.namer = 'mball3';
n.IM.dest = n.BG.mushroomBall3SP;
_root.playSproutQuip('invented');
}
if (n.toolShop.pComplete >= 700 && n.toolShop.pComplete < 701) {
n.toolShop.pComplete = 701;
n.attachMovie('inventionMover', 'IM', 6764);
n.IM._x = cs._x;
n.IM._y = cs._y - 60;
n.IM.invention = 'kite3Shell';
n.IM.namer = 'kite3';
n.IM.dest = n.BG.kite3SP;
_root.playSproutQuip('invented');
}
if (n.toolShop.pComplete >= 800 && n.toolShop.pComplete < 801) {
n.toolShop.pComplete = 801;
n.attachMovie('inventionMover', 'IM', 6764);
n.IM._x = cs._x;
n.IM._y = cs._y - 60;
n.IM.invention = 'hangGliderShell';
n.IM.namer = 'hangGlider';
n.IM.dest = n.BG.hangGliderSP;
_root.playSproutQuip('invented');
}
} else {
if (cs.sTask == 'kiting' || cs.sTask == 'kiting2' || cs.sTask == 'kiting3') {
ca = 2 + ram;
ma = 2 + ram;
ha = 0.2 + ram;
sa = 0.2 + ram;
} else {
if (cs.sTask == 'jumping') {
ca = 2.5;
ma = 2.5;
ha = 0.4 + ram;
sa = 0.2 + ram;
} else {
if (cs.sTask == 'fishing' || cs.sTask == 'fishing2') {
ca = 1;
ma = 1;
ha = 0.1 + ram;
sa = 0.1 + ram;
var catchSomething = random(100);
var caughtThing = random(16) + 2;
if (catchSomething > 98) {
_root.playSproutQuip('foundsomething');
_root.playSound('S_fishingdiscovery');
++_root.effectNum;
_root.effectsLayer.attachMovie('fishingDiscoveriesShell', 'fishingDiscovery' + _root.effectNum, 5462 + _root.effectNum);
_root.effectsLayer['fishingDiscovery' + _root.effectNum]._x = cs._x;
_root.effectsLayer['fishingDiscovery' + _root.effectNum]._y = cs._y - 70;
_root.effectsLayer['fishingDiscovery' + _root.effectNum].sprout = cs;
_root.effectsLayer['fishingDiscovery' + _root.effectNum].gotoAndStop(caughtThing);
_root.effectsLayer['fishingDiscovery' + _root.effectNum].onEnterFrame = function () {
_root.effectsLayer['fishingDiscovery' + _root.effectNum]._x = _root.effectsLayer['fishingDiscovery' + _root.effectNum].sprout._x;
_root.effectsLayer['fishingDiscovery' + _root.effectNum]._y = _root.effectsLayer['fishingDiscovery' + _root.effectNum].sprout._y - 70;
};
cs.sTask = 'none';
cs.col.setDesc('FishingTreasure');
cs.ani.gotoAndStop('offering');
cs.ani.rot.gotoAndStop(13);
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs, 1);
}
} else {
if (cs.sTask == 'kicking' || cs.sTask == 'kicking2' || cs.sTask == 'kicking3') {
ca = 2;
ma = 2;
ha = 0.2 + ram;
sa = 0.2 + ram;
} else {
if (cs.sTask == 'learning') {
ca = 1;
ma = 1;
ha = 0.2 + ram;
sa = 0.2 + ram;
_root.schoolLearning += 0.01;
if (_root.schoolLearning >= 1) {
_root.schoolLearning = 0;
_root.tipBoxMaker(_root.EarnedKarmaFromSchoolXX);
_root.genericBubbleMaker(_root.game.school, 1, 'karma');
}
} else {
if (cs.sTask == 'teaching') {
ca = 0.5;
ma = 0.5;
ha = 0.2 + ram;
sa = 0.2 + ram;
} else {
if (cs.sTask == 'zooing') {
ca = 0.5 * n.zoo.pDiscovered;
ma = 0.5 * n.zoo.pDiscovered;
ha = 0.2 + ram;
sa = 0.2 + ram;
} else {
if (cs.sTask == 'brainstorming') {
ca = 2 + ram;
ma = 0.2;
ha = 0.2 + ram;
sa = 0.2 + ram;
} else {
if (cs.sTask == 'observing') {
ca = 3;
ma = 3;
ha = 0.2;
sa = 0.2;
} else {
i = 0;
while (i < _root.bs.length) {
if (n[_root.bs[i]].pDiscovered >= 1) {
if (n[_root.bs[i]].pComplete < 100 && n[_root.bs[i]].pNumberOfWorkers >= 1) {
if (cs.sTask == _root.bs[i]) {
var zt = cs.sMotivation + Number(100 - cs.sHunger) + Number(100 - cs.sSleepiness) + cs.sCuriosity;
var zs = zt / 350;
cs.sWorkforce = 2.5 - Number(zs * 2.65);
_root[_root.bs[i] + 'WF'] += zt;
if (_root.accelerateTime == false) {
_root[_root.bs[i] + 'WF'] /= Number(Number(12 - n[_root.bs[i]].pNumberOfWorkers) * 90);
_root[_root.bs[i] + 'WF'] += Number(n[_root.bs[i]].pNumberOfWorkers * 0.01);
} else {
_root[_root.bs[i] + 'WF'] = Number(_root[_root.bs[i] + 'WF'] / 10);
}
var iBy = Number(_root[_root.bs[i] + 'WF'] / j[i]);
n[_root.bs[i]].pComplete += iBy;
if (n[_root.bs[i]].pComplete >= 65) {
n[_root.bs[i]].gotoAndStop(3);
} else {
if (n[_root.bs[i]].pComplete >= 30) {
_root.effectsLayer.bhs.removeMovieClip();
n[_root.bs[i]].gotoAndStop(2);
}
}
if (n[_root.bs[i]].hover._alpha > 30) {
_root.HUD.stats2.updateHudStats(i);
}
}
}
if (n[_root.bs[i]].pComplete > 100 && n[_root.bs[i]]._currentframe < n[_root.bs[i]]._totalframes) {
fstruct = function (i) {
var n = _root.game;
this.gotoAndStop(this._totalframes);
_root.GameTime = true;
var someoneIsBrainstorming = false;
_root.discoveryCheckInterval = setInterval(_root.discoveryCheck, 2200);
_root.effectsLayer.attachMovie('structureComplete', 'SCEffect', 3200);
_root.effectsLayer.SCEffect._x = this._x;
_root.effectsLayer.SCEffect._y = this._y;
q = 1;
while (q < _root.totalActiveSprouts + 1) {
if (n['SS' + q].sTask == _root.bs[this.pnum]) {
if (someoneIsBrainstorming == false && _root.bs[this.pnum] != 'observatory') {
_root.pointsOfInterest[n['SS' + q].pointOfInterest].stopActivity(n['SS' + q]);
someoneIsBrainstorming = true;
n['SS' + q].col.setDesc('Brainstorming');
n['SS' + q].sLikes = 'brainstorming';
n['SS' + q].sTask = 'none';
n['SS' + q].needBubble.gotoAndStop('brainstorming');
n['SS' + q].needBubble._alpha = 100;
n['SS' + q].startDancing();
if (_root.bs[this.pnum] == 'shelter1') {
_root.attachMovie('structureTutorial', 'ST', 12000);
_root.ST._x = 400;
_root.ST._y = 300;
_root.tb.removeMovieClip();
}
} else {
if (someoneIsBrainstorming == false && _root.bs[this.pnum] == 'observatory') {
if (_root.achievements[7] == 0) {
_root.achievements[7] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 7;
}
_root.pointsOfInterest[n['SS' + q].pointOfInterest].stopActivity(n['SS' + q]);
n['SS' + q].sTask = 'none';
n['SS' + q].col.setDesc('Nothing');
n['SS' + q].startDancing();
} else {
_root.pointsOfInterest[n['SS' + q].pointOfInterest].stopActivity(n['SS' + q]);
n['SS' + q].sTask = 'none';
n['SS' + q].col.setDesc('Nothing');
n['SS' + q].startDancing();
}
}
_root.playSproutQuip('structuredone');
}
++q;
}
_root.SaveGame();
};
_root.GameTime = false;
n[_root.bs[i]].pComplete = 100;
var slideX = -Number(n[_root.bs[i]]._x - 400);
var slideY = -Number(n[_root.bs[i]]._y - 300);
if (slideX < -795) {
slideX = -795;
}
if (slideX > 0) {
slideX = 0;
}
if (slideY < -1390) {
slideY = -1390;
}
if (slideY > 0) {
slideY = 0;
}
if (_root.worldView == false) {
n.slideTo(slideX, slideY, 2.5, 'easeOutQuad');
}
if (_root.bs[i] == 'windMill') {
if (_root.achievements[5] == 0) {
_root.achievements[5] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 5;
}
}
if (_root.bs[i] == 'bridge') {
_root.bridge[1] = 100;
n.BG.col.setCollisionFrame();
}
if (_root.bs[i] == 'school') {
endDemo = function () {
_root.attachMovie('upsellShell', 'USS', 12500);
_root.USS._x = 400;
_root.USS._y = 300;
_root.USS.r = 'building';
};
_root.mousecursor.alphaTo(100, 2, 'linear', 0, endDemo);
}
_root.playSound('S_flytostructurecomplete');
n[_root.bs[i]].alphaTo(100, 3, 'linear', 0, fstruct);
} else {
if (n[_root.bs[i]].pComplete >= 100 && n[_root.bs[i]]._currentframe < n[_root.bs[i]]._totalframes) {
n[_root.bs[i]].gotoAndStop(n[_root.bs[i]]._totalframes);
}
}
}
++i;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (cs.sTask == 'researching' || cs.sTask == 'sleeping' || cs.sTask == 'sleeping2' || cs.sTask == 'eating' || cs.sTask == 'jumping' || cs.sTask == 'kiting' || cs.sTask == 'kiting2' || cs.sTask == 'kiting3' || cs.sTask == 'kicking' || cs.sTask == 'kicking2' || cs.sTask == 'kicking3' || cs.sTask == 'fishing' || cs.sTask == 'fishing2' || cs.sTask == 'observing' || cs.sTask == 'brainstorming' || cs.sTask == 'learning' || cs.sTask == 'teaching' || cs.sTask == 'zooing') {
cs.sCuriosity += ca;
cs.sMotivation += ma;
} else {
cs.sCuriosity -= ca;
if (cs.visionShell._alpha != 100) {
cs.sMotivation -= ma;
}
}
if (cs.sTask != 'sleeping' && cs.sTask != 'sleeping2' && cs.sTask != 'researching' && cs.sTask != 'eating' && cs.sTask != 'jumping' && cs.sTask != 'kiting' && cs.sTask != 'kiting2' && cs.sTask != 'kiting3' && cs.sTask != 'tryingToKite' && cs.sTask != 'kicking' && cs.sTask != 'kicking2' && cs.sTask != 'kicking3' && cs.sTask != 'fishing' && cs.sTask != 'fishing2' && cs.sTask != 'observing' && cs.sTask != 'brainstorming' && cs.sTask != 'learning' && cs.sTask != 'barrelride' && cs.sTask != 'hanggliding' && cs.sTask != 'sick' && cs.sTask != 'teaching' && cs.sTask != 'zooing') {
if (cs.sMotivation < 15 && cs.sTask != 'eating' && cs.sTask != 'offering' && cs.sTask != 'none') {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('bored');
} else {
_root.playSproutQuip('baby');
}
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
cs.sTask = 'none';
cs.col.setDesc('Bored');
cs.col.shouldWander('walking', 0);
}
}
if (cs.sTask != 'eating') {
cs.sHunger += ha;
} else {
cs.sHunger -= ha;
if (cs.sHunger < 0) {
cs.sTask = 'none';
cs.sHunger = 0;
cs.col.setDesc('Nothing');
cs.col.shouldWander('walking', 0);
}
}
if (cs.sTask != 'sleeping' && cs.sTask != 'sleeping2') {
if (_root.game.shelter1.pComplete >= 100) {
cs.sSleepiness += sa;
} else {
if (cs.sSleepiness < 78) {
cs.sSleepiness += sa;
} else {
cs.sSleepiness = 78;
}
}
} else {
cs.sSleepiness -= sa;
if (cs.sSleepiness <= 0) {
cs._alpha = 100;
cs.sSleepiness = 0;
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
}
}
if (cs.sHunger < 80 && cs.needBubble.fLabel == 'hunger') {
cs.needBubble._alpha = 0;
cs.needBubble.gotoAndStop(1);
}
if (cs.sSleepiness < 80 && cs.needBubble.fLabel == 'sleepy') {
cs.needBubble._alpha = 0;
cs.needBubble.gotoAndStop(1);
}
if (cs.needBubble._alpha == 100 && cs.needBubble.fLabel == 'hunger') {
var complainChance = random(100);
if (complainChance > 98) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('hungry');
} else {
_root.playSproutQuip('baby');
}
}
if (cs.sTask != 'eating' && cs.sTask != 'sick' && cs.sTask != 'offering' && cs.sTask != 'sleeping' && cs.sTask != 'sleeping2' && cs.sTask != 'none' && cs.sTask != 'ballooning' && cs.sTask != 'hanggliding' && cs.sTask != 'barrelride') {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
cs.sTask = 'none';
if (cs.sAge > _root.workAge) {
cs.col.setDesc('HungryToWork');
} else {
cs.col.setDesc('Babble');
}
cs.col.shouldWander('walking', 0);
cs.needBubble.gotoAndStop('hunger');
cs.needBubble._alpha = 100;
}
} else {
if (cs.needBubble._alpha == 100 && cs.needBubble.fLabel == 'sleepy') {
var complainChance = random(100);
if (complainChance > 98) {
_root.playSproutQuip('yawn');
}
if (cs.sTask != 'eating' && cs.sTask != 'sick' && cs.sTask != 'offering' && cs.sTask != 'sleeping' && cs.sTask != 'sleeping2' && cs.sTask != 'none' && cs.sTask != 'ballooning' && cs.sTask != 'hanggliding' && cs.sTask != 'barrelride') {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
cs.sTask = 'none';
if (cs.sAge > _root.workAge) {
cs.col.setDesc('TiredToWork');
} else {
cs.col.setDesc('Babble');
}
cs.col.shouldWander('walking', 0);
cs.needBubble.gotoAndStop('sleepy');
cs.needBubble._alpha = 100;
}
} else {
if (cs.sHunger > 80) {
if (cs.sTask != 'eating' && cs.sTask != 'sick' && cs.sTask != 'offering' && cs.sTask != 'sleeping' && cs.sTask != 'sleeping2' && cs.sTask != 'ballooning' && cs.sTask != 'hanggliding' && cs.sTask != 'barrelride' && cs.sLikes != 'brainstorming' && cs.sLikes != 'idea') {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('hungry');
} else {
_root.playSproutQuip('baby');
}
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
cs.sTask = 'none';
if (cs.sAge > _root.workAge) {
cs.col.setDesc('HungryToWork');
} else {
cs.col.setDesc('Babble');
}
cs.col.shouldWander('walking', 0);
cs.needBubble.gotoAndStop('hunger');
cs.needBubble._alpha = 100;
}
} else {
if (cs.sSleepiness > 80) {
if (cs.sTask != 'eating' && cs.sTask != 'sick' && cs.sTask != 'offering' && cs.sTask != 'sleeping' && cs.sTask != 'sleeping2' && cs.sTask != 'ballooning' && cs.sTask != 'hanggliding' && cs.sTask != 'barrelride' && cs.sLikes != 'brainstorming' && cs.sLikes != 'idea') {
_root.playSproutQuip('yawn');
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
cs.sTask = 'none';
if (cs.sAge > _root.workAge) {
cs.col.setDesc('TiredToWork');
} else {
cs.col.setDesc('Babble');
}
cs.col.shouldWander('walking', 0);
cs.needBubble.gotoAndStop('sleepy');
cs.needBubble._alpha = 100;
}
}
}
}
}
if (cs.sLikes == 'brainstorming') {
cs.needBubble.gotoAndStop('brainstorming');
cs.needBubble._alpha = 100;
}
if (cs.sCuriosity < 0) {
cs.sCuriosity = 0;
} else {
if (cs.sCuriosity > 100) {
cs.sCuriosity = 100;
}
}
if (cs.sMotivation < 0) {
cs.sMotivation = 0;
} else {
if (cs.sMotivation > 100) {
cs.sMotivation = 100;
}
}
if (cs.sSleepiness < 0) {
cs.sSleepiness = 0;
} else {
if (cs.sSleepiness > 100) {
cs.sSleepiness = 100;
}
}
if (cs.sHunger < 0) {
cs.sHunger = 0;
} else {
if (cs.sHunger > 100) {
cs.sHunger = 100;
}
}
_root.HUD.stats.updateHudStats();
_root.HUD.stats3.updateHudStats();
if (cs.sHunger >= 80 && cs.sSleepiness >= 80 && cs.sMotivation <= 80 && cs.sTask != 'ballooning' && cs.sTask != 'hanggliding' && cs.sTask != 'barrelride') {
if (cs.sTask != 'sick' && cs.sTask != 'eating' && cs.sTask != 'sleeping' && cs.sTask != 'sleeping2') {
if (cs.pointOfInterest != 0) {
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
}
cs.sTask = 'sick';
cs.col.setDesc('Sick');
cs.ani.gotoAndStop('sleeping');
cs.ani.rot.gotoAndStop(random(4) + 1);
cs.needBubble.gotoAndStop('sick');
cs.needBubble._alpha = 100;
}
} else {
if (cs.sTask == 'sick') {
cs.needBubble.gotoAndStop(1);
cs.needBubble._alpha = 0;
}
}
if (h == sCnt - 1) {
sHap = Number(spTotal / allTotal);
sHap = Math.round(sHap * 100);
if (sHap > 100) {
sHap = 100;
if (_root.goldStarRecieved == 0) {
_root.playSound('S_structurediscovered');
_root.goldStarRecieved = 1;
_root.HUD.attachMovie('GoldStar', 'gsreward', 11905);
_root.HUD.gsreward._x = _root.HUD.goldStarSP._x;
_root.HUD.gsreward._y = _root.HUD.goldStarSP._y;
_root.HUD.gsreward.but = '';
_root.HUD.gsreward.onPress = function () {
var finalList = [];
if (_root.karmaPoints >= _root.earthquakeUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning', 'vision', 'magicFlower', 'rainbow', 'fallingStar', 'earthquake'];
} else {
if (_root.karmaPoints >= _root.fallingStarUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning', 'vision', 'magicFlower', 'rainbow', 'fallingStar'];
} else {
if (_root.karmaPoints >= _root.rainbowUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning', 'vision', 'magicFlower', 'rainbow'];
} else {
if (_root.karmaPoints >= _root.magicFlowerUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning', 'vision', 'magicFlower'];
} else {
if (_root.karmaPoints >= _root.visionUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning', 'vision'];
} else {
if (_root.karmaPoints >= _root.lightningUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning'];
} else {
if (_root.karmaPoints >= _root.windUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind'];
} else {
if (_root.karmaPoints >= _root.giftUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift'];
} else {
if (_root.karmaPoints >= _root.sproutlingUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling'];
} else {
var bubbleArray = ['sun', 'rain'];
}
}
}
}
}
}
}
}
}
i = 0;
while (i < bubbleArray.length) {
if (_root.HUD[bubbleArray[i] + 'Button'].charge._yscale < 95) {
finalList.push(bubbleArray[i]);
}
if (i == bubbleArray.length - 1) {
var g = random(finalList.length);
_root.HUD.gsreward.but = finalList[g];
killstar = function () {
_root.HUD[_root.HUD.gsreward.but + 'Button'].charge._yscale = 100;
_root.HUD[_root.HUD.gsreward.but + 'Button'].updateButton();
_root.HUD.gsreward.removeMovieClip();
};
_root.HUD.gsreward.slideTo(_root.HUD[finalList[g] + 'Button']._x, _root.HUD[finalList[g] + 'Button']._y, 1, 'easeOutQuad', 0, killstar);
}
++i;
}
};
_root.HUD.gsreward.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.GoldStarTitleXX, _root.GoldStarDescriptionXX, this._parent.pnum);
};
}
}
_root.HUD.happyMeter.meter.xScaleTo(sHap, 1, 'easeOutQuad');
}
++h;
}
if (_root.HUD.sunButton._currentframe == 2) {
_root.HUD.sunButton.charge._yscale += _root.sunRechargeRate;
if (_root.HUD.sunButton.charge._yscale >= 100) {
_root.HUD.sunButton.charge._yscale = 100;
_root.HUD.sunButton.updateButton();
}
}
if (_root.HUD.rainButton._currentframe == 2) {
_root.HUD.rainButton.charge._yscale += _root.rainRechargeRate;
if (_root.HUD.rainButton.charge._yscale >= 100) {
_root.HUD.rainButton.charge._yscale = 100;
_root.HUD.rainButton.updateButton();
}
}
if (_root.HUD.windButton._currentframe == 2) {
_root.HUD.windButton.charge._yscale += _root.windRechargeRate;
if (_root.HUD.windButton.charge._yscale >= 100) {
_root.HUD.windButton.charge._yscale = 100;
_root.HUD.windButton.updateButton();
}
}
if (_root.HUD.lightningButton._currentframe == 2) {
_root.HUD.lightningButton.charge._yscale += _root.lightningRechargeRate;
if (_root.HUD.lightningButton.charge._yscale >= 100) {
_root.HUD.lightningButton.charge._yscale = 100;
_root.HUD.lightningButton.updateButton();
}
}
if (_root.HUD.rainbowButton._currentframe == 2) {
_root.HUD.rainbowButton.charge._yscale += _root.rainbowRechargeRate;
if (_root.HUD.rainbowButton.charge._yscale >= 100) {
_root.HUD.rainbowButton.charge._yscale = 100;
_root.HUD.rainbowButton.updateButton();
}
}
if (_root.HUD.giftButton._currentframe == 2) {
_root.HUD.giftButton.charge._yscale += _root.giftRechargeRate;
if (_root.HUD.giftButton.charge._yscale >= 100) {
_root.HUD.giftButton.charge._yscale = 100;
_root.HUD.giftButton.updateButton();
}
}
if (_root.HUD.magicFlowerButton._currentframe == 2) {
_root.HUD.magicFlowerButton.charge._yscale += _root.magicFlowerRechargeRate;
if (_root.HUD.magicFlowerButton.charge._yscale >= 100) {
_root.HUD.magicFlowerButton.charge._yscale = 100;
_root.HUD.magicFlowerButton.updateButton();
}
}
if (_root.HUD.visionButton._currentframe == 2) {
_root.HUD.visionButton.charge._yscale += _root.visionRechargeRate;
if (_root.HUD.visionButton.charge._yscale >= 100) {
_root.HUD.visionButton.charge._yscale = 100;
_root.HUD.visionButton.updateButton();
}
}
if (_root.HUD.sproutlingButton._currentframe == 2) {
_root.HUD.sproutlingButton.charge._yscale += _root.sproutlingRechargeRate;
if (_root.HUD.sproutlingButton.charge._yscale >= 100) {
_root.HUD.sproutlingButton.charge._yscale = 100;
_root.HUD.sproutlingButton.updateButton();
}
}
if (_root.HUD.fallingStarButton._currentframe == 2) {
_root.HUD.fallingStarButton.charge._yscale += _root.fallingStarRechargeRate;
if (_root.HUD.fallingStarButton.charge._yscale >= 100) {
_root.HUD.fallingStarButton.charge._yscale = 100;
_root.HUD.fallingStarButton.updateButton();
}
}
if (_root.HUD.earthquakeButton._currentframe == 2) {
_root.HUD.earthquakeButton.charge._yscale += _root.earthquakeRechargeRate;
if (_root.HUD.earthquakeButton.charge._yscale >= 100) {
_root.HUD.earthquakeButton.charge._yscale = 100;
_root.HUD.earthquakeButton.updateButton();
}
}
var igmv = _root.S_inGameMusic.getVolume();
var vrounded = Math.round(_root.Volume);
if (igmv != vrounded && _root.appFocused == true) {
_root.S_inGameMusic.stop('inGameMusic.wav');
_root.S_inGameMusic.start(360 * _root.todd, 0);
_root.S_inGameMusic.volumeTo(vrounded, 1, 'linear');
_root.S_inGameMusic.onSoundComplete = function () {
_root.S_inGameMusic.start(0, 99999);
delete _root.S_inGameMusic.onSoundComplete;
};
}
}
if (_root.LS._alpha == 100) {
v = 1;
while (v <= _root.totalActiveSprouts + 1) {
var k = n['SS' + v];
_root.sproutsToTask(k);
++v;
}
if (_root.todd <= 0.5) {
_root.HUD.sunButton._alpha = 100;
_root.HUD.rainbowButton._alpha = 100;
_root.HUD.fallingStarButton._alpha = 45;
_root.HUD.sproutlingButton._alpha = 45;
} else {
_root.HUD.sunButton._alpha = 45;
_root.HUD.rainbowButton._alpha = 45;
_root.HUD.fallingStarButton._alpha = 100;
_root.HUD.sproutlingButton._alpha = 100;
}
if (_root.playedObservatoryMovie == 1 && _root.achievements[9] == 0) {
_root.achievements[9] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 9;
_root.SaveGame();
}
if (_root.playedObservatoryMovie == 1 && _root.completedFinalBalloon == 1) {
_root.achievements[9] = 1;
_root.attachMovie('gameCompletePlayOn', 'GCPO', 12000);
_root.GCPO._x = 400;
_root.GCPO._y = 300;
}
restartTut = function () {
_root.tutorialScript(Number(_root.tutorialOn - 1));
};
if (_root.tutorialOn < 13) {
_root.tipBoxMaker(_root.WelcomeBackXX);
_root.alphaTo(100, 0.5, 'linear', 0, restartTut);
}
_root.fromGame = true;
killLoadImage = function () {
this.removeMovieClip();
};
var vrounded = Math.round(_root.Volume);
_root.S_inGameMusic.stop('inGameMusic.wav');
_root.S_inGameMusic.start(360 * _root.todd, 0);
_root.S_inGameMusic.volumeTo(vrounded, 1, 'linear');
_root.S_inGameMusic.onSoundComplete = function () {
_root.S_inGameMusic.start(0, 99999);
delete _root.S_inGameMusic.onSoundComplete;
};
_root.LS.alphaTo(0, 1, 'linear', 1, killLoadImage);
}
}
function sortByNumber(a, b) {
return a > b;
}
function zSortObjects() {
_root.zOrder = [];
var finalOrder = [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 98, 101, 104, 107, 110, 113, 116, 119, 122, 125, 128, 132, 135, 138, 141, 144, 147, 150, 153, 156, 159, 162, 165, 168, 171, 174, 177, 180];
i = 0;
while (i < _root.zSortArray.length) {
if (_root.zSortArray[i] != _root.selectedSprout) {
var tempOb = {'mc': _root.zSortArray[i], 'yc': Math.floor(_root.zSortArray[i]._y)};
_root.zOrder.push(tempOb);
}
if (i == _root.zSortArray.length - 1) {
_root.zOrder.sortOn('yc', Array.NUMERIC);
q = 0;
while (q < _root.zOrder.length) {
var curd = _root.zOrder[q].mc.getDepth();
if (curd != finalOrder[q]) {
_root.zOrder[q].mc.swapDepths(finalOrder[q]);
}
++q;
}
}
++i;
}
}
function discoveryCheck() {
if (_root.GameTime == true && _root.observatory[0] < 1) {
i = 0;
while (i < 13) {
if (_root.game['SS' + i].sLikes == 'brainstorming') {
_root.brainstorming += Number(_root.game['SS' + i].sCuriosity / 10);
}
++i;
}
if (_root.brainstorming > 100) {
i = 0;
while (i < _root.bs.length) {
h = 0;
while (h < 13) {
if (_root.game['SS' + h].sLikes == 'brainstorming') {
if (_root.tutorialOn == 9) {
_root.tutorialScript(9);
}
_root.pointsOfInterest[_root.game['SS' + h].pointOfInterest].stopActivity(_root.game['SS' + h]);
_root.game['SS' + h].attachMovie('newIdeaShell', 'newIdeaShell', 3452);
_root.game['SS' + h].newIdeaShell._y = -65;
_root.game['SS' + h].needBubble._alpha = 0;
_root.game['SS' + h].sLikes = 'idea';
_root.game['SS' + h].sTask = 'none';
_root.playSound('S_idea');
_root.playSproutQuip('idea');
delete _root.game['SS' + h].onEnterFrame;
_root.game['SS' + h].col.stopTween();
_root.game['SS' + h].stopTween();
_root.game['SS' + h].ani.gotoAndStop('dancing');
_root.game['SS' + h].ani.rot.gotoAndStop(13);
_root.SaveGame();
clearInterval(discoveryCheckInterval);
}
++h;
}
++i;
}
}
}
}
function makeGoodie() {
if (_root.GameTime == true) {
var n = _root.game;
var makeGoodieChance = random(100) + 1;
var whichGoodieChance = random(100) + 1;
if (_root.timePlayed <= 1000000) {
var baseNum = 15;
} else {
var baseNum = 35;
}
if (makeGoodieChance > baseNum) {
if (_root.totalGoodies <= 50) {
++_root.totalGoodies;
} else {
_root.totalGoodies = 0;
}
if (whichGoodieChance <= 30) {
var v = random(6) + 1;
n.attachMovie('flowerShell', 'F' + _root.totalGoodies, 4200 + _root.totalGoodies);
n['F' + _root.totalGoodies]._x = random(1600);
n['F' + _root.totalGoodies]._y = random(2000);
n['F' + _root.totalGoodies].flowerNum = v;
n['F' + _root.totalGoodies].pDiscovered = 1;
n['F' + _root.totalGoodies].gotoAndStop(v);
n['F' + _root.totalGoodies]._alpha = 0;
_root.pointsOfInterest.push(n['F' + _root.totalGoodies]);
_root.zSortArray.push(n['F' + _root.totalGoodies]);
var cc = _root.checkCollision(n['F' + _root.totalGoodies].col, _root.game.BG.col);
while (cc == true) {
n['F' + _root.totalGoodies]._x = random(1600);
n['F' + _root.totalGoodies]._y = random(2000);
cc = _root.checkCollision(n['F' + _root.totalGoodies].col, _root.game.BG.col);
}
} else {
if (whichGoodieChance <= 65) {
if (_root.timePlayed <= 1000000) {
var v = random(3) + 1;
} else {
if (_root.timePlayed <= 4650000) {
var v = random(5) + 1;
} else {
if (_root.timePlayed <= 9500000) {
var v = random(7) + 1;
} else {
if (_root.timePlayed <= 13500000) {
var v = random(8) + 1;
} else {
var v = random(10) + 1;
}
}
}
}
n.attachMovie('smallStones', 'Stone' + _root.totalGoodies, 4200 + _root.totalGoodies);
n['Stone' + _root.totalGoodies]._x = random(1600);
n['Stone' + _root.totalGoodies]._y = random(2000);
n['Stone' + _root.totalGoodies].stoneNum = v;
n['Stone' + _root.totalGoodies].pDiscovered = 1;
n['Stone' + _root.totalGoodies]._alpha = 0;
n['Stone' + _root.totalGoodies].gotoAndStop(v);
_root.pointsOfInterest.push(n['Stone' + _root.totalGoodies]);
_root.zSortArray.push(n['Stone' + _root.totalGoodies]);
var cc = _root.checkCollision(n['Stone' + _root.totalGoodies].col, _root.game.BG.col);
while (cc == true) {
n['Stone' + _root.totalGoodies]._x = random(1600);
n['Stone' + _root.totalGoodies]._y = random(2000);
cc = _root.checkCollision(n['Stone' + _root.totalGoodies].col, _root.game.BG.col);
}
} else {
if (whichGoodieChance <= 80) {
if (_root.totalWeeds >= 30) {
_root.totalWeeds = 0;
} else {
++_root.totalWeeds;
}
n.attachMovie('weedShell', 'Weed' + _root.totalWeeds, 4260 + _root.totalWeeds);
n['Weed' + _root.totalWeeds]._x = random(1600);
n['Weed' + _root.totalWeeds]._y = random(2000);
n['Weed' + _root.totalWeeds].pDiscovered = 1;
n['Weed' + _root.totalWeeds]._alpha = 0;
n['Weed' + _root.totalWeeds].weedNum = v;
_root.pointsOfInterest.push(n['Weed' + _root.totalWeeds]);
_root.zSortArray.push(n['Weed' + _root.totalWeeds]);
var cc = _root.checkCollision(n['Weed' + _root.totalWeeds].col, _root.game.BG.col);
while (cc == true) {
n['Weed' + _root.totalWeeds]._x = random(1600);
n['Weed' + _root.totalWeeds]._y = random(2000);
cc = _root.checkCollision(n['Weed' + _root.totalWeeds].col, _root.game.BG.col);
}
} else {
if (whichGoodieChance <= 100) {
if (_root.timePlayed <= 920000) {
var v = random(3) + 1;
} else {
if (_root.timePlayed <= 2650000) {
var v = random(5) + 1;
} else {
if (_root.timePlayed <= 6500000) {
var v = random(7) + 1;
} else {
if (_root.timePlayed <= 12500000) {
var v = random(8) + 1;
} else {
var v = random(10) + 1;
}
}
}
}
n.attachMovie('butterfly' + v, 'BFly' + _root.totalGoodies, 4200 + _root.totalGoodies);
n['BFly' + _root.totalGoodies]._x = random(1600);
n['BFly' + _root.totalGoodies]._y = random(2000);
n['BFly' + _root.totalGoodies].pDiscovered = 1;
n['BFly' + _root.totalGoodies].butterflyNum = v;
n['BFly' + _root.totalGoodies]._alpha = 0;
_root.pointsOfInterest.push(n['BFly' + _root.totalGoodies]);
_root.zSortArray.push(n['BFly' + _root.totalGoodies]);
var cc = _root.checkCollision(n['BFly' + _root.totalGoodies].col, _root.game.BG.col);
while (cc == true) {
n['BFly' + _root.totalGoodies]._x = random(1600);
n['BFly' + _root.totalGoodies]._y = random(2000);
cc = _root.checkCollision(n['BFly' + _root.totalGoodies].col, _root.game.BG.col);
}
}
}
}
}
}
}
}
function fixLameSprouts() {
if (_root.GameTime == true) {
i = 1;
while (i < 13) {
if (_root.game['SS' + i]._x < 0 || _root.game['SS' + i]._x > 1600 || _root.game['SS' + i]._y < 0 || _root.game['SS' + i]._y > 2000) {
if (_root.game['SS' + i].sTask != 'ballooning') {
_root.sproutBadPlace(_root.game['SS' + i]);
}
}
++i;
}
}
}
function checkYPositions(proY) {
var checked = false;
zs = 0;
while (zs < _root.zSortArray.length) {
if (_root.pointsOfInterest[zs]._y == proY && checked == false) {
checked = true;
return checked;
} else {
if (checked == false && zs == _root.zSortArray.length) {
return checked;
}
}
++zs;
}
}
mochi.as2.MochiAd.showPreGameAd({'id': 'f61c54b866d6add5', 'res': '800x600'});
fscommand('allowscale', 'true');
_global.$createTweenController = function () {
var tweenHolder = _root.createEmptyMovieClip('__tweenController__', 123432);
tweenHolder.$_tweenPropList = new Array();
tweenHolder.$_tTime = getTimer();
tweenHolder.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, '$createTweenController', 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, '$removeTweenController', 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if (animType == undefined || animType == '') {
animType = 'easeOutExpo';
}
if (delay == undefined) {
delay = 0;
}
if (typeof prop == 'string') {
var properties = [prop];
var oldProperties = [mtarget[prop]];
var newProperties = [propDest];
} else {
var properties = [];
var oldProperties = [];
var newProperties = [];
for (var i in prop) {
oldProperties.push(mtarget[prop[i]]);
}
for (var i in prop) {
properties.push(prop[i]);
}
for (var i in propDest) {
newProperties.push(propDest[i]);
}
}
var $_callback_assigned = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var tweenPropList = _root.__tweenController__.$_tweenPropList;
var tTime = _root.__tweenController__.$_tTime;
for (var i in oldProperties) {
if (newProperties[i] != undefined && !mtarget.$_isTweenLocked) {
if (mtarget.$_tweenCount > 0) {
var pti = 0;
while (pti < tweenPropList.length) {
if (tweenPropList[pti]._targ == mtarget && tweenPropList[pti]._prop == properties[i]) {
if (tTime + delay * 1000 < tweenPropList[pti]._timeDest) {
tweenPropList.splice(pti, 1);
--pti;
--mtarget.$_tweenCount;
}
}
++pti;
}
}
tweenPropList.push({'_prop': properties[i], '_targ': mtarget, '_propStart': undefined, '_propDest': newProperties[i], '_timeStart': tTime, '_timeDest': tTime + timeSeconds * 1000, '_animType': animType, '_extra1': extra1, '_extra2': extra2, '_extras': extras, '_delay': delay, '_isPaused': false, '_timePaused': 0, '_callback': $_callback_assigned ? undefined : callback});
mtarget.$_tweenCount = mtarget.$_tweenCount > 0 ? mtarget.$_tweenCount + 1 : 1;
$_callback_assigned = true;
}
}
ASSetPropFlags(mtarget, '$_tweenCount', 1, 0);
};
ASSetPropFlags(_global, '$addTween', 1, 0);
_global.$updateTweens = function () {
this.$_tTime = getTimer();
var tTime = this.$_tTime;
var i = 0;
while (i < this.$_tweenPropList.length) {
var objProp = this.$_tweenPropList[i];
if (objProp._targ.toString() == undefined) {
this.$_tweenPropList.splice(i, 1);
--i;
} else {
if (objProp._timeStart + objProp._delay * 1000 <= tTime && !objProp._isPaused) {
if (objProp._propStart == undefined) {
if (objProp._prop.substr(0, 10) == '__special_') {
if (objProp._prop == '__special_mc_frame__') {
objProp._propStart = objProp._targ._currentframe;
} else {
if (objProp._prop == '__special_mc_ra__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).ra;
} else {
if (objProp._prop == '__special_mc_rb__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).rb;
} else {
if (objProp._prop == '__special_mc_ga__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).ga;
} else {
if (objProp._prop == '__special_mc_gb__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).gb;
} else {
if (objProp._prop == '__special_mc_ba__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).ba;
} else {
if (objProp._prop == '__special_mc_bb__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).bb;
} else {
if (objProp._prop == '__special_mc_aa__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).aa;
} else {
if (objProp._prop == '__special_mc_ab__') {
objProp._propStart = ((new Color(objProp._targ)).getTransform()).ab;
} else {
if (objProp._prop == '__special_text_r__') {
objProp._propStart = objProp._targ.textColor >> 16;
} else {
if (objProp._prop == '__special_text_g__') {
objProp._propStart = (objProp._targ.textColor & 65280) >> 8;
} else {
if (objProp._prop == '__special_text_b__') {
objProp._propStart = objProp._targ.textColor & 255;
} else {
if (objProp._prop == '__special_sound_volume__') {
objProp._propStart = objProp._targ.getVolume();
} else {
if (objProp._prop == '__special_sound_pan__') {
objProp._propStart = objProp._targ.getPan();
} else {
if (objProp._prop == '__special_bst_t__') {
objProp._propStart = 0;
objProp._extras.__special_bst_ix__ = objProp._targ._x;
objProp._extras.__special_bst_iy__ = objProp._targ._y;
} else {
if (objProp._prop == '__special_blur_x__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BlurFilter) {
objProp._propStart = objProp._targ.filters[j].blurX;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_blur_y__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BlurFilter) {
objProp._propStart = objProp._targ.filters[j].blurY;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_glow_color__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.GlowFilter) {
objProp._propStart = objProp._targ.filters[j].color;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 16777215;
}
} else {
if (objProp._prop == '__special_glow_alpha__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.GlowFilter) {
objProp._propStart = objProp._targ.filters[j].alpha;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 1;
}
} else {
if (objProp._prop == '__special_glow_blurX__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.GlowFilter) {
objProp._propStart = objProp._targ.filters[j].blurX;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_glow_blurY__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.GlowFilter) {
objProp._propStart = objProp._targ.filters[j].blurY;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_glow_strength__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.GlowFilter) {
objProp._propStart = objProp._targ.filters[j].strength;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 1;
}
} else {
if (objProp._prop == '__special_bevel_distance__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].distance;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_bevel_angle__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].angle;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 45;
}
} else {
if (objProp._prop == '__special_bevel_highlightColor__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].highlightColor;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 16777215;
}
} else {
if (objProp._prop == '__special_bevel_highlightAlpha__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].highlightAlpha;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 1;
}
} else {
if (objProp._prop == '__special_bevel_shadowColor__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].shadowColor;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_bevel_shadowAlpha__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].shadowAlpha;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 1;
}
} else {
if (objProp._prop == '__special_bevel_blurX__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].blurX;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_bevel_blurY__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].blurY;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 0;
}
} else {
if (objProp._prop == '__special_bevel_strength__') {
var j = 0;
while (j < objProp._targ.filters.length) {
if (objProp._targ.filters[j] instanceof flash.filters.BevelFilter) {
objProp._propStart = objProp._targ.filters[j].strength;
}
++j;
}
if (objProp._propStart == undefined) {
objProp._propStart = 1;
}
} else {
objProp._propStart = objProp._targ[objProp._prop];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else {
objProp._propStart = objProp._targ[objProp._prop];
}
}
var endTime = objProp._timeDest + objProp._delay * 1000;
if (endTime <= tTime) {
var newValue = objProp._propDest;
} else {
var newValue = _global.findTweenValue(objProp._propStart, objProp._propDest, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2);
}
objProp._targ[objProp._prop] = objProp._extras.mustRound ? Math.round(newValue) : newValue;
if (objProp._prop == '__special_mc_frame__') {
objProp._targ.gotoAndStop(Math.round(newValue));
} else {
if (objProp._prop == '__special_mc_ra__') {
(new Color(objProp._targ)).setTransform({'ra': newValue});
} else {
if (objProp._prop == '__special_mc_rb__') {
(new Color(objProp._targ)).setTransform({'rb': newValue});
} else {
if (objProp._prop == '__special_mc_ga__') {
(new Color(objProp._targ)).setTransform({'ga': newValue});
} else {
if (objProp._prop == '__special_mc_gb__') {
(new Color(objProp._targ)).setTransform({'gb': newValue});
} else {
if (objProp._prop == '__special_mc_ba__') {
(new Color(objProp._targ)).setTransform({'ba': newValue});
} else {
if (objProp._prop == '__special_mc_bb__') {
(new Color(objProp._targ)).setTransform({'bb': newValue});
} else {
if (objProp._prop == '__special_mc_aa__') {
(new Color(objProp._targ)).setTransform({'aa': newValue});
} else {
if (objProp._prop == '__special_mc_ab__') {
(new Color(objProp._targ)).setTransform({'ab': newValue});
}
}
}
}
}
}
}
}
}
if (objProp._prop == '__special_bst_t__') {
var extras = objProp._extras;
var po = _global.findPointOnCurve(extras.__special_bst_ix__, extras.__special_bst_iy__, extras.__special_bst_cx__, extras.__special_bst_cy__, extras.__special_bst_dx__, extras.__special_bst_dy__, newValue);
if (objProp._extras.mustRound) {
objProp._targ._x = Math.round(po.x);
objProp._targ._y = Math.round(po.y);
} else {
objProp._targ._x = po.x;
objProp._targ._y = po.y;
}
}
if (typeof objProp._targ != 'movieclip' && objProp._prop == '__special_text_b__') {
objProp._targ.textColor = (objProp._targ.__special_text_r__ << 16) + (objProp._targ.__special_text_g__ << 8) + objProp._targ.__special_text_b__;
}
if (objProp._prop == '__special_sound_volume__') {
objProp._targ.setVolume(newValue);
}
if (objProp._prop == '__special_sound_pan__') {
objProp._targ.setPan(newValue);
}
if (objProp._prop == '__special_blur_x__') {
_global.$setFilterProperty(objProp._targ, 'blur_blurX', newValue, objProp._extras);
}
if (objProp._prop == '__special_blur_y__') {
_global.$setFilterProperty(objProp._targ, 'blur_blurY', newValue, objProp._extras);
}
if (objProp._prop == '__special_glow_color__') {
_global.$setFilterProperty(objProp._targ, 'glow_color', _global.findTweenColor(objProp, tTime), objProp._extras);
}
if (objProp._prop == '__special_glow_alpha__') {
_global.$setFilterProperty(objProp._targ, 'glow_alpha', newValue, objProp._extras);
}
if (objProp._prop == '__special_glow_blurX__') {
_global.$setFilterProperty(objProp._targ, 'glow_blurX', newValue, objProp._extras);
}
if (objProp._prop == '__special_glow_blurY__') {
_global.$setFilterProperty(objProp._targ, 'glow_blurY', newValue, objProp._extras);
}
if (objProp._prop == '__special_glow_strength__') {
_global.$setFilterProperty(objProp._targ, 'glow_strength', newValue, objProp._extras);
}
if (objProp._prop == '__special_bevel_distance__') {
_global.$setFilterProperty(objProp._targ, 'bevel_distance', newValue, objProp._extras);
}
if (objProp._prop == '__special_bevel_angle__') {
_global.$setFilterProperty(objProp._targ, 'bevel_angle', newValue, objProp._extras);
}
if (objProp._prop == '__special_bevel_highlightColor__') {
_global.$setFilterProperty(objProp._targ, 'bevel_highlightColor', _global.findTweenColor(objProp, tTime), objProp._extras);
}
if (objProp._prop == '__special_bevel_highlightAlpha__') {
_global.$setFilterProperty(objProp._targ, 'bevel_highlightAlpha', newValue, objProp._extras);
}
if (objProp._prop == '__special_bevel_shadowColor__') {
_global.$setFilterProperty(objProp._targ, 'bevel_shadowColor', _global.findTweenColor(objProp, tTime), objProp._extras);
}
if (objProp._prop == '__special_bevel_shadowAlpha__') {
_global.$setFilterProperty(objProp._targ, 'bevel_shadowAlpha', newValue, objProp._extras);
}
if (objProp._prop == '__special_bevel_blurX__') {
_global.$setFilterProperty(objProp._targ, 'bevel_blurX', newValue, objProp._extras);
}
if (objProp._prop == '__special_bevel_blurY__') {
_global.$setFilterProperty(objProp._targ, 'bevel_blurY', newValue, objProp._extras);
}
if (objProp._prop == '__special_bevel_strength__') {
_global.$setFilterProperty(objProp._targ, 'bevel_strength', newValue, objProp._extras);
}
if (objProp._targ.onTweenUpdate != undefined) {
objProp._targ.onTweenUpdate(objProp._prop);
}
if (endTime <= tTime) {
if (objProp._targ.onTweenComplete != undefined) {
objProp._targ.onTweenComplete(objProp._prop);
}
_global.$stopTween(objProp._targ, [objProp._prop], false);
--i;
if (objProp._callback != undefined) {
if (_global.backwardCallbackTweening) {
var childMC = objProp._targ.createEmptyMovieClip('__child__', 122344);
objProp._callback.apply(childMC, null);
childMC.removeMovieClip();
} else {
objProp._callback.apply(objProp._targ, null);
}
}
}
}
}
++i;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, '$updateTween', 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var tweenPropList = _root.__tweenController__.$_tweenPropList;
var _prop;
for (var pti in tweenPropList) {
_prop = tweenPropList[pti]._prop;
var i = 0;
for (;;) {
if (!(i < props.length || i < 1 && props == undefined)) break;
if (tweenPropList[pti]._targ == mtarget && (_prop == props[i] || props == undefined) && (wipeFuture || tweenPropList[pti]._timeDest + tweenPropList[pti]._delay * 1000 <= getTimer())) {
switch (_prop) {
case '__special_mc_frame__':
case '__special_mc_ra__':
case '__special_mc_rb__':
case '__special_mc_ga__':
case '__special_mc_gb__':
case '__special_mc_ba__':
case '__special_mc_bb__':
case '__special_mc_aa__':
case '__special_mc_ab__':
case '__special_sound_volume__':
case '__special_bst_t__':
delete mtarget[_prop];
break;
case '__special_text_b__':
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
tweenPropList.splice(pti, 1);
}
++i;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var pti in tweenPropList) {
if (tweenPropList[pti]._targ == mtarget) {
++mtarget.$_tweenCount;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, '$stopTween', 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var i;
var applied = false;
var newFilters = [];
var i = 0;
while (i < mtarget.filters.length) {
newFilters.push(mtarget.filters[i]);
++i;
}
if (propName.substr(0, 5) == 'blur_') {
i = 0;
while (i < mtarget.filters.length) {
if (newFilters[i] instanceof flash.filters.BlurFilter) {
newFilters[i][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
newFilters[i].quality = extras.__special_blur_quality__;
}
applied = true;
break;
}
++i;
}
if (!applied) {
var myFilter;
var quality = (extras.__special_blur_quality__ == undefined) ? 2 : extras.__special_blur_quality__;
if (propName == 'blur_blurX') {
myFilter = new flash.filters.BlurFilter(propValue, 0, quality);
}
if (propName == 'blur_blurY') {
myFilter = new flash.filters.BlurFilter(0, propValue, quality);
}
newFilters.push(myFilter);
}
} else {
if (propName.substr(0, 5) == 'glow_') {
i = 0;
while (i < mtarget.filters.length) {
if (newFilters[i] instanceof flash.filters.GlowFilter) {
newFilters[i][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
newFilters[i].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
newFilters[i].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
newFilters[i].knockout = extras.__special_glow_knockout__;
}
applied = true;
break;
}
++i;
}
if (!applied) {
var myFilter;
var quality = (extras.__special_glow_quality__ == undefined) ? 2 : extras.__special_glow_quality__;
var inner = (extras.__special_glow_inner__ == undefined) ? false : extras.__special_glow_inner__;
var knockout = (extras.__special_glow_knockout__ == undefined) ? false : extras.__special_glow_knockout__;
if (propName == 'glow_color') {
myFilter = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, quality, inner, knockout);
}
if (propName == 'glow_alpha') {
myFilter = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, quality, inner, knockout);
}
if (propName == 'glow_blurX') {
myFilter = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, quality, inner, knockout);
}
if (propName == 'glow_blurY') {
myFilter = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, quality, inner, knockout);
}
if (propName == 'glow_strength') {
myFilter = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, quality, inner, knockout);
}
newFilters.push(myFilter);
}
} else {
if (propName.substr(0, 6) == 'bevel_') {
i = 0;
while (i < mtarget.filters.length) {
if (newFilters[i] instanceof flash.filters.BevelFilter) {
newFilters[i][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
newFilters[i].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
newFilters[i].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
newFilters[i].knockout = extras.__special_bevel_knockout__;
}
applied = true;
break;
}
++i;
}
if (!applied) {
var myFilter;
var quality = (extras.__special_bevel_quality__ == undefined) ? 2 : extras.__special_bevel_quality__;
var type = (extras.__special_bevel_type__ == undefined) ? 'inner' : extras.__special_bevel_type__;
var knockout = (extras.__special_bevel_knockout__ == undefined) ? false : extras.__special_bevel_knockout__;
if (propName == 'bevel_distance') {
myFilter = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, quality, type, knockout);
}
if (propName == 'bevel_angle') {
myFilter = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, quality, type, knockout);
}
if (propName == 'bevel_highlightColor') {
myFilter = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, quality, type, knockout);
}
if (propName == 'bevel_highlightAlpha') {
myFilter = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, quality, type, knockout);
}
if (propName == 'bevel_shadowColor') {
myFilter = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, quality, type, knockout);
}
if (propName == 'bevel_shadowAlpha') {
myFilter = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, quality, type, knockout);
}
if (propName == 'bevel_blurX') {
myFilter = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, quality, type, knockout);
}
if (propName == 'bevel_blurY') {
myFilter = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, quality, type, knockout);
}
if (propName == 'bevel_strength') {
myFilter = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, quality, type, knockout);
}
newFilters.push(myFilter);
}
} else {
return undefined;
}
}
}
mtarget.filters = newFilters;
};
Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
};
TextField.prototype.tween = Sound.prototype.tween;
MovieClip.prototype.tween = Sound.prototype.tween;
ASSetPropFlags(MovieClip.prototype, 'tween', 1, 0);
ASSetPropFlags(TextField.prototype, 'tween', 1, 0);
ASSetPropFlags(Sound.prototype, 'tween', 1, 0);
Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true});
};
TextField.prototype.roundedTween = Sound.prototype.roundedTween;
MovieClip.prototype.roundedTween = Sound.prototype.roundedTween;
ASSetPropFlags(MovieClip.prototype, 'roundedTween', 1, 0);
ASSetPropFlags(TextField.prototype, 'roundedTween', 1, 0);
ASSetPropFlags(Sound.prototype, 'roundedTween', 1, 0);
Sound.prototype.stopTween = function (props) {
if (typeof props == 'string') {
props = [props];
}
if (props != undefined) {
var i = 1;
while (i < arguments.length) {
props.push(arguments[i]);
++i;
}
}
_global.$stopTween(this, props, true);
};
TextField.prototype.stopTween = Sound.prototype.stopTween;
MovieClip.prototype.stopTween = Sound.prototype.stopTween;
ASSetPropFlags(MovieClip.prototype, 'stopTween', 1, 0);
ASSetPropFlags(TextField.prototype, 'stopTween', 1, 0);
ASSetPropFlags(Sound.prototype, 'stopTween', 1, 0);
Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof props == 'string') {
props = [props];
}
var i = 1;
while (i < Arguments.length) {
props.push(Arguments[i]);
++i;
}
}
var tweenPropList = _root.__tweenController__.$_tweenPropList;
var mustPause;
for (var pti in tweenPropList) {
if (tweenPropList[pti]._targ == this && !tweenPropList[pti]._isPaused) {
if (props != undefined) {
mustPause = false;
for (var i in props) {
if (props[i] == tweenPropList[pti]._prop) {
mustPause = true;
break;
}
}
}
if (props == undefined || mustPause) {
tweenPropList[pti]._isPaused = true;
tweenPropList[pti]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
};
TextField.prototype.pauseTween = Sound.prototype.pauseTween;
MovieClip.prototype.pauseTween = Sound.prototype.pauseTween;
ASSetPropFlags(MovieClip.prototype, 'pauseTween', 1, 0);
ASSetPropFlags(TextField.prototype, 'pauseTween', 1, 0);
ASSetPropFlags(Sound.prototype, 'pauseTween', 1, 0);
Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof props == 'string') {
props = [props];
}
var i = 1;
while (i < Arguments.length) {
props.push(Arguments[i]);
++i;
}
}
var tweenPropList = _root.__tweenController__.$_tweenPropList;
var mustResume;
var offsetTime;
for (var pti in tweenPropList) {
if (tweenPropList[pti]._targ == this && tweenPropList[pti]._isPaused) {
if (props != undefined) {
mustResume = false;
for (var i in props) {
if (props[i] == tweenPropList[pti]._prop) {
mustResume = true;
break;
}
}
}
if (props == undefined || mustResume) {
tweenPropList[pti]._isPaused = false;
offsetTime = _root.__tweenController__.$_tTime - tweenPropList[pti]._timePaused;
tweenPropList[pti]._timeStart += offsetTime;
tweenPropList[pti]._timeDest += offsetTime;
tweenPropList[pti]._timePaused = 0;
}
}
}
};
TextField.prototype.resumeTween = Sound.prototype.resumeTween;
MovieClip.prototype.resumeTween = Sound.prototype.resumeTween;
ASSetPropFlags(MovieClip.prototype, 'resumeTween', 1, 0);
ASSetPropFlags(TextField.prototype, 'resumeTween', 1, 0);
ASSetPropFlags(Sound.prototype, 'resumeTween', 1, 0);
Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, 'this.$_isTweenLocked', 1, 0);
};
TextField.prototype.lockTween = Sound.prototype.lockTween;
MovieClip.prototype.lockTween = Sound.prototype.lockTween;
ASSetPropFlags(MovieClip.prototype, 'lockTween', 1, 0);
ASSetPropFlags(TextField.prototype, 'lockTween', 1, 0);
ASSetPropFlags(Sound.prototype, 'lockTween', 1, 0);
Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
};
TextField.prototype.unlockTween = Sound.prototype.unlockTween;
MovieClip.prototype.unlockTween = Sound.prototype.unlockTween;
ASSetPropFlags(MovieClip.prototype, 'unlockTween', 1, 0);
ASSetPropFlags(TextField.prototype, 'unlockTween', 1, 0);
ASSetPropFlags(Sound.prototype, 'unlockTween', 1, 0);
Sound.prototype.getTweens = function () {
return this.$_tweenCount;
};
TextField.prototype.getTweens = Sound.prototype.getTweens;
MovieClip.prototype.getTweens = Sound.prototype.getTweens;
ASSetPropFlags(MovieClip.prototype, 'getTweens', 1, 0);
ASSetPropFlags(TextField.prototype, 'getTweens', 1, 0);
ASSetPropFlags(Sound.prototype, 'getTweens', 1, 0);
Sound.prototype.isTweening = function () {
return this.$_tweenCount > 0 ? true : false;
};
TextField.prototype.isTweening = Sound.prototype.isTweening;
MovieClip.prototype.isTweening = Sound.prototype.isTweening;
ASSetPropFlags(MovieClip.prototype, 'isTweening', 1, 0);
ASSetPropFlags(TextField.prototype, 'isTweening', 1, 0);
ASSetPropFlags(Sound.prototype, 'isTweening', 1, 0);
TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_alpha', propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.alphaTo = TextField.prototype.alphaTo;
ASSetPropFlags(MovieClip.prototype, 'alphaTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'alphaTo', 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '__special_mc_frame__', propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, 'frameTo', 1, 0);
TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['_width', '_height'], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.resizeTo = TextField.prototype.resizeTo;
ASSetPropFlags(MovieClip.prototype, 'resizeTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'resizeTo', 1, 0);
TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_rotation', propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.rotateTo = TextField.prototype.rotateTo;
ASSetPropFlags(MovieClip.prototype, 'rotateTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'rotateTo', 1, 0);
TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['_xscale', '_yscale'], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.scaleTo = TextField.prototype.scaleTo;
ASSetPropFlags(MovieClip.prototype, 'scaleTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'scaleTo', 1, 0);
TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_xscale', propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.xScaleTo = TextField.prototype.xScaleTo;
ASSetPropFlags(MovieClip.prototype, 'xScaleTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'xScaleTo', 1, 0);
TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_yscale', propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.yScaleTo = TextField.prototype.yScaleTo;
ASSetPropFlags(MovieClip.prototype, 'yScaleTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'yScaleTo', 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, 'scroll', propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, 'scrollTo', 1, 0);
TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['_x', '_y'], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.slideTo = TextField.prototype.slideTo;
ASSetPropFlags(MovieClip.prototype, 'slideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'slideTo', 1, 0);
TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['_x', '_y'], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true});
};
MovieClip.prototype.roundedSlideTo = TextField.prototype.roundedSlideTo;
ASSetPropFlags(MovieClip.prototype, 'roundedSlideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'roundedSlideTo', 1, 0);
TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_x', propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.xSlideTo = TextField.prototype.xSlideTo;
ASSetPropFlags(MovieClip.prototype, 'xSlideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'xSlideTo', 1, 0);
TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_x', propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true});
};
MovieClip.prototype.roundedXSlideTo = TextField.prototype.roundedXSlideTo;
ASSetPropFlags(MovieClip.prototype, 'roundedXSlideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'roundedXSlideTo', 1, 0);
TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_y', propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
};
MovieClip.prototype.ySlideTo = TextField.prototype.ySlideTo;
ASSetPropFlags(MovieClip.prototype, 'ySlideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'ySlideTo', 1, 0);
TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '_y', propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true});
};
MovieClip.prototype.roundedYSlideTo = TextField.prototype.roundedYSlideTo;
ASSetPropFlags(MovieClip.prototype, 'roundedYSlideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'roundedYSlideTo', 1, 0);
TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var extras = new Object();
extras.__special_bst_ix__ = undefined;
extras.__special_bst_iy__ = undefined;
extras.__special_bst_cx__ = cpoint_x;
extras.__special_bst_cy__ = cpoint_y;
extras.__special_bst_dx__ = propDest_x;
extras.__special_bst_dy__ = propDest_y;
_global.$addTween(this, '__special_bst_t__', 1, timeSeconds, animType, delay, callback, extra1, extra2, extras);
};
MovieClip.prototype.bezierSlideTo = TextField.prototype.bezierSlideTo;
ASSetPropFlags(MovieClip.prototype, 'bezierSlideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'bezierSlideTo', 1, 0);
TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var extras = new Object();
extras.__special_bst_ix__ = undefined;
extras.__special_bst_iy__ = undefined;
extras.__special_bst_cx__ = cpoint_x;
extras.__special_bst_cy__ = cpoint_y;
extras.__special_bst_dx__ = propDest_x;
extras.__special_bst_dy__ = propDest_y;
extras.mustRound = true;
_global.$addTween(this, '__special_bst_t__', 1, timeSeconds, animType, delay, callback, extra1, extra2, extras);
};
MovieClip.prototype.roundedBezierSlideTo = TextField.prototype.roundedBezierSlideTo;
ASSetPropFlags(MovieClip.prototype, 'roundedBezierSlideTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'roundedBezierSlideTo', 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '__special_sound_volume__', propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, 'volumeTo', 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '__special_sound_pan__', propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, 'panTo', 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var new_r = propDest_color >> 16;
var new_g = (propDest_color & 65280) >> 8;
var new_b = propDest_color & 255;
this.colorTransformTo(0, new_r, 0, new_g, 0, new_b, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, 'colorTo', 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var new_r = propDest_color >> 16;
var new_g = (propDest_color & 65280) >> 8;
var new_b = propDest_color & 255;
_global.$addTween(this, ['__special_text_r__', '__special_text_g__', '__special_text_b__'], [new_r, new_g, new_b], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, 'colorTo', 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if (typeof arguments[0] == 'object' && arguments[0] != undefined) {
_global.$addTween(this, ['__special_mc_ra__', '__special_mc_rb__', '__special_mc_ga__', '__special_mc_gb__', '__special_mc_ba__', '__special_mc_bb__', '__special_mc_aa__', '__special_mc_ab__'], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ['__special_mc_ra__', '__special_mc_rb__', '__special_mc_ga__', '__special_mc_gb__', '__special_mc_ba__', '__special_mc_bb__', '__special_mc_aa__', '__special_mc_ab__'], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, 'colorTransformTo', 1, 0);
TextField.prototype.blurTo = function () {
if (typeof arguments[0] == 'object' && arguments[0] != undefined) {
_global.$addTween(this, ['__special_blur_x__', '__special_blur_y__'], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {'__special_blur_quality__': arguments[0].quality});
} else {
_global.$addTween(this, ['__special_blur_x__', '__special_blur_y__'], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {'__special_blur_quality__': arguments[1]});
}
};
MovieClip.prototype.blurTo = TextField.prototype.blurTo;
ASSetPropFlags(MovieClip.prototype, 'blurTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'blurTo', 1, 0);
TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['__special_blur_x__', '__special_blur_y__'], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_blur_quality__': quality});
};
MovieClip.prototype.xyBlurTo = TextField.prototype.xyBlurTo;
ASSetPropFlags(MovieClip.prototype, 'xyBlurTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'xyBlurTo', 1, 0);
TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '__special_blur_x__', propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {'__special_blur_quality__': quality});
};
MovieClip.prototype.xBlurTo = TextField.prototype.xBlurTo;
ASSetPropFlags(MovieClip.prototype, 'xBlurTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'xBlurTo', 1, 0);
TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, '__special_blur_y__', propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {'__special_blur_quality__': quality});
};
MovieClip.prototype.yBlurTo = TextField.prototype.yBlurTo;
ASSetPropFlags(MovieClip.prototype, 'yBlurTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'yBlurTo', 1, 0);
TextField.prototype.glowTo = function () {
if (typeof arguments[0] == 'object' && arguments[0] != undefined) {
_global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_blurY__', '__special_glow_strength__'], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {'__special_glow_quality__': arguments[0].quality, '__special_glow_inner__': arguments[0].inner, '__special_glow_knockout__': arguments[0].knockout});
} else {
_global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_blurY__', '__special_glow_strength__'], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {'__special_glow_quality__': arguments[4], '__special_glow_inner__': arguments[5], '__special_glow_knockout__': arguments[6]});
}
};
MovieClip.prototype.glowTo = TextField.prototype.glowTo;
ASSetPropFlags(MovieClip.prototype, 'glowTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'glowTo', 1, 0);
TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_blurY__', '__special_glow_strength__'], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_glow_quality__': quality, '__special_glow_inner__': inner, '__special_glow_knockout__': knockout});
};
MovieClip.prototype.xyGlowTo = TextField.prototype.xyGlowTo;
ASSetPropFlags(MovieClip.prototype, 'xyGlowTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'xyGlowTo', 1, 0);
TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_strength__'], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_glow_quality__': quality, '__special_glow_inner__': inner, '__special_glow_knockout__': knockout});
};
MovieClip.prototype.xGlowTo = TextField.prototype.xGlowTo;
ASSetPropFlags(MovieClip.prototype, 'xGlowTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'xGlowTo', 1, 0);
TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurY__', '__special_glow_strength__'], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_glow_quality__': quality, '__special_glow_inner__': inner, '__special_glow_knockout__': knockout});
};
MovieClip.prototype.yGlowTo = TextField.prototype.yGlowTo;
ASSetPropFlags(MovieClip.prototype, 'yGlowTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'yGlowTo', 1, 0);
TextField.prototype.bevelTo = function () {
if (typeof arguments[0] == 'object' && arguments[0] != undefined) {
_global.$addTween(this, ['__special_bevel_distance__', '__special_bevel_angle__', '__special_bevel_highlightColor__', '__special_bevel_highlightAlpha__', '__special_bevel_shadowColor__', '__special_bevel_shadowAlpha__', '__special_bevel_blurX__', '__special_bevel_blurY__', '__special_bevel_strength__'], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {'__special_bevel_quality__': arguments[0].quality, '__special_bevel_type__': arguments[0].type, '__special_bevel_knockout__': arguments[0].knockout});
} else {
_global.$addTween(this, ['__special_bevel_distance__', '__special_bevel_angle__', '__special_bevel_highlightColor__', '__special_bevel_highlightAlpha__', '__special_bevel_shadowColor__', '__special_bevel_shadowAlpha__', '__special_bevel_blurX__', '__special_bevel_blurY__', '__special_bevel_strength__'], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {'__special_bevel_quality__': arguments[8], '__special_bevel_type__': arguments[9], '__special_bevel_knockout__': arguments[10]});
}
};
MovieClip.prototype.bevelTo = TextField.prototype.bevelTo;
ASSetPropFlags(MovieClip.prototype, 'bevelTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'bevelTo', 1, 0);
TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ['__special_bevel_distance__', '__special_bevel_angle__', '__special_bevel_highlightColor__', '__special_bevel_highlightAlpha__', '__special_bevel_shadowColor__', '__special_bevel_shadowAlpha__', '__special_bevel_blurX__', '__special_bevel_blurY__', '__special_bevel_blurY__', '__special_bevel_strength__'], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_bevel_quality__': quality, '__special_bevel_type__': type, '__special_bevel_knockout__': knockout});
};
MovieClip.prototype.xyBevelTo = TextField.prototype.xyBevelTo;
ASSetPropFlags(MovieClip.prototype, 'xyBevelTo', 1, 0);
ASSetPropFlags(TextField.prototype, 'xyBevelTo', 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return {'x': p1x + t * (2 * (1 - t) * (cx - p1x) + t * (p2x - p1x)), 'y': p1y + t * (2 * (1 - t) * (cy - p1y) + t * (p2y - p1y))};
};
ASSetPropFlags(_global, 'findPointOnCurve', 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var rrs = objProp._propStart >> 16;
var rrd = objProp._propDest >> 16;
var ggs = objProp._propStart >> 8 & 255;
var ggd = objProp._propDest >> 8 & 255;
var bbs = objProp._propStart & 255;
var bbd = objProp._propDest & 255;
var newR = Math.round(_global.findTweenValue(rrs, rrd, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var newG = Math.round(_global.findTweenValue(ggs, ggd, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var newB = Math.round(_global.findTweenValue(bbs, bbd, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return (newR << 16) + (newG << 8) + newB;
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var t = _timeNow - _timeStart;
var b = _propStart;
var c = _propDest - _propStart;
var d = _timeDest - _timeStart;
var a = _extra1;
var p = _extra2;
var s = _extra1;
switch (_animType.toLowerCase()) {
trace('MC TWEEN ### Error on transition: there\'s no "' + _animType + '" animation type.');
return 0;
case 'linear':
return c * t / d + b;
case 'easeinquad':
t /= d;
return c * t * t + b;
case 'easeoutquad':
t /= d;
return -c * t * (t - 2) + b;
case 'easeinoutquad':
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t + b;
}
return (-c / 2) * (--t * (t - 2) - 1) + b;
case 'easeoutinquad':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutQuad') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInQuad') * 0.5 + c * 0.5 + b;
case 'easeincubic':
t /= d;
return c * t * t * t + b;
case 'easeoutcubic':
t = t / d - 1;
return c * (t * t * t + 1) + b;
case 'easeinoutcubic':
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t * t + b;
}
t -= 2;
return (c / 2) * (t * t * t + 2) + b;
case 'easeoutincubic':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutCubic') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInCubic') * 0.5 + c * 0.5 + b;
case 'easeinquart':
t /= d;
return c * t * t * t * t + b;
case 'easeoutquart':
t = t / d - 1;
return -c * (t * t * t * t - 1) + b;
case 'easeinoutquart':
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t * t * t + b;
}
t -= 2;
return (-c / 2) * (t * t * t * t - 2) + b;
case 'easeoutinquart':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutQuart') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInQuart') * 0.5 + c * 0.5 + b;
case 'easeinquint':
t /= d;
return c * t * t * t * t * t + b;
case 'easeoutquint':
t = t / d - 1;
return c * (t * t * t * t * t + 1) + b;
case 'easeinoutquint':
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t * t * t * t + b;
}
t -= 2;
return (c / 2) * (t * t * t * t * t + 2) + b;
case 'easeoutinquint':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutQuint') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInQuint') * 0.5 + c * 0.5 + b;
case 'easeinsine':
return -c * Math.cos((t / d) * 1.570796326794897) + c + b;
case 'easeoutsine':
return c * Math.sin((t / d) * 1.570796326794897) + b;
case 'easeinoutsine':
return (-c / 2) * (Math.cos(Math.PI * t / d) - 1) + b;
case 'easeoutinsine':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutSine') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInSine') * 0.5 + c * 0.5 + b;
case 'easeinexpo':
return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
case 'easeoutexpo':
return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
case 'easeinoutexpo':
if (t == 0) {
return b;
}
if (t == d) {
return b + c;
}
t /= d / 2;
if (t < 1) {
return (c / 2) * Math.pow(2, 10 * (t - 1)) + b;
}
return (c / 2) * (-Math.pow(2, -10 * --t) + 2) + b;
case 'easeoutinexpo':
if (t == 0) {
return b;
}
if (t == d) {
return b + c;
}
t /= d / 2;
if (t < 1) {
return (c / 2) * (-Math.pow(2, -10 * t / 1) + 1) + b;
}
return (c / 2) * (Math.pow(2, 10 * (t - 2) / 1) + 1) + b;
case 'easeincirc':
t /= d;
return -c * (Math.sqrt(1 - t * t) - 1) + b;
case 'easeoutcirc':
t = t / d - 1;
return c * Math.sqrt(1 - t * t) + b;
case 'easeinoutcirc':
t /= d / 2;
if (t < 1) {
return (-c / 2) * (Math.sqrt(1 - t * t) - 1) + b;
}
t -= 2;
return (c / 2) * (Math.sqrt(1 - t * t) + 1) + b;
case 'easeoutincirc':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutCirc') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInCirc') * 0.5 + c * 0.5 + b;
case 'easeinelastic':
if (t == 0) {
return b;
}
t /= d;
if (t == 1) {
return b + c;
}
if (!p) {
p = d * 0.3;
}
if (!a || a < Math.abs(c)) {
a = c;
var s = p / 4;
} else {
var s = (p / 6.283185307179586) * Math.asin(c / a);
}
t -= 1;
return -(a * Math.pow(2, 10 * t) * Math.sin((t * d - s) * 6.283185307179586 / p)) + b;
case 'easeoutelastic':
if (t == 0) {
return b;
}
t /= d;
if (t == 1) {
return b + c;
}
if (!p) {
p = d * 0.3;
}
if (!a || a < Math.abs(c)) {
a = c;
var s = p / 4;
} else {
var s = (p / 6.283185307179586) * Math.asin(c / a);
}
return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * 6.283185307179586 / p) + c + b;
case 'easeinoutelastic':
if (t == 0) {
return b;
}
t /= d / 2;
if (t == 2) {
return b + c;
}
if (!p) {
p = d * 0.45;
}
if (!a || a < Math.abs(c)) {
a = c;
var s = p / 4;
} else {
var s = (p / 6.283185307179586) * Math.asin(c / a);
}
if (t < 1) {
t -= 1;
return -0.5 * (a * Math.pow(2, 10 * t) * Math.sin((t * d - s) * 6.283185307179586 / p)) + b;
}
t -= 1;
return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * 6.283185307179586 / p) * 0.5 + c + b;
case 'easeoutinelastic':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutElastic') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInElastic') * 0.5 + c * 0.5 + b;
case 'easeinback':
if (s == undefined) {
s = 1.70158;
}
t /= d;
return c * t * t * ((s + 1) * t - s) + b;
case 'easeoutback':
if (s == undefined) {
s = 1.70158;
}
t = t / d - 1;
return c * (t * t * ((s + 1) * t + s) + 1) + b;
case 'easeinoutback':
if (s == undefined) {
s = 1.70158;
}
t /= d / 2;
if (t < 1) {
s *= 1.525;
return (c / 2) * (t * t * ((s + 1) * t - s)) + b;
}
t -= 2;
s *= 1.525;
return (c / 2) * (t * t * ((s + 1) * t + s) + 2) + b;
case 'easeoutinback':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutBack') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInBack') * 0.5 + c * 0.5 + b;
case 'easeinbounce':
return c - findTweenValue(0, c, 0, d - t, d, 'easeOutBounce') + b;
case 'easeoutbounce':
t /= d;
if (t < 0.3636363636363637) {
return c * (7.5625 * t * t) + b;
} else {
if (t < 0.7272727272727273) {
t -= 0.5454545454545454;
return c * (7.5625 * t * t + 0.75) + b;
} else {
if (t < 0.9090909090909091) {
t -= 0.8181818181818182;
return c * (7.5625 * t * t + 0.9375) + b;
} else {
t -= 0.9545454545454546;
return c * (7.5625 * t * t + 0.984375) + b;
}
}
}
case 'easeinoutbounce':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeInBounce') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeOutBounce') * 0.5 + c * 0.5 + b;
case 'easeoutinbounce':
if (t < d / 2) {
return findTweenValue(0, c, 0, t * 2, d, 'easeOutBounce') * 0.5 + b;
}
return findTweenValue(0, c, 0, t * 2 - d, d, 'easeInBounce') * 0.5 + c * 0.5 + b;
}
trace('MC TWEEN ### Error on transition: there\'s no "' + _animType + '" animation type.');
return 0;
};
ASSetPropFlags(_global, 'findTweenValue', 1, 0);
var CompletedWebGameTitleXX = 'Sprouts Web Adventure Complete!';
var KarmaEndXX = 'You are only 5 Karma Points away from the Lightning Spell!';
var BuildingEndXX = 'You have just completed the Schoolyard where your Sproutlings can learn!';
var PreorderDescriptionXX = 'Sprouts Adventure is due out mid June! Preorder Sprouts Adventure Today!';
var PreorderXX = 'Order!';
var DownloadXX = 'Download!';
var NoThanksXX = 'No Thanks';
var DownloadSproutsXX = 'Download the full Sprouts Adventure Desktop Version Today!';
var Bullet1XX = '*Be the Deity you\'ve always dreamed of!\n';
var Bullet2XX = '*Unlimited Gameplay!\n';
var Bullet3XX = '*11 Incredible Structures!\n';
var Bullet4XX = '*Over 10 Amazing Spells!\n';
var Bullet5XX = '*A dozen Sprouts to love and care for!\n';
aberdeen;
var LoadingXX = 'Loading...';
var YesXX = 'Yes';
var NoXX = 'No';
var OkXX = 'Ok';
var OfXX = 'of';
var BackXX = 'Back';
var DoneXX = 'Done';
var NextXX = 'Next';
var PreviousXX = 'Previous';
var CancelXX = 'Cancel';
var ResumeXX = 'Resume';
var SkipXX = 'Skip';
var copyrightTextXX = 'Sprouts Adventure and associated trademarks and trade dress are owned by © 2009 Reflexive Entertainment, Inc. All Rights Reserved.';
var PlayXX = 'Play';
var OptionsXX = 'Options';
var AchievementsXX = 'Achievements';
var DiscoveriesXX = 'Discoveries';
var ExitXX = 'Exit';
var NotYouXX = 'Not You? Click here.';
var WelcomeXX = 'Welcome,';
var WorldXX = 'World';
var MenuXX = 'Menu';
var DetailsXX = 'Details';
var PercentCompleteXX = '% Complete';
var AgeXX = 'Age:';
var WeatherXX = 'Weather';
var PowersXX = 'Powers';
var SproutsOverallHappinessXX = 'Community Happiness';
var SproutsOverallProgressXX = 'Community Progress';
var DayXX = 'Day';
var GoldStarTitleXX = 'Gold Star';
var GoldStarDescriptionXX = 'Your Community is so happy you get a Gold Star! Click on it to charge a random spell effect! (Limit 1 per day cycle.)';
var WorldViewTitleXX = 'World View';
var WorldViewDescriptionXX = 'Click here, or press the \'Space Bar\' to see the Sprouts from way up high!';
var TimeDialTitleXX = 'Day / Night Cycle';
var TimeDialDescriptionXX = 'Shows what time of day it is. Some spells can only be cast during the day or night.';
var CommunityProgressTitleXX = 'Progress Meter';
var CommunityProgressDescriptionXX = 'Shows how far along your Community has developed.';
var CommunityHappinessTitleXX = 'Happiness Meter';
var CommunityHappinessDescriptionXX = 'Shows how happy your Sprouts are overall.';
var CanKeepPlayingTitleXX = 'Time Warp!';
var CanKeepPlayingXX = 'You have sent the Sprouts off on their wonderful new Adventure! However, being the amazing deity you are, you can travel back in time just before you shocked the Egg! \n\nGet all the achievements, spells or simply just have fun with your Sprouts!';
var OnlyDuringDayXX = 'This spell can only be cast during the day!';
var OnlyDuringNightXX = 'This spell can only be cast during the night!';
var QuickStartGuideXX = 'Quick Start Guide';
var QSG1XX = 'Welcome to Sprouts Adventure! \n\nThis is your description area. Hover over items in the game to see information about the object.';
var QSG2XX = 'These are your spells. You will need to use them in order to help the Sprouts.\n\nThere are quite a few that you will have to unlock!';
var QSG3XX = 'This is your Day Meter. It displays the time of day. \n\n*Some spells can be cast during the day and others only at night.';
var QSG4XX = 'These are your Karma Points. Your Karma Points are used to unlock Spells!\n\nYou can get Karma Points in several ways. \n* Sprout offerings.\n* Fullfilling wishes from the well.\n* By Fishing.';
var QSG5XX = 'Drop Sprouts on Wild Flowers, Butterflies or Magic Stones to increase their life attributes! \n\nThe happier your keep your Sprouts, the more productive they will be!';
var QSG6XX = 'Use the world view to see the Sprouts from above. \n\nThis comes in handy if you cannot find a Sprout or are looking for Wild Flowers, Butterflies or Magic Stones.';
var QSG7XX = 'The most important thing to remember is that Sprouts work better when they are happy! \n\nKeep them curious, well motivated, full and rested and your sprouts will do wonderful things!';
var Tut01XX = 'Welcome to Sprouts Adventure! Let\'s get to know the Sprouts a bit. Click and drag on any of the Sprouts to move them around the world.';
var Tut02XX = 'Great! To move around the world, click and drag anywhere on the ground, give it a try!';
var Tut03XX = 'Superb! Your goal is to help the Sprouts maintain a healthy and happy lifestyle. Looks like someone\'s hungry! Drag the hungry Sprout to the garden!';
var Tut04XX = 'Fantastic! The garden won\'t grow on its own, it needs water. Click on your \'rain\' spell here.';
var Tut05XX = 'Now click on the garden to give it some much needed rain!';
var Tut06XX = 'With the soil nice and moist, the garden needs some brilliant sun! Click on your \'Sun\' power here.';
var Tut07XX = 'Now click on the garden to give it the beautiful rays of the Sun and help those seeds grow!';
var Tut08XX = 'Now the garden has crops that are ready to eat! Click and drag the hungry Sprouts to the garden and let them eat!';
var Tut09XX = 'Sprouts will come up with new ideas of things to build. The more curious they are the faster they will have a great idea! One of your Sprouts is brainstorming now!';
var Tut10XX = 'Your Sprout has had a new idea for a building! Click on the Idea Light Bulb to see where the new structure will be!';
var Tut11XX = 'Click and drag any Sprout and drop them on the construction spot under the Hammer.';
var Tut12XX = 'Great! Now this Sprout is working away on rebuilding one of the Sprout Shelters! Click and drag more Sprouts to build the Shelter faster!';
var Tut13XX = 'Sprouts love to explore! Keep your eyes open for Flowers, Magic Stones, Weeds and Butterflies! They can help the Sprouts stay curious and motivated!';
var Tip1XX = 'Sprouts are most productive when they are full, rested, curious and motivated!';
var Tip2XX = 'Sprouts need lots of playtime too! Don\'t work them too hard!var ';
var Tip3XX = 'Sprouts are fully grown and can work at the age of 7! However, they live forever so it\'s almost irrelevant.';
var Tip3XX = 'Sprouts are fully grown and can work at the age of 7! However, they live forever so it\'s almost irrelevant.';
var Tip4XX = 'Keep a look out for Magic Stones! Drop a Sprout on one to increase their Motivation!var ';
var Tip5XX = 'Watch for Butterflies! Drop a Sprout on one to increase their Curiosity!var ';
var Tip6XX = 'Wild Flowers are a great snack! Drop a Sprout on one to increase their Fullness!';
var Sick1XX = ' is feeling terrible. Needs lots of rest and some food!';
var Sick2XX = ' can\'t remember feeling this bad ever!';
var Sick3XX = ' is too sick to move around. Needs some nourishment and rest!';
var Sick4XX = ' feels horrible and needs some serious rest.';
var Sick5XX = ' is too sick to even move!';
var Sick6XX = ' has a fever of 106! Needs rest and food!';
var Sick7XX = ' cannot go on at this pace, needs lot\'s of food and sleep!';
var Sick8XX = ' has fallen very ill. Needs a lot of sleep and food.';
var Sick9XX = ' feels absolutely horrible. Needs food and sleep!';
var Sick10XX = ' can\'t bear to go on without food and sleep!';
var PausedXX = 'Paused';
var ContinueXX = 'Continue';
var HelpXX = 'Help';
var WelcomeBackXX = 'Welcome Back!';
var FullscreenXX = 'Fullscreen';
var MusicVolumeXX = 'Music Volume';
var SoundVolumeXX = 'Sound Volume';
var ToolTipsXX = 'Tool Tips';
var confirmExitGameXX = 'Would you like to Exit?';
var confirmExitGameMessageXX = 'The Sprouts Adventure TEASER does not allow saving! You will be returned to the Main Menu if you choose \'Yes\'. Select \'No\' to continue playing.';
var SelectProfileXX = 'Select Profile';
var CreateNewPlayerXX = 'Create new player';
var EnterYourNameXX = 'Enter your name';
var NeedYourNameXX = 'Please enter your name!';
var ConfirmDeletePlayerXX = 'Would you like to delete this player?';
var DeletePlayerMessageXX = 'This player\'s data will be permanently lost!';
var SproutDetailXX = 'Sprout Detail';
var HungryXX = 'Hungry';
var SleepyXX = 'Sleepy';
var CuriousXX = 'Curious';
var MotivatedXX = 'Motivated';
var BoredXX = 'Bored';
var FullXX = 'Full';
var AwakeXX = 'Awake';
var LazyXX = 'Lazy';
var MotivationXX = 'Motivation';
var CuriosityXX = 'Curiosity';
var KarmaXX = 'Karma';
var NewInventionXX = 'New Invention';
var ButterflyDiscoveredXX = 'New Butterfly Discovered!';
var ButterflyDiscoveredTextFXX = ' has discovered a new type of butterfly! Her new find has increased her Curiosity!';
var ButterflyDiscoveredTextMXX = ' has discovered a new type of butterfly! His new find has increased his Curiosity!';
var StoneDiscoveredXX = 'New Mystic Stone Discovered!';
var StoneDiscoveredTextFXX = ' has discovered a new type of Mystic Stone! Her new find has increased her Motivation!';
var StoneDiscoveredTextMXX = ' has discovered a new type of Mystic Stone! His new find has increased his Motivation!';
var MushroomBall1TitleXX = 'Pink Ball';
var MushroomBall1DescriptionXX = 'The Sprouts love to kick around mushroom balls! Helps with curiosity and motivation!';
var MushroomBall2TitleXX = 'Orange Ball';
var MushroomBall2DescriptionXX = 'The Sprouts love to kick around mushroom balls! Helps with curiosity and motivation!';
var MushroomBall3TitleXX = 'Purple Ball';
var MushroomBall3DescriptionXX = 'The Sprouts love to kick around mushroom balls! Helps with curiosity and motivation!';
var ThisSpellIsLockedXX = 'This spell is locked! You need at least ';
var MoreKarmaPointsXX = ' Karma Points to use it!';
var UnknownSpellXX = 'Unknown Spell';
var TheXX = 'The ';
var SpellIsChargingXX = ' spell is charging.';
var NeedSproutToHoeXX = 'The garden needs a Sprout to till the soil.';
var NeedsRainXX = 'The garden needs some rain to grow the seedlings.';
var NeedsSunXX = 'The garden needs some sun to grow into full flowers.';
var GiftBoxTitleXX = 'Gift Box';
var GiftBoxDescriptionXX = 'Drop a Sprout on the Gift Box for an increase in Motivation and Curiosity!';
var Bored1XX = ' is totally bored and wants to do something fun.';
var Bored2XX = ' is rather sick of working all the time.';
var Bored3XX = ' is completely bored.';
var Bored4XX = ' needs a bit of fun to spice up the boredom.';
var Bored5XX = ' is sick and tired of just working.';
var Bored6XX = ' wants to have some good ol\' fun!';
var Bored7XX = ' needs a break from the daily grind.';
var Bored8XX = ' thinks there has to be something fun to do around here.';
var Bored9XX = ' knows that all work and no play is bad.';
var Bored10XX = ' just wants to let loose and have some fun.';
var Bored11XX = ' needs of bit of fun and excitement to get motivated again.';
var Bored12XX = ' wants to do enjoy life to the fullest, but is completely bored.';
var Bored13XX = ' thinks that always working may cause health problems later.';
var Bored14XX = ' is concerned that working to much may lead to headaches and fatigue.';
var Bored15XX = ' is absolutely bored.';
var Kicking1XX = ' loves kicking the mushroom ball around!';
var Kicking2XX = ' wants to be a professional mushroom ball player!';
var Kicking3XX = ' is having a blast kicking the mushroom ball all over the place!';
var Kicking4XX = ' thinks the mushroom ball is a little flat, but is still having an awesome time.';
var Kicking5XX = ' is thoroughly enjoying kicking the mushroom ball around.';
var Kicking6XX = ' is working up quite a sweat kicking the mushroom ball around.';
var Kicking7XX = ' can\'t think of anything more fun than the mushroom ball!';
var Kicking8XX = ' wishes there were more Sprouts that wanted to play mushroom ball!';
var Kicking9XX = ' can\'t believe how much fun the mushroom ball is.';
var Kicking10XX = ' is having the best time ever playing mushroom ball!';
var SproutWorldViewXX = 'Sprout World View';
var KarmaPointsXX = 'Karma Points';
var DaysHelpingSproutsXX = 'Days Helping Sprouts:';
var CompletedStructuresXX = 'Completed Structures:';
var NumberOfSproutsXX = 'Number of Sprouts:';
var PreciousStonesFoundXX = 'Unique Stones Found:';
var ButterfliesFoundXX = 'Unique Butterflies:';
var WeedsWeededXX = 'Weeds Weeded:';
var SproutHappinessXX = 'Sprout Happiness:';
var LocateSproutXX = 'Locate Sprouts';
var TTFullscreenXX = 'Toggle fullscreen or windowed mode.';
var TTToolTipsXX = 'Toggle game tool tips on or off.';
var TTMusicXX = 'Adjust the music volume.';
var TTSoundsXX = 'Adjust the sound effects volume.';
var Structure0XX = 'Flower Garden';
var Structure1XX = 'Hut';
var Structure2XX = 'Stone Bridge';
var Structure3XX = 'School Yard';
var Structure4XX = 'Wishing Well';
var Structure5XX = 'Tool Shop';
var Structure6XX = 'Windmill';
var Structure7XX = 'Hut';
var Structure8XX = 'Zoo';
var Structure9XX = 'Fishing Pier';
var Structure10XX = 'Hot Air Balloon';
var Structure11XX = 'Observatory';
var Structure12XX = 'The Great Egg';
var Structure0DescriptionXX = 'A glorious fertile garden to grow the Sprouts delicious flowers! Drop and leave Sprouts here to feed them!';
var Structure1DescriptionXX = 'The Hut makes a great place to rest a sleepy Sprout. Sleeps 3 Sprouts comfortably.';
var Structure2DescriptionXX = 'Allows the Sprouts to fish and explore more of the world!';
var Structure3DescriptionXX = 'Ensures all Sprout children get a great education!';
var Structure4DescriptionXX = 'Is a place where Sprouts can go when they need help from \'The Great One\'.';
var Structure5DescriptionXX = 'Curiosity runs high in the Tool Shop. Great Ideas are born here!';
var Structure6DescriptionXX = 'Allows Sprouts to store their food and mix their flower types.';
var Structure7DescriptionXX = 'The Hut makes a great place to rest a sleepy Sprout.';
var Structure8DescriptionXX = 'A wonderful place for Sprouts to visit to heighten their curiosity and motivation!';
var Structure9DescriptionXX = 'Sprouts can find awesome goodies by fishing off the Pier!';
var Structure10DescriptionXX = 'Perhaps the best way for a Sprout to relax. They return fully motivated and curious!';
var Structure11DescriptionXX = 'What lies beyond this world? We may find out.';
var Structure12DescriptionXX = 'The Great Egg.';
var ObservatoryDoneHoverXX = 'Finding something of importance may require several Sprouts in the Observatory.';
var MoreFoodAvailableXX = 'You have harvested the Garden! There is now more food available in the Windmill! Click and drag any Sprout to the Windmill to feed them!';
var WindMillGameTitleXX = 'Windmill Eatery';
var WindMillGameDirectionsXX = 'Select a meal from the \'Known Recipes\' or drag ingredients onto the plate and press \'Make It\'.';
var WindMillGameDirections2XX = 'You have discovered all of the Recipes! Click on a Recipe to feed a Sprout!';
var IngredientsNeededXX = 'Ingredients Needed:';
var IngredientsAvailableXX = 'Ingredients Available';
var ThreeIngredientsXX = 'You need at least 3 ingredients!';
var MakeItXX = 'Make It!';
var NotEnoughIngredientsXX = 'There aren\'t enough ingredients!';
var KnownRecipesXX = 'Known Recipes';
var NewRecipeXX = 'New Recipe!';
var CongratsNewRecipeXX = 'Congratulations! You have made a new recipe for the Sprouts to enjoy!';
var NowSelectMealXX = 'Now when mixing foods, you can simply select this recipe to feed your Sprouts!';
var Meal1XX = 'Flower Pie';
var Meal2XX = 'Root Soup';
var Meal3XX = 'Flower Lasagna';
var Meal4XX = 'Veggie Burger';
var Meal5XX = 'Stalk Nachos';
var Meal6XX = 'Three Petal Pasta';
var Meal7XX = 'Stem Salad';
var Meal8XX = 'Barbeque Petals';
var Meal9XX = 'Leaf Stew';
var Meal10XX = 'Pollen Pizza';
var WindMillTitleTutXX = 'Congratulations!';
var WindMillFinishedTutXX = 'The Sprouts have completed the Windmill! Now you can harvest the garden flowers and store them in the Windmill! Click on the garden to harvest crops! Once you\'ve harvested some crops, you can feed the Sprouts by dropping them on the Windmill!';
var Meal1DescriptionXX = ' loves the Flower Pie! He is full and feels a bit more curious and a little less sleepy!';
var Meal2DescriptionXX = ' thinks the Root Soup totally hit the spot! He is a little more motivated and less sleepy too!';
var Meal3DescriptionXX = ' thinks he has a new favorite food! The Flower Lasagna was perfect and he is more motivated and curious!';
var Meal4DescriptionXX = ' thinks the Veggie Burger is fantastic! He\'s feeling more motivated, curious and less tired!';
var Meal5DescriptionXX = ' loves the Stalk Nachos! He is more curious and a little less sleepy now.';
var Meal6DescriptionXX = ' proclaims the Three Petal Pasta is the best Sprout meal ever! He\'s feeling more curious and less tired too!';
var Meal7DescriptionXX = ' thinks the Stem Salad is out of this world! He\'s also feeling a little more curious and motivated!';
var Meal8DescriptionXX = ' thinks it should be a sin for things to taste as good as the Barbeque Petals. He\'s less tired and more curious too!';
var Meal9DescriptionXX = ' loves the Leaf Stew! He is more motivated and curious as well as feels a bit less tired.';
var Meal10DescriptionXX = ' would eat Pollen Pizza everyday if he could! He\'s feeling less tired and a bit more motivated!';
var Meal1fDescriptionXX = ' loves the Flower Pie! She is full and feels a bit more curious and a little less sleepy!';
var Meal2fDescriptionXX = ' thinks the Root Soup totally hit the spot! She is a little more motivated and less sleepy too!';
var Meal3fDescriptionXX = ' thinks she has a new favorite food! The Flower Lasagna was perfect and she is more motivated and curious!';
var Meal4fDescriptionXX = ' thinks the Veggie Burger is fantastic! She\'s feeling more motivated, curious and less tired!';
var Meal5fDescriptionXX = ' loves the Stalk Nachos! She is more curious and a little less sleepy now.';
var Meal6fDescriptionXX = ' proclaims the Three Petal Pasta is the best Sprout meal ever! She\'s feeling more curious and less tired too!';
var Meal7fDescriptionXX = ' thinks the Stem Salad is out of this world! She\'s also feeling a little more curious and motivated!';
var Meal8fDescriptionXX = ' thinks it should be a sin for things to taste as good as the Barbeque Petals. She\'s less tired and more curious too!';
var Meal9fDescriptionXX = ' loves the Leaf Stew! She is more motivated and curious as well as feels a bit less tired.';
var Meal10fDescriptionXX = ' would eat Pollen Pizza everyday if she could! She\'s feeling less tired and a bit more motivated!';
var HangGliderTitleXX = 'Hang Glider';
var HangGliderDescriptionXX = 'Sprouts love hang gliding! They return with a boost to both curiosity and motivation!';
var BarrelRideTitleXX = 'Barrel Ride';
var BarrelRideDescriptionXX = 'More fun than a barrel of monkeys! Sprouts get a boost in either curiosity or motivation!';
var BarrelRideReturnXX = 'Click and drag the barrel back on the cliff to use it again!';
var EndEggTitleXX = 'The Great Egg';
var EndEggDescriptionXX = 'The Great Egg has a very large crack in it... A Spell may hold the key.';
var TrampolineTitleXX = 'Trampoline';
var TrampolineDescriptionXX = 'The Sprouts LOVE the trampoline. Two Sprouts may jump at a time!';
var KiteTitleXX = 'Kite';
var KiteDescriptionXX = 'Raises Sprouts curiosity and motivation but needs something extra to work...';
var NoMoreInventionsXX = ' No More Inventions';
var AchievementEarnedXX = 'You have earned an Achievement!';
var RollOverAchievementXX = 'Roll over slots for Achievement descriptions.';
var Achievement1XX = 'Fire Starter';
var Achievement2XX = 'Butterfly Enthusiast';
var Achievement3XX = 'Sprouts Dozen';
var Achievement4XX = 'Precious Stone Collector';
var Achievement5XX = 'Weed Eater';
var Achievement6XX = 'Master Builder';
var Achievement7XX = 'Rainbow Maker';
var Achievement8XX = 'Star Gazer';
var Achievement9XX = 'Karma Collector';
var Achievement10XX = 'Paradise Island';
var AchievementDescrip1XX = 'Start your very first Fire.';
var AchievementDescrip2XX = 'Collect all 10 species of Butterflies.';
var AchievementDescrip3XX = 'Create all 12 Sprouts in your society.';
var AchievementDescrip4XX = 'Collect all 10 of the Rare Stones.';
var AchievementDescrip5XX = 'Hoe 100 weeds.';
var AchievementDescrip6XX = 'Complete the Windmill.';
var AchievementDescrip7XX = 'Create your first Rainbow.';
var AchievementDescrip8XX = 'Complete the Observatory.';
var AchievementDescrip9XX = 'Collect a total of 500 Karma Points.';
var AchievementDescrip10XX = 'Discover Paradise Island.';
var SpellDiscoveredXX = 'You have discovered a new Spell!';
var SpellSunXX = 'Glowing Sun';
var SpellRainXX = 'Mystic Rain';
var SpellSproutlingXX = 'Sproutling Egg';
var SpellGiftXX = 'Gift from Above';
var SpellWindXX = 'Whistling Wind';
var SpellLightningXX = 'Lightning Bolt';
var SpellVisionXX = 'Vision';
var SpellFlowerXX = 'Magic Flower';
var SpellRainbowXX = 'Enchanted Rainbow';
var SpellFallingStarXX = 'Falling Star';
var SpellEarthquakeXX = 'Earthquake';
var SpellSunDescriptionXX = 'Create glowing rays of the Sun on the garden or Sprouts.';
var SpellRainDescriptionXX = 'Summon the Mystic Rain on the garden or Sprouts.';
var SpellSproutlingDescriptionXX = 'Create a Sproutling Egg. Must be used on an empty part of the ground.';
var SpellGiftDescriptionXX = 'Send the Sprouts a special gift! Must be used on an empty part of the ground.';
var SpellWindDescriptionXX = 'Summon the Whistling Winds. on the Sprouts or other unique items.';
var SpellLightningDescriptionXX = 'Strike down with a Bolt of Lightning! Can be used anywhere!';
var SpellVisionDescriptionXX = 'Inspire a Sprout by giving them a Vision of you! Keeps them fully motivated for a while.';
var SpellFlowerDescriptionXX = 'Create a Magical Flower on any part of the empty ground!';
var SpellRainbowDescriptionXX = 'Create an Enchanted Rainbow for all of the Sprouts to see!';
var SpellFallingStarDescriptionXX = 'Shoot the Sprouts a Falling Star! Must be used on an empty part of the ground.';
var SpellEarthquakeDescriptionXX = 'Shake the ground and show the Sprouts your awesome power! Can be used anywhere.';
var DiscoveriesXX = 'Discoveries';
var ButterfliesXX = 'Butterflies';
var PreciousStonesXX = 'Rare Stones';
var StonesTitleXX = 'Magic Stone';
var StonesDescriptionXX = 'Drop Sprouts on Magic Stones for a motivation boost!';
var FlowerSnackTitleXX = 'Wild Flower';
var FlowerSnackDescriptionXX = 'Drop Sprouts on Wild Flowers for a tasty snack!';
var ButterflyTitleXX = 'Wild Butterfly';
var ButterflyDescriptionXX = 'Drop Sprouts on Wild Butterflies for a curiosity boost!';
var WeedTitleXX = 'Icky Weed';
var WeedDescriptionXX = 'Weeds are horribly unsightly. Drop Sprouts on them to get rid of them!';
var Stones1XX = 'Sky Stone';
var Stones2XX = 'Amber Ore';
var Stones3XX = 'Tin Rock';
var Stones4XX = 'Obsidian';
var Stones5XX = 'Pewter Stone';
var Stones6XX = 'Lava Stone';
var Stones7XX = 'Ruby Ore';
var Stones8XX = 'Crystal';
var Stones9XX = 'Golden Ore';
var Stones10XX = 'Emerald Stone';
var Butterfly1XX = 'Electric Monarch';
var Butterfly2XX = 'Gugon Moth';
var Butterfly3XX = 'Snowfly';
var Butterfly4XX = 'Blue Glowfly';
var Butterfly5XX = 'Icy Wonderfly';
var Butterfly6XX = 'Polkafly';
var Butterfly7XX = 'Sunrise Monarch';
var Butterfly8XX = 'Green Glowfly';
var Butterfly9XX = 'Red Tipped Moth';
var Butterfly10XX = 'Ocean Winger';
var WetSprout1XX = ' hates getting wet in the puddles.';
var WetSprout2XX = ' wishes there was an easy way to clean up the puddles.';
var WetSprout3XX = ' finds puddles totally annoying.';
var WetSprout4XX = ' would rather not get wet.';
var WetSprout5XX = ' really dislikes getting all wet.';
var Jumping1XX = ' is having a blast jumping on the trampoline!';
var Jumping2XX = ' can\'t remember having this much fun!';
var Jumping3XX = ' thinks the trampoline might be one of the greatest inventions!';
var Jumping4XX = ' is thoroughly enjoying the trampoline!';
var Jumping5XX = ' loves jumping on the trampoline!';
var Jumping6XX = ' is having way to much fun on the trampoline!';
var Jumping7XX = ' can\'t believe how much fun the trampoline is!';
var Jumping8XX = ' thinks the trampoline might be too much fun!';
var Jumping9XX = ' wonders how the trampoline works, but really doesn\'t care!';
var Jumping10XX = ' is having the best time ever on the trampoline!';
var EggTitleXX = 'Sproutling Egg';
var EggIsCold1XX = 'The Sproutling egg seems a bit cold.';
var EggIsCold2XX = 'The Sproutling egg is a little chilly.';
var EggIsCold3XX = 'The Sproutling egg might need some sun to hatch.';
var WetChildSprout1XX = ' loves splashing around in puddles.';
var WetChildSprout2XX = ' can\'t resist splashing like a wild Sprout in the puddle!';
var WetChildSprout3XX = ' is having so much fun splashing around!';
var WetChildSprout4XX = ' is having a blast making a mess in the puddle.';
var WetChildSprout5XX = ' wishes there were puddles around all the time!';
var Nothing1XX = ' is looking around.';
var Nothing2XX = ' is feeling good.';
var Nothing3XX = ' is enjoying the slight breeze.';
var Nothing4XX = ' is watching the day unfold.';
var Nothing5XX = ' is grateful to be here with you in control.';
var Nothing6XX = ' is filled with love for all of the Sprouts.';
var Nothing7XX = ' is thinking about the waterfall.';
var Nothing8XX = ' is thinking about the large bended tree.';
var Nothing9XX = ' is wondering why the egg is so gracious.';
var Nothing10XX = ' enjoys the smell of the ocean air.';
var Nothing11XX = ' loves the smell of the grass.';
var Nothing12XX = ' enjoys the sound of the flowing river.';
var Nothing13XX = ' misses the elders but is proud of the remaining Sprouts.';
var Nothing14XX = ' is daydreaming.';
var Nothing15XX = ' is thinking about doing something fun.';
var Nothing16XX = ' is hoping the great weather holds up.';
var Nothing17XX = ' is feeling like doing something fun.';
var Nothing18XX = ' wants to work on something.';
var Nothing19XX = ' is thinking about getting old.';
var Nothing20XX = ' is exploring the area.';
var Nothing21XX = ' is just looking around.';
var Nothing22XX = ' can\'t believe how warm it is.';
var Nothing23XX = ' thinks that cloud in the sky looks like a giant lizard.';
var Nothing24XX = ' is pondering the meaning of life.';
var Nothing25XX = ' is trying to remember what a rainbow looks like...';
var Working1XX = ' is working hard.';
var Working2XX = ' feels real progress is being made.';
var Working3XX = ' is enjoying working.';
var Working4XX = ' feels like working hard.';
var Working5XX = ' enjoys working with the other Sprouts.';
var Working6XX = ' is working.';
var Working7XX = ' is really getting the hang of hammering!';
var Working8XX = ' likes working when the weather is nice.';
var Working9XX = ' wants to take a break, but knows it\'s good to work.';
var Working10XX = ' is working up quite a sweat!';
var Working11XX = ' is getting quite the work out!';
var Working12XX = ' is trying to stay focused on the task at hand.';
var Working13XX = ' knows this will be awesome when it\'s done.';
var Working14XX = ' is glad you are pushing the Sprouts to make a better community.';
var Working15XX = ' enjoys working with tools.';
var Working16XX = ' is really proud of the great work being done.';
var Working17XX = ' thinks there\'s too much mortar being used.';
var Working18XX = ' loves working with the hammer.';
var Working19XX = ' thinks the project is well in hand.';
var Working20XX = ' isn\'t sure what this is all going to look like.';
var Working21XX = ' thinks there is something special about working together.';
var Working22XX = ' wants a bit more help building.';
var Working23XX = ' likes working on new structures for the community.';
var Working24XX = ' loves working with other Sprouts on big projects.';
var Working25XX = ' feels good working outside.';
var Hungry1XX = ' is getting hungry.';
var Hungry2XX = ' could definitely use something to eat.';
var Hungry3XX = ' is starving.';
var Hungry4XX = ' feels famished.';
var Hungry5XX = ' could eat the bark off of the tree!';
var Hungry6XX = '\'s stomach is grumbling.';
var Hungry7XX = ' really needs food!';
var Hungry8XX = ' is getting weak and needs nourishment.';
var Hungry9XX = ' wants to eat something super yummy!';
var Hungry10XX = ' is running low on energy.';
var Hungry11XX = ' can\'t wait to eat!';
var Hungry12XX = ' really wants something tasty to eat!';
var NotHungry1XX = ' really isn\'t all that hungry.';
var NotHungry2XX = ' is a bit to stuffed still to eat again.';
var NotHungry3XX = ' is very full and not ready to eat yet.';
var NotHungry4XX = ' doesn\'t really need to eat right now.';
var NotHungry5XX = ' can\'t eat another bite!';
var Sleepy1XX = ' is super sleepy.';
var Sleepy2XX = ' can\'t stop yawning.';
var Sleepy3XX = ' wants to lay down and rest.';
var Sleepy4XX = ' can\'t stop thinking about laying down and sleeping...';
var Sleepy5XX = '\'s eyes are getting heavy.';
var Sleepy6XX = ' can\'t stop thinking about a nice fluffy pillow.';
var Sleepy7XX = ' needs to sleep!';
var Sleepy8XX = ' could really use a nap.';
var Sleepy9XX = ' feels drained and could use a good nap.';
var Sleepy10XX = ' is so tired.';
var Sleepy11XX = ' is exhausted.';
var Sleepy12XX = ' desperately needs to rest!';
var Sleeping1XX = ' is dreaming of a rainbow.';
var Sleeping2XX = ' is snoring.';
var Sleeping3XX = ' is dreaming about tomorrow.';
var Sleeping4XX = ' is tossing and turning a bit.';
var Sleeping5XX = ' is in a peaceful sleep.';
var Sleeping6XX = ' is drooling all over the pillow.';
var Sleeping7XX = ' is completely sound asleep.';
var Sleeping8XX = ' is snoring so loud, the others might wake up!';
var Sleeping9XX = ' hasn\'t slept this good in a long time.';
var Sleeping10XX = ' is dreaming about the bent tree.';
var Sleeping11XX = ' is sleeping like a baby...';
var Sleeping12XX = ' is dreaming of the elders...';
var Eating1XX = ' is really enjoying the food.';
var Eating2XX = ' is eating.';
var Eating3XX = ' loves to eat!';
var Eating4XX = ' is savoring every bite!';
var Eating5XX = ' is staring off into space while chewing a mouthful.';
var Eating6XX = ' is thinking about what else sounds good to eat.';
var Eating7XX = ' likes the yummy food!';
var Eating8XX = ' is stuffed but cant\' stop eating!';
var Eating9XX = ' is really loving the food.';
var Eating10XX = ' thinks the food is kind of bland today.';
var Eating11XX = ' wishes there was more variety in the food.';
var Eating12XX = ' is chewing!';
var YoungToWork1XX = ' is too young to start working.';
var YoungToWork2XX = ' is too small to even lift a hammer yet!';
var YoungToWork3XX = ' likes to watch the adults work.';
var YoungToWork4XX = ' wonders what the adults are doing making all that noise.';
var YoungToWork5XX = ' doesn\'t understand what the adults are doing.';
var YoungToWork6XX = ' can\'t wait to get to work, but has some growing to do first.';
var YoungToWork7XX = ' isn\'t quite capable of helping the adults work yet.';
var YoungToWork8XX = ' thinks that what the adults are doing looks fun.';
var YoungToWork9XX = ' really wants to help out but can\'t do anything but watch for now.';
var YoungToWork10XX = ' thinks the adults are having a lot of fun!';
var BadDrop1XX = ' - Sprouts don\'t belong there! Nice try though!';
var BadDrop2XX = ' - Oops! You can\'t drop a Sprout where they cannot walk!';
var BadDrop3XX = ' - You can\'t put a Sprout in an area they can\'t return from!';
var BadDrop4XX = ' - That\'s not a good place to drop a Sprout!';
var BadDrop5XX = ' - You can\'t drop a Sprout there!';
var TiredToWork1XX = ' is too tired to work!';
var TiredToWork2XX = ' needs to sleep before working anymore.';
var TiredToWork3XX = ' is too exhausted to lift a nail, let alone a hammer.';
var TiredToWork4XX = ' is to sleepy to keep hammering.';
var TiredToWork5XX = ' is practically sleep walking and can\'t work.';
var HungryToWork1XX = ' is to hungry to work!';
var HungryToWork2XX = ' needs to eat before working anymore.';
var HungryToWork3XX = ' is to famished to hammer even one more nail.';
var HungryToWork4XX = ' is needs some nourishment to keep hammering.';
var HungryToWork5XX = ' is starving and can\'t work.';
var TryingKite1XX = ' wants to fly the kite, but there is no wind...';
var TryingKite2XX = ' wishes a breeze would come carry the kite up into the sky.';
var TryingKite3XX = ' doesn\'t think it\'s windy enough to fly a kite.';
var TryingKite4XX = ' knows the kite won\'t fly without at least a breeze.';
var TryingKite5XX = ' needs a breeze to carry the kite high into the air.';
var Fishing1XX = ' loves to fish.';
var Fishing2XX = ' cant\' think of anything better to be doing than fishing.';
var Fishing3XX = ' loves the sound of the water.';
var Fishing4XX = ' hopes to catch something soon!';
var Fishing5XX = ' thinks it\'s a perfect day to be fishing.';
var TooManyFishing1XX = ' doesn\'t have any room to fish with the others fishing there.';
var TooManyFishing2XX = ' can\'t find room to fish.';
var TooManyFishing3XX = ' thinks there are too many Sprouts already fishing.';
var TooManyFishing4XX = ' sees all the fishing spots are taken.';
var TooManyFishing5XX = ' sees there are too many Sprouts fishing.';
var TooManySleeping1XX = ' doesn\'t have any room to sleep with the others sleeping all snoring.';
var TooManySleeping2XX = ' can\'t find room to sleep.';
var TooManySleeping3XX = ' thinks there are too many Sprouts already snoring away.';
var TooManySleeping4XX = ' sees the shelter is full of Sprouts dreaming peacefully.';
var TooManySleeping5XX = ' sees there are too many Sprouts sleeping.';
var Researching1XX = ' is trying to come up with some new ideas for the Sprout Community.';
var Researching2XX = ' feels on the verge of a great new idea!';
var Researching3XX = ' wants to think up something super cool for the Sprouts to do.';
var Researching4XX = ' hopes to discover a spectacular idea!';
var Researching5XX = ' is researching and hoping to stumble across something awesome!';
var TooManyResearching1XX = ' sees there are too many Sprouts researching.';
var TooManyResearching2XX = ' thinks there are enough Sprouts working on new ideas.';
var TooManyResearching3XX = ' doesn\'t see any room to do any good research in the Tool Shop.';
var TooManyResearching4XX = ' thinks the Tool Shop is too busy to be researching right now.';
var TooManyResearching5XX = ' doesn\'t think another Sprout in the Tool Shop is a good idea...';
var TooManyWorking1XX = ' sees there are too many Sprouts working.';
var TooManyWorking2XX = ' thinks there are enough Sprouts working on the project.';
var TooManyWorking3XX = ' doesn\'t see any room to do any work.';
var TooManyWorking4XX = ' thinks the project has enough hands working.';
var TooManyWorking5XX = ' doesn\'t think another Sprout working on the project is a good idea...';
var TooManyObserving1XX = ' sees there are too many Sprouts in the Observatory.';
var TooManyObserving2XX = ' thinks there are enough Sprouts looking to the sky.';
var TooManyObserving3XX = ' doesn\'t see any room to look to the stars.';
var TooManyObserving4XX = ' thinks the Observatory is too busy to be observing right now.';
var TooManyObserving5XX = ' doesn\'t think another Sprout in the Observatory is a good idea...';
var TooManyJumping1XX = ' sees there are too many Sprouts on the trampoline!';
var TooManyJumping2XX = ' thinks there are enough Sprouts jumping.';
var TooManyJumping3XX = ' doesn\'t see any room to jump on the trampoline!';
var TooManyJumping4XX = ' thinks the other Sprouts are kind of hogging the trampoline.';
var TooManyJumping5XX = ' doesn\'t think three Sprouts on the small trampoline is a good idea...';
var WishingsunXX = ' is wishing for the warming rays of the Sun.';
var WishingrainXX = ' is wishing for cool, refreshing drops of rain.';
var WishingsproutlingXX = ' is wishing for another Sproutling.';
var WishinggiftXX = ' is wishing for a wonderful present.';
var WishingwindXX = ' is wishing for a refreshing breeze.';
var WishingvisionXX = ' is wishing the Great One will visit them in a vision.';
var WishingrainbowXX = ' is wishing for a glorious rainbow.';
var WishingfallingStarXX = ' is wishing for a magical falling star.';
var SproutAlreadyWishing1XX = ' see\'s another Sprout is already making a wish at the well.';
var SproutAlreadyWishing2XX = ' knows only one Sprout at a time can use the Wishing Well.';
var SproutAlreadyWishing3XX = ' is pleased to see that the Wishing Well is being used by another Sprout.';
var SproutAlreadyWishing4XX = ' really hopes that Sprouts wishes come true!';
var SproutAlreadyWishing5XX = ' has to wait to use the Wishing Well.';
var NoWellWater1XX = ' can\'t make a wish because the well is dry.';
var NoWellWater2XX = ' sees there is no water in the well and will have to wait to make a wish.';
var NoWellWater3XX = ' knows the well needs water before a wish can be made.';
var Learning1XX = ' is busy learning.';
var Learning2XX = ' loves being in the school.';
var Learning3XX = ' is really enjoying today\'s lesson.';
var Learning4XX = ' is trying really hard to pay attention.';
var Learning5XX = ' can\'t believe the world is so complicated.';
var Learning6XX = ' loves hearing about the elders.';
var Learning7XX = ' is filled with joy knowing the Sprouts have a place to learn.';
var Learning8XX = ' thinks today\'s lesson is very interesting.';
var Learning9XX = ' wants to be super smart one day.';
var Learning10XX = ' is having a hard time understanding today\'s lesson.';
var TooManyLearning1XX = ' sees there are too many Sprouts in school.';
var TooManyLearning2XX = ' knows the school can\'t have more than 4 Sprouts learning!';
var TooManyLearning3XX = ' sees the class is filled.';
var NeedATeacher1XX = ' knows school is just a building, unless a teacher is present.';
var NeedATeacher2XX = ' thinks the school needs some adult supervision.';
var NeedATeacher3XX = ' totally doesn\'t want to go to school if the teacher isn\'t there.';
var SomeoneTeaching1XX = ' sees another Sprout is already teaching the students.';
var SomeoneTeaching2XX = ' knows the students don\'t need two teachers!';
var SomeoneTeaching3XX = ' doesn\'t want impose their brilliant ideas on the kids when another teacher is working...';
var Teaching1XX = ' enjoys teaching the young Sprouts about their marvelous world.';
var Teaching2XX = ' isn\'t sure the Sproutlings are really grasping the lesson.';
var Teaching3XX = ' really wants the Sproutlings to learn all they can before going out into the world.';
var Teaching4XX = ' thinks today\'s lesson is pretty boring and wishes there was something more interesting to teach.';
var Teaching5XX = ' thinks the Sprouts are really responding to todays lesson.';
var EarnedKarmaFromSchoolXX = 'You\'ve earned 1 Karma Point for educating your Sproutlings!';
var PlaceToLearnTitleXX = 'School';
var PlaceToLearnDescriptionXX = 'Education is the cornerstone of community. Sproutlings can learn about the awesome world around them!';
var GotWish1mXX = ' received his wish! 5 Karma Points awarded!';
var GotWish2mXX = ' praises the Great One for fulfilling his wish! 5 Karma Points awarded!';
var GotWish3mXX = ' loves that the Great One is listening to his wishes! 5 Karma Points awarded!';
var GotWish1fXX = ' received her wish! 5 Karma Points awarded!';
var GotWish2fXX = ' praises the Great One for fulfilling her wish! 5 Karma Points awarded!';
var GotWish3fXX = ' loves that the Great One is listening to her wishes! 5 Karma Points awarded!';
var FlyingKite1XX = ' is magically hypnotized by the sway of the kite...';
var FlyingKite2XX = ' loves the feel of the kite tugging on the string.';
var FlyingKite3XX = ' is really enjoying flying this marvelous kite.';
var FlyingKite4XX = ' could fly this kite all day and night.';
var FlyingKite5XX = ' is mesmerized by the dancing kite against the clouds.';
var CantMakeMoreSproutsXX = 'Your community has reached the maximum number of Sprouts! No More Sprouts can be hatched! Congratulations on your successful community!';
var NewSproutIsBorn1XX = 'Your Sprout community has a beautiful new addition!';
var NewSproutIsBorn2XX = 'The Sprouts are so excited about the new Sproutling!';
var NewSproutIsBorn3XX = 'The Sprouts are so thankful to the Great One for bestowing upon them such a wonderful new baby Sproutling!';
var NewSproutIsBorn4XX = 'The Sprouts feel truly blessed with the beautiful new baby Sproutling!';
var NewSproutIsBorn5XX = 'The Sprouts have already fallen in love with their new baby Sproutling!';
var Observing1XX = ' sees some big puffy clouds that look like a HUGE bunny rabbit.';
var Observing2XX = ' can see the moon and it\'s beautiful!';
var Observing3XX = ' is wishing upon a star...';
var Observing4XX = ' wonders how big the world really is.';
var Observing5XX = ' is feeling extremely curious about what is out there.';
var Observing6XX = ' wonders where the second star on the left leads...';
var Observing7XX = ' wonders if all the stars in the sky will someday fall.';
var Observing8XX = ' likes looking out into the world through the telescope.';
var Observing9XX = ' loves to dream while looking out the observatory.';
var Observing10XX = ' thinks that cloud looks like a giant Sprout!';
var Brainstorming1XX = ' is on the verge of a great idea...';
var Brainstorming2XX = ' is brainstorming on what the Sprouts should work on next.';
var Brainstorming3XX = ' is trying to think of the next great thing the Sprouts can build.';
var Brainstorming4XX = ' is on the brink of coming up with a great new community structure.';
var Brainstorming5XX = ' is thinking about what the Sprouts need next.';
var Brainstorming6XX = ' is pondering what else the Sprouts can build.';
var Brainstorming7XX = ' is trying to flesh out a very cool idea.';
var Brainstorming8XX = ' is thinking of something brand new!';
var Brainstorming9XX = ' needs a bit of curiosity to come up with the next great idea.';
var Brainstorming10XX = ' is brainstorming an old idea into a new one!';
var Brainstorming11XX = ' thinks the Sprouts need something else to build.';
var Brainstorming12XX = ' is coming up with something great for the Sprouts to work on.';
var Brainstorming13XX = ' is thinking up something new for the Sprouts to work on.';
var Brainstorming14XX = ' is thinking of something new and exciting to build.';
var Brainstorming15XX = ' is brainstorming a great new structure for the Sprouts to build.';
var NewCompletedStructureXX = 'Completed New Structure!';
var FirstSproutStructureXX = 'You have just completed the Sprout shelter! Now you can click and drag Sprouts into the shelter to sleep!';
var AllStructuresUsefulXX = 'Every structure built by the Sprouts has a useful effect on their daily lives!';
var Zooing1XX = ' loves to watch the animals.';
var Zooing2XX = ' is enthralled by the incredible Zoo animals.';
var Zooing3XX = ' loves that there are now three beautiful animals to admire.';
var Zooing4XX = ' could watch the animals all day long!';
var Zooing5XX = ' thinks the animals make funny noises.';
var Zooing6XX = ' wonders if the animals think like Sprouts do.';
var Zooing7XX = ' would like to keep the Spotted Duckbill as a pet.';
var Zooing8XX = ' thinks the animals have brought a lot of joy to the Sprouts.';
var Zooing9XX = ' loves watching the animals eat.';
var Zooing10XX = ' thinks the animals are kinda funny looking.';
var NoAnimals1XX = ' understands what a Zoo is, but doesn\'t see any animals in there.';
var NoAnimals2XX = ' wonders where all the animals are?';
var NoAnimals3XX = ' thinks there must be animals around the cliffs somewhere.';
var OneAnimal1XX = ' is a little bored of just watching one animal.';
var OneAnimal2XX = ' thinks the Zoo needs more animals.';
var OneAnimal3XX = ' knows there has to be more animals around that could go in the Zoo.';
var TwoAnimals1XX = ' really enjoys the Zoo, but thinks there is room for one more animal.';
var TwoAnimals2XX = ' likes watching the two animals eat.';
var TwoAnimals3XX = ' thinks there is still room for another animal in the Zoo.';
var LightningStrike1XX = ' is running in terror!';
var LightningStrike2XX = ' fears your might!';
var LightningStrike3XX = ' is highly motivated to being a better Sprout!';
var LightningStrike4XX = ' wonders what the Sprouts have done to upset the Great One.';
var LightningStrike5XX = ' is absolutely petrified!';
var LightningStrike6XX = ' has no idea what just happened but hopes it doesn\'t happen again!';
var LightningStrike7XX = ' is scared but not surprised by your power!';
var LightningStrike8XX = ' is running in awe of your terrifying lightning!';
var LightningStrike9XX = ' fears the sound of the lightning but still thinks it\'s beautiful';
var LightningStrike10XX = ' is startled by the loud crack of lightning!';
var LightningStrike11XX = ' is in awe of the Great One\'s power!';
var LightningStrike12XX = ' runs in fear of being struck by the mighty lightning!';
var LightningStrike13XX = ' is seriously panicking!';
var LightningStrike14XX = ' flees in pure terror!';
var LightningStrike15XX = ' is shocked at your awesome power!';
var LightningStrike16XX = ' really hopes that doesn\'t happen again!';
var LightningStrike17XX = ' scampers in absolute horror of the lightning!';
var LightningStrike18XX = ' now truly believes in the Great One!';
var LightningStrike19XX = ' is racing around not sure what to do!';
var LightningStrike20XX = ' is in disbelief at your awesome power!';
var LightningStrike21XX = ' is more motivated than ever to be a good Sprout!';
var LightningStrike22XX = ' is running away as fast as possible!';
var LightningStrike23XX = ' is worried this could be the end!';
var LightningStrike24XX = ' is terrified by the power of the lightning!';
var LightningStrike25XX = ' is running away in absolute terror!';
var Earthquake1XX = ' is running in terror!';
var Earthquake2XX = ' fears your might!';
var Earthquake3XX = ' is highly motivated to being a better Sprout!';
var Earthquake4XX = ' wonders what the Sprouts have done to upset the Great One.';
var Earthquake5XX = ' is absolutely petrified!';
var Earthquake6XX = ' has no idea what just happened but hopes it doesn\'t happen again!';
var EarthquakeXX = ' is scared but not surprised by your power!';
var Earthquake8XX = ' is running in awe of your sheer power!';
var Earthquake9XX = ' fears the shaking ground!';
var Earthquake10XX = ' thinks this could be the end!';
var Earthquake11XX = ' is in awe of the Great One\'s power!';
var Earthquake12XX = ' runs in fear the shaking ground!';
var Earthquake13XX = ' is seriously panicking!';
var Earthquake4XX = ' flees in pure terror!';
var Earthquake15XX = ' is shocked at your awesome power!';
var Earthquake16XX = ' really hopes that doesn\'t happen again!';
var Earthquake17XX = ' scampers in absolute horror!';
var Earthquake18XX = ' now truly believes in the Great One!';
var Earthquake19XX = ' is racing around not sure what to do!';
var Earthquake20XX = ' is in disbelief at your awesome power!';
var HitByLightning1XX = ' feels crispy!';
var HitByLightning2XX = ' feels a bit woozy and isn\'t sure what just happened!';
var HitByLightning3XX = ' smells something burning...';
var HitByLightning4XX = ' only remembers a bright yellow light, then waking up!';
var HitByLightning5XX = ' feels a little burnt!';
var Babble1XX = ' goo goo, gaa.';
var Babble2XX = ' laa goo, gaa.';
var Babble3XX = ' goo maa, lalaa.';
var Babble4XX = ' buh, bee, laa.';
var Babble5XX = ' la goo aboo.';
var Babble6XX = ' laa laa, laa maa, maa.';
var Babble7XX = ' muuh, ma, da, da.';
var Babble8XX = ' goo goo, daa, maa.';
var Babble9XX = ' laa lou, gaa.';
var Babble10XX = ' googa ma, gaa.';
var WrongWithEgg1XX = ' can\'t shake the feeling there is something wrong with the Egg.';
var WrongWithEgg2XX = ' feels an odd change in the air.';
var WrongWithEgg3XX = ' is having a very strange feeling about the Egg.';
var WrongWithEgg4XX = ' is pondering the condition of the Egg.';
var WrongWithEgg5XX = ' is worried about the Egg.';
var MFlowerTitleXX = 'Magic Flower';
var MFlowerDescriptionXX = 'Completely fills and wakes up any Sprout! A tasty, energentic snack!';
var FireTitleXX = 'Fire';
var FireDescriptionXX = 'The flames burn hot and high! Wonder if it can be put out?';
var Burning1XX = ' is really hot and frightened of the fires power!';
var Burning2XX = ' feels scared and a little crispy!';
var Burning3XX = ' is terrified of the amount of heat the fire puts off!';
var Burning4XX = ' feels a bit crispy and scared!';
var Burning5XX = ' is sweating and completely terrified of the fire!';
var Burning6XX = ' absolutely does not like being cooked!';
var Burning7XX = ' does not like being burned!';
var TWantsToGiveOfferingXX = ' is giving you an offering! Click to receive the offering!\n Offerings give you \'Karma Points\' which are used to unlock more great Spells!';
var TWantsToGiveOffering2XX = ' is giving you an offering! Click to receive the offering!';
var CreditsXX = 'Credits';
var Credits01XX = '<font color=\'#00FFFF\' size=\'40\'>Reflexive Development Team</font>\n<font color=\'#ffcc00\' size=\'32\'>Producer</font>\nZach Young\n<font color=\'#ffcc00\' size=\'32\'>Art Director</font>\nJeff McAteer\n<font color=\'#ffcc00\' size=\'32\'>Programming</font>\nZach Young\n<font color=\'#ffcc00\' size=\'32\'>Game Design</font>\nZach Youn\n<font color=\'#ffcc00\' size=\'32\'>Sprout Voices, Sounds and Music</font>\nZach Young\n<font color=\'#ffcc00\' size=\'32\'>Executive Producer</font>\nErnie Ramirez\n<font color=\'#ffcc00\' size=\'32\'>Play Testers</font>\nTerri Hardie\nBrian Fisher\nKevin Pope\nIsaac Shepard\nIon Hardie\nErnie Ramirez\nSharon Hanlon\nCCV\nandre67\nMarianne Brown (wolfsoul7)\nGlory Bee\nJames Simmons aka JimmyNexus\nbetonboop2003\nSuzyQ5294\nBig Mama\n~BOOGER~\nAlf (Ian Williams)\nallecnarf\nALFIE\nEarl Rich\nPinky\nJessica Muchewicz\nRachel Robinson\nKaren Sheppard\nDiane \'Pebbles\' Spray\nRoma McPherson\nniets0\nTero Alatalo\nPetah\nPretty.In.Punk\nJazz\nkerry davies\nRosieBritBrat\nvanadium_x_23\nStacy Weathington\nKimber A Smith\nBob Arrington\nJoy Ferrell\naperratt\nAbbe Maron\nHelena McQueen\nPatricia Honts\nAllgold99\nAmanda Lukow\nDevin Kammerlocher\nRenae Horne\nAshreykurt\nBruno A. Pires\nAne Theil Christiansen\n\n------\n<font color=\'#ffffff\' size=\'26\'>Sprouts Adventure™ and associated trademarks and trade dress are owned by Reflexive Entertainment Inc. © 2009 Reflexive Entertainment, Inc. All Rights Reserved. \n\nThanks for playing Sprouts Adventure!</font>';
var localnloaded = '1';
var myOperatingSystem = (System.capabilities.os.substr(0, 3)).toLowerCase();
var dataPath = '';
var gamePath = mdm.Application.path;
var GameStats = 'noSaveDataPresent!';
var testVar = 0;
var txtLoadedNow = '0';
var cheat1 = false;
var fromNotYouScreen = false;
var brandNewPlayer = false;
var mCreatePlayer = false;
var AchievementAwardedName = '';
var AchievementAwardedDescription = '';
var playerProfile = 'Player01';
var Player01info = false;
var Player02info = false;
var Player03info = false;
var Player04info = false;
var Player05info = false;
var currentPlayerName = 'none';
var Volume = 80;
var soundVolume = 100;
var customCursor = 'true';
var gameToolTips = 'true';
var FScreen = 'true';
var gameSpeed = 1;
var playedObservatoryMovie = 0;
var completedFinalBalloon = 0;
var flowerType = 1;
var karmaPoints = 5;
var totalKarmaPoints = 5;
var timePlayed = 0;
var wildFlowersPicked = 0;
var weeds = 0;
var cameraX = 0;
var cameraY = 0;
var spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var zooAnimalsArray = [0, 0, 0];
var balloonTimeAway = 0;
var mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var spellChargeArrayTemp = '';
var zooAnimalsArrayTemp = '';
var balloonTimeAwayTemp = '';
var mealsDiscoveredTemp = '';
var sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout1Temp = '';
var sprout2Temp = '';
var sprout3Temp = '';
var sprout4Temp = '';
var sprout5Temp = '';
var sprout6Temp = '';
var sprout7Temp = '';
var sprout8Temp = '';
var sprout9Temp = '';
var sprout10Temp = '';
var sprout11Temp = '';
var sprout12Temp = '';
var bs = ['garden01', 'shelter1', 'bridge', 'school', 'wishingWell', 'toolShop', 'windMill', 'shelter2', 'zoo', 'pier', 'balloon', 'observatory'];
var shelter1 = [0, 0];
var shelter1Temp = '';
var shelter2 = [0, 0];
var shelter2Temp = '';
var shelter3 = [0, 0];
var shelter3Temp = '';
var garden01 = [1, 0];
var garden01Temp = '';
var bridge = [0, 0];
var bridgeTemp = '';
var windMill = [0, 0];
var windMillTemp = '';
var school = [0, 0];
var schoolTemp = '';
var pier = [0, 0];
var pierTemp = '';
var wishingWell = [0, 0];
var wishingWellTemp = '';
var toolShop = [0, 0];
var toolShopTemp = '';
var zoo = [0, 0];
var zooTemp = '';
var balloon = [0, 0];
var balloonTemp = '';
var observatory = [0, 0];
var observatoryTemp = '';
var egg = [0, 0];
var eggTemp = '';
var fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var fishingDiscoveriesTemp = '';
var achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var achievementsTemp = '';
var butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var butterfliesTemp = '';
var stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var stonesTemp = '';
var redFlowers = 0;
var greenFlowers = 0;
var blueFlowers = 0;
var kite2 = 0;
var kite3 = 0;
var tutorialOn = 0;
var mushroomBall = [0, 0];
var mushroomBallTemp = '';
var mushroomBall1 = [0, 0];
var mushroomBall2 = [0, 0];
var sproutlingMade = [0, 0];
var magicFlowerMade = [0, 0];
var giftMade = [0, 0];
var fallingStarMade = [0, 0];
var mushroomBall1Temp = '';
var mushroomBall2Temp = '';
var sproutlingMadeTemp = '';
var magicFlowerMadeTemp = '';
var giftMadeTemp = '';
var fallingStarMadeTemp = '';
var p1name = 'none';
var p1Volume = 75;
var p1soundVolume = 100;
var p1customCursor = 'true';
var p1gameToolTips = 'true';
var p1FScreen = 'true';
var p1gameSpeed = 1;
var p1flowerType = 1;
var p1cameraX = 0;
var p1cameraY = 0;
var p1playedObservatoryMovie = 0;
var p1completedFinalBalloon = 0;
var p1spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var p1spellChargeArrayTemp = '';
var p1zooAnimalsArray = [0, 0, 0];
var p1zooAnimalsArrayTemp = '';
var p1balloonTimeAway = 0;
var p1mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1mealsDiscoveredTemp = '';
var p1sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout1Temp = '';
var p1sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout2Temp = '';
var p1sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout3Temp = '';
var p1sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout4Temp = '';
var p1sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout5Temp = '';
var p1sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout6Temp = '';
var p1sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout7Temp = '';
var p1sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 200, '', 0, 1];
var p1sprout8Temp = '';
var p1sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout9Temp = '';
var p1sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout10Temp = '';
var p1sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout11Temp = '';
var p1sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout12Temp = '';
var p1karmaPoints = 5;
var p1totalKarmaPoints = 5;
var p1shelter1 = [0, 0];
var p1shelter1Temp = '';
var p1shelter2 = [0, 0];
var p1shelter2Temp = '';
var p1shelter3 = [0, 0];
var p1shelter3Temp = '';
var p1garden01 = [1, 0];
var p1garden01Temp = '';
var p1bridge = [0, 0];
var p1bridgeTemp = '';
var p1windMill = [0, 0];
var p1windMillTemp = '';
var p1school = [0, 0];
var p1schoolTemp = '';
var p1pier = [0, 0];
var p1pierTemp = '';
var p1wishingWell = [0, 0];
var p1wishingWellTemp = '';
var p1toolShop = [0, 0];
var p1toolShopTemp = '';
var p1zoo = [0, 0];
var p1zooTemp = '';
var p1balloon = [0, 0];
var p1balloonTemp = '';
var p1observatory = [0, 0];
var p1observatoryTemp = '';
var p1egg = [0, 0];
var p1eggTemp = '';
var p1fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1fishingDiscoveriesTemp = '';
var p1wildFlowersPicked = 0;
var p1weeds = 0;
var p1timePlayed = 0;
var p1achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1achievementsTemp = '';
var p1butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1butterfliesTemp = '';
var p1stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1stonesTemp = '';
var p1redFlowers = 0;
var p1greenFlowers = 0;
var p1blueFlowers = 0;
var p1kite2 = 0;
var p1kite3 = 0;
var p1tutorialOn = 0;
var p1mushroomBall = [0, 0];
var p1mushroomBallTemp = '';
var p1mushroomBall1 = [0, 0];
var p1mushroomBall2 = [0, 0];
var p1sproutlingMade = [0, 0];
var p1magicFlowerMade = [0, 0];
var p1giftMade = [0, 0];
var p1fallingStarMade = [0, 0];
var p1mushroomBall1Temp = '';
var p1mushroomBall2Temp = '';
var p1sproutlingMadeTemp = '';
var p1magicFlowerMadeTemp = '';
var p1giftMadeTemp = '';
var p1fallingStarMadeTemp = '';
var p2name = 'none';
var p2Volume = 75;
var p2soundVolume = 100;
var p2customCursor = 'true';
var p2gameToolTips = 'true';
var p2FScreen = 'true';
var p2gameSpeed = 1;
var p2flowerType = 1;
var p2cameraX = 0;
var p2cameraY = 0;
var p2playedObservatoryMovie = 0;
var p2completedFinalBalloon = 0;
var p2spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var p2spellChargeArrayTemp = '';
var p2zooAnimalsArray = [0, 0, 0];
var p2zooAnimalsArrayTemp = '';
var p2balloonTimeAway = 0;
var p2mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p2mealsDiscoveredTemp = '';
var p2sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout1Temp = '';
var p2sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout2Temp = '';
var p2sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout3Temp = '';
var p2sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout4Temp = '';
var p2sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout5Temp = '';
var p2sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout6Temp = '';
var p2sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout7Temp = '';
var p2sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout8Temp = '';
var p2sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout9Temp = '';
var p2sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout10Temp = '';
var p2sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, 0, 1];
var p2sprout11Temp = '';
var p2sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p2sprout12Temp = '';
var p2karmaPoints = 5;
var p2totalKarmaPoints = 5;
var p2shelter1 = [0, 0];
var p2shelter1Temp = '';
var p2shelter2 = [0, 0];
var p2shelter2Temp = '';
var p2shelter3 = [0, 0];
var p2shelter3Temp = '';
var p2garden01 = [1, 0];
var p2garden01Temp = '';
var p2bridge = [0, 0];
var p2bridgeTemp = '';
var p2windMill = [0, 0];
var p2windMillTemp = '';
var p2school = [0, 0];
var p2schoolTemp = '';
var p2pier = [0, 0];
var p2pierTemp = '';
var p2wishingWell = [0, 0];
var p2wishingWellTemp = '';
var p2toolShop = [0, 0];
var p2toolShopTemp = '';
var p2zoo = [0, 0];
var p2zooTemp = '';
var p2balloon = [0, 0];
var p2balloonTemp = '';
var p2observatory = [0, 0];
var p2observatoryTemp = '';
var p2egg = [0, 0];
var p2eggTemp = '';
var p2fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p2fishingDiscoveriesTemp = '';
var p2wildFlowersPicked = 0;
var p2weeds = 0;
var p2timePlayed = 0;
var p2achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p2achievementsTemp = '';
var p2butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p2butterfliesTemp = '';
var p2stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p2stonesTemp = '';
var p2redFlowers = 0;
var p2greenFlowers = 0;
var p2blueFlowers = 0;
var p2kite2 = 0;
var p2kite3 = 0;
var p2tutorialOn = 0;
var p2mushroomBall = [0, 0];
var p2mushroomBallTemp = '';
var p2mushroomBall1 = [0, 0];
var p2mushroomBall2 = [0, 0];
var p2sproutlingMade = [0, 0];
var p2magicFlowerMade = [0, 0];
var p2giftMade = [0, 0];
var p2fallingStarMade = [0, 0];
var p2mushroomBall1Temp = '';
var p2mushroomBall2Temp = '';
var p2sproutlingMadeTemp = '';
var p2magicFlowerMadeTemp = '';
var p2giftMadeTemp = '';
var p2fallingStarMadeTemp = '';
var p3name = 'none';
var p3Volume = 75;
var p3soundVolume = 100;
var p3customCursor = 'true';
var p3gameToolTips = 'true';
var p3FScreen = 'true';
var p3gameSpeed = 1;
var p3flowerType = 1;
var p3cameraX = 0;
var p3cameraY = 0;
var p3playedObservatoryMovie = 0;
var p3completedFinalBalloon = 0;
var p3spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var p3spellChargeArrayTemp = '';
var p3zooAnimalsArray = [0, 0, 0];
var p3zooAnimalsArrayTemp = '';
var p3balloonTimeAway = 0;
var p3mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p3mealsDiscoveredTemp = '';
var p3sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout1Temp = '';
var p3sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout2Temp = '';
var p3sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout3Temp = '';
var p3sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout4Temp = '';
var p3sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout5Temp = '';
var p3sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout6Temp = '';
var p3sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout7Temp = '';
var p3sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout8Temp = '';
var p3sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout9Temp = '';
var p3sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout10Temp = '';
var p3sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout11Temp = '';
var p3sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p3sprout12Temp = '';
var p3karmaPoints = 5;
var p3totalKarmaPoints = 5;
var p3shelter1 = [0, 0];
var p3shelter1Temp = '';
var p3shelter2 = [0, 0];
var p3shelter2Temp = '';
var p3shelter3 = [0, 0];
var p3shelter3Temp = '';
var p3garden01 = [1, 0];
var p3garden01Temp = '';
var p3bridge = [0, 0];
var p3bridgeTemp = '';
var p3windMill = [0, 0];
var p3windMillTemp = '';
var p3school = [0, 0];
var p3schoolTemp = '';
var p3pier = [0, 0];
var p3pierTemp = '';
var p3wishingWell = [0, 0];
var p3wishingWellTemp = '';
var p3toolShop = [0, 0];
var p3toolShopTemp = '';
var p3zoo = [0, 0];
var p3zooTemp = '';
var p3balloon = [0, 0];
var p3balloonTemp = '';
var p3observatory = [0, 0];
var p3observatoryTemp = '';
var p3egg = [0, 0];
var p3eggTemp = '';
var p3fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p3fishingDiscoveriesTemp = '';
var p3wildFlowersPicked = 0;
var p3weeds = 0;
var p3timePlayed = 0;
var p3achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p3achievementsTemp = '';
var p3butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p3butterfliesTemp = '';
var p3stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p3stonesTemp = '';
var p3redFlowers = 0;
var p3greenFlowers = 0;
var p3blueFlowers = 0;
var p3kite2 = 0;
var p3kite3 = 0;
var p3tutorialOn = 0;
var p3mushroomBall = [0, 0];
var p3mushroomBallTemp = '';
var p3mushroomBall1 = [0, 0];
var p3mushroomBall2 = [0, 0];
var p3sproutlingMade = [0, 0];
var p3magicFlowerMade = [0, 0];
var p3giftMade = [0, 0];
var p3fallingStarMade = [0, 0];
var p3mushroomBall1Temp = '';
var p3mushroomBall2Temp = '';
var p3sproutlingMadeTemp = '';
var p3magicFlowerMadeTemp = '';
var p3giftMadeTemp = '';
var p3fallingStarMadeTemp = '';
var p4name = 'none';
var p4Volume = 75;
var p4soundVolume = 100;
var p4customCursor = 'true';
var p4gameToolTips = 'true';
var p4FScreen = 'true';
var p4gameSpeed = 1;
var p4flowerType = 1;
var p4cameraX = 0;
var p4cameraY = 0;
var p4playedObservatoryMovie = 0;
var p4completedFinalBalloon = 0;
var p4spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var p4spellChargeArrayTemp = '';
var p4zooAnimalsArray = [0, 0, 0];
var p4zooAnimalsArrayTemp = '';
var p4balloonTimeAway = 0;
var p4mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p4mealsDiscoveredTemp = '';
var p4sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout1Temp = '';
var p4sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout2Temp = '';
var p4sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout3Temp = '';
var p4sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout4Temp = '';
var p4sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout5Temp = '';
var p4sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout6Temp = '';
var p4sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout7Temp = '';
var p4sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout8Temp = '';
var p4sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout9Temp = '';
var p4sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout10Temp = '';
var p4sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout11Temp = '';
var p4sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p4sprout12Temp = '';
var p4karmaPoints = 5;
var p4totalKarmaPoints = 5;
var p4shelter1 = [0, 0];
var p4shelter1Temp = '';
var p4shelter2 = [0, 0];
var p4shelter2Temp = '';
var p4shelter3 = [0, 0];
var p4shelter3Temp = '';
var p4garden01 = [1, 0];
var p4garden01Temp = '';
var p4bridge = [0, 0];
var p4bridgeTemp = '';
var p4windMill = [0, 0];
var p4windMillTemp = '';
var p4school = [0, 0];
var p4schoolTemp = '';
var p4pier = [0, 0];
var p4pierTemp = '';
var p4wishingWell = [0, 0];
var p4wishingWellTemp = '';
var p4toolShop = [0, 0];
var p4toolShopTemp = '';
var p4zoo = [0, 0];
var p4zooTemp = '';
var p4balloon = [0, 0];
var p4balloonTemp = '';
var p4observatory = [0, 0];
var p4observatoryTemp = '';
var p4egg = [0, 0];
var p4eggTemp = '';
var p4fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p4fishingDiscoveriesTemp = '';
var p4wildFlowersPicked = 0;
var p4weeds = 0;
var p4timePlayed = 0;
var p4achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p4achievementsTemp = '';
var p4butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p4butterfliesTemp = '';
var p4stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p4stonesTemp = '';
var p4redFlowers = 0;
var p4greenFlowers = 0;
var p4blueFlowers = 0;
var p4kite2 = 0;
var p4kite3 = 0;
var p4tutorialOn = 0;
var p4mushroomBall = [0, 0];
var p4mushroomBallTemp = '';
var p4mushroomBall1 = [0, 0];
var p4mushroomBall2 = [0, 0];
var p4sproutlingMade = [0, 0];
var p4magicFlowerMade = [0, 0];
var p4giftMade = [0, 0];
var p4fallingStarMade = [0, 0];
var p4mushroomBall1Temp = '';
var p4mushroomBall2Temp = '';
var p4sproutlingMadeTemp = '';
var p4magicFlowerMadeTemp = '';
var p4giftMadeTemp = '';
var p4fallingStarMadeTemp = '';
var p5name = 'none';
var p5Volume = 75;
var p5soundVolume = 100;
var p5customCursor = 'true';
var p5gameToolTips = 'true';
var p5FScreen = 'true';
var p5gameSpeed = 1;
var p5flowerType = 1;
var p5cameraX = 0;
var p5cameraY = 0;
var p5playedObservatoryMovie = 0;
var p5completedFinalBalloon = 0;
var p5spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var p5spellChargeArrayTemp = '';
var p5zooAnimalsArray = [0, 0, 0];
var p5zooAnimalsArrayTemp = '';
var p5balloonTimeAway = 0;
var p5mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p5mealsDiscoveredTemp = '';
var p5sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout1Temp = '';
var p5sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout2Temp = '';
var p5sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout3Temp = '';
var p5sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout4Temp = '';
var p5sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout5Temp = '';
var p5sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout6Temp = '';
var p5sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout7Temp = '';
var p5sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout8Temp = '';
var p5sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout9Temp = '';
var p5sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout10Temp = '';
var p5sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout11Temp = '';
var p5sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p5sprout12Temp = '';
var p5karmaPoints = 5;
var p5totalKarmaPoints = 5;
var p5shelter1 = [0, 0];
var p5shelter1Temp = '';
var p5shelter2 = [0, 0];
var p5shelter2Temp = '';
var p5shelter3 = [0, 0];
var p5shelter3Temp = '';
var p5garden01 = [1, 0];
var p5garden01Temp = '';
var p5bridge = [0, 0];
var p5bridgeTemp = '';
var p5windMill = [0, 0];
var p5windMillTemp = '';
var p5school = [0, 0];
var p5schoolTemp = '';
var p5pier = [0, 0];
var p5pierTemp = '';
var p5wishingWell = [0, 0];
var p5wishingWellTemp = '';
var p5toolShop = [0, 0];
var p5toolShopTemp = '';
var p5zoo = [0, 0];
var p5zooTemp = '';
var p5balloon = [0, 0];
var p5balloonTemp = '';
var p5observatory = [0, 0];
var p5observatoryTemp = '';
var p5egg = [0, 0];
var p5eggTemp = '';
var p5mushroomBall = [0, 0];
var p5mushroomBallTemp = '';
var p5kites = [0, 0];
var p5kitesTemp = '';
var p5fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p5fishingDiscoveriesTemp = '';
var p5wildFlowersPicked = 0;
var p5weeds = 0;
var p5timePlayed = 0;
var p5achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p5achievementsTemp = '';
var p5butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p5butterfliesTemp = '';
var p5stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p5stonesTemp = '';
var p5redFlowers = 0;
var p5greenFlowers = 0;
var p5blueFlowers = 0;
var p5kite2 = 0;
var p5kite3 = 0;
var p5tutorialOn = 0;
var p5mushroomBall = [0, 0];
var p5mushroomBallTemp = '';
var p5mushroomBall1 = [0, 0];
var p5mushroomBall2 = [0, 0];
var p5sproutlingMade = [0, 0];
var p5magicFlowerMade = [0, 0];
var p5giftMade = [0, 0];
var p5fallingStarMade = [0, 0];
var p5mushroomBall1Temp = '';
var p5mushroomBall2Temp = '';
var p5sproutlingMadeTemp = '';
var p5magicFlowerMadeTemp = '';
var p5giftMadeTemp = '';
var p5fallingStarMadeTemp = '';
var fNames = ['Rose', 'Lilly', 'Shaden', 'Seeda', 'Orchid', 'Maple', 'Floria', 'Starburst', 'Sunflower', 'Daisy', 'Petuna', 'Rosa', 'Daffydill', 'Tulip', 'Blossom', 'Moonlight', 'Summer', 'Spring', 'Iris', 'Ivy'];
var mNames = ['Bud', 'Cob', 'Stem', 'Leaf', 'Balm', 'Basil', 'Fern', 'Hawthorn', 'Larch', 'Lichen', 'Periwinkle', 'Pine', 'Rue', 'Saffron', 'Poppy', 'Cedar', 'Hazel', 'Fir', 'Chestnut', 'Cypress'];
var fColors = [-180, -124, -35, 0, 95, 136];
var mColors = [180, 90, 26, 0, 66, 122];
var femaleColor = -95;
_root.attachMovie('mousecursor', 'mousecursor', 31700);
_root.mousecursor._x = 400;
_root.mousecursor._x = 300;
var outOfBounds = false;
mousecursor.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
var mouseListener = new Object();
mouseListener.onMouseUp = function () {
_root.mousecursor.hand.gotoAndStop(1);
if (_root.tutorialOn == 2) {
_root.tutorialScript(2);
}
if (_root.movingSprout == true) {
if (_root.outOfBounds == true) {
_root.holdingSprout.hover.alphaTo(0, 0.2, 'linear');
_root.holdingSprout.col.onRollOut();
}
}
_root.game.stopDrag();
_root.draggingScreen = false;
if (_root.GameTime == true) {
_root.cameraX = _root.game._x;
_root.cameraY = _root.game._y;
}
};
mouseListener.onMouseDown = function () {
_root.mousecursor.hand.gotoAndStop(2);
if (_root.movingSprout == false && _root.worldView == false && _root.GameTime == true) {
if (_root.mousecursor.fLabel == 'lightning' && _root.mousecursor._y < 500) {
if (_root.playedObservatoryMovie == 1 && _root.mousecursor.col.hitTest(_root.game.back_egg)) {
_root.SaveGame();
shift4 = function () {
_root.goToScreen('M_EndCredits');
};
shift3 = function () {
_root.game.balloon._alpha = 0;
_root.completedFinalBalloon = 1;
_root.saveFromGame = false;
_root.SaveGame();
_root.faderWhite.removeMovieClip();
var theBasketX = _root.game.BG.balloonDestination2._x;
var theBasketY = _root.game.BG.balloonDestination2._y + 300;
_root.game.basket.slideTo(theBasketX, theBasketY, 29, 'linear', 0, shift4);
var n = _root.game;
var slideX = -Number(_root.game.BG.balloonDestination2._x - 400);
var slideY = -Number(_root.game.BG.balloonDestination2._y - 300);
if (slideX < -795) {
slideX = -795;
}
if (slideX > 0) {
slideX = 0;
}
if (slideY < -1390) {
slideY = -1390;
}
if (slideY > 0) {
slideY = 0;
}
if (_root.worldView == false) {
n.slideTo(slideX, slideY, 27, 'linear', 1.5);
}
_root.playSound('S_EndGameNarrator');
};
shift2 = function () {
_root.smokescreenbot.alphaTo(0, 15, 'linear', 8, shift3);
};
shift = function () {
_root.game.attachMovie('basket', 'basket', 3215);
_root.game.basket._x = _root.game.BG.begg._x;
_root.game.basket._y = _root.game.BG.begg._y + 100;
_root.zSortArray.push(_root.game.basket);
i = 1;
while (i < 13) {
_root.game['SS' + i].stopTween();
_root.game['SS' + i].col.stopTween();
_root.game['SS' + i].ani.stopTween();
_root.game['SS' + i].needBubble._alpha = 0;
if (_root.game['SS' + i].sAge < _root.workAge) {
_root.game['SS' + i].ani._y -= Number(200 + Number(100 * Number(Number(100 - _root.game['SS' + i]._xscale / 100))));
} else {
_root.game['SS' + i].ani._y -= 200;
}
delete _root.game['SS' + i].onEnterFrame;
_root.pointsOfInterest[_root.game['SS' + i].pointOfInterest].stopActivity(_root.game['SS' + i]);
_root.game['SS' + i]._x = _root.game.BG['eggride' + i]._x;
_root.game['SS' + i]._y = _root.game.BG['eggride' + i]._y;
_root.game['SS' + i].sha._alpha = 0;
_root.game['SS' + i].offx = _root.game['SS' + i]._x - _root.game.basket._x;
_root.game['SS' + i].offy = _root.game['SS' + i]._y - _root.game.basket._y;
_root.game['SS' + i].ani.gotoAndStop('ballooning');
_root.game['SS' + i].pointOfInterest = 0;
_root.game['SS' + i].sTask = 'none';
_root.game['SS' + i].onEnterFrame = function () {
this._x = _root.game.basket._x + this.offx;
this._y = _root.game.basket._y + this.offy;
};
++i;
}
_root.HUD.removeMovieClip();
_root.playSound('S_EggDestroyed');
_root.game.back_egg.gotoAndStop(3);
_root.game.balloon._alpha = 0;
_root.attachMovie('smokeScreen', 'smokescreenbot', 3500);
_root.smokescreenbot._x = 400;
_root.smokescreenbot._y = 300;
_root.attachMovie('smokeScreen', 'smokescreentop', 3501);
_root.smokescreentop._x = 400;
_root.smokescreentop._y = 300;
_root.smokescreentop._rotation = 180;
_root.smokescreentop.alphaTo(0, 20, 'linear', 0, shift2);
_root.faderWhite.alphaTo(0, 20, 'linear');
};
_root.GameTime = false;
_root.attachMovie('faderWhite', 'faderWhite', 29531);
_root.faderWhite._x = 400;
_root.faderWhite._y = 300;
_root.faderWhite._alpha = 0;
_root.faderWhite.alphaTo(100, 0.35, 'linear', 0, shift);
_root.lightningOn = true;
_root.HUD.lightningButton.updateButton(1);
_root.effectsLayer.attachMovie('lightningShell', 'lightning', 6550);
_root.effectsLayer.lightning._x = _root.mousecursor._x - _root.game._x;
_root.effectsLayer.lightning._y = _root.mousecursor._y - _root.game._y;
_root.mousecursor.gotoAndStop(1);
} else {
_root.lightningOn = true;
_root.HUD.lightningButton.updateButton(1);
_root.effectsLayer.attachMovie('lightningShell', 'lightning', 6550);
_root.effectsLayer.lightning._x = _root.mousecursor._x - _root.game._x;
_root.effectsLayer.lightning._y = _root.mousecursor._y - _root.game._y;
_root.mousecursor.gotoAndStop(1);
_root.game.attachMovie('fireBaseShell', 'lfire', 6549);
_root.game.lfire._x = _root.mousecursor._x - _root.game._x;
_root.game.lfire._y = _root.mousecursor._y - _root.game._y;
_root.game.lfire.pDiscovered = 1;
_root.game.lfire.pComplete = 100;
_root.zSortArray.push(_root.game.lfire);
_root.pointsOfInterest.push(_root.game.lfire);
checkAchievement = function () {
if (_root.achievements[0] == 0) {
_root.achievements[0] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 0;
}
};
givemot = function () {
i = 1;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].sTask != 'ballooning' && _root.game['SS' + i].sTask != 'hanggliding' && _root.game['SS' + i].sTask != 'barrelride') {
_root.bubbleMaker(_root.game['SS' + i].sNum, 20, 'motivation');
}
++i;
}
};
stopl = function () {
_root.lightningOn = false;
_root.mousecursor.alphaTo(100, 1, 'linear', 0, givemot);
i = 1;
while (i <= _root.sproutArray.length) {
_root.playSproutQuip('shout');
++i;
}
};
_root.mousecursor.alphaTo(100, 1, 'linear', 0, stopl);
_root.game.lfire.alphaTo(100, 4, 'linear', 0, checkAchievement);
i = 1;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].sTask != 'ballooning' && _root.game['SS' + i].sTask != 'hanggliding' && _root.game['SS' + i].sTask != 'barrelride') {
_root.pointsOfInterest[_root.game['SS' + i].pointOfInterest].stopActivity(_root.game['SS' + i]);
_root.game['SS' + i].col.shouldWander('running', 10 + random(3));
_root.game['SS' + i].col.setDesc('LightningStrike');
}
++i;
}
}
} else {
if (_root.mousecursor.fLabel == 'earthquake' && _root.mousecursor._y < 500) {
_root.mousecursor.gotoAndStop(1);
_root.HUD.earthquakeButton.updateButton(1);
_root.playSound('S_rumble');
cdone3 = function () {
i = 1;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].sTask != 'ballooning' && _root.game['SS' + i].sTask != 'hanggliding' && _root.game['SS' + i].sTask != 'barrelride') {
if (i == 1) {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'awake');
} else {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'awake', 1);
}
}
++i;
}
};
cdone2 = function () {
_root.mousecursor.alphaTo(100, 1, 'linear', 0, cdone3);
i = 1;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].sTask != 'ballooning' && _root.game['SS' + i].sTask != 'hanggliding' && _root.game['SS' + i].sTask != 'barrelride') {
if (i == 1) {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'curiosity');
} else {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'curiosity', 1);
}
}
++i;
}
};
cdonea = function () {
i = 1;
while (i < _root.totalActiveSprouts + 1) {
var cs = _root.game['SS' + i];
if (cs.sTask != 'ballooning' || cs.sTask != 'hanggliding' || cs.sTask != 'barrelride') {
if (i == 1) {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'motivation');
} else {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'motivation', 1);
}
}
++i;
}
_root.mousecursor.alphaTo(100, 1, 'linear', 0, cdone2);
};
cdone = function () {
i = 1;
while (i < _root.totalActiveSprouts + 1) {
var cs = _root.game['SS' + i];
if (cs.sTask != 'ballooning' || cs.sTask != 'hanggliding' || cs.sTask != 'barrelride') {
_root.playSproutQuip('shout');
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(cs);
_root.game['SS' + i].col.setDesc('Earthquake');
_root.game['SS' + i].col.shouldWander('running', 15 + random(3));
if (i == 1) {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'motivation');
} else {
_root.bubbleMaker(_root.game['SS' + i].sNum, 50, 'motivation', 1);
}
}
++i;
}
_root.mousecursor.alphaTo(100, 1, 'linear', 0, cdonea);
};
_root.mousecursor.alphaTo(50, 1.5, 'linear', 0, cdone);
mdm.Application.shake(80);
} else {
if (_root.mousecursor.fLabel == 'rainbow' && _root.mousecursor._y < 500) {
_root.HUD.rainbowButton.updateButton(1);
_root.mousecursor.gotoAndStop(1);
stage3 = function () {
i = 1;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].needBubble.fLabel == 'wants' && _root.game['SS' + i].needBubble.wants.fLabel == 'rainbow') {
_root.playSproutQuip('wishfullfilled');
_root.game['SS' + i].needBubble._alpha = 0;
_root.bubbleMaker(_root.game['SS' + i].sNum, 5, 'karma');
_root.tipBoxMaker(_root.game['SS' + i].sName + _root['GotWish' + Number(random(3) + 1) + _root.game['SS' + i].sGender + 'XX']);
}
++i;
}
_root.RES.removeMovieClip();
if (_root.achievements[6] == 0) {
_root.achievements[6] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 6;
}
cdoner2 = function () {
_root.mousecursor.alphaTo(100, 1, 'linear', 0, cdoner3);
i = 1;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].sTask != 'ballooning' && _root.game['SS' + i].sTask != 'hanggliding' && _root.game['SS' + i].sTask != 'barrelride') {
if (i == 1) {
_root.bubbleMaker(_root.game['SS' + i].sNum, 20, 'hunger');
} else {
_root.bubbleMaker(_root.game['SS' + i].sNum, 20, 'hunger', 1);
}
}
++i;
}
};
cdoner = function () {
_root.mousecursor.alphaTo(100, 1, 'linear', 0, cdoner2);
i = 1;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].sTask != 'ballooning' && _root.game['SS' + i].sTask != 'hanggliding' && _root.game['SS' + i].sTask != 'barrelride') {
if (i == 1) {
_root.bubbleMaker(_root.game['SS' + i].sNum, 20, 'curiosity');
} else {
_root.bubbleMaker(_root.game['SS' + i].sNum, 20, 'curiosity', 1);
}
}
++i;
}
};
_root.mousecursor.alphaTo(100, 1, 'linear', 0, cdoner);
i = 1;
while (i < _root.totalActiveSprouts + 1) {
var cs = _root.game['SS' + i];
if (cs.sTask != 'ballooning' || cs.sTask != 'hanggliding' || cs.sTask != 'barrelride') {
_root.game['SS' + i].col.shouldWander('walking', 0);
if (i == 1) {
_root.bubbleMaker(_root.game['SS' + i].sNum, 20, 'motivation');
} else {
_root.bubbleMaker(_root.game['SS' + i].sNum, 20, 'motivation', 1);
}
}
++i;
}
};
stage2 = function () {
_root.rainbowEffect.alphaTo(0, 1, 'easeOutQuad', 0, stage3);
};
stage1 = function () {
i = 1;
while (i < _root.totalActiveSprouts + 1) {
var cs = _root.game['SS' + i];
if (cs.sTask != 'ballooning' || cs.sTask != 'hanggliding' || cs.sTask != 'barrelride') {
_root.playSproutQuip('wow');
_root.pointsOfInterest[cs.pointOfInterest].stopActivity(_root.game['SS' + i]);
}
++i;
}
_root.rainbowEffect.alphaTo(100, 3, 'easeOutQuad', 0, stage2);
};
_root.attachMovie('rainbowEffectShell', 'rainbowEffect', 12002);
_root.rainbowEffect._alpha = 0;
_root.rainbowEffect.hx = homex;
_root.rainbowEffect.hy = homey;
_root.rainbowEffect.alphaTo(100, 1, 'easeOutQuad', 0, stage1);
} else {
if (_root.mousecursor.fLabel == 'gift' && _root.mousecursor._y < 500 && _root.mousecursor.spellTip._currentframe == 1) {
_root.HUD.giftButton.updateButton(1);
_root.effectsLayer.attachMovie('giftShell', 'giftShell', 6551);
_root.effectsLayer.giftShell._x = _root.mousecursor._x + Math.abs(_root.game._x);
_root.effectsLayer.giftShell._y = _root.mousecursor._y + Math.abs(_root.game._y);
_root.mousecursor.gotoAndStop(1);
} else {
if (_root.mousecursor.fLabel == 'magicFlower' && _root.mousecursor._y < 500 && _root.mousecursor.spellTip._currentframe == 1) {
_root.HUD.magicFlowerButton.updateButton(1);
_root.effectsLayer.attachMovie('magicFlowerShell', 'magicFlowerShell', 6552);
_root.effectsLayer.magicFlowerShell._x = _root.mousecursor._x + Math.abs(_root.game._x);
_root.effectsLayer.magicFlowerShell._y = _root.mousecursor._y + Math.abs(_root.game._y);
_root.mousecursor.gotoAndStop(1);
} else {
if (_root.mousecursor.fLabel == 'fallingStar' && _root.mousecursor._y < 500 && _root.mousecursor.spellTip._currentframe == 1) {
_root.HUD.fallingStarButton.updateButton(1);
_root.effectsLayer.attachMovie('fallingstarShell', 'fallingstarShell', 6553);
_root.effectsLayer.fallingstarShell._x = _root.mousecursor._x + Math.abs(_root.game._x);
_root.effectsLayer.fallingstarShell._y = _root.mousecursor._y + Math.abs(_root.game._y);
_root.mousecursor.gotoAndStop(1);
} else {
if (_root.mousecursor.fLabel == 'sproutling' && _root.mousecursor._y < 500 && _root.mousecursor.spellTip._currentframe == 1) {
_root.HUD.sproutlingButton.updateButton(1);
_root.effectsLayer.attachMovie('sproutlingShell', 'sproutlingShell', 6553);
_root.effectsLayer.sproutlingShell._x = _root.mousecursor._x + Math.abs(_root.game._x);
_root.effectsLayer.sproutlingShell._y = _root.mousecursor._y + Math.abs(_root.game._y);
_root.mousecursor.gotoAndStop(1);
} else {
if (_root.selectedSprout == 'none' && _root.mousecursor._y < 460) {
_root.draggingScreen = true;
_root.game.startDrag(0, 0, 0, -800, -1400);
}
}
}
}
}
}
}
}
}
};
Mouse.addListener(mouseListener);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (_root.GameTime == true) {
if (Key.isDown(81)) {
mdm.Image.ScreenCapture.toJpg(0, 0, 800, 600, _root.gamePath + 'SSS' + _root.screenNumber + '.jpg');
++_root.screenNumber;
}
if (Key.isDown(27)) {
if (_root.movingSprout == true) {
_root.holdingSprout.col.onRollOut();
_root.holdingSprout.col.onRelease();
}
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('menuShell', 'MS', 12000);
_root.MS._x = 400;
_root.MS._y = 300;
_root.GameTime = false;
}
if (Key.isDown(32)) {
if (_root.worldView == true) {
_root.WP.BMap.onPress();
} else {
_root.HUD.worldButton.onPress();
}
}
} else {
if (Key.isDown(27) && _root._currentframe == 20) {
_root.GameTime = true;
_root.MS.removeMovieClip();
}
}
};
Key.addListener(keyListener);
var garden01WF = 0;
var shelter1WF = 0;
var bridgeWF = 0;
var schoolWF = 0;
var wishingWellWF = 0;
var toolShopWF = 0;
var windMillWF = 0;
var shelter2WF = 0;
var zooWF = 0;
var pierWF = 0;
var balloonWF = 0;
var observatoryWF = 0;
var eggWF = 0;
var schoolLearning = 0;
}
frame 1 {
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;
var pv;
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);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&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);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('6a837150', this, 10301, true);
}
instance Mvol of movieClip 3 positionmarker {
onClipEvent (enterFrame) {
var today = new Date();
var currentYear = today.getFullYear();
var currentTime = today.getTime();
var targetDate = new Date(currentYear, 5, 15);
var targetTime = targetDate.getTime();
var timeLeft = targetTime - currentTime;
if (targetTime > currentTime) {
_root.Preorder = true;
} else {
_root.Preorder = false;
}
}
}
movieClip 12918 __Packages.mochi.as2.MochiAd {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiAd) {
var v1 = function () {};
mochi.as2.MochiAd = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return '3.0 as2';
};
v1.showPreGameAd = function (options) {
var DEFAULTS = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () {
this.clip.stop();
}, 'ad_finished': function () {
this.clip.play();
}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}};
options = mochi.as2.MochiAd._parseOptions(options, DEFAULTS);
if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') {
options.ad_started();
options.ad_finished();
return undefined;
}
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = mochi.as2.MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip('_mochiad_bar', 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip('_outline', 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside = bar.createEmptyMovieClip('_inside', 2);
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(w - 20, 0);
inside.lineTo(w - 20, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside._xscale = 0;
var outline = bar.createEmptyMovieClip('_outline', 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
mochi.as2.MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
chk.onEnterFrame = function () {
var _clip = this._parent._parent;
var ad_clip = this._parent._mochiad_ctr;
var elapsed = getTimer() - this.started;
var finished = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = 100 * clip_loaded / clip_total;
var ad_pcnt = 100 * elapsed / chk.ad_msec;
var _inside = this._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'hostLoadPcnt', 'pcnt': clip_pcnt});
if (clip_pcnt == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if (total > 0 || typeof total == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (elapsed > chk.ad_timeout && clip_pcnt == 100) {
options.ad_failed();
finished = true;
}
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (clip_total > 0 && clip_loaded >= clip_total && finished) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
};
v1.showClickAwayAd = function (options) {
var DEFAULTS = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_skipped': function () {}};
options = mochi.as2.MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = mochi.as2.MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
var sendHostProgress = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = getTimer() - this.started;
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if (total > 0 || typeof total == 'undefined') {
finished = true;
chk.showing = true;
chk.started = getTimer();
} else {
if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
}
if (finished) {
delete this.onEnterFrame;
}
};
};
v1.showInterLevelAd = function (options) {
var DEFAULTS = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () {
this.clip.stop();
}, 'ad_finished': function () {
this.clip.play();
}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}};
options = mochi.as2.MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = mochi.as2.MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
mochi.as2.MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = getTimer() - this.started;
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if (total > 0 || typeof total == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (finished) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
};
v1.showPreloaderAd = function (options) {
trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0');
mochi.as2.MochiAd.showPreGameAd(options);
};
v1.showTimedAd = function (options) {
trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0');
mochi.as2.MochiAd.showInterLevelAd(options);
};
v1._allowDomains = function (server) {
var hostname = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(hostname);
}
}
return hostname;
};
v1.load = function (options) {
var DEFAULTS = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'};
options = mochi.as2.MochiAd._parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = mochi.as2.MochiAd.getVersion();
var clip = options.clip;
if (!mochi.as2.MochiAd._isNetworkAvailable()) {
return null;
}
if (clip._mochiad_loaded) {
return null;
}
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip('_mochiad', depth);
var wh = mochi.as2.MochiAd._getRes(options);
options.res = wh[0] + 'x' + wh[1];
options.server += options.id;
delete options.id;
clip._mochiad_loaded = true;
if (clip._url.indexOf('http') != 0) {
trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal');
}
var lv = mc.createEmptyMovieClip('_mochiad_ctr', 1);
for (var k in options) {
lv[k] = options[k];
}
var server = lv.server;
delete lv.server;
var hostname = mochi.as2.MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var lc = new LocalConnection();
var name = ['', Math.floor((new Date()).getTime()), random(999999)].join('_');
lc.mc = mc;
lc.name = name;
lc.hostname = hostname;
lc.allowDomain = function (d) {
return true;
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lv.st = getTimer();
lv.loadMovie(server + '.swf', 'POST');
return mc;
};
v1.unload = function (clip) {
if (typeof clip == 'undefined') {
clip = _root;
}
if (clip.clip && clip.clip._mochiad) {
clip = clip.clip;
}
if (!clip._mochiad) {
return false;
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'unload'});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return true;
};
v1._isNetworkAvailable = function () {
if (System.security) {
var o = System.security;
if (o.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1._getRes = function (options) {
var b = options.clip.getBounds();
var w = 0;
var h = 0;
if (typeof options.res != 'undefined') {
var xy = options.res.split('x');
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = b.xMax - b.xMin;
h = b.yMax - b.yMin;
}
if (w == 0 || h == 0) {
w = Stage.width;
h = Stage.height;
}
return [w, h];
};
v1._parseOptions = function (options, defaults) {
var optcopy = {};
for (var k in defaults) {
optcopy[k] = defaults[k];
}
if (options) {
for (var k in options) {
optcopy[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split('&');
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split('=');
optcopy[unescape(kv[0])] = unescape(kv[1]);
++i;
}
}
if (optcopy.id == 'test') {
trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!');
}
return optcopy;
};
v1.rpc = function (clip, callbackID, arg) {
switch (arg.id) {
case 'setValue':
mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value);
break;
case 'getValue':
var val = mochi.as2.MochiAd.getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, val);
break;
case 'runMethod':
var ret = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, ret);
break;
default:
trace('[mochiads rpc] unknown rpc id: ' + arg.id);
}
};
v1.setValue = function (base, objectName, value) {
var nameArray = objectName.split('.');
var i;
i = 0;
while (i < nameArray.length - 1) {
if (base[nameArray[i]] == undefined || base[nameArray[i]] == null) {
return undefined;
}
base = base[nameArray[i]];
++i;
}
base[nameArray[i]] = value;
};
v1.getValue = function (base, objectName) {
var nameArray = objectName.split('.');
var i;
i = 0;
while (i < nameArray.length - 1) {
if (base[nameArray[i]] == undefined || base[nameArray[i]] == null) {
return undefined;
}
base = base[nameArray[i]];
++i;
}
return base[nameArray[i]];
};
v1.runMethod = function (base, methodName, argsArray) {
var nameArray = methodName.split('.');
var i;
i = 0;
while (i < nameArray.length - 1) {
if (base[nameArray[i]] == undefined || base[nameArray[i]] == null) {
return undefined;
}
base = base[nameArray[i]];
++i;
}
if (typeof base[nameArray[i]] == 'function') {
return base[nameArray[i]].apply(base, argsArray);
} else {
return undefined;
}
};
ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1);
}
#endinitclip
}
movieClip 12919 __Packages.mx.transitions.OnEnterFrameBeacon {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.OnEnterFrameBeacon) {
var v1 = function () {};
mx.transitions.OnEnterFrameBeacon = v1;
var v2 = v1.prototype;
v1.init = function () {
var gmc = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(gmc);
var mc = _root.createEmptyMovieClip('__OnEnterFrameBeacon', 9876);
mc.onEnterFrame = function () {
_global.MovieClip.broadcastMessage('onEnterFrame');
};
}
};
v1.version = '1.1.0.52';
ASSetPropFlags(mx.transitions.OnEnterFrameBeacon.prototype, null, 1);
}
#endinitclip
}
movieClip 12920 __Packages.mx.transitions.BroadcasterMX {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.BroadcasterMX) {
var v1 = function () {};
mx.transitions.BroadcasterMX = v1;
var v2 = v1.prototype;
v1.initialize = function (o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
};
v2.addListener = function (o) {
this.removeListener(o);
if (this.broadcastMessage == undefined) {
this.broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return this._listeners.push(o);
};
v2.removeListener = function (o) {
var a = this._listeners;
var i = a.length;
while (i--) {
if (a[i] == o) {
a.splice(i, 1);
if (!a.length) {
this.broadcastMessage = undefined;
}
return true;
}
}
return false;
};
v2.broadcastMessage = function () {
var e = String(arguments.shift());
var a = this._listeners.concat();
var l = a.length;
var i = 0;
while (i < l) {
a[i][e].apply(a[i], arguments);
++i;
}
};
v1.version = '1.1.0.52';
ASSetPropFlags(mx.transitions.BroadcasterMX.prototype, null, 1);
}
#endinitclip
}
movieClip 12921 __Packages.mx.transitions.Tween {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.Tween) {
var v1 = function (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return undefined;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
this.__set__position(begin);
this.__set__duration(duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.__set__finish(finish);
this._listeners = [];
this.addListener(this);
this.start();
};
mx.transitions.Tween = v1;
var v2 = v1.prototype;
v2.__set__time = function (t) {
this.prevTime = this._time;
if (t > this.__get__duration()) {
if (this.looping) {
this.rewind(t - this._duration);
this.update();
this.broadcastMessage('onMotionLooped', this);
} else {
if (this.useSeconds) {
this._time = this._duration;
this.update();
}
this.stop();
this.broadcastMessage('onMotionFinished', this);
}
} else {
if (t < 0) {
this.rewind();
this.update();
} else {
this._time = t;
this.update();
}
}
return this.__get__time();
};
v2.__get__time = function () {
return this._time;
};
v2.__set__duration = function (d) {
this._duration = (d == null || d <= 0) ? _global.Infinity : d;
return this.__get__duration();
};
v2.__get__duration = function () {
return this._duration;
};
v2.__set__FPS = function (fps) {
var oldIsPlaying = this.isPlaying;
this.stopEnterFrame();
this._fps = fps;
if (oldIsPlaying) {
this.startEnterFrame();
}
return this.__get__FPS();
};
v2.__get__FPS = function () {
return this._fps;
};
v2.__set__position = function (p) {
this.setPosition(p);
return this.__get__position();
};
v2.setPosition = function (p) {
this.prevPos = this._pos;
this._pos = p;
this.obj[this.prop] = this._pos;
this.broadcastMessage('onMotionChanged', this, this._pos);
updateAfterEvent();
};
v2.__get__position = function () {
return this.getPosition();
};
v2.getPosition = function (t) {
if (t == undefined) {
t = this._time;
}
return this.func(t, this.begin, this.change, this._duration);
};
v2.__set__finish = function (f) {
this.change = f - this.begin;
return this.__get__finish();
};
v2.__get__finish = function () {
return this.begin + this.change;
};
v2.continueTo = function (finish, duration) {
this.begin = this.position;
this.__set__finish(finish);
if (duration != undefined) {
this.__set__duration(duration);
}
this.start();
};
v2.yoyo = function () {
this.continueTo(this.begin, this.__get__time());
};
v2.startEnterFrame = function () {
if (this._fps == undefined) {
_global.MovieClip.addListener(this);
} else {
this._intervalID = setInterval(this, 'onEnterFrame', 1000 / this._fps);
}
this.isPlaying = true;
};
v2.stopEnterFrame = function () {
if (this._fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(this._intervalID);
}
this.isPlaying = false;
};
v2.start = function () {
this.rewind();
this.startEnterFrame();
this.broadcastMessage('onMotionStarted', this);
};
v2.stop = function () {
this.stopEnterFrame();
this.broadcastMessage('onMotionStopped', this);
};
v2.resume = function () {
this.fixTime();
this.startEnterFrame();
this.broadcastMessage('onMotionResumed', this);
};
v2.rewind = function (t) {
this._time = (t == undefined) ? 0 : t;
this.fixTime();
this.update();
};
v2.fforward = function () {
this.__set__time(this._duration);
this.fixTime();
};
v2.nextFrame = function () {
if (this.useSeconds) {
this.__set__time((getTimer() - this._startTime) / 1000);
} else {
this.__set__time(this._time + 1);
}
};
v2.onEnterFrame = function () {
this.nextFrame();
};
v2.prevFrame = function () {
if (!this.useSeconds) {
this.__set__time(this._time - 1);
}
};
v2.toString = function () {
return '[Tween]';
};
v2.fixTime = function () {
if (this.useSeconds) {
this._startTime = getTimer() - this._time * 1000;
}
};
v2.update = function () {
this.__set__position(this.getPosition(this._time));
};
v1.version = '1.1.0.52';
v1.__initBeacon = mx.transitions.OnEnterFrameBeacon.init();
v1.__initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
v2.func = function (t, b, c, d) {
return c * t / d + b;
};
v2.addProperty('FPS', v2.__get__FPS, v2.__set__FPS);
v2.addProperty('duration', v2.__get__duration, v2.__set__duration);
v2.addProperty('finish', v2.__get__finish, v2.__set__finish);
v2.addProperty('position', v2.__get__position, v2.__set__position);
v2.addProperty('time', v2.__get__time, v2.__set__time);
ASSetPropFlags(mx.transitions.Tween.prototype, null, 1);
}
#endinitclip
}
movieClip 12922 __Packages.mx.transitions.easing.Regular {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.transitions) {
_global.mx.transitions = new Object();
}
if (!_global.mx.transitions.easing) {
_global.mx.transitions.easing = new Object();
}
if (!_global.mx.transitions.easing.Regular) {
var v1 = function () {};
mx.transitions.easing.Regular = v1;
var v2 = v1.prototype;
v1.easeIn = function (t, b, c, d) {
t /= d;
return c * t * t + b;
};
v1.easeOut = function (t, b, c, d) {
t /= d;
return -c * t * (t - 2) + b;
};
v1.easeInOut = function (t, b, c, d) {
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t + b;
}
return (-c / 2) * (--t * (t - 2) - 1) + b;
};
v1.version = '1.1.0.52';
ASSetPropFlags(mx.transitions.easing.Regular.prototype, null, 1);
}
#endinitclip
}
movieClip 12923 __Packages.com.gskinner.sprites.CollisionDetection {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gskinner) {
_global.com.gskinner = new Object();
}
if (!_global.com.gskinner.sprites) {
_global.com.gskinner.sprites = new Object();
}
if (!_global.com.gskinner.sprites.CollisionDetection) {
var v1 = function () {};
com.gskinner.sprites.CollisionDetection = v1;
var v2 = v1.prototype;
v1.checkForCollision = function (p_clip1, p_clip2, p_alphaTolerance) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var bounds1 = com.gskinner.sprites.CollisionDetection.getClipRect(p_clip1, _root);
var bounds2 = com.gskinner.sprites.CollisionDetection.getClipRect(p_clip2, _root);
if (!bounds1.intersects(bounds2)) {
return null;
}
var bounds = bounds1.intersection(bounds2);
var img = new flash.display.BitmapData(Math.ceil(bounds.width), Math.ceil(bounds.height), false);
var mat = p_clip1.transform.matrix;
var clipParent = p_clip1._parent;
while (clipParent != _root) {
mat.concat(clipParent.transform.matrix);
clipParent = clipParent._parent;
}
mat.tx -= bounds.left;
mat.ty -= bounds.top;
img.draw(p_clip1, mat, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
mat = p_clip2.transform.matrix;
clipParent = p_clip2._parent;
while (clipParent != _root) {
mat.concat(clipParent.transform.matrix);
clipParent = clipParent._parent;
}
mat.tx -= bounds.left;
mat.ty -= bounds.top;
img.draw(p_clip2, mat, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), 'difference');
var intersection = img.getColorBoundsRect(4294967295.0, 4278255615.0);
img.dispose();
if (intersection.width == 0) {
return null;
}
intersection.x += bounds.left;
intersection.y += bounds.top;
return intersection;
};
v1.getClipRect = function (clip, reference) {
if (reference == undefined) {
reference = clip._parent;
}
var b = clip.getBounds(reference);
return new flash.geom.Rectangle(b.xMin, b.yMin, b.xMax - b.xMin, b.yMax - b.yMin);
};
ASSetPropFlags(com.gskinner.sprites.CollisionDetection.prototype, null, 1);
}
#endinitclip
}
movieClip 12924 __Packages.com.gskinner.geom.ColorMatrix {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gskinner) {
_global.com.gskinner = new Object();
}
if (!_global.com.gskinner.geom) {
_global.com.gskinner.geom = new Object();
}
if (!_global.com.gskinner.geom.ColorMatrix) {
var v1 = function (p_matrix) {
super();
p_matrix = this.fixMatrix(p_matrix);
this.copyMatrix((p_matrix.length == com.gskinner.geom.ColorMatrix.LENGTH) ? p_matrix : com.gskinner.geom.ColorMatrix.IDENTITY_MATRIX);
};
com.gskinner.geom.ColorMatrix = v1;
com.gskinner.geom.ColorMatrix extends Array;
var v2 = v1.prototype;
v2.adjustColor = function (p_brightness, p_contrast, p_saturation, p_hue) {
this.adjustHue(p_hue);
this.adjustContrast(p_contrast);
this.adjustBrightness(p_brightness);
this.adjustSaturation(p_saturation);
};
v2.adjustBrightness = function (p_val) {
p_val = this.cleanValue(p_val, 100);
if (p_val == 0 || isNaN(p_val)) {
return undefined;
}
this.multiplyMatrix([1, 0, 0, 0, p_val, 0, 1, 0, 0, p_val, 0, 0, 1, 0, p_val, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
};
v2.adjustContrast = function (p_val) {
p_val = this.cleanValue(p_val, 100);
if (p_val == 0 || isNaN(p_val)) {
return undefined;
}
var x;
if (p_val < 0) {
x = 127 + (p_val / 100) * 127;
} else {
x = p_val % 1;
if (x == 0) {
x = com.gskinner.geom.ColorMatrix.DELTA_INDEX[p_val];
} else {
x = com.gskinner.geom.ColorMatrix.DELTA_INDEX[p_val << 0] * (1 - x) + com.gskinner.geom.ColorMatrix.DELTA_INDEX[(p_val << 0) + 1] * x;
}
x = x * 127 + 127;
}
this.multiplyMatrix([x / 127, 0, 0, 0, 0.5 * (127 - x), 0, x / 127, 0, 0, 0.5 * (127 - x), 0, 0, x / 127, 0, 0.5 * (127 - x), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
};
v2.adjustSaturation = function (p_val) {
p_val = this.cleanValue(p_val, 100);
if (p_val == 0 || isNaN(p_val)) {
return undefined;
}
var x = 1 + (p_val > 0 ? 3 * p_val / 100 : p_val / 100);
var lumR = 0.3086;
var lumG = 0.6094000000000001;
var lumB = 0.082;
this.multiplyMatrix([lumR * (1 - x) + x, lumG * (1 - x), lumB * (1 - x), 0, 0, lumR * (1 - x), lumG * (1 - x) + x, lumB * (1 - x), 0, 0, lumR * (1 - x), lumG * (1 - x), lumB * (1 - x) + x, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
};
v2.adjustHue = function (p_val) {
p_val = (this.cleanValue(p_val, 180) / 180) * Math.PI;
if (p_val == 0 || isNaN(p_val)) {
return undefined;
}
var cosVal = Math.cos(p_val);
var sinVal = Math.sin(p_val);
var lumR = 0.213;
var lumG = 0.715;
var lumB = 0.072;
this.multiplyMatrix([lumR + cosVal * (1 - lumR) + sinVal * -lumR, lumG + cosVal * -lumG + sinVal * -lumG, lumB + cosVal * -lumB + sinVal * (1 - lumB), 0, 0, lumR + cosVal * -lumR + sinVal * 0.143, lumG + cosVal * (1 - lumG) + sinVal * 0.14, lumB + cosVal * -lumB + sinVal * -0.283, 0, 0, lumR + cosVal * -lumR + sinVal * -(1 - lumR), lumG + cosVal * -lumG + sinVal * lumG, lumB + cosVal * (1 - lumB) + sinVal * lumB, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
};
v2.concat = function (p_matrix) {
p_matrix = this.fixMatrix(p_matrix);
if (p_matrix.length != com.gskinner.geom.ColorMatrix.LENGTH) {
return undefined;
}
this.multiplyMatrix(p_matrix);
};
v2.clone = function () {
return new com.gskinner.geom.ColorMatrix(this);
};
v2.toString = function () {
return 'ColorMatrix [ ' + this.join(' , ') + ' ]';
};
v2.toArray = function () {
return this.slice(0, 20);
};
v2.copyMatrix = function (p_matrix) {
var l = com.gskinner.geom.ColorMatrix.LENGTH;
var i = 0;
while (i < l) {
this[i] = p_matrix[i];
++i;
}
};
v2.multiplyMatrix = function (p_matrix) {
var col = [];
var i = 0;
while (i < 5) {
var j = 0;
while (j < 5) {
col[j] = this[j + i * 5];
++j;
}
var j = 0;
while (j < 5) {
var val = 0;
var k = 0;
while (k < 5) {
val += p_matrix[j + k * 5] * col[k];
++k;
}
this[j + i * 5] = val;
++j;
}
++i;
}
};
v2.cleanValue = function (p_val, p_limit) {
return Math.min(p_limit, Math.max(-p_limit, p_val));
};
v2.fixMatrix = function (p_matrix) {
if (p_matrix instanceof com.gskinner.geom.ColorMatrix) {
p_matrix = p_matrix.slice(0);
}
if (p_matrix.length < com.gskinner.geom.ColorMatrix.LENGTH) {
p_matrix = (p_matrix.slice(0, p_matrix.length)).concat(com.gskinner.geom.ColorMatrix.IDENTITY_MATRIX.slice(p_matrix.length, com.gskinner.geom.ColorMatrix.LENGTH));
return p_matrix;
}
if (p_matrix.length > com.gskinner.geom.ColorMatrix.LENGTH) {
p_matrix = p_matrix.slice(0, com.gskinner.geom.ColorMatrix.LENGTH);
}
return p_matrix;
};
v1.DELTA_INDEX = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07000000000000001, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22, 0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48, 0.5, 0.53, 0.5600000000000001, 0.59, 0.62, 0.65, 0.6800000000000001, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.699999999999999, 9, 9.4, 9.6, 9.800000000000001, 10];
v1.IDENTITY_MATRIX = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
v1.LENGTH = com.gskinner.geom.ColorMatrix.IDENTITY_MATRIX.length;
ASSetPropFlags(com.gskinner.geom.ColorMatrix.prototype, null, 1);
}
#endinitclip
}
frame 2 {
function playSound(q, n) {
if (n == undefined) {
n = 1;
}
if (_root.soundsOn == 'true') {
_root[q].start(0, n);
}
}
function playSproutQuip(t) {
if (t == 'baby') {
var n = 5;
} else {
if (t == 'babylaugh') {
var n = 2;
} else {
if (t == 'dance') {
var n = 5;
} else {
if (t == 'eating') {
var n = 3;
} else {
if (t == 'foundsomething') {
var n = 5;
} else {
if (t == 'hungry') {
var n = 5;
} else {
if (t == 'snoring') {
var n = 5;
} else {
if (t == 'structuredone') {
var n = 5;
} else {
if (t == 'wow') {
var n = 5;
} else {
if (t == 'yawn') {
var n = 3;
} else {
if (t == 'yummy') {
var n = 5;
} else {
if (t == 'wee') {
var n = 5;
} else {
if (t == 'wishfullfilled') {
var n = 5;
} else {
if (t == 'shout') {
var n = 5;
} else {
if (t == 'ok') {
var n = 20;
} else {
if (t == 'offering') {
var n = 5;
} else {
if (t == 'deer') {
var n = 3;
} else {
if (t == 'bull') {
var n = 3;
} else {
if (t == 'duck') {
var n = 3;
} else {
if (t == 'bored') {
var n = 5;
} else {
if (t == 'invented') {
var n = 5;
} else {
if (t == 'irritated') {
var n = 7;
} else {
if (t == 'idea') {
var n = 5;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
var g = random(n) + 1;
_root['S_' + t + g].start();
}
stop();
var fromSplash = true;
var Preorder = true;
var stolen = false;
this.onEnterFrame = function () {
var percent_loaded = _root.getBytesLoaded() / _root.getBytesTotal();
_root.loadingMeter.meter._xscale = percent_loaded * 100;
if (percent_loaded == 1 && _root.localnloaded == '1') {
_root.play();
delete this.onEnterFrame;
}
};
Mouse.hide();
var appFocused = true;
var ThemeIsOn = false;
t;
}
movieClip 7482 {
}
movieClip 7484 {
}
movieClip 7487 {
}
instance of movieClip 7487 {
onClipEvent (load) {
onPress = function () {
getURL('http://www.amazon.com/gp/product/B002BNKQHQ?tag=sproutsadventure-20', '_blank');
};
}
}
// unknown tag 88 length 218
frame 3 {
}
movieClip 7491 {
}
movieClip 7494 {
}
movieClip 7538 {
}
movieClip 7540 {
}
movieClip 7541 optionsShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.SaveGame();
_root.attachMovie('menuShell', 'MS', 12000);
_root.MS._x = 400;
_root.MS._y = 300;
_parent.removeMovieClip();
};
}
}
instance of movieClip 7538 {
onClipEvent (load) {
this.gotoAndPlay(Number(random(20) + 1));
this.onPress = function () {
this.startDrag();
};
this.onRelease = function () {
this.stopDrag();
};
}
}
instance musicvolumeknob of movieClip 7540 {
onClipEvent (load) {
var initx = this._x;
var dragging = false;
this._x = Number(_root.Volume * 3) + initx;
var left = initx;
var right = initx + 300;
var top = this._y;
var bottom = this._y;
this.onPress = function () {
this.dragging = true;
_root.playSound('S_ButtonSound');
startDrag('', false, left, top, right, bottom);
};
this.onRelease = function () {
this.dragging = false;
stopDrag();
};
this.onReleaseOutside = function () {
this.dragging = false;
stopDrag();
};
}
onClipEvent (enterFrame) {
if (this.dragging == true) {
var b = Number(this._x - initx);
_root.Volume = Math.round(Number(b / 3));
_root.S_inGameMusic.setVolume(_root.Volume);
_root.S_Theme.setVolume(_root.Volume);
}
}
}
instance soundvolumeknob of movieClip 7540 {
onClipEvent (load) {
var initx = this._x;
var dragging = false;
this._x = Number(_root.soundVolume * 3) + initx;
left = initx;
right = initx + 300;
top = this._y;
bottom = this._y;
this.onPress = function () {
this.dragging = true;
_root.playSound('S_ButtonSound');
startDrag('', false, left, top, right, bottom);
};
this.onRelease = function () {
this.dragging = false;
stopDrag();
};
this.onReleaseOutside = function () {
this.dragging = false;
stopDrag();
};
}
onClipEvent (enterFrame) {
if (this.dragging == true) {
var v = Number(this._x - initx);
_root.soundVolume = Number(v / 3);
var tempsound = _root.soundVolume / 100;
if (_root.todd <= 0.25) {
var dbase = 50 + Number(_root.todd * 200);
var nbase = 50 - Number(_root.todd * 200);
} else {
if (_root.todd <= 0.5) {
var dbase = 100 - Number(_root.todd * 100);
var nbase = Number(_root.todd) * 100;
} else {
if (_root.todd <= 0.75) {
var dbase = 50 - Number(Number(_root.todd - 0.25) * 100);
var nbase = 50 + Number(Number(_root.todd - 0.25) * 100);
} else {
var dbase = Number(_root.todd - 0.75) * 100;
var nbase = 100 - Number(Number(_root.todd - 0.75) * 100);
}
}
}
_root.S_daytime.setVolume(dbase * tempsound);
_root.S_nighttime.setVolume(nbase * tempsound);
_root.S_introMovie.setVolume(_root.soundVolume);
}
}
}
}
movieClip 7544 {
}
movieClip 7548 spellDiscoveredShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
tt.html = true;
tt.multiline = true;
tt.wordWrap = true;
_root.playSound('S_spelldiscovered');
t.htmlText = _root['Spell' + m + 'XX'];
tt.htmlText = _root['Spell' + m + 'DescriptionXX'];
if (_root.fromSplash == false) {
this.attachMovie('spellShell', 'spellShell', 3);
this.spellShell._y = -60;
this.spellShell.gotoAndStop(this.n);
} else {
this._y = -700;
}
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
this.onPress = function () {
_root.GameTime = true;
_root.SaveGame();
_parent.removeMovieClip();
};
}
}
}
movieClip 7552 structureTutorial {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
_root.playSound('S_stonediscovered');
_root.SaveGame();
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.OkXX;
this.onPress = function () {
_root.GameTime = true;
_parent.removeMovieClip();
};
}
}
}
movieClip 7557 {
}
movieClip 7560 {
}
movieClip 7577 {
}
movieClip 7579 {
}
movieClip 7580 {
}
movieClip 7582 {
}
movieClip 7583 {
}
movieClip 7586 worldPanel {
frame 1 {
t.html = true;
t.html = true;
t.multiline = true;
t.wordWrap = true;
var completedStructures = '';
var preciousStones = '';
var butterfliesFoundText = '';
var dietyRanking = '';
var csNumber = 1;
var stNumber = 0;
var btNumber = 0;
var day = 360000;
var sproutTime = _root.timePlayed / day;
var daysHelpingSprouts = Math.round(sproutTime);
var sproutHappiness = 0;
i = 0;
while (i < _root.bs.length) {
if (_root[_root.bs[i]][0] >= 1) {
if (_root.game[_root.bs[i]].pComplete >= 100) {
++csNumber;
}
}
completedStructures = Number(csNumber - 1) + '/11';
++i;
}
i = 0;
while (i < _root.stones.length) {
if (_root.stones[i] == 1) {
++stNumber;
}
preciousStones = stNumber + '/10';
++i;
}
i = 0;
while (i < _root.butterflies.length) {
if (_root.butterflies[i] == 1) {
++btNumber;
}
butterfliesFoundText = btNumber + '/10';
++i;
}
var allStuff = 40 * _root.totalActiveSprouts;
var sproutStuff = 0;
i = 1;
while (i < _root.totalActiveSprouts) {
sproutStuff = sproutStuff + Number(100 - _root.game['SS' + i].sHunger) + Number(100 - _root.game['SS' + i].sSleepiness) + _root.game['SS' + i].sCuriosity + _root.game['SS' + i].sMotivation;
++i;
}
sproutHappiness = Math.round(Number(sproutStuff / allStuff));
var rank = Number(90 - sproutHappiness);
if (rank > 0) {
dietyRanking = rank + ' ' + _root.OfXX + ' 100';
} else {
dietyRanking = '1 ' + _root.OfXX + ' 100';
}
i = 1;
while (i < _root.totalActiveSprouts + 1) {
_root.effectsLayer.attachMovie('haloShell', 'halo' + i, 3240 + i);
_root.effectsLayer['halo' + i].snum = i;
_root.effectsLayer['halo' + i].blendMode = 8;
_root.effectsLayer['halo' + i].cacheAsBitmap = true;
++i;
}
z = 1;
while (z < 4) {
if (_root.game['mball' + z].pDiscovered >= 1) {
_root.effectsLayer.attachMovie('balloShell', 'ballo' + z, 3260 + z);
_root.effectsLayer['ballo' + z].snum = z;
_root.effectsLayer['ballo' + z].scaleTo(300, 0.1, 'linear');
}
++z;
}
_root.game.onPress = function () {
if (_root.worldView == true) {
i = 1;
while (i < _root.totalActiveSprouts + 1) {
_root.effectsLayer['halo' + i].removeMovieClip();
++i;
}
z = 1;
while (z < 4) {
_root.effectsLayer['ballo' + z].removeMovieClip();
++z;
}
_root.worldView = false;
_root.WP.homex = -Number(Number(_root.mousecursor._x - 270) * 3.03) + 400;
_root.WP.homey = -Number(Number(_root.mousecursor._y) * 3.03) + 300;
_root.game._x = _root.WP.homex;
_root.game._y = _root.WP.homey;
_root.game._yscale = 100;
_root.game._xscale = 100;
_root.HUD._y = 0;
_root.selectedSprout = 'none';
delete _root.game.onPress;
_root.WP.removeMovieClip();
}
};
var spTotal = 0;
var allTotal = 275 * _root.totalActiveSprouts;
var sHap = 0;
var allProgress = 9230;
var totalProgress = 0;
var xstones = 0;
var xbutt = 0;
var xach = 0;
var xdis = 0;
var xcom = 0;
var xspro = _root.totalActiveSprouts;
if (_root.game.toolShop.pComplete == undefined) {
var xinv = 0;
} else {
var xinv = _root.game.toolShop.pComplete - 100;
}
var sar = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'lightning', 'vision', 'magicFlower', 'rainbow', 'fallingStar'];
var xspe = 0;
i = 0;
while (i < 15) {
if (_root.stones[i] == 1) {
++xstones;
}
if (_root.butterflies[i] == 1) {
++xbutt;
}
if (_root.achievements[i] == 1) {
++xach;
}
if (_root.game[_root.bs[i]].pDiscovered >= 1) {
++xdis;
}
if (_root.game[_root.bs[i]].pComplete != undefined) {
if (_root.game[_root.bs[i]].pComplete >= 100) {
xcom += 100;
} else {
xcom += _root.game[_root.bs[i]].pComplete;
}
}
if (_root.karmaPoints >= _root[sar[i] + 'UnlockPoints']) {
xspe = xspe++;
}
if (i == 14) {
totalProgress = xcom + Number(xdis * 20) + Number(xinv * 2) + Number(xspro * 200) + Number(xbutt * 20) + Number(xstones * 20) + Number(xspe * 200) + Number(xach * 100);
var tpf = totalProgress / allProgress;
var tpf = Math.round(tpf * 100);
this.progressMeter.meter.xScaleTo(tpf, 1, 'easeOutQuad');
}
++i;
}
i = 1;
while (i < 13) {
if (_root.game['SS' + i].sName != undefined) {
spTotal = spTotal + Number(Number(100 - _root.game['SS' + i].sHunger) / 2) + Number(Number(100 - _root.game['SS' + i].sSleepiness) / 2) + _root.game['SS' + i].sCuriosity + _root.game['SS' + i].sMotivation;
}
if (i == 12) {
sHap = Number(spTotal / allTotal);
sHap = Math.round(sHap * 100);
if (sHap > 100) {
sHap = 100;
}
this.happyMeter.meter.xScaleTo(sHap, 1, 'easeOutQuad');
}
++i;
}
}
instance BMap of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.BackXX;
this.onPress = function () {
i = 1;
while (i < _root.totalActiveSprouts + 1) {
_root.effectsLayer['halo' + i].removeMovieClip();
++i;
}
z = 1;
while (z < 4) {
_root.effectsLayer['ballo' + z].removeMovieClip();
++z;
}
_root.worldView = false;
_root.game._x = _parent.homex;
_root.game._y = _parent.homey;
_root.game._yscale = 100;
_root.game._xscale = 100;
_root.HUD._y = 0;
delete _root.game.onPress;
_root.WP.removeMovieClip();
};
}
}
}
movieClip 7588 {
}
movieClip 7590 {
}
movieClip 7591 rainbowEffectShell {
frame 1 {
_root.playSound('S_spellrainbow');
}
}
movieClip 7594 {
}
movieClip 7597 {
}
movieClip 7598 movieSprout {
}
movieClip 7600 {
}
movieClip 7601 GoldStar {
}
movieClip 7606 {
}
movieClip 7607 {
instance of movieClip 7606 {
onClipEvent (enterFrame) {
this._rotation += 2;
}
}
instance of movieClip 7606 {
onClipEvent (enterFrame) {
this._rotation -= 2;
}
}
}
movieClip 7610 upsellShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
tname.text = '';
tdesc.text = '';
_root.GameTime = false;
if (this.r == 'karma') {
tname.htmlText = _root.KarmaEndXX;
} else {
tname.htmlText = _root.BuildingEndXX;
}
if (_root.Preorder == true) {
tname2.htmlText = _root.PreorderDescriptionXX;
} else {
tname2.htmlText = _root.DownloadSproutsXX;
}
tdesc.htmlText = _root.Bullet1XX + _root.Bullet2XX + _root.Bullet3XX + _root.Bullet4XX + _root.Bullet5XX;
}
instance of movieClip 7588 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NoThanksXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.goToScreen(dest);
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
if (_root.Preorder == true) {
this.base.But.htmlText = _root.PreorderXX;
} else {
this.base.But.htmlText = _root.DownloadXX;
}
this.onPress = function () {
getURL('http://www.amazon.com/gp/product/B002BNKQHQ?tag=sproutsadventure-20', '_blank');
_root.goToScreen('M_MainMenu');
_parent.removeMovieClip();
};
}
}
}
movieClip 7613 {
}
movieClip 7616 {
}
movieClip 7619 {
}
movieClip 7622 {
}
movieClip 7625 {
}
movieClip 7686 {
}
movieClip 7689 {
}
movieClip 7692 {
}
movieClip 7695 {
}
movieClip 7698 {
}
movieClip 7701 {
}
movieClip 7704 {
}
movieClip 7707 {
}
movieClip 7710 {
}
movieClip 7713 {
}
movieClip 7714 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 7745 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7776 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7807 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7838 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7869 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7900 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7931 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7962 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 7993 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8024 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8055 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8086 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8117 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8148 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8179 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8210 {
frame 7 {
stop();
go = function () {
this.gotoAndPlay(8);
};
this.alphaTo(100, _parent._parent._parent.sWorkforce, 'linear', 0, go);
}
}
movieClip 8211 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 8272 {
}
movieClip 8333 {
}
movieClip 8394 {
}
movieClip 8455 {
}
movieClip 8516 {
}
movieClip 8577 {
}
movieClip 8638 {
}
movieClip 8699 {
}
movieClip 8760 {
}
movieClip 8821 {
}
movieClip 8882 {
}
movieClip 8943 {
}
movieClip 9004 {
}
movieClip 9065 {
}
movieClip 9126 {
}
movieClip 9187 {
}
movieClip 9188 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 9219 {
}
movieClip 9250 {
}
movieClip 9281 {
}
movieClip 9312 {
}
movieClip 9343 {
}
movieClip 9374 {
}
movieClip 9405 {
}
movieClip 9436 {
}
movieClip 9467 {
}
movieClip 9498 {
}
movieClip 9529 {
}
movieClip 9560 {
}
movieClip 9591 {
}
movieClip 9622 {
}
movieClip 9653 {
}
movieClip 9684 {
}
movieClip 9685 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 9726 {
}
movieClip 9767 {
}
movieClip 9808 {
}
movieClip 9849 {
}
movieClip 9890 {
}
movieClip 9931 {
}
movieClip 9972 {
}
movieClip 10013 {
}
movieClip 10054 {
}
movieClip 10095 {
}
movieClip 10136 {
}
movieClip 10177 {
}
movieClip 10218 {
}
movieClip 10259 {
}
movieClip 10300 {
}
movieClip 10341 {
}
movieClip 10342 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 10383 {
}
movieClip 10424 {
}
movieClip 10465 {
}
movieClip 10506 {
}
movieClip 10547 {
}
movieClip 10588 {
}
movieClip 10629 {
}
movieClip 10670 {
}
movieClip 10711 {
}
movieClip 10752 {
}
movieClip 10793 {
}
movieClip 10834 {
}
movieClip 10875 {
}
movieClip 10916 {
}
movieClip 10957 {
}
movieClip 10998 {
}
movieClip 10999 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 11002 {
}
movieClip 11005 {
}
movieClip 11008 {
}
movieClip 11011 {
}
movieClip 11012 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 11015 {
}
movieClip 11018 {
}
movieClip 11021 {
}
movieClip 11024 {
}
movieClip 11027 {
}
movieClip 11030 {
}
movieClip 11031 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 11092 {
frame 30 {
stop();
}
}
movieClip 11093 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 11096 {
}
movieClip 11099 {
}
movieClip 11102 {
}
movieClip 11105 {
}
movieClip 11108 {
}
movieClip 11111 {
}
movieClip 11114 {
}
movieClip 11117 {
}
movieClip 11120 {
}
movieClip 11123 {
}
movieClip 11126 {
}
movieClip 11129 {
}
movieClip 11132 {
}
movieClip 11135 {
}
movieClip 11138 {
}
movieClip 11141 {
}
movieClip 11142 {
frame 1 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 2 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 3 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 4 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 5 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 6 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 7 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 8 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 9 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 10 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 11 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 12 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 13 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 14 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 15 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
frame 16 {
stop();
_root.changeColor(this.flower, 0, 0, 0, _parent._parent.sColor);
if (_parent._parent.sAge < _root.workAge) {
_parent._parent._yscale = _root.setSproutSize(_parent._parent.sAge);
_parent._parent._xscale = _parent._parent._yscale;
}
}
}
movieClip 11143 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 11144 mSproutShell {
}
movieClip 11281 audioHolder {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 11285 {
}
movieClip 11295 {
}
movieClip 11296 back_Egg {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 11299 back_leaves {
}
movieClip 11302 back_mush1 {
}
movieClip 11305 back_mush2 {
}
movieClip 11308 back_mush3 {
}
movieClip 11311 back_mush4 {
}
movieClip 11314 back_mush5 {
}
movieClip 11317 back_tower1 {
}
movieClip 11320 back_tower2 {
}
movieClip 11323 back_tower3 {
}
movieClip 11326 back_tower4 {
}
movieClip 11329 back_tower5 {
}
movieClip 11332 back_tower6 {
}
movieClip 11336 {
}
movieClip 11337 {
}
movieClip 11339 {
}
movieClip 11346 bridge {
frame 1 {
function activity(cs) {
if (this.pComplete < 100) {
j = this.pnum;
_root.playSproutQuip('ok');
cs.sTask = _root.bs[j];
var zz = _root.bs[j];
++this.pNumberOfWorkers;
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
var tx = _root.game.BG[zz + Number(cs.sNum)]._x;
var ty = _root.game.BG[zz + Number(cs.sNum)]._y;
st = function () {
cs.col.setDesc('Working');
cs.ani.gotoAndStop('building');
cs.col.setRot(1, _root.game[zz]._x, _root.game[zz]._y);
};
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
} else {
if (peopleFishing[0] != 0 && peopleFishing[1] != 0) {
_root.tipBoxMaker(cs.sName + _root['TooManyFishing' + Number(random(5) + 1) + 'XX']);
var tx = _root.game.BG[_root.bs[this.pnum] + 1]._x;
var ty = _root.game.BG[_root.bs[this.pnum] + 1]._y;
st = function () {
cs.col.setDesc('TooManyFishing');
cs.col.shouldWander('walking', 2);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
} else {
if (peopleFishing[0] == 0) {
peopleFishing[0] = cs;
var pf = 1;
} else {
if (peopleFishing[1] == 0) {
peopleFishing[1] = cs;
var pf = 2;
}
}
cs.sTask = 'fishing';
var tx = this._x + this['fpoint' + pf]._x;
var ty = this._y + this['fpoint' + pf]._y;
var q = _root.game.BG['fTarget' + pf]._x;
var r = _root.game.BG['fTarget' + pf]._y;
st = function () {
cs.col.setDesc('Fishing');
cs.ani.gotoAndStop('fishing');
cs.col.setRot(2, q, r);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
}
}
}
function stopActivity(cs) {
cs.pointOfInterest = 0;
if (this.pComplete < 100) {
--this.pNumberOfWorkers;
} else {
i = 0;
while (i < peopleFishing.length) {
if (peopleFishing[i] == cs) {
peopleFishing[i] = 0;
}
++i;
}
}
}
stop();
var peopleFishing = [0, 0];
sp = 0;
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('structure', null, null, this._parent.pnum);
}
};
this.col.onReleaseOutside = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
this.col.onRollOut = this.col.onReleaseOutside;
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 11351 {
}
movieClip 11358 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 11365 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 11366 {
frame 1 {
function startGrowing() {
var stageTime = 3;
nextGrowthStage = function () {
this.nextFrame();
};
this.alphaTo(100, stageTime, 'linear', 0, nextGrowthStage);
}
stop();
}
instance flower of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
frame 2 {
stop();
}
frame 3 {
stop();
this.flower.gotoAndStop(_root.flowerType);
}
frame 4 {
stop();
this.flower.gotoAndStop(_root.flowerType);
}
}
movieClip 11368 {
}
movieClip 11369 garden01 {
frame 1 {
function activity(cs) {
if (_root.tutorialOn <= 3) {
_root.tutorialScript(3);
}
if (this.s1._currentframe == 4) {
if (this.pComplete > 0) {
if (cs.sHunger > 10) {
if (cs.sTask == 'eating') {
cs.col.setDesc('Eating');
cs.sTask = 'eating';
var r = cs.ani.rot._currentframe;
cs.ani.gotoAndStop('eating');
cs.ani.rot.gotoAndStop(random(16) + 1);
if (cs.sLikes != 'brainstorming') {
cs.needBubble.gotoAndStop(1);
cs.needBubble._alpha = 0;
}
} else {
_root.playSproutQuip('eating');
this['s' + this.pComplete].gotoAndStop(1);
--this.pComplete;
if (_root.tutorialOn == 8) {
_root.tutorialScript(8);
}
cs.col.setDesc('Eating');
cs.sTask = 'eating';
var r = cs.ani.rot._currentframe;
cs.ani.gotoAndStop('eating');
cs.ani.rot.gotoAndStop(random(16) + 1);
if (cs.sLikes != 'brainstorming') {
cs.needBubble.gotoAndStop(1);
cs.needBubble._alpha = 0;
}
}
} else {
cs.col.shouldWander('walking', 0);
cs.col.setDesc('NotHungry');
}
}
} else {
if (this.s1._currentframe == 1) {
if (cs.sAge > _root.workAge) {
growGarden = function () {
cs.col.setDesc('Nothing');
cs.col.shouldWander('Walking', 0);
i = 1;
while (i < 11) {
this['s' + i].gotoAndStop(2);
++i;
}
if (_root.tutorialOn <= 2) {
_root.tutorialScript(2);
}
};
cs.sTask = 'gardening';
_root.playSproutQuip('ok');
cs.ani.gotoAndStop('hoing');
_root.game.garden01.pDiscovered = 2;
this.alphaTo(100, 3, 'linear', 0, growGarden);
} else {
var tx = _root.game.BG[zz + Number(cs.sNum)]._x;
var ty = _root.game.BG[zz + Number(cs.sNum)]._y;
cs.col.setDesc('YoungToWork');
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
}
} else {
cs.col.shouldWander('walking', 0);
cs.col.setDesc('Nothing');
}
}
}
function stopActivity(cs) {
cs.pointOfInterest = 0;
}
stop();
this.col.onRollOver = function () {
if (_root.mousecursor.fLabel == 'rain' && this._parent.s1._currentframe == 2) {
_root.mousecursor.spellTip.gotoAndStop(1);
} else {
if (_root.mousecursor.fLabel == 'sun' && this._parent.s1._currentframe == 3) {
_root.mousecursor.spellTip.gotoAndStop(1);
}
}
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
if (this._parent.s1._currentframe == 1) {
_root.HUD.adjustHUD('garden', null, _root.NeedSproutToHoeXX, this._parent.pnum);
} else {
if (this._parent.s1._currentframe == 2) {
_root.HUD.adjustHUD('garden', null, _root.NeedsRainXX, this._parent.pnum);
} else {
if (this._parent.s1._currentframe == 3) {
_root.HUD.adjustHUD('garden', null, _root.NeedsSunXX, this._parent.pnum);
} else {
_root.HUD.adjustHUD('garden', null, null, this._parent.pnum);
}
}
}
}
};
this.col.onReleaseOutside = function () {
if (this._parent.pDiscovered >= 1) {
_root.mousecursor.spellTip.gotoAndStop(2);
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
this.col.onRollOut = this.col.onReleaseOutside;
this.col.onPress = function () {
var g = _root.game;
var gb = _root.game.BG;
if (this._parent.pDiscovered == 4 && _root.game.windMill.pComplete == 100) {
if (_root.flowerType == 1) {
_root.redFlowers += Number(this._parent.pComplete * 2);
} else {
if (_root.flowerType == 2) {
_root.greenFlowers += Number(this._parent.pComplete * 2);
} else {
if (_root.flowerType == 3) {
_root.blueFlowers += Number(this._parent.pComplete * 2);
}
}
}
_root.playSound('S_structurediscovered');
_root.effectsLayer.attachMovie('discoveredStructure', 'DSST', 10005);
_root.effectsLayer.DSST._x = this._parent._x + 140;
_root.effectsLayer.DSST._y = this._parent._y + 85;
_root.tipBoxMaker(_root.MoreFoodAvailableXX);
i = 1;
while (i < 11) {
this._parent['s' + i].gotoAndStop(1);
++i;
}
this._parent.pDiscovered = 1;
this._parent.pComplete = 0;
} else {
if (_root.mousecursor.fLabel == 'rain' && this._parent.s1._currentframe == 2) {
_root.mousecursor.spellTip.gotoAndStop(2);
_root.HUD.rainButton.updateButton(1);
if (_root.tutorialOn == 5) {
_root.tutorialScript(5);
}
_root.mousecursor.gotoAndStop(1);
g.attachMovie('rainEffectShell', 'RES', 11000);
g.RES._x = gb.garden01SP._x + 125;
g.RES._y = gb.garden01SP._y + 50;
_root.game.garden01.pDiscovered = 3;
killRain1 = function () {
g.RES.removeMovieClip();
};
g.RES.alphaTo(100, 3, 'linear', 0, killRain1);
if (_root.flowerType < 3) {
++_root.flowerType;
} else {
_root.flowerType = 1;
}
i = 1;
while (i < 11) {
this._parent['s' + i].startGrowing();
++i;
}
} else {
if (_root.mousecursor.fLabel == 'sun' && this._parent.s1._currentframe == 3) {
_root.mousecursor.spellTip.gotoAndStop(2);
_root.game.garden01.pDiscovered = 4;
_root.HUD.sunButton.updateButton(1);
if (_root.tutorialOn == 7) {
_root.tutorialScript(7);
}
_root.mousecursor.gotoAndStop(1);
g.attachMovie('sunShineEffectShell', 'sunshine', 11001);
g.sunshine._x = gb.garden01SP._x + 125;
g.sunshine._y = gb.garden01SP._y + 50;
killSun1 = function () {
i = 0;
while (i < _root.sproutsArray.length) {
if (_root.game['SS' + i].sTask == 'gardening') {
_root.game['SS' + i].sTask = 'none';
}
++i;
}
g.sunshine.removeMovieClip();
};
g.sunshine.alphaTo(100, 3, 'linear', 0, killSun1);
i = 1;
while (i < 11) {
this._parent.pComplete = 10;
this._parent['s' + i].startGrowing();
++i;
}
}
}
}
};
}
}
movieClip 11373 {
}
movieClip 11374 {
}
movieClip 11381 shelter1 {
frame 1 {
function activity(cs) {
if (this.pComplete < 100) {
j = this.pnum;
_root.playSproutQuip('ok');
cs.sTask = _root.bs[j];
var zz = _root.bs[j];
++this.pNumberOfWorkers;
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
var tx = _root.game.BG[zz + Number(cs.sNum)]._x;
var ty = _root.game.BG[zz + Number(cs.sNum)]._y;
st = function () {
cs.col.setDesc('Working');
cs.ani.gotoAndStop('building');
cs.col.setRot(1, _root.game[zz]._x, _root.game[zz]._y);
};
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
} else {
if (peopleSleeping[0] != 0 && peopleSleeping[1] != 0 && peopleSleeping[2] != 0) {
_root.tipBoxMaker(cs.sName + _root['TooManySleeping' + Number(random(5) + 1) + 'XX']);
var tx = _root.game.BG.shelter1Exit._x;
var ty = _root.game.BG.shelter1Exit._y;
st = function () {
cs.col.setDesc('TooManySleeping');
cs.col.shouldWander('walking', 2);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
} else {
if (peopleSleeping[0] == 0) {
peopleSleeping[0] = cs;
var pf = 1;
} else {
if (peopleSleeping[1] == 0) {
peopleSleeping[1] = cs;
var pf = 2;
} else {
if (peopleSleeping[2] == 0) {
peopleSleeping[2] = cs;
var pf = 3;
}
}
}
var sprout = cs;
cs.sTask = 'sleeping';
var tx = this._x + this['sh1point' + pf]._x;
var ty = this._y + this['sh1point' + pf]._y;
st = function () {
cs.alphaTo(70, 0.15, 'easeOutQuad');
cs.sTask = 'sleeping';
cs.ani.gotoAndStop('sleeping');
cs.col.setDesc('Sleeping');
cs.ani.rot.gotoAndStop(2);
if (cs.sLikes != 'brainstorming') {
cs.needBubble._alpha = 0;
}
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
}
}
}
function stopActivity(cs) {
cs.pointOfInterest = 0;
if (this.pComplete < 100) {
--this.pNumberOfWorkers;
} else {
i = 0;
while (i < peopleSleeping.length) {
if (cs == peopleSleeping[i]) {
peopleSleeping[i] = 0;
}
++i;
}
wakeup = function () {
cs.alpha = 100;
cs.col.setDesc('Nothing');
cs.col.shouldWander('walking', 0);
};
cs.slideTo(_root.game.BG.shelter1Exit._x, _root.game.BG.shelter1Exit._y, 0, 'linear', 0, wakeup);
}
}
stop();
var peopleSleeping = [0, 0, 0];
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('structure', null, null, this._parent.pnum);
}
};
this.col.onReleaseOutside = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
this.col.onRollOut = this.col.onReleaseOutside;
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 11385 {
}
movieClip 11386 {
}
movieClip 11395 {
}
movieClip 11396 wishingWell {
frame 1 {
function activity(cs) {
if (this.pComplete < 100) {
j = this.pnum;
_root.playSproutQuip('ok');
cs.sTask = _root.bs[j];
var zz = _root.bs[j];
++this.pNumberOfWorkers;
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
var tx = _root.game.BG[zz + Number(cs.sNum)]._x;
var ty = _root.game.BG[zz + Number(cs.sNum)]._y;
st = function () {
cs.col.setDesc('Working');
cs.ani.gotoAndStop('building');
cs.col.setRot(1, _root.game[zz]._x, _root.game[zz]._y);
};
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
} else {
if (_root.game.SS12.sName != 'none') {
if (_root.karmaPoints >= _root.fallingStarUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'gift', 'wind', 'vision', 'rainbow', 'fallingStar'];
} else {
if (_root.karmaPoints >= _root.rainbowUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'gift', 'wind', 'vision', 'rainbow'];
} else {
if (_root.karmaPoints >= _root.visionUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'gift', 'wind', 'vision'];
} else {
if (_root.karmaPoints >= _root.windUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'gift', 'wind'];
} else {
if (_root.karmaPoints >= _root.giftUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'gift'];
} else {
if (_root.karmaPoints >= _root.sproutlingUnlockPoints) {
var bubbleArray = ['sun', 'rain'];
} else {
var bubbleArray = ['sun'];
}
}
}
}
}
}
i = 0;
while (i < bubbleArray.length) {
if (_root.HUD[bubbleArray[i] + 'Button'].charge._yscale < 50) {
bubbleArray.splice(i, 1);
}
++i;
}
} else {
if (_root.karmaPoints >= _root.fallingStarUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'vision', 'rainbow', 'fallingStar'];
} else {
if (_root.karmaPoints >= _root.rainbowUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'vision', 'rainbow'];
} else {
if (_root.karmaPoints >= _root.visionUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind', 'vision'];
} else {
if (_root.karmaPoints >= _root.windUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift', 'wind'];
} else {
if (_root.karmaPoints >= _root.giftUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling', 'gift'];
} else {
if (_root.karmaPoints >= _root.sproutlingUnlockPoints) {
var bubbleArray = ['sun', 'rain', 'sproutling'];
} else {
var bubbleArray = ['sun'];
}
}
}
}
}
}
i = 0;
while (i < bubbleArray.length) {
if (_root.HUD[bubbleArray[i] + 'Button'].charge._yscale < 50) {
bubbleArray.splice(i, 1);
}
++i;
}
}
if (wishingSprout != 0) {
_root.tipBoxMaker(cs.sName + _root['SproutAlreadyWishing' + Number(random(5) + 1) + 'XX']);
var tx = _root.game.BG[_root.bs[this.pnum] + 1]._x;
var ty = _root.game.BG[_root.bs[this.pnum] + 1]._y;
st = function () {
cs.col.setDesc('SproutAlreadyWishing');
cs.col.shouldWander('walking', 2);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
} else {
if (this.water._alpha == 100) {
this.pDiscovered = 1;
this.water.alphaTo(0, 1, 'linear');
var rwish = random(bubbleArray.length);
var sprout = cs;
cs.sTask = 'wishing';
var tx = _root.game.BG.wishingWell3._x;
var ty = _root.game.BG.wishingWell3._y;
var q = _root.game.BG.wishingTarget._x;
var r = _root.game.BG.wishingTarget._y;
st = function () {
cs.needBubble.gotoAndStop('wants');
cs.needBubble.wants.gotoAndStop(bubbleArray[rwish]);
cs.needBubble._alpha = 100;
cs.col.setDesc('Wishing', String(bubbleArray[rwish]));
cs.ani.gotoAndStop('idle');
cs.col.setRot(2, q, r);
};
_root.tipBoxMaker(cs.sName + _root['Wishing' + bubbleArray[rwish] + 'XX']);
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
} else {
_root.tipBoxMaker(cs.sName + _root['NoWellWater' + Number(random(3) + 1) + 'XX']);
var tx = _root.game.BG[_root.bs[this.pnum] + 1]._x;
var ty = _root.game.BG[_root.bs[this.pnum] + 1]._y;
st = function () {
cs.col.setDesc('NoWellWater');
cs.col.shouldWander('walking', 2);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
}
}
}
}
function stopActivity(cs) {
cs.pointOfInterest = 0;
if (this.pComplete < 100) {
--this.pNumberOfWorkers;
} else {
wishingSprout = 0;
}
}
stop();
wishingSprout = 0;
if (this.pDiscovered == 2) {
this.water._alpha = 100;
}
this.col.onRollOver = function () {
if (_root.mousecursor.fLabel == 'rain' && this._parent.water._alpha != 100) {
_root.mousecursor.spellTip.gotoAndStop(1);
}
if (this._parent.pDiscovered >= 1 && this._parent.pComplete < 100) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('structure', null, null, this._parent.pnum);
}
};
this.col.onReleaseOutside = function () {
if (_root.mousecursor.fLabel == 'rain' && this._parent.water._alpha != 100) {
_root.mousecursor.spellTip.gotoAndStop(2);
}
if (this._parent.pDiscovered >= 1 && this._parent.pComplete < 100) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
this.col.onRollOut = this.col.onReleaseOutside;
this.col.onPress = function () {
if (_root.mousecursor.fLabel == 'rain' && this._parent.water._alpha != 100) {
this._parent.pDiscovered = 2;
this._parent.water.alphaTo(100, 2, 'linear');
_root.HUD.rainButton.updateButton(1);
_root.effectsLayer.attachMovie('rainEffectShell', 'spell_rain', 11000 + _root.effectNum);
_root.effectsLayer.spell_rain._x = this._parent._x;
_root.effectsLayer.spell_rain._y = this._parent._y;
_root.effectsLayer.spell_rain._alpha = 0;
_root.effectsLayer.spell_rain.makePuddle = false;
killRain3 = function () {
cs.col.shouldWander('walking', 0);
_root.effectsLayer.spell_rain.removeMovieClip();
};
killRain2 = function () {
_root.effectsLayer.spell_rain.alphaTo(0, 1, 'linear', 0, killRain3);
};
killRain = function () {
_root.effectsLayer.spell_rain.alphaTo(100, 3, 'linear', 0, killRain2);
};
_root.effectsLayer.spell_rain.alphaTo(100, 1, 'linear', 0, killRain);
_root.mousecursor.gotoAndStop(1);
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 11475 discoveredStructure {
frame 40 {
this.removeMovieClip();
}
}
movieClip 11536 foodFound {
frame 30 {
removeMovieClip(this);
}
}
movieClip 11597 genParticle {
frame 1 {
_root.playSound('S_particle');
}
frame 30 {
removeMovieClip(this);
}
}
movieClip 11658 spellDiscovered {
frame 30 {
this.removeMovieClip();
}
}
movieClip 11759 spellWindEffect {
frame 1 {
_root.playSound('S_spellwind');
}
frame 50 {
removeMovieClip(this);
}
}
movieClip 11880 structureComplete {
frame 1 {
_root.playSound('S_structurecomplete');
}
frame 60 {
this.removeMovieClip();
}
}
movieClip 11883 9_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11886 8_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11889 7_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11892 6_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11895 5_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11898 4_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11901 3_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11904 2_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11907 10_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11910 1_BigButterfly {
frame 1 {
stop();
go = function () {
this.gotoAndPlay(2);
};
var n = 0.15 + random(3);
this.alphaTo(100, n, linear, 0, go);
}
}
movieClip 11931 bigStoneShell {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 11962 butterfly9 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 11993 butterfly8 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12024 butterfly7 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12055 butterfly6 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12086 butterfly5 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12117 butterfly4 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12148 butterfly3 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12179 butterfly2 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12210 butterfly10 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12241 butterfly1 {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.butterflies[this.butterflyNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('butterflyDiscovered', 'BD', 12000);
_root.BD._x = 400;
_root.BD._y = 300;
_root.BD.num = this.butterflyNum;
_root.BD.sproutNum = cs.sNum;
_root.removeFromZandPOIArrays(this);
} else {
var g = random(100);
if (g < 40 && cs.sCuriosity >= 50) {
_root.presentOffering(cs.sNum, 'butterfly', this.butterflyNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
}
_root.removeFromZandPOIArrays(this);
}
}
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.ButterflyTitleXX, _root.ButterflyDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(100, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12244 {
}
movieClip 12245 blueFlowerDrag {
}
movieClip 12278 fishingDiscoveriesShell {
frame 1 {
stop();
this.col.onPress = function () {
if (_root.worldView == false) {
_root.effectsLayer.attachMovie('genParticle', 'gpart' + sprout.sNum, 6100 + sprout.sNum);
_root.effectsLayer['gpart' + sprout.sNum]._x = sprout._x;
_root.effectsLayer['gpart' + sprout.sNum]._y = sprout._y;
_root.bubbleMaker(sprout.sNum, 1, 'karma');
_root.pointsOfInterest[sprout.pointOfInterest].stopActivity(sprout);
sprout.sTask = 'none';
sprout.col.setDesc('Nothing');
this._parent.removeMovieClip();
}
};
}
}
movieClip 12280 {
}
movieClip 12281 flowerShell {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('yummy');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'hunger');
++_root.wildFlowersPicked;
_root.removeFromZandPOIArrays(this);
}
stop();
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.FlowerSnackTitleXX, _root.FlowerSnackDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(0, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 12284 {
}
movieClip 12285 greenFlowerDrag {
}
movieClip 12306 smallStones {
frame 1 {
function activity(cs) {
cs.pointOfInterest = 0;
if (_root.stones[this.stoneNum - 1] == 0) {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('foundsomething');
} else {
_root.playSproutQuip('baby');
}
_root.attachMovie('stoneDiscovered', 'SD', 12000);
_root.SD._x = 400;
_root.SD._y = 300;
_root.SD.num = this.stoneNum - 1;
_root.SD.sproutNum = cs.sNum;
} else {
var g = random(100);
if (g < 40 && cs.sMotivation >= 50) {
_root.presentOffering(cs.sNum, 'stone', this.stoneNum - 1);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
_root.bubbleMaker(cs.sNum, 10, 'motivation');
}
}
_root.removeFromZandPOIArrays(this);
}
stop();
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.StonesTitleXX, _root.StonesDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 20 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(0, 3, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 12308 spellShell {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 12311 {
}
movieClip 12312 weedShell {
frame 1 {
function activity(cs) {
killme = function () {
cs.pointOfInterest = 0;
_root.bubbleMaker(cs.sNum, 10, 'motivation');
cs.sTask = 'none';
cs.startDancing();
cs.col.setDesc('Nothing');
++_root.weeds;
if (_root.weeds >= 100) {
if (_root.achievements[4] == 0) {
_root.achievements[4] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 4;
}
}
_root.removeFromZandPOIArrays(this);
};
if (cs.sAge > _root.workAge) {
if (this.used == false) {
this.used = true;
this.stopTween();
_root.playSproutQuip('ok');
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
cs.ani.gotoAndStop('hoing');
cs.sTask = 'weeding';
this.alphaTo(0, 4, 'linear', 0, killme);
} else {
cs.pointOfInterest = 0;
cs.sTask = 'none';
cs.col.shouldWander('walking', 0);
cs.col.setDesc('Nothing');
}
} else {
cs.pointOfInterest = 0;
cs.sTask = 'none';
cs.col.shouldWander('walking', 0);
cs.col.setDesc('YoungToWork');
_root.playSproutQuip('baby');
}
}
function stopActivity(cs) {
cs.pointOfInterest = 0;
this.stopTween();
this.used = false;
var t = 50 + random(20);
delMe = function () {
_root.removeFromZandPOIArrays(this);
};
beginWait = function () {
this.alphaTo(0, 2, 'easeOutQuad', t, delMe);
};
this.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
var used = false;
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.WeedTitleXX, _root.WeedDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
var t = 50 + random(20);
_parent._alpha = 0;
delMe = function () {
_root.removeFromZandPOIArrays(_parent);
};
beginWait = function () {
this.alphaTo(0, 2, 'easeOutQuad', t, delMe);
};
_parent.alphaTo(100, 1, 'easeOutQuad', 0, beginWait);
}
}
}
movieClip 12374 {
}
movieClip 12375 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 12376 balloShell {
frame 1 {
this.onEnterFrame = function () {
this.ball.gotoAndStop(this.snum);
this._x = _root.game['mball' + this.snum]._x;
this._y = _root.game['mball' + this.snum]._y;
updateAfterEvent();
};
}
}
movieClip 12378 haloShell {
frame 1 {
this.onEnterFrame = function () {
this._x = _root.game['SS' + this.snum]._x;
this._y = _root.game['SS' + this.snum]._y;
updateAfterEvent();
};
}
}
movieClip 12380 {
}
movieClip 12381 tutorialArrow2 {
}
movieClip 12386 HUDTutorial {
frame 1 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG1XX;
_root.GameTime = false;
}
instance of movieClip 3 positionmarker {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NextXX;
this.onPress = function () {
_parent.nextFrame();
};
}
}
frame 2 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG2XX;
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NextXX;
this.onPress = function () {
_parent.nextFrame();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.PreviousXX;
this.onPress = function () {
_parent.prevFrame();
};
}
}
frame 3 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG3XX;
}
frame 4 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG4XX;
}
frame 5 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG5XX;
}
frame 6 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG6XX;
}
frame 7 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG7XX;
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
this.onPress = function () {
_root.GameTime = true;
_root.tutorialScript(0);
_root.playingInGameMovie = false;
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.PreviousXX;
this.onPress = function () {
_root.prevFrame();
};
}
}
}
movieClip 12387 {
}
movieClip 12389 LoadingShell {
instance of movieClip 12387 {
onClipEvent (load) {
this.onPress = function () {};
}
}
}
movieClip 12391 {
}
movieClip 12392 redFlowerDrag {
}
movieClip 12397 eggShell {
frame 1 {
function activity(cs) {
_root.HUD.sunButton.updateButton(1);
_root.mousecursor.gotoAndStop(1);
_root.effectsLayer.attachMovie('sunShineEffectShell', 'spell_sunshine', 11000 + _root.effectNum);
_root.effectsLayer.spell_sunshine._x = this._x;
_root.effectsLayer.spell_sunshine._y = this._y;
_root.effectsLayer.spell_sunshine._alpha = 0;
killsun2 = function () {
_root.effectsLayer.spell_sunshine.removeMovieClip();
};
killsun = function () {
cs.col.shouldWander('walking', 0);
_root.effectsLayer.spell_sunshine.alphaTo(0, 1, 'linear', 0, killsun2);
};
startSun = function () {
_root.effectsLayer.spell_sunshine.alphaTo(100, 2, 'linear', 0, killsun);
};
_root.effectsLayer.spell_sunshine.alphaTo(100, 0.5, 'linear', 0, startSun);
if (_root.sprout12[0] == 'none') {
if (_root.game['SS' + _root.totalActiveSprouts].sGender == 'm') {
var q = 'f';
} else {
var q = 'm';
}
_root.createSprout(this._x, this._y + 8, q, 1, null, 1);
_root.SaveGame();
done2 = function () {
i = 1;
while (i < _root.totalActiveSprouts) {
var cs = _root.game['SS' + i];
if (cs.needBubble.fLabel == 'wants' && cs.needBubble.wants.fLabel == 'sproutling') {
_root.playSproutQuip('wishfullfilled');
cs.needBubble._alpha = 0;
_root.bubbleMaker(cs.sNum, 5, 'karma');
}
++i;
}
_root.removeFromZandPOIArrays(this);
};
done = function () {
this.alphaTo(0, 1, 'linear', 0, done2);
};
this.alphaTo(100, 2, 'linear', 0, done);
var g = random(5) + 1;
_root.playSproutQuip('babylaughing');
_root.tipBoxMaker(_root['NewSproutIsBorn' + g + 'XX']);
_root.sproutlingMade[0] = 0;
_root.sproutlingMade[1] = 0;
this.gotoAndStop(2);
} else {
_root.tipBoxMaker(_root.CantMakeMoreSproutsXX);
}
}
stop();
this.col.onRollOver = function () {
if (this._parent._currentframe == 1) {
_root.HUD.adjustHUD('misc', _root.EggTitleXX, _root['EggIsCold' + Number(random(3) + 1) + 'XX']);
}
if (_root.mousecursor.fLabel == 'sun') {
_root.mousecursor.spellTip.gotoAndStop(1);
} else {
_root.mousecursor.spellTip.gotoAndStop(2);
}
};
this.col.onRollOut = function () {
if (_root.mousecursor.fLabel == 'sun') {
_root.mousecursor.spellTip.gotoAndStop(2);
}
};
this.col.onPress = function () {
if (_root.mousecursor.fLabel == 'sun') {
this._parent.activity();
}
};
}
frame 2 {
stop();
_root.playSound('S_eggcracking');
_root.SaveGame();
}
}
movieClip 12400 {
frame 1 {
}
}
movieClip 12401 aBoostShell {
frame 35 {
this.removeMovieClip();
}
}
movieClip 12403 {
}
movieClip 12404 fallingstarShell {
frame 1 {
this._alpha = 0;
_root.playSound('S_spellfallingstar');
done2 = function () {
this.removeMovieClip();
};
done = function () {
_root.game.attachMovie('fstarShell', 'fstarShell1', 2458);
_root.game.fstarShell1._x = this._x;
_root.game.fstarShell1._y = this._y + 2;
_root.game.fstarShell1.smoothing = true;
_root.zSortArray.push(_root.game.fstarShell1);
_root.pointsOfInterest.push(_root.game.fstarShell1);
this.alphaTo(0, 2, 'easeOutQuad', 3, done2);
};
this.alphaTo(100, 0.5, 'easeOutQuad', 0.6, done);
this.star.slideTo(0, 0, 2, 'easeOutQuad');
}
}
movieClip 12405 fstarShell {
frame 1 {
function activity(cs) {
if (this.used == false) {
cs.pointOfInterest = 0;
this.used = true;
done = function () {
_root.removeFromZandPOIArrays(this);
};
mark3 = function () {
this.alphaTo(100, 4, 'linear', 0, done);
_root.bubbleMaker(cs.sNum, 100, 'awake');
};
mark2 = function () {
this.alphaTo(100, 1, 'linear', 0, mark3);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
};
mark1 = function () {
this.alphaTo(100, 1, 'linear', 0, mark2);
_root.bubbleMaker(cs.sNum, 100, 'curiosity');
};
if (cs.needBubble.fLabel == 'wants' && cs.needBubble.wants.fLabel == 'fallingstar') {
_root.playSproutQuip('wishfullfilled');
cs.needBubble._alpha = 0;
_root.bubbleMaker(cs.sNum, 5, 'karma');
_root.tipBoxMaker(cs.sName + _root['GotWish' + Number(random(3) + 1) + cs.sGender + 'XX']);
} else {
if (cs.sAge > 15) {
_root.playSproutQuip('wow');
} else {
_root.playSproutQuip('baby');
}
}
_root.fallingStarMade[0] = 0;
_root.fallingStarMade[1] = 0;
_root.bubbleMaker(cs.sNum, 100, 'motivation');
cs.needBubble._alpha = 0;
cs.sTask == 'none';
this.alphaTo(100, 0.5, 'linear', 0, mark1);
}
}
stop();
if (_root.GameTime == true) {
_root.fallingStarMade[0] = this._x;
_root.fallingStarMade[1] = this._y;
}
var used = false;
}
}
movieClip 12414 giftBox {
frame 1 {
function activity(cs) {
if (this.used == false) {
cs.pointOfInterest = 0;
this.used = true;
if (cs.needBubble.fLabel == 'wants' && cs.needBubble.wants.fLabel == 'gift') {
cs.needBubble._alpha = 0;
_root.bubbleMaker(cs.sNum, 5, 'karma');
_root.tipBoxMaker(cs.sName + _root['GotWish' + Number(random(3) + 1) + cs.sGender + 'XX']);
}
var amn = 20 + Number(5 * Number(random(4) + 1));
done = function () {
_root.bubbleMaker(cs.sNum, amn, 'curiosity');
_root.removeFromZandPOIArrays(this);
};
_root.giftMade[0] = 0;
_root.giftMade[1] = 0;
_root.bubbleMaker(cs.sNum, amn, 'motivation');
this.alphaTo(100, 1, 'linear', 0, done);
}
}
stop();
_root.giftMade[0] = this._x;
_root.giftMade[1] = this._y + 600;
this.gotoAndStop(random(4) + 1);
var used = false;
this.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.GiftBoxTitleXX, _root.GiftBoxDescriptionXX, this._parent.pnum);
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12416 {
}
movieClip 12417 giftShell {
frame 1 {
this._alpha = 0;
_root.playSound('S_spellgift');
done3 = function () {
this.removeMovieClip();
};
done = function () {
_root.game.attachMovie('giftBox', 'giftBox', 2648);
_root.game.giftBox._x = this._x;
_root.game.giftBox._y = this._y - 600;
_root.game.giftBox.ySlideTo(this._y, 2, 'easeInQuad');
_root.pointsOfInterest.push(_root.game.giftBox);
_root.zSortArray.push(_root.game.giftBox);
this.alphaTo(0, 4, 'easeOutQuad', 0, done3);
};
this.alphaTo(100, 0.5, 'easeOutQuad', 0, done);
}
}
movieClip 12419 {
}
movieClip 12420 {
}
movieClip 12421 inventionMover {
frame 1 {
moverDone = function () {
_root.GameTime = true;
var g = _root.game;
var gb = _root.game.BG;
g.attachMovie(this.invention, this.namer, 2348);
g[this.namer]._x = this.dest._x;
g[this.namer]._y = this.dest._y;
g[this.namer].ball.stop();
g[this.namer].pComplete = 100;
g[this.namer].pDiscovered = 1;
_root.pointsOfInterest.push(g[this.namer]);
_root.zSortArray.push(g[this.namer]);
_root.playSound('S_structurediscovered');
_root.effectsLayer.attachMovie('discoveredStructure', 'DSST', 10005);
_root.effectsLayer.DSST._x = this.dest._x;
_root.effectsLayer.DSST._y = this.dest._y;
_root.SaveGame();
this.removeMovieClip();
};
this.onPress = function () {
_root.GameTime = false;
this.slideTo(this.dest._x, this.dest._y, 3, 'easeInQuad', 0, moverDone);
_root.playSound('S_flytostructurediscovered');
var n = _root.game;
var slideX = -Number(this.dest._x - 400);
var slideY = -Number(this.dest._y - 300);
if (slideX < -795) {
slideX = -795;
}
if (slideX > 0) {
slideX = 0;
}
if (slideY < -1390) {
slideY = -1390;
}
if (slideY > 0) {
slideY = 0;
}
if (_root.worldView == false) {
n.slideTo(slideX, slideY, 3, 'easeInQuad');
}
};
}
}
movieClip 12484 {
}
movieClip 12485 kiteShell {
frame 1 {
function activity(cs) {
if (_root.bridge[1] >= 100) {
if (this.isUsed == false) {
this.isUsed = true;
var controllerSprout = cs;
cs._x = this._x;
cs._y = this._y - 2;
cs.ani.gotoAndStop('idle');
cs.ani.rot.gotoAndStop(1);
cs.needBubble._alpha = 0;
cs.col.setDesc('TryingKite');
this.sp = cs;
if (cs.sTask == 'kiting') {
this.gotoAndStop(3);
} else {
cs.sTask = 'tryingToKite';
this.gotoAndStop(2);
}
} else {
cs.sTask = 'none';
cs.col.setDesc('Nothing');
cs.col.shouldWander('walking', 0);
cs.pointOfInterest = 0;
}
} else {
_root.sproutBadPlace(cs);
}
}
function flyUp(cs) {
kitecycle2 = function () {
this.slideTo(-150, -200, 2, 'linear', 0, kitecycle1);
};
kitecycle1 = function () {
var rx = Number(this._x - 40) + random(80);
var ry = Number(this._y - 40) + random(80);
this.slideTo(rx, ry, 2, 'linear', 0, kitecycle2);
};
this.sp.sTask = 'kiting';
this.flying.slideTo(-150, -200, 4, 'linear', 0, kitecycle1);
this.flying.scaleTo(100, 4, 'linear');
var g = Number(this.getDepth()) - 1;
this.createEmptyMovieClip('kite' + cs, g);
var b = this['kite' + cs];
this.swapDepths(b);
this.sp.sDescription = _root['FlyingKite' + Number(random(5) + 1) + 'XX'];
b.f = this.flying;
b.g = this.controllerSprout;
b.h = this.cp;
b.onEnterFrame = function () {
this.clear();
this.lineStyle(1, 16777215, 65);
this.moveTo(this.f._x, this.f._y);
this.curveTo(this.h._x, this.h._y, this.g._x, this.g._y);
};
}
function stopActivity(cs) {
this.isUsed = false;
cs.pointOfInterest = 0;
this.flying.stopTween();
kiteBack = function () {
_root.game.kite1.gotoAndStop(1);
};
this.flying.slideTo(-30, -16, 2, 'linear');
this.flying.xScaleTo(45, 2, 'linear');
this.flying.yScaleTo(60, 2, 'linear');
this.flying.rotateTo(-90, 2, 'easeInQuad', 0, kiteBack);
}
stop();
var sp = null;
var isUsed = false;
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1 && _root.bridge[1] >= 100) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.HUD.adjustHUD('misc', _root.KiteTitleXX, _root.KiteDescriptionXX, this._parent.pnum);
}
};
this.col.onRollOut = function () {
if (this._parent.pDiscovered >= 1 && _root.bridge[1] >= 100) {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
}
frame 2 {
stop();
}
instance col of movieClip 3 positionmarker {
onClipEvent (load) {
this.onRollOver = function () {
if (_root.mousecursor.fLabel == 'wind') {
_root.mousecursor.spellTip.gotoAndStop(1);
}
};
this.onRollOut = function () {
if (_root.mousecursor.fLabel == 'wind') {
_root.mousecursor.spellTip.gotoAndStop(2);
}
};
this.onPress = function () {
if (_root.GameTime == true) {
if (_root.mousecursor.fLabel == 'wind') {
_root.HUD.windButton.updateButton(1);
_root.effectsLayer.attachMovie('spellWindEffect', 'spell_wind', 11000 + _root.effectNum);
_root.effectsLayer.spell_wind._x = _parent._x;
_root.effectsLayer.spell_wind._y = _parent._y;
_root.mousecursor.gotoAndStop(1);
_parent.gotoAndStop(3);
}
}
};
}
}
frame 3 {
stop();
flyUp(this.sp);
cycle2 = function () {
var d = random(150);
this.xSlideTo(-d, 5, 'easeOutQuad', 0, cycle1);
};
cycle1 = function () {
var d = random(60);
this.xSlideTo(-d, 5, 'easeOutQuad', 0, cycle2);
};
this.cp.xSlideTo(-100, 5, 'easeOutQuad', 0, cycle1);
}
}
movieClip 12496 {
frame 1 {
_root.playSound('S_lightningBolt');
}
frame 3 {
mdm.Application.shake(15);
}
frame 8 {
_parent.removeMovieClip();
}
}
movieClip 12497 lightningShell {
}
movieClip 12499 magicFlower {
frame 30 {
function activity(cs) {
if (this.used == false) {
cs.pointOfInterest = 0;
this.used = true;
done = function () {
_root.bubbleMaker(cs.sNum, 100, 'awake');
_root.removeFromZandPOIArrays(this);
};
if (cs.needBubble.fLabel == 'hunger') {
cs.needBubble._alpha = 0;
}
_root.bubbleMaker(cs.sNum, 100, 'hunger');
if (cs.needBubble.fLabel == 'sleepy') {
cs.needBubble._alpha = 0;
}
_root.magicFlowerMade[0] = 0;
_root.magicFlowerMade[1] = 0;
this.alphaTo(100, 1, 'linear', 0, done);
}
}
stop();
_root.magicFlowerMade[0] = this._x;
_root.magicFlowerMade[1] = this._y;
var used = false;
this.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.MFlowerTitleXX, _root.MFlowerDescriptionXX, this._parent.pnum);
};
}
}
movieClip 12500 magicFlowerShell {
frame 1 {
this._alpha = 0;
_root.playSound('S_spellflower');
done2 = function () {
this.removeMovieClip();
};
done = function () {
_root.game.attachMovie('magicFlower', 'magicFlowerBud', 2456);
_root.game.magicFlowerBud._x = this._x;
_root.game.magicFlowerBud._y = this._y;
_root.zSortArray.push(_root.game.magicFlowerBud);
_root.pointsOfInterest.push(_root.game.magicFlowerBud);
this.alphaTo(0, 4, 'easeOutQuad', 2, done2);
};
this.alphaTo(100, 0.5, 'easeOutQuad', 0, done);
}
}
movieClip 12501 mushroomBall1Shell {
frame 1 {
function activity(cs) {
_root.playSproutQuip('wee');
this.sNum = cs.sNum;
cs.sTask = 'kicking';
cs.col.setDesc('Kicking');
cs.col.shouldWander('kicking', 0);
}
function stopActivity(cs) {
cs.pointOfInterest = 0;
cs.sTask = 'none';
cs.col.shouldWander('walking', 0);
cs.col.setDesc('Nothing');
}
stop();
var sXspeed = 0;
var sYspeed = 0;
var sNum = 0;
var dep = 0;
this.col.onPress = function () {
if (_root.GameTime == true && _root.worldView == false) {
i = 0;
while (i <= _root.totalActiveSprouts + 1) {
if (_root.game['SS' + i].sTask == 'kicking') {
this._parent.stopActivity(_root.game['SS' + i]);
}
++i;
}
delete this._parent.onEnterFrame;
_root.movingSprout = true;
_root.draggingScreen = false;
_root.holdingSprout = this._parent;
this._parent.onEnterFrame = function () {
this._x = _root.mousecursor._x - _root.game._x;
this._y = _root.mousecursor._y - _root.game._y;
};
}
};
this.col.onRelease = function () {
_root.movingSprout = 0;
delete this._parent.onEnterFrame;
_root.mushroomBall[0] = this._parent._x;
_root.mushroomBall[1] = this._parent._y;
var cc = _root.checkCollision(this, _root.game.BG.col);
if (cc == true) {
_root.sproutBadPlace(this._parent, 'ball');
}
};
this.col.onRollOver = function () {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
_root.selectedSprout = this._parent;
_root.HUD.adjustHUD('misc', _root.MushroomBall1TitleXX, _root.MushroomBall1DescriptionXX);
this._parent.dep = this._parent.getDepth();
this._parent.swapDepths(_root.selectionDepth);
};
this.col.onRollOut = function () {
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
_root.selectedSprout = 'none';
_root.zSortObjects();
};
}
}
movieClip 12502 newIdeaMover {
frame 1 {
moverDone = function () {
if (_root.tutorialOn == 10) {
_root.tutorialScript(10);
}
_root.GameTime = true;
var g = _root.game;
var gb = _root.game.BG;
g.attachMovie(_root.bs[this.i], _root.bs[this.i], 2348 + this.i);
g[_root.bs[this.i]]._x = gb[_root.bs[this.i] + 'SP']._x;
g[_root.bs[this.i]]._y = gb[_root.bs[this.i] + 'SP']._y;
g[_root.bs[this.i]].pComplete = 0;
g[_root.bs[this.i]].pDiscovered = 1;
g[_root.bs[this.i]].pNumberOfWorkers = 0;
g[_root.bs[this.i]].pEffort = 100;
g[_root.bs[this.i]].pnum = this.i;
_root[_root.bs[this.i]][0] = 1;
_root.game.BG.col.setCollisionFrame();
_root.pointsOfInterest.push(g[_root.bs[this.i]]);
_root.zSortArray.push(g[_root.bs[this.i]]);
_root.playSound('S_structurediscovered');
q = 0;
while (q < _root.totalActiveSprouts + 1) {
cs = _root.game['SS' + q];
cs.ani.rot.sprout.play();
cs.ani.rot.flower.play();
cs.ani.rot.sprout.resumeTween();
cs.ani.rot.flower.resumeTween();
cs.resumeTween();
cs.ani.resumeTween();
++q;
}
_root.effectsLayer.attachMovie('buildHammerShell', 'bhs', 10004);
_root.effectsLayer.bhs._x = _root.game.BG[_root.bs[this.i] + 'SP']._x;
_root.effectsLayer.bhs._y = _root.game.BG[_root.bs[this.i] + 'SP']._y;
_root.effectsLayer.attachMovie('discoveredStructure', 'DSST', 10005);
_root.effectsLayer.DSST._x = _root.game.BG[_root.bs[this.i] + 'SP']._x;
_root.effectsLayer.DSST._y = _root.game.BG[_root.bs[this.i] + 'SP']._y;
_root.SaveGame();
this.removeMovieClip();
};
this.og.newIdeaShell.removeMovieClip();
this.slideTo(this.dest._x, this.dest._y, 3, 'easeInQuad', 0, moverDone);
}
}
movieClip 12503 newIdeaShell {
frame 1 {
this.smoothing = true;
this.onPress = function () {
i = 0;
while (i < _root.bs.length) {
if (_root[_root.bs[i]][0] == 0 && _root.brainstorming >= 100) {
_root.effectsLayer.attachMovie('genParticle', 'gpart' + this._parent.sNum, 6100 + this._parent.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = this._parent._x;
_root.effectsLayer['gpart' + cs.sNum]._y = this._parent._y - 80;
if (_root.tutorialOn == 9) {
_root.tutorialScript(9);
}
_root.GameTime = false;
_root.brainstorming = 0;
var g = _root.game;
var gb = _root.game.BG;
_root.pointsOfInterest[this._parent.pointOfInterest].stopActivity(this._parent);
q = 0;
while (q < _root.totalActiveSprouts + 1) {
cs = _root.game['SS' + q];
cs.ani.rot.sprout.stop();
cs.ani.rot.flower.stop();
cs.ani.rot.sprout.pauseTween();
cs.ani.rot.flower.pauseTween();
cs.pauseTween();
cs.ani.pauseTween();
++q;
}
g.attachMovie('newIdeaMover', 'NIM', 2452 + i);
g.NIM._x = this._parent._x;
g.NIM._y = this._parent._y - 80;
g.NIM.og = this._parent;
g.NIM.dest = gb[_root.bs[i] + 'SP'];
g.NIM.i = i;
var slideX = -Number(gb[_root.bs[i] + 'SP']._x - 400);
var slideY = -Number(gb[_root.bs[i] + 'SP']._y - 300);
if (slideX < -795) {
slideX = -795;
}
if (slideX > 0) {
slideX = 0;
}
if (slideY < -1390) {
slideY = -1390;
}
if (slideY > 0) {
slideY = 0;
}
if (_root.worldView == false) {
g.slideTo(slideX, slideY, 3, 'easeInQuad');
}
_root.playSound('S_flytostructurediscovered');
this._parent.sLikes = '';
this._parent.col.setDesc('Nothing');
this._parent.col.shouldWander('walking', 0);
this._alpha = 100;
}
++i;
}
};
}
}
movieClip 12505 nightTimeEffect {
}
movieClip 12507 {
}
movieClip 12508 puddleShell {
frame 1 {
function activity(cs) {
cs.slideTo(this._x, this._y + 20, 1, 'easeOutQuad');
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('irritated');
cs.col.setDesc('WetSprout');
cs.col.shouldWander('running', 3);
} else {
killMe = function () {
_root.removeFromZandPOIArrays(this);
};
this.stopTween();
this.alphaTo(0, 2, 'linear', 0, killMe);
_root.playSproutQuip('baby');
_root.playSound('S_watersplashing');
cs.col.setDesc('WetChildSprout');
_root.bubbleMaker(cs.sNum, 5, 'motivation');
}
}
stop();
this._alpha = 0;
done3 = function () {
_root.removeFromZandPOIArrays(this);
};
done2 = function () {
this.alphaTo(0, 4, 'linear', 0, done3);
};
done = function () {
this.alphaTo(100, 15, 'linear', 0, done2);
};
this.alphaTo(100, 2.4, 'linear', 0, done);
}
}
movieClip 12509 sproutlingShell {
frame 1 {
this._alpha = 0;
_root.playSound('S_spellsproutling');
done2 = function () {
this.removeMovieClip();
};
done = function () {
_root.game.attachMovie('eggShell', 'eggShell', 2648);
_root.game.eggShell._x = this._x;
_root.game.eggShell._y = this._y - 600;
_root.sproutlingMade[0] = this._x;
_root.sproutlingMade[1] = this._y;
_root.game.eggShell.ySlideTo(this._y, 2, 'easeOutQuad');
_root.zSortArray.push(_root.game.eggShell);
_root.pointsOfInterest.push(_root.game.eggShell);
this.alphaTo(0, 4, 'easeOutQuad', 0, done2);
};
this.alphaTo(100, 0.5, 'easeOutQuad', 0, done);
}
}
movieClip 12511 {
}
movieClip 12512 torchShell {
frame 1 {
fire.gotoAndPlay(random(40) + 1);
}
}
movieClip 12513 visionRayShell {
frame 1 {
this._alpha = 0;
_root.playSound('S_spellvision');
done3 = function () {
this.removeMovieClip();
};
done = function () {
this.alphaTo(0, 3, 'easeOutQuad', 0, done3);
};
_root.game['SS' + sprout.sNum].attachMovie('visionShell', 'visionShell', 2648);
_root.game['SS' + sprout.sNum].visionShell._y = -50;
this.alphaTo(100, 0.5, 'easeOutQuad', 0, done);
}
}
movieClip 12514 visionShell {
}
movieClip 12557 {
}
movieClip 12559 {
}
movieClip 12560 rainEffectShell {
frame 1 {
_root.playSound('S_spellrain');
if (this.makePuddle == true) {
++_root.effectNum;
_root.game.attachMovie('puddleShell', 'puddles', 6512);
_root.game.puddles._x = this._x;
_root.game.puddles._y = this._y - 15;
_root.zSortArray.push(_root.game.puddles);
_root.pointsOfInterest.push(_root.game.puddles);
}
}
}
movieClip 12568 {
}
movieClip 12569 sunShineEffectShell {
frame 1 {
_root.playSound('S_spellsun');
}
}
movieClip 12573 {
}
movieClip 12576 {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
}
instance timeDial of movieClip 12573 {
onClipEvent (load) {
this.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.TimeDialTitleXX, _root.TimeDialDescriptionXX, this._parent.pnum);
};
}
}
}
movieClip 12584 {
}
movieClip 12587 {
}
movieClip 12590 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12595 {
}
movieClip 12597 {
}
movieClip 12599 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12602 {
}
movieClip 12603 {
frame 1 {
stop();
}
frame 2 {
stop();
this.charge._yscale = _root.spellChargeArray[_parent.spellchargenum];
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12606 {
}
movieClip 12607 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12610 {
}
movieClip 12611 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12614 {
}
movieClip 12616 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12619 {
}
movieClip 12620 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12623 {
}
movieClip 12624 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12627 {
}
movieClip 12628 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12631 {
}
movieClip 12632 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12636 {
}
movieClip 12641 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 12643 {
}
movieClip 12644 {
}
movieClip 12646 {
}
movieClip 12647 {
}
movieClip 12649 {
}
movieClip 12651 {
}
movieClip 12655 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 12657 {
}
movieClip 12661 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 12663 {
}
movieClip 12666 {
}
movieClip 12669 {
}
movieClip 12672 {
}
movieClip 12675 {
}
movieClip 12680 {
frame 1 {
function updateHudStats() {
ahunger.stopTween();
asleepiness.stopTween();
acuriosity.stopTween();
amotivation.stopTween();
ahunger._xscale = Number(100 - _root.lastSprout.sHunger);
asleepiness._xscale = Number(100 - _root.lastSprout.sSleepiness);
acuriosity._xscale = _root.lastSprout.sCuriosity;
amotivation._xscale = _root.lastSprout.sMotivation;
if (_root.lastSprout.sDislikes > 0) {
vision._alpha = 100;
} else {
vision._alpha = 0;
}
}
}
}
movieClip 12683 {
}
movieClip 12686 {
frame 1 {
function updateHudStats(a) {
t.text = _root.bsn[a];
astructure._xscale = _root.game[_root.bs[a]].pComplete;
var amount = int(_root.game[_root.bs[a]].pComplete * 100) / 100;
if (amount > 100) {
amount = 100;
}
tt.text = amount + '% ' + _root.PercentCompleteXX;
}
}
}
movieClip 12693 {
frame 1 {
function updateHudStats() {
if (_root.game.toolShop.pComplete >= 100 && _root.game.toolShop.pComplete < 201) {
astructure._xscale = Number(_root.game.toolShop.pComplete - 100);
var amount = int(Number(_root.game.toolShop.pComplete - 100) * 100) / 100;
tt.text = amount + '% ' + _root.PercentCompleteXX;
} else {
if (_root.game.toolShop.pComplete >= 200 && _root.game.toolShop.pComplete < 301) {
astructure._xscale = Number(_root.game.toolShop.pComplete - 200);
var amount = int(Number(_root.game.toolShop.pComplete - 200) * 100) / 100;
tt.text = amount + '% ' + _root.PercentCompleteXX;
} else {
if (_root.game.toolShop.pComplete >= 300 && _root.game.toolShop.pComplete < 401) {
astructure._xscale = Number(_root.game.toolShop.pComplete - 300);
var amount = int(Number(_root.game.toolShop.pComplete - 300) * 100) / 100;
tt.text = amount + '% ' + _root.PercentCompleteXX;
} else {
if (_root.game.toolShop.pComplete >= 400 && _root.game.toolShop.pComplete < 501) {
astructure._xscale = Number(_root.game.toolShop.pComplete - 400);
var amount = int(Number(_root.game.toolShop.pComplete - 400) * 100) / 100;
tt.text = amount + '% ' + _root.PercentCompleteXX;
} else {
if (_root.game.toolShop.pComplete >= 500 && _root.game.toolShop.pComplete < 601) {
astructure._xscale = Number(_root.game.toolShop.pComplete - 500);
var amount = int(Number(_root.game.toolShop.pComplete - 500) * 100) / 100;
tt.text = amount + '% ' + _root.PercentCompleteXX;
} else {
if (_root.game.toolShop.pComplete >= 600 && _root.game.toolShop.pComplete < 701) {
astructure._xscale = Number(_root.game.toolShop.pComplete - 600);
var amount = int(Number(_root.game.toolShop.pComplete - 600) * 100) / 100;
tt.text = amount + '% ' + _root.PercentCompleteXX;
} else {
if (_root.game.toolShop.pComplete >= 700 && _root.game.toolShop.pComplete < 801) {
astructure._xscale = Number(_root.game.toolShop.pComplete - 700);
var amount = int(Number(_root.game.toolShop.pComplete - 700) * 100) / 100;
tt.text = amount + '% ' + _root.PercentCompleteXX;
} else {
if (_root.game.toolShop.pComplete >= 801) {
this.gotoAndStop(2);
}
}
}
}
}
}
}
}
t.text = _root.NewInventionXX;
}
stop();
}
frame 2 {
stop();
}
}
movieClip 12697 {
}
movieClip 12698 HUD {
frame 1 {
function adjustHUD(displayType, hudTitle, hudDescription, variableNumber) {
if (displayType == 'sprout') {
wTitle.text = hudTitle;
selSprout = variableNumber;
i = 0;
while (i < _root.bs.length) {
if (d == _root.bs[i] && _root.game['SS' + variableNumber].sDescription == 'none') {
var zz = _root['Working' + Number(random(25) + 1) + 'XX'];
wDescription.text = t + zz;
_root.game['SS' + variableNumber].sDescription = zz;
} else {
wDescription.text = hudTitle + _root.game['SS' + variableNumber].sDescription;
}
++i;
}
wAge.text = _root.AgeXX + Math.floor(_root.game['SS' + variableNumber].sAge);
stats.updateHudStats();
stats2._visible = false;
stats3._visible = false;
stats._visible = true;
} else {
if (displayType == 'structure') {
wTitle.text = _root.bsn[variableNumber];
wDescription.text = _root['Structure' + variableNumber + 'DescriptionXX'];
wAge.text = '';
if (_root.game[_root.bs[variableNumber]] == _root.game.toolShop && _root.game.toolShop.pComplete > 100 && _root.game.toolShop.pComplete < 801) {
stats3._visible = true;
stats2._visible = false;
stats._visible = false;
} else {
if (_root.game[_root.bs[variableNumber]].pComplete < 100) {
stats2._visible = true;
stats._visible = false;
stats3._visible = false;
} else {
stats2._visible = false;
stats._visible = false;
stats3._visible = false;
}
}
stats2.updateHudStats(variableNumber);
stats3.updateHudStats();
} else {
if (displayType == 'spell') {
wTitle.text = hudTitle;
wDescription.text = hudDescription;
wAge.text = '';
stats2._visible = false;
stats._visible = false;
stats3._visible = false;
} else {
if (displayType == 'garden') {
wTitle.text = _root.bsn[variableNumber];
if (hudDescription == null) {
wDescription.text = _root['Structure' + variableNumber + 'DescriptionXX'];
} else {
wDescription.text = hudDescription;
}
wAge.text = '';
stats3.updateHudStats(variableNumber);
stats2._visible = false;
stats._visible = false;
stats3._visible = false;
} else {
if (displayType == 'misc') {
wTitle.text = hudTitle;
wDescription.text = hudDescription;
wAge.text = '';
stats2._visible = false;
stats._visible = false;
stats3._visible = false;
}
}
}
}
}
}
var selSprout = 0;
wTitle.html = true;
wDescription.html = true;
wDescription.multiline = true;
wDescription.wordWrap = true;
}
instance fallingStarButton of movieClip 12590 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'fallingStar';
var cDef = 'FallingStar';
var spellchargenum = 9;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (this._alpha == 100) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
} else {
_root.tipBoxMaker(_root.OnlyDuringNightXX);
}
}
};
this.onRollOver = function () {
_parent.spellHover2._x = this._x;
_parent.spellHover2._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringNightXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover2._x = -45;
_parent.spellHover2._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance sunButton of movieClip 12599 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'sun';
var cDef = 'Sun';
var spellchargenum = 0;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (this._alpha == 100) {
if (_root.tutorialOn == 6) {
_root.tutorialScript(6);
}
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
} else {
_root.tipBoxMaker(_root.OnlyDuringDayXX);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance rainButton of movieClip 12603 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'rain';
var cDef = 'Rain';
var spellchargenum = 1;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (_root.tutorialOn == 4) {
_root.tutorialScript(4);
}
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance windButton of movieClip 12607 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'wind';
var cDef = 'Wind';
var spellchargenum = 4;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance lightningButton of movieClip 12611 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'lightning';
var cDef = 'Lightning';
var spellchargenum = 5;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(2);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance rainbowButton of movieClip 12616 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'rainbow';
var cDef = 'Rainbow';
var spellchargenum = 8;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (this._alpha == 100) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(2);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
} else {
_root.tipBoxMaker(_root.OnlyDuringDayXX);
}
}
};
this.onRollOver = function () {
_parent.spellHover2._x = this._x;
_parent.spellHover2._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover2._x = -45;
_parent.spellHover2._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance sproutlingButton of movieClip 12620 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true || _root.sprout12[0] != 'none') {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2 && _root.sprout12[0] == 'none') {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'sproutling';
var cDef = 'Sproutling';
var spellchargenum = 2;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (this._alpha == 100) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
} else {
_root.tipBoxMaker(_root.OnlyDuringNightXX);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringNightXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance magicFlowerButton of movieClip 12624 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'magicFlower';
var cDef = 'Flower';
var spellchargenum = 7;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance giftButton of movieClip 12628 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'gift';
var cDef = 'Gift';
var spellchargenum = 3;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance visionButton of movieClip 12632 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'vision';
var cDef = 'Vision';
var spellchargenum = 6;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(1);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
}
};
this.onRollOver = function () {
_parent.spellHover._x = this._x;
_parent.spellHover._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover._x = -45;
_parent.spellHover._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance earthquakeButton of movieClip 12641 {
onClipEvent (load) {
function updateButton(a) {
if (a == 1) {
this.bactive = false;
this.gotoAndStop(2);
this.charge._yscale = 0;
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
if (this._currentframe == 1) {
if (_root.HUD.firstTimeUP == true) {
} else {
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('spellDiscoveredShell', 'SDS', 12000);
_root.SDS._x = 400;
_root.SDS._y = 300;
_root.SDS.n = bDef;
_root.SDS.m = cDef;
_root.GameTime = false;
}
if (_root.spellChargeArray[spellchargenum] >= 100) {
this.gotoAndStop(3);
this.bactive = true;
} else {
this.gotoAndStop(2);
this.charge._yscale = _root.spellChargeArray[spellchargenum];
}
} else {
if (this.charge._yscale == 100 && this._currentframe == 2) {
if (_root.HUD.firstTimeUp == true) {
} else {
_root.playSound('S_spellrecharged');
}
this.charge._yscale = 0;
_root.HUD.attachMovie('spellDiscovered', 'SDEffect', 12500);
_root.HUD.SDEffect._x = this._x;
_root.HUD.SDEffect._y = this._y;
this.bactive = true;
this.gotoAndStop(3);
}
}
}
}
}
var bactive = false;
var bDef = 'earthquake';
var cDef = 'Earthquake';
var spellchargenum = 8;
this.amount.text = _root[bDef + 'UnlockPoints'];
updateButton();
this.onPress = function () {
if (this.bactive == true) {
if (this._alpha == 100) {
if (_root.mousecursor.fLabel == bDef) {
_root.mousecursor.gotoAndStop(2);
} else {
_root.mousecursor.gotoAndStop(bDef);
}
} else {
_root.tipBoxMaker(_root.OnlyDuringDayXX);
}
}
};
this.onRollOver = function () {
_parent.spellHover3._x = this._x;
_parent.spellHover3._y = this._y;
if (bactive == true) {
if (this._alpha == 100) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root['Spell' + cDef + 'DescriptionXX'], null);
this.gotoAndStop(4);
} else {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.OnlyDuringDayXX, null);
}
} else {
if (_root.karmaPoints >= _root[bDef + 'UnlockPoints']) {
_root.HUD.adjustHUD('spell', _root['Spell' + cDef + 'XX'], _root.TheXX + _root['Spell' + cDef + 'XX'] + _root.SpellIsChargingXX, null);
} else {
_root.HUD.adjustHUD('spell', _root.UnknownSpellXX, _root.ThisSpellIsLockedXX + _root[bDef + 'UnlockPoints'] + _root.MoreKarmaPointsXX, null);
}
}
};
this.onReleaseOutside = function () {
_parent.spellHover3._x = -45;
_parent.spellHover3._y = 645;
if (bactive == true) {
this.gotoAndStop(3);
}
};
this.onRollOut = this.onReleaseOutside;
}
}
instance progressMeter of movieClip 12644 {
onClipEvent (load) {
this.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.CommunityProgressTitleXX, _root.CommunityProgressDescriptionXX, this._parent.pnum);
};
}
}
instance happyMeter of movieClip 12647 {
onClipEvent (load) {
this.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.CommunityHappinessTitleXX, _root.CommunityHappinessDescriptionXX, this._parent.pnum);
};
}
}
instance menuButton of movieClip 12655 {
onClipEvent (load) {
this.onPress = function () {
_root.mousecursor.gotoAndStop(1);
_root.attachMovie('menuShell', 'MS', 12000);
_root.MS._x = 400;
_root.MS._y = 300;
_root.GameTime = false;
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
this.onRollOut = this.onReleaseOutside;
}
}
instance worldButton of movieClip 12661 {
onClipEvent (load) {
this.onPress = function () {
_root.mousecursor.gotoAndStop(1);
if (_root.worldView == false) {
homex = _root.game._x;
homey = _root.game._y;
mbuthomex = this._x;
mbuthomey = this._y;
_root.worldView = true;
_root.attachMovie('worldPanel', 'WP', 11999);
_root.WP.homex = homex;
_root.WP.homey = homey;
_root.game._yscale = 33;
_root.game._xscale = 33;
_root.game._x = 270;
_root.game._y = 0;
_root.HUD._y = 220;
}
};
this.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.WorldViewTitleXX, _root.WorldViewDescriptionXX, this._parent.pnum);
this.gotoAndStop(2);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
this.onRollOut = this.onReleaseOutside;
}
}
instance stats of movieClip 12680 {
onClipEvent (load) {
this._visible = false;
}
}
instance stats2 of movieClip 12686 {
onClipEvent (load) {
this._visible = false;
}
}
instance stats3 of movieClip 12693 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 12704 {
}
movieClip 12725 {
frame 1 {
stop();
var unlocked = false;
if (_root.achievements[this.num] == 1) {
unlocked = true;
this.gotoAndStop(this.num + 2);
}
onRollOver = function () {
if (unlocked == true) {
_parent.bigAchievement.gotoAndStop(num + 2);
}
this.hover.alphaTo(100, 0.3, 'easeOutQuad');
_parent.tname.text = _root['Achievement' + Number(num + 1) + 'XX'];
_parent.tdesc.text = _root['AchievementDescrip' + Number(num + 1) + 'XX'];
};
onRollOut = function () {
this.hover.alphaTo(50, 0.15, 'easeOutQuad');
_parent.tname.text = '';
_parent.tdesc.text = _root.RollOverAchievementXX;
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 12728 {
}
movieClip 12749 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 12750 achievementShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
tname.text = '';
tdesc.text = '';
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 7538 {
onClipEvent (load) {
this.gotoAndPlay(Number(random(20) + 1));
this.onPress = function () {
this.startDrag();
};
this.onRelease = function () {
this.stopDrag();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.attachMovie('menuShell', 'MS', 12000);
_root.MS._x = 400;
_root.MS._y = 300;
_parent.removeMovieClip();
};
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 0;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 1;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 2;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 3;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 4;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 5;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 6;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 7;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 8;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 9;
}
}
}
movieClip 12754 achivementDiscovered {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
_root.playSound('S_stonediscovered');
var setNum = this.num + 1;
_root.SaveGame();
tt.htmlText = _root['Achievement' + setNum + 'XX'];
t.htmlText = _root['AchievementDescrip' + setNum + 'XX'];
this.bigAchievement.gotoAndStop(setNum + 1);
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
if (this._parent.num == 5) {
_root.attachMovie('windMillCompletedTut', 'wmct', 12005);
_root.wmct._x = 400;
_root.wmct._y = 300;
}
_parent.removeMovieClip();
};
}
}
}
movieClip 12757 butterflyDiscovered {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
_root.playSound('S_butterflydiscovered');
_root.butterflies[Number(this.num - 1)] = 1;
_root.SaveGame();
if (_root.game['SS' + sproutNum].sGender == 'm') {
var description = _root.ButterflyDiscoveredTextMXX;
} else {
var description = _root.ButterflyDiscoveredTextFXX;
}
t.htmlText = _root.game['SS' + sproutNum].sName + description;
this.attachMovie(num + '_BigButterfly', 'BB' + num, 3);
this['BB' + num]._y = -60;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
if (_root.butterflies[0] == 1 && _root.butterflies[1] == 1 && _root.butterflies[2] == 1 && _root.butterflies[3] == 1 && _root.butterflies[4] == 1 && _root.butterflies[5] == 1 && _root.butterflies[6] == 1 && _root.butterflies[7] == 1 && _root.butterflies[8] == 1 && _root.butterflies[9] == 1) {
if (_root.achievements[1] == 0) {
_root.achievements[1] = 1;
_root.attachMovie('achivementDiscovered', 'butterfd', 12011);
_root.butterfd._x = 400;
_root.butterfd._y = 300;
_root.butterfd.num = 1;
}
}
_root.bubbleMaker(_root.lastSproutNum, 30, 'curiosity');
_parent.removeMovieClip();
};
}
}
instance of movieClip 7538 {
onClipEvent (load) {
this.gotoAndPlay(Number(random(20) + 1));
this.onPress = function () {
this.startDrag();
};
this.onRelease = function () {
this.stopDrag();
};
}
}
}
movieClip 12760 confirmDeletePlayer {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.YesXX;
var d = _root.deletePlayer;
this.onPress = function () {
if (_root.playerProfile == 'Player0' + d) {
_root.playerProfile = 'noProfile';
_root.currentPlayerName = 'none';
}
_root['p' + d + 'name'] = 'none';
_root['p' + d + 'Volume'] = 75;
_root['p' + d + 'soundVolume'] = 100;
_root['p' + d + 'customCursor'] = 'true';
_root['p' + d + 'gameToolTips'] = 'true';
_root['p' + d + 'FScreen'] = 'true';
_root['p' + d + 'gameSpeed'] = 1;
_root['p' + d + 'flowerType'] = 1;
_root['p' + d + 'playedObservatoryMovie'] = 0;
_root['p' + d + 'completedFinalBalloon'] = 0;
_root['p' + d + 'spellChargeArray'] = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
_root['p' + d + 'mealsDiscovered'] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root['p' + d + 'zooAnimalsArray'] = [0, 0, 0];
_root['p' + d + 'balloonAwayTime'] = 0;
_root['p' + d + 'sprout1'] = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout1Temp'] = '';
_root['p' + d + 'sprout2'] = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout2Temp'] = '';
_root['p' + d + 'sprout3'] = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout3Temp'] = '';
_root['p' + d + 'sprout4'] = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout4Temp'] = '';
_root['p' + d + 'sprout5'] = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout5Temp'] = '';
_root['p' + d + 'sprout6'] = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout6Temp'] = '';
_root['p' + d + 'sprout7'] = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout7Temp'] = '';
_root['p' + d + 'sprout8'] = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout8Temp'] = '';
_root['p' + d + 'sprout9'] = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout9Temp'] = '';
_root['p' + d + 'sprout10'] = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout10Temp'] = '';
_root['p' + d + 'sprout11'] = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout11Temp'] = '';
_root['p' + d + 'sprout12'] = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', '', 1];
_root['p' + d + 'sprout12Temp'] = '';
_root['p' + d + 'karmaPoints'] = 5;
_root['p' + d + 'redFlowers'] = 0;
_root['p' + d + 'greenFlowers'] = 0;
_root['p' + d + 'tutorialOn'] = 0;
_root['p' + d + 'blueFlowers'] = 0;
_root['p' + d + 'totalKarmaPoints'] = 5;
_root['p' + d + 'weeds'] = 0;
_root['p' + d + 'shelter1'] = [0, 0];
_root['p' + d + 'shelter1Temp'] = '';
_root['p' + d + 'shelter2'] = [0, 0];
_root['p' + d + 'shelter2Temp'] = '';
_root['p' + d + 'shelter3'] = [0, 0];
_root['p' + d + 'shelter3Temp'] = '';
_root['p' + d + 'garden01'] = [1, 0];
_root['p' + d + 'garden01Temp'] = '';
_root['p' + d + 'bridge'] = [0, 0];
_root['p' + d + 'bridgeTemp'] = '';
_root['p' + d + 'windMill'] = [0, 0];
_root['p' + d + 'windMillTemp'] = '';
_root['p' + d + 'school'] = [0, 0];
_root['p' + d + 'schoolTemp'] = '';
_root['p' + d + 'pier'] = [0, 0];
_root['p' + d + 'pierTemp'] = '';
_root['p' + d + 'wishingWell'] = [0, 0];
_root['p' + d + 'wishingWellTemp'] = '';
_root['p' + d + 'toolShop'] = [0, 0];
_root['p' + d + 'toolShopTemp'] = '';
_root['p' + d + 'zoo'] = [0, 0];
_root['p' + d + 'zooTemp'] = '';
_root['p' + d + 'balloon'] = [0, 0];
_root['p' + d + 'balloonTemp'] = '';
_root['p' + d + 'observatory'] = [0, 0];
_root['p' + d + 'observatoryTemp'] = '';
_root['p' + d + 'egg'] = [0, 0];
_root['p' + d + 'eggTemp'] = '';
_root['p' + d + 'mushroomBall'] = [0, 0];
_root['p' + d + 'mushroomBallTemp'] = '';
_root['p' + d + 'fishingDiscoveries'] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root['p' + d + 'fishingDiscoveriesTemp'] = '';
_root['p' + d + 'wildFlowersPicked'] = 0;
_root['p' + d + 'timePlayed'] = 0;
_root['p' + d + 'achievements'] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root['p' + d + 'achievementsTemp'] = '';
_root['p' + d + 'butterflies'] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root['p' + d + 'butterfliesTemp'] = '';
_root['p' + d + 'stones'] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root['p' + d + 'stonesTemp'] = '';
_root['p' + d + 'mushroomBall1'] = [0, 0];
_root['p' + d + 'mushroomBall1Temp'] = '';
_root['p' + d + 'mushroomBall2'] = [0, 0];
_root['p' + d + 'mushroomBall2Temp'] = '';
_root['p' + d + 'kite2'] = 0;
_root['p' + d + 'kite3'] = 0;
_root['p' + d + 'sproutlingMade'] = [0, 0];
_root['p' + d + 'sproutlingMadeTemp'] = '';
_root['p' + d + 'fallingStarMade'] = [0, 0];
_root['p' + d + 'fallingStarMadeTemp'] = '';
_root['p' + d + 'magicFlowerMade'] = [0, 0];
_root['p' + d + 'magicFlowerMadeTemp'] = '';
_root['p' + d + 'giftMade'] = [0, 0];
_root['p' + d + 'giftMadeTemp'] = '';
_root.SaveGame();
_root.goToScreen('M_SelectPlayer');
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NoXX;
this.onPress = function () {
_parent.removeMovieClip();
};
}
}
}
movieClip 12763 confirmExitAppShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
if (_root.GameTime == true) {
_root.GameTime = false;
_root.saveFromGame = true;
_root.SaveGame();
}
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.YesXX;
var dest = 'M_Exit';
this.onPress = function () {
_root.goToScreen(dest);
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NoXX;
this.onPress = function () {
_root.GameTime = true;
_parent.removeMovieClip();
};
}
}
}
movieClip 12766 confirmExitGameShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.SaveGame();
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.YesXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.game.removeMovieClip();
_root.goToScreen(dest);
_root.HUD.removeMovieClip();
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NoXX;
this.onPress = function () {
_root.attachMovie('menuShell', 'MS', 12000);
_root.MS._x = 400;
_root.MS._y = 300;
_parent.removeMovieClip();
};
}
}
}
movieClip 12772 {
}
movieClip 12773 createProfileShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = false;
done = function () {
Selection.setFocus('nameBox');
};
this.alphaTo(100, 0.2, 'linear', 0, done);
Selection.setFocus('nameBox');
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
this.onPress = function () {
if (_parent.nameBox.text == '') {
_parent.nameWarning.alphaTo(100, 1, 'linear');
} else {
if (_root.p1name == 'none') {
_root.playerProfile = 'Player01';
_root.currentPlayerName = _parent.nameBox.text;
_root.p1name = _parent.nameBox.text;
} else {
if (_root.p2name == 'none') {
_root.playerProfile = 'Player02';
_root.currentPlayerName = _parent.nameBox.text;
_root.p2name = _parent.nameBox.text;
} else {
if (_root.p3name == 'none') {
_root.playerProfile = 'Player03';
_root.currentPlayerName = _parent.nameBox.text;
_root.p3name = _parent.nameBox.text;
} else {
if (_root.p4name == 'none') {
_root.playerProfile = 'Player04';
_root.currentPlayerName = _parent.nameBox.text;
_root.p4name = _parent.nameBox.text;
} else {
if (_root.p5name == 'none') {
_root.playerProfile = 'Player05';
_root.currentPlayerName = _parent.nameBox.text;
_root.p5name = _parent.nameBox.text;
}
}
}
}
}
_root.changePlayers();
}
_root.goToScreen('M_introMovie');
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.CancelXX;
this.onPress = function () {
_parent.removeMovieClip();
};
}
}
}
movieClip 12776 deleteSaveGame {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.YesXX;
var dest = 'M_Exit';
this.onPress = function () {
done = function () {
_root.goToScreen('M_Exit');
};
mdm.FileSystem.deleteFile(_root.dataPath + 'SaveData.txt');
this.alphaTo(100, 0.1, 'linear', 0, done);
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NoXX;
this.onPress = function () {
_parent.removeMovieClip();
};
}
}
}
movieClip 12781 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 12783 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 12784 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 12787 {
frame 1 {
stop();
var unlocked = false;
if (_root.butterflies[this.num] == 1) {
unlocked = true;
this.gotoAndStop(this.num + 2);
}
onRollOver = function () {
_parent.discoveryShell.gotoAndStop(1);
if (unlocked == true) {
_parent.discoveryShell.butterflies.gotoAndStop(num + 2);
}
this.hover.alphaTo(100, 0.3, 'easeOutQuad');
_parent.tname.text = _root['Butterfly' + Number(num + 1) + 'XX'];
};
onRollOut = function () {
this.hover.alphaTo(50, 0.15, 'easeOutQuad');
_parent.tname.text = '';
_parent.discoveryShell.butterflies.gotoAndStop(1);
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 12788 {
frame 1 {
stop();
var unlocked = false;
if (_root.stones[this.num] == 1) {
unlocked = true;
this.gotoAndStop(this.num + 2);
}
onRollOver = function () {
_parent.discoveryShell.gotoAndStop(2);
if (unlocked == true) {
_parent.discoveryShell.stones.gotoAndStop(num + 2);
}
this.hover.alphaTo(100, 0.3, 'easeOutQuad');
_parent.tname.text = _root['Stones' + Number(num + 1) + 'XX'];
};
onRollOut = function () {
this.hover.alphaTo(50, 0.15, 'easeOutQuad');
_parent.tname.text = '';
_parent.discoveryShell.stones.gotoAndStop(1);
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 12789 discoveryShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
_root.butterflies[this.num] = 1;
_root.SaveGame();
if (_root.game['SS' + sproutNum].sGender == 'm') {
var description = _root.ButterflyDiscoveredTextMXX;
} else {
var description = _root.ButterflyDiscoveredTextFXX;
}
t.htmlText = _root.game['SS' + sproutNum].sName + description;
this.attachMovie(num + '_BigButterfly', 'BB' + num, 3);
this['BB' + num]._y = -60;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 7538 {
onClipEvent (load) {
this.gotoAndPlay(Number(random(20) + 1));
this.onPress = function () {
this.startDrag();
};
this.onRelease = function () {
this.stopDrag();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.attachMovie('menuShell', 'MS', 12000);
_root.MS._x = 400;
_root.MS._y = 300;
_parent.removeMovieClip();
};
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 0;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 1;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 2;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 3;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 4;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 5;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 6;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 7;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 8;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 9;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 0;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 1;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 2;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 3;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 4;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 5;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 6;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 7;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 8;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 9;
}
}
}
movieClip 12792 gameCompletePlayOn {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.OkXX;
var dest = 'M_Exit';
this.onPress = function () {
_parent.removeMovieClip();
};
}
}
}
movieClip 12799 helpShell {
frame 1 {
stop();
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.htmlText = _root.QSG1XX;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NextXX;
this.onPress = function () {
_parent.nextFrame();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.PreviousXX;
this.onPress = function () {
_parent.prevFrame();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.attachMovie('menuShell', 'MS', 12000);
_root.MS._x = 400;
_root.MS._y = 300;
_parent.removeMovieClip();
};
}
}
instance of movieClip 7538 {
onClipEvent (load) {
this.gotoAndPlay(Number(random(20) + 1));
this.onPress = function () {
this.startDrag();
};
this.onRelease = function () {
this.stopDrag();
};
}
}
}
movieClip 12802 makeBabySprout {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
t.text = _root.WouldYouLikeXX + parent1 + _root.AndXX + parent2 + _root.MakeABabyXX;
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.YesXX;
this.onPress = function () {
if (_root.sprout12[0] == 'none') {
if (_root.game['SS' + _root.totalActiveSprouts].sGender == 'm') {
var q = 'f';
} else {
var q = 'm';
}
_root.createSprout(_root.game['SS' + _parent.sproutNum]._x, _root.game['SS' + _parent.sproutNum]._y + 10, q, 1, null, 1);
_root.SaveGame();
_parent.removeMovieClip();
} else {}
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NoXX;
this.onPress = function () {
_parent.removeMovieClip();
};
}
}
}
movieClip 12804 menuShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
_root.GameTime = false;
donewithmusic = function () {
_root.S_inGameMusic.stop('inGameMusic.wav');
};
_root.S_inGameMusic.volumeTo(0, 1, 'linear');
i = 0;
while (i < _root.totalActiveSprouts + 1) {
cs = _root.game['SS' + i];
cs.ani.rot.sprout.stop();
cs.ani.rot.flower.stop();
cs.ani.rot.sprout.pauseTween();
cs.ani.rot.flower.pauseTween();
cs.pauseTween();
cs.ani.pauseTween();
++i;
}
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.ResumeXX;
this.onPress = function () {
i = 0;
while (i < _root.totalActiveSprouts + 1) {
cs = _root.game['SS' + i];
cs.ani.rot.sprout.play();
cs.ani.rot.flower.play();
cs.ani.rot.sprout.resumeTween();
cs.ani.rot.flower.resumeTween();
cs.resumeTween();
cs.ani.resumeTween();
++i;
}
_root.GameTime = true;
_root.saveFromGame = true;
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.ExitXX;
this.onPress = function () {
_root.attachMovie('confirmExitGameShell', 'CEGS', 12001);
_root.CEGS._x = 400;
_root.CEGS._y = 300;
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.OptionsXX;
this.onPress = function () {
_root.attachMovie('optionsShell', 'OS', 12001);
_root.OS._x = 400;
_root.OS._y = 300;
_parent.removeMovieClip();
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DiscoveriesXX;
this.onPress = function () {
_root.attachMovie('discoveryShell', 'DS', 12001);
_root.DS._x = 400;
_root.DS._y = 300;
_parent.removeMovieClip();
};
}
}
instance of movieClip 7538 {
onClipEvent (load) {
this.gotoAndPlay(Number(random(20) + 1));
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.AchievementsXX;
this.onPress = function () {
_root.attachMovie('achievementShell', 'AS', 12001);
_root.AS._x = 400;
_root.AS._y = 300;
_parent.removeMovieClip();
};
}
}
}
movieClip 12809 newFoodDiscoveredShell {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
_root.playSound('S_stonediscovered');
_root.SaveGame();
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.OkXX;
this.onPress = function () {
var cs = _parent.cs;
cs.pointOfInterest = 0;
if (_parent.meal == 1) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 15, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 15, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 2) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 15, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 15, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 3) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 15, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 15, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 4) {
f3 = function () {
_root.bubbleMaker(cs.sNum, 10, 'awake');
};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 10, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 5) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 20, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 10, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 6) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 7) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 20, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 8) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 9) {
f3 = function () {
_root.bubbleMaker(cs.sNum, 5, 'motivation');
};
f2 = function () {
_root.bubbleMaker(cs.sNum, 5, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (_parent.meal == 10) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
}
}
}
}
}
}
}
}
}
}
if (cs.needBubble.fLabel == 'hunger') {
cs.needBubble._alpha = 0;
}
if (cs.sGender == 'f') {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('yummy');
} else {
_root.playSproutQuip('baby');
}
_root.tipBoxMaker(cs.sName + _root['Meal' + _parent.meal + 'fDescriptionXX']);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('yummy');
} else {
_root.playSproutQuip('baby');
}
_root.tipBoxMaker(cs.sName + _root['Meal' + _parent.meal + 'DescriptionXX']);
}
_root.GameTime = true;
_parent.removeMovieClip();
};
}
}
}
movieClip 12811 {
}
movieClip 12812 stoneOffering {
frame 1 {
stop();
this.onPress = function () {
if (_root.worldView == false) {
_root.playSound('S_offeringrecieved');
_root.effectsLayer.attachMovie('genParticle', 'gpart' + sprout.sNum, 6100 + sprout.sNum);
_root.effectsLayer['gpart' + sprout.sNum]._x = sprout._x;
_root.effectsLayer['gpart' + sprout.sNum]._y = sprout._y;
_root.bubbleMaker(sprout.sNum, amount, 'karma');
sprout.sTask = 'none';
sprout.ani.rot.gotoAndStop(13);
sprout.startDancing();
this.removeMovieClip();
}
};
this.onRollOver = function () {
if (_root.worldView == false) {
this.hover.alphaTo(65, 0.3, 'easeOutQuad');
}
};
this.onRollOut = function () {
if (_root.worldView == false) {
this.hover.alphaTo(35, 0.15, 'easeOutQuad');
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 12813 tutorialArrow {
}
movieClip 12814 butterflyOffering {
frame 1 {
stop();
this.onPress = function () {
if (_root.worldView == false) {
_root.playSound('S_offeringrecieved');
_root.effectsLayer.attachMovie('genParticle', 'gpart' + sprout.sNum, 6100 + sprout.sNum);
_root.effectsLayer['gpart' + sprout.sNum]._x = sprout._x;
_root.effectsLayer['gpart' + sprout.sNum]._y = sprout._y;
_root.bubbleMaker(sprout.sNum, amount, 'karma');
sprout.sTask = 'none';
sprout.ani.rot.gotoAndStop(13);
sprout.startDancing();
this.removeMovieClip();
}
};
this.onRollOver = function () {
if (_root.worldView == false) {
this.hover.alphaTo(65, 0.3, 'easeOutQuad');
}
};
this.onRollOut = function () {
if (_root.worldView == false) {
this.hover.alphaTo(35, 0.15, 'easeOutQuad');
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 12817 stoneDiscovered {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
_root.saveFromGame = true;
_root.playSound('S_stonediscovered');
_root.stones[this.num] = 1;
_root.SaveGame();
if (_root.game['SS' + sproutNum].sGender == 'm') {
var description = _root.StoneDiscoveredTextMXX;
} else {
var description = _root.StoneDiscoveredTextFXX;
}
t.htmlText = _root.game['SS' + sproutNum].sName + description;
this.attachMovie('bigStoneShell', 'BSS' + num, 3);
this['BSS' + num]._y = -60;
this['BSS' + num].gotoAndStop(this.num + 1);
}
instance of movieClip 7491 {
onClipEvent (load) {
this.onPress = function () {};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
if (_root.stones[0] == 1 && _root.stones[1] == 1 && _root.stones[2] == 1 && _root.stones[3] == 1 && _root.stones[4] == 1 && _root.stones[5] == 1 && _root.stones[6] == 1 && _root.stones[7] == 1 && _root.stones[8] == 1 && _root.stones[9] == 1) {
if (_root.achievements[3] == 0) {
_root.achievements[3] = 1;
_root.attachMovie('achivementDiscovered', 'ADwindow', 12011);
_root.ADwindow._x = 400;
_root.ADwindow._y = 300;
_root.ADwindow.num = 3;
}
}
_root.bubbleMaker(_root.lastSproutNum, 30, 'motivation');
_parent.removeMovieClip();
};
}
}
}
movieClip 12820 {
}
movieClip 12821 {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
}
}
movieClip 12823 tipBox {
frame 1 {
var selSprout = 0;
wtip.html = true;
wtip.html = true;
wtip.multiline = true;
wtip.wordWrap = true;
this.onPress = function () {
done = function () {
this.removeMovieClip();
};
this.alphaTo(0, 0.5, 'easeOutQuad', 0, done);
};
done3 = function () {
this.removeMovieClip();
};
done2 = function () {
this.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done3);
};
this.alphaTo(100, 7, 'linear', 0, done2);
this._y = -100;
this.ySlideTo(0, 0.5, 'easeOutQuad');
}
}
movieClip 12825 tutBox {
frame 1 {
var selSprout = 0;
wtip.html = true;
wtip.html = true;
wtip.multiline = true;
wtip.wordWrap = true;
this.onPress = function () {
done = function () {
this.removeMovieClip();
};
this.alphaTo(0, 0.5, 'easeOutQuad', 0, done);
};
this._y = -100;
this.ySlideTo(0, 0.5, 'easeOutQuad');
}
}
movieClip 12829 {
}
movieClip 12830 {
}
movieClip 12837 school {
frame 1 {
function activity(cs) {
if (this.pComplete < 100) {
j = this.pnum;
_root.playSproutQuip('ok');
cs.sTask = _root.bs[j];
var zz = _root.bs[j];
++this.pNumberOfWorkers;
_root.effectsLayer.attachMovie('genParticle', 'gpart' + cs.sNum, 6100 + cs.sNum);
_root.effectsLayer['gpart' + cs.sNum]._x = cs._x;
_root.effectsLayer['gpart' + cs.sNum]._y = cs._y;
var tx = _root.game.BG[zz + Number(cs.sNum)]._x;
var ty = _root.game.BG[zz + Number(cs.sNum)]._y;
st = function () {
cs.col.setDesc('Working');
cs.ani.gotoAndStop('building');
cs.col.setRot(1, _root.game[zz]._x, _root.game[zz]._y);
};
cs.slideTo(tx, ty, 0.2, 'linear', 0, st);
} else {
if (teacher == false) {
if (cs.sAge > _root.workAge) {
teacher = true;
var sprout = cs;
cs.sTask = 'teaching';
var tx = this._x + this.tpoint._x;
var ty = this._y + this.tpoint._y;
var q = _root.game.BG.school2._x;
var r = _root.game.BG.school2._y;
st = function () {
cs.col.setDesc('Teaching');
cs.ani.gotoAndStop('idle');
cs.col.setRot(2, q, r);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
} else {
_root.tipBoxMaker(cs.sName + _root['NeedATeacher' + Number(random(3) + 1) + 'XX']);
var tx = _root.game.BG.school2._x;
var ty = _root.game.BG.school2._y;
st = function () {
cs.col.setDesc('NeedATeacher');
cs.col.shouldWander('walking', 2);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
}
} else {
if (cs.sAge > _root.workAge) {
_root.tipBoxMaker(cs.sName + _root['SomeoneTeaching' + Number(random(3) + 1) + 'XX']);
var tx = _root.game.BG.school2._x;
var ty = _root.game.BG.school2._y;
st = function () {
cs.col.setDesc('SomeoneTeaching');
cs.col.shouldWander('walking', 2);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
} else {
if (peopleLearning[0] != 0 && peopleLearning[1] != 0 && peopleLearning[2] != 0 && peopleLearning[3] != 0) {
_root.tipBoxMaker(cs.sName + _root['TooManyLearning' + Number(random(3) + 1) + 'XX']);
var tx = _root.game.BG[_root.bs[this.pnum] + 1]._x;
var ty = _root.game.BG[_root.bs[this.pnum] + 1]._y;
st = function () {
cs.col.setDesc('TooManyLearning');
cs.col.shouldWander('walking', 2);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
} else {
if (peopleLearning[0] == 0) {
peopleLearning[0] = cs;
var pf = 1;
} else {
if (peopleLearning[1] == 0) {
peopleLearning[1] = cs;
var pf = 2;
} else {
if (peopleLearning[2] == 0) {
peopleLearning[2] = cs;
var pf = 3;
} else {
if (peopleLearning[3] == 0) {
peopleLearning[3] = cs;
var pf = 4;
}
}
}
}
var sprout = cs;
cs.sTask = 'learning';
var tx = this._x + this['fpoint' + pf]._x;
var ty = this._y + this['fpoint' + pf]._y;
var q = _root.game.BG.school6._x;
var r = _root.game.BG.school6._y;
st = function () {
cs.col.setDesc('Learning');
cs.ani.gotoAndStop('idle');
cs.col.setRot(2, q, r);
};
cs.slideTo(tx, ty, 0.1, 'linear', 0, st);
}
}
}
}
}
function stopActivity(cs) {
cs.pointOfInterest = 0;
if (this.pComplete < 100) {
--this.pNumberOfWorkers;
} else {
if (cs.sAge > _root.workAge) {
teacher = false;
i = 0;
while (i < peopleLearning.length) {
peopleLearning[i].slideTo(_root.game.BG.schoolExit._x, _root.game.BG.schoolExit._y, 0, 'linear');
peopleLearning[i].col.setDesc('NeedATeacher');
peopleLearning[i].col.shouldWander('walking', 3);
peopleLearning[i] = 0;
++i;
}
} else {
i = 0;
while (i < peopleLearning.length) {
if (peopleLearning[i] == cs) {
peopleLearning[i] = 0;
}
++i;
}
}
cs.slideTo(_root.game.BG.schoolExit._x, _root.game.BG.schoolExit._y, 0, 'linear');
}
}
stop();
var peopleLearning = [0, 0, 0, 0];
sp = 0;
var teacher = false;
this.col.onRollOver = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(100, 0.3, 'easeOutQuad');
if (this._parent.pComplete < 100) {
_root.HUD.adjustHUD('structure', null, null, this._parent.pnum);
} else {
_root.HUD.adjustHUD('misc', _root.PlaceToLearnTitleXX, _root.PlaceToLearnDescriptionXX);
}
}
};
this.col.onReleaseOutside = function () {
if (this._parent.pDiscovered >= 1) {
this._parent.hover.stopTween();
this._parent.hover.alphaTo(0, 0.15, 'easeOutQuad');
}
};
this.col.onRollOut = this.col.onReleaseOutside;
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
frame 4 {
function pausedForIntro() {
_root.play();
clearInterval(appPause);
}
function playSound(snd) {
if (_root.soundsOn == true) {
_root[snd].start();
}
}
stop();
if (_root.stolen == true) {
_root._x = -50000;
}
var appPause = setInterval(pausedForIntro, 1000);
var soundsOn = true;
var global_sound = new Sound();
global_sound.setVolume(100);
S_RA = new Sound();
S_RA.attachSound('RAWebMovie.wav');
S_Theme = new Sound(Mvol);
S_Theme.attachSound('SproutsTheme.wav');
S_Theme.setVolume(_root.Volume);
S_introMovie = new Sound(Svol);
S_introMovie.attachSound('intro.wav');
S_introMovie.setVolume(_root.Volume);
S_endGameMovie = new Sound(Svol);
S_endGameMovie.attachSound('endGameMovie.wav');
S_endGameMovie2 = new Sound(Svol);
S_endGameMovie2.attachSound('endGameMovie2.wav');
S_inGameMusic = new Sound(Mvol2);
S_inGameMusic.attachSound('inGameMusic.wav');
S_EndGameNarrator = new Sound(Svol);
S_EndGameNarrator.attachSound('EndGameNarrator.wav');
S_EggDestroyed = new Sound(Svol);
S_EggDestroyed.attachSound('EggDestroyed.wav');
S_inGameMovie = new Sound(Svol);
S_inGameMovie.attachSound('inGameMovie.wav');
S_inGameMovie.setVolume(_root.Volume);
S_M1 = new Sound(Mvol);
S_M1.attachSound('m1.wav');
S_daytime = new Sound(daytimevol);
S_daytime.attachSound('daytime.wav');
S_rooster = new Sound(Svol);
S_rooster.attachSound('rooster.wav');
S_nighttime = new Sound(nighttimevol);
S_nighttime.attachSound('nighttime.wav');
S_lightningBolt = new Sound(Svol);
S_lightningBolt.attachSound('lightningbolt.wav');
S_spellsun = new Sound(Svol);
S_spellsun.attachSound('spellsun.wav');
S_spellrain = new Sound(Svol);
S_spellrain.attachSound('spellrain.wav');
S_spellwind = new Sound(Svol);
S_spellwind.attachSound('spellwind.wav');
S_spellrainbow = new Sound(Svol);
S_spellrainbow.attachSound('spellrainbow.wav');
S_spellgift = new Sound(Svol);
S_spellgift.attachSound('spellgift.wav');
S_spellsproutling = new Sound(Svol);
S_spellsproutling.attachSound('spellsproutling.wav');
S_spellvision = new Sound(Svol);
S_spellvision.attachSound('spellvision.wav');
S_spellflower = new Sound(Svol);
S_spellflower.attachSound('spellflower.wav');
S_spellfallingstar = new Sound(Svol);
S_spellfallingstar.attachSound('spellfallingstar.wav');
S_waterSplash = new Sound(Svol);
S_waterSplash.attachSound('waterSplash.wav');
S_rumble = new Sound(Svol);
S_rumble.attachSound('rumble.wav');
S_idea = new Sound(Svol);
S_idea.attachSound('idea.wav');
S_structurediscovered = new Sound(Svol);
S_structurediscovered.attachSound('structurediscovered.wav');
S_flytostructurediscovered = new Sound(Svol);
S_flytostructurediscovered.attachSound('flytostructurediscovered.wav');
S_flytostructurecomplete = new Sound(Svol);
S_flytostructurecomplete.attachSound('flytostructurecomplete.wav');
S_hit1 = new Sound(Svol);
S_hit1.attachSound('hit1.wav');
S_hit2 = new Sound(Svol);
S_hit2.attachSound('hit2.wav');
S_hit3 = new Sound(Svol);
S_hit3.attachSound('hit3.wav');
S_hit4 = new Sound(Svol);
S_hit4.attachSound('hit4.wav');
S_hit5 = new Sound(Svol);
S_hit5.attachSound('hit5.wav');
S_hit6 = new Sound(Svol);
S_hit6.attachSound('hit6.wav');
S_hit7 = new Sound(Svol);
S_hit7.attachSound('hit7.wav');
S_hit8 = new Sound(Svol);
S_hit8.attachSound('hit8.wav');
S_anvilHit1 = new Sound(Svol);
S_anvilHit1.attachSound('anvilhit1.wav');
S_anvilHit2 = new Sound(Svol);
S_anvilHit2.attachSound('anvilhit2.wav');
S_anvilHit3 = new Sound(Svol);
S_anvilHit3.attachSound('anvilhit3.wav');
S_rooster = new Sound(Svol);
S_rooster.attachSound('rooster.wav');
S_waterfall = new Sound(waterfallvol);
S_waterfall.attachSound('waterfall.wav');
S_hotairballoon = new Sound(Svol);
S_hotairballoon.attachSound('hotairballoonliftoff.wav');
S_structurecomplete = new Sound(Svol);
S_structurecomplete.attachSound('structurecomplete.wav');
S_offeringrecieved = new Sound(Svol);
S_offeringrecieved.attachSound('offeringrecieved.wav');
S_karmapoints = new Sound(Svol);
S_karmapoints.attachSound('karmapoints.wav');
S_butterflypickup = new Sound(Svol);
S_butterflypickup.attachSound('butterflypickup.wav');
S_stonepickup = new Sound(Svol);
S_stonepickup.attachSound('stonepickup.wav');
S_food = new Sound(Svol);
S_food.attachSound('food.wav');
S_particle = new Sound(Svol);
S_particle.attachSound('particle.wav');
S_spellrecharged = new Sound(Svol);
S_spellrecharged.attachSound('spellrecharged.wav');
S_stonediscovered = new Sound(Svol);
S_stonediscovered.attachSound('stonediscovered.wav');
S_spelldiscovered = new Sound(Svol);
S_spelldiscovered.attachSound('spelldiscovered.wav');
S_butterflydiscovered = new Sound(Svol);
S_butterflydiscovered.attachSound('butterflydiscovered.wav');
S_offering = new Sound(Svol);
S_offering.attachSound('offering.wav');
S_fishingdiscovery = new Sound(Svol);
S_fishingdiscovery.attachSound('fishingdiscovery.wav');
S_watersplashing = new Sound(Svol);
S_watersplashing.attachSound('watersplashing.wav');
S_eggcracking = new Sound(Svol);
S_eggcracking.attachSound('eggcracking.wav');
S_baby1 = new Sound(Svol);
S_baby1.attachSound('baby1.wav');
S_baby2 = new Sound(Svol);
S_baby2.attachSound('baby2.wav');
S_baby3 = new Sound(Svol);
S_baby3.attachSound('baby3.wav');
S_baby4 = new Sound(Svol);
S_baby4.attachSound('baby4.wav');
S_baby5 = new Sound(Svol);
S_baby5.attachSound('baby5.wav');
S_baby6 = new Sound(Svol);
S_baby6.attachSound('baby6.wav');
S_baby7 = new Sound(Svol);
S_baby7.attachSound('baby7.wav');
S_babylaugh1 = new Sound(Svol);
S_babylaugh1.attachSound('babylaugh1.wav');
S_babylaugh2 = new Sound(Svol);
S_babylaugh2.attachSound('babylaugh2.wav');
S_dance1 = new Sound(Svol);
S_dance1.attachSound('dance1.wav');
S_dance2 = new Sound(Svol);
S_dance2.attachSound('dance2.wav');
S_dance3 = new Sound(Svol);
S_dance3.attachSound('dance3.wav');
S_dance4 = new Sound(Svol);
S_dance4.attachSound('dance4.wav');
S_dance5 = new Sound(Svol);
S_dance5.attachSound('dance5.wav');
S_dance6 = new Sound(Svol);
S_dance6.attachSound('dance6.wav');
S_dance7 = new Sound(Svol);
S_dance7.attachSound('dance7.wav');
S_eating1 = new Sound(Svol);
S_eating1.attachSound('eating1.wav');
S_eating2 = new Sound(Svol);
S_eating2.attachSound('eating2.wav');
S_eating3 = new Sound(Svol);
S_eating3.attachSound('eating3.wav');
S_invented1 = new Sound(Svol);
S_invented1.attachSound('invented1.wav');
S_invented2 = new Sound(Svol);
S_invented2.attachSound('invented2.wav');
S_invented3 = new Sound(Svol);
S_invented3.attachSound('invented3.wav');
S_invented4 = new Sound(Svol);
S_invented4.attachSound('invented4.wav');
S_invented5 = new Sound(Svol);
S_invented5.attachSound('invented5.wav');
S_idea1 = new Sound(Svol);
S_idea1.attachSound('idea1.wav');
S_idea2 = new Sound(Svol);
S_idea2.attachSound('idea2.wav');
S_idea3 = new Sound(Svol);
S_idea3.attachSound('idea3.wav');
S_idea4 = new Sound(Svol);
S_idea4.attachSound('idea4.wav');
S_idea5 = new Sound(Svol);
S_idea5.attachSound('idea5.wav');
S_idea6 = new Sound(Svol);
S_idea6.attachSound('idea6.wav');
S_bored1 = new Sound(Svol);
S_bored1.attachSound('bored1.wav');
S_bored2 = new Sound(Svol);
S_bored2.attachSound('bored2.wav');
S_bored3 = new Sound(Svol);
S_bored3.attachSound('bored3.wav');
S_bored4 = new Sound(Svol);
S_bored4.attachSound('bored4.wav');
S_bored5 = new Sound(Svol);
S_bored5.attachSound('bored5.wav');
S_irritated1 = new Sound(Svol);
S_irritated1.attachSound('irritated1.wav');
S_irritated2 = new Sound(Svol);
S_irritated2.attachSound('irritated2.wav');
S_irritated3 = new Sound(Svol);
S_irritated3.attachSound('irritated3.wav');
S_irritated4 = new Sound(Svol);
S_irritated4.attachSound('irritated4.wav');
S_irritated5 = new Sound(Svol);
S_irritated5.attachSound('irritated5.wav');
S_irritated6 = new Sound(Svol);
S_irritated6.attachSound('irritated6.wav');
S_irritated7 = new Sound(Svol);
S_irritated7.attachSound('irritated7.wav');
S_deer1 = new Sound(Svol);
S_deer1.attachSound('deer1.wav');
S_deer2 = new Sound(Svol);
S_deer2.attachSound('deer2.wav');
S_deer3 = new Sound(Svol);
S_deer3.attachSound('deer3.wav');
S_duck1 = new Sound(Svol);
S_duck1.attachSound('duck1.wav');
S_duck2 = new Sound(Svol);
S_duck2.attachSound('duck2.wav');
S_duck3 = new Sound(Svol);
S_duck3.attachSound('duck3.wav');
S_bull1 = new Sound(Svol);
S_bull1.attachSound('bull1.wav');
S_bull2 = new Sound(Svol);
S_bull2.attachSound('bull2.wav');
S_bull3 = new Sound(Svol);
S_bull3.attachSound('bull3.wav');
S_foundsomething1 = new Sound(Svol);
S_foundsomething1.attachSound('foundsomething1.wav');
S_foundsomething2 = new Sound(Svol);
S_foundsomething2.attachSound('foundsomething2.wav');
S_foundsomething3 = new Sound(Svol);
S_foundsomething3.attachSound('foundsomething3.wav');
S_foundsomething4 = new Sound(Svol);
S_foundsomething4.attachSound('foundsomething4.wav');
S_foundsomething5 = new Sound(Svol);
S_foundsomething5.attachSound('foundsomething5.wav');
S_foundsomething6 = new Sound(Svol);
S_foundsomething6.attachSound('foundsomething6.wav');
S_foundsomething7 = new Sound(Svol);
S_foundsomething7.attachSound('foundsomething7.wav');
S_hungry1 = new Sound(Svol);
S_hungry1.attachSound('hungry1.wav');
S_hungry2 = new Sound(Svol);
S_hungry2.attachSound('hungry2.wav');
S_hungry3 = new Sound(Svol);
S_hungry3.attachSound('hungry3.wav');
S_hungry4 = new Sound(Svol);
S_hungry4.attachSound('hungry4.wav');
S_hungry5 = new Sound(Svol);
S_hungry5.attachSound('hungry5.wav');
S_hungry6 = new Sound(Svol);
S_hungry6.attachSound('hungry6.wav');
S_hungry7 = new Sound(Svol);
S_hungry7.attachSound('hungry7.wav');
S_hungry8 = new Sound(Svol);
S_hungry8.attachSound('hungry8.wav');
S_hungry9 = new Sound(Svol);
S_hungry9.attachSound('hungry9.wav');
S_hungry10 = new Sound(Svol);
S_hungry10.attachSound('hungry10.wav');
S_hungry11 = new Sound(Svol);
S_hungry11.attachSound('hungry11.wav');
S_snoring1 = new Sound(Svol);
S_snoring1.attachSound('snoring1.wav');
S_snoring2 = new Sound(Svol);
S_snoring2.attachSound('snoring2.wav');
S_snoring3 = new Sound(Svol);
S_snoring3.attachSound('snoring3.wav');
S_snoring4 = new Sound(Svol);
S_snoring4.attachSound('snoring4.wav');
S_snoring5 = new Sound(Svol);
S_snoring5.attachSound('snoring5.wav');
S_snoring6 = new Sound(Svol);
S_snoring6.attachSound('snoring6.wav');
S_snoring7 = new Sound(Svol);
S_snoring7.attachSound('snoring7.wav');
S_structuredone1 = new Sound(Svol);
S_structuredone1.attachSound('structuredone1.wav');
S_structuredone2 = new Sound(Svol);
S_structuredone2.attachSound('structuredone2.wav');
S_structuredone3 = new Sound(Svol);
S_structuredone3.attachSound('structuredone3.wav');
S_structuredone4 = new Sound(Svol);
S_structuredone4.attachSound('structuredone4.wav');
S_structuredone5 = new Sound(Svol);
S_structuredone5.attachSound('structuredone5.wav');
S_structuredone6 = new Sound(Svol);
S_structuredone6.attachSound('structuredone6.wav');
S_structuredone7 = new Sound(Svol);
S_structuredone7.attachSound('structuredone7.wav');
S_structuredone8 = new Sound(Svol);
S_structuredone8.attachSound('structuredone8.wav');
S_structuredone9 = new Sound(Svol);
S_structuredone9.attachSound('structuredone9.wav');
S_structuredone10 = new Sound(Svol);
S_structuredone10.attachSound('structuredone10.wav');
S_structuredone11 = new Sound(Svol);
S_structuredone11.attachSound('structuredone11.wav');
S_structuredone12 = new Sound(Svol);
S_structuredone12.attachSound('structuredone12.wav');
S_structuredone13 = new Sound(Svol);
S_structuredone13.attachSound('structuredone13.wav');
S_wow1 = new Sound(Svol);
S_wow1.attachSound('wow1.wav');
S_wow2 = new Sound(Svol);
S_wow2.attachSound('wow2.wav');
S_wow3 = new Sound(Svol);
S_wow3.attachSound('wow3.wav');
S_wow4 = new Sound(Svol);
S_wow4.attachSound('wow4.wav');
S_wow5 = new Sound(Svol);
S_wow5.attachSound('wow5.wav');
S_wow6 = new Sound(Svol);
S_wow6.attachSound('wow6.wav');
S_wow7 = new Sound(Svol);
S_wow7.attachSound('wow7.wav');
S_wow8 = new Sound(Svol);
S_wow8.attachSound('wow8.wav');
S_wow9 = new Sound(Svol);
S_wow9.attachSound('wow9.wav');
S_wow10 = new Sound(Svol);
S_wow10.attachSound('wow10.wav');
S_yawn1 = new Sound(Svol);
S_yawn1.attachSound('yawn1.wav');
S_yawn2 = new Sound(Svol);
S_yawn2.attachSound('yawn2.wav');
S_yawn3 = new Sound(Svol);
S_yawn3.attachSound('yawn3.wav');
S_yummy1 = new Sound(Svol);
S_yummy1.attachSound('yummy1.wav');
S_yummy2 = new Sound(Svol);
S_yummy2.attachSound('yummy2.wav');
S_yummy3 = new Sound(Svol);
S_yummy3.attachSound('yummy3.wav');
S_yummy4 = new Sound(Svol);
S_yummy4.attachSound('yummy4.wav');
S_yummy5 = new Sound(Svol);
S_yummy5.attachSound('yummy5.wav');
S_yummy6 = new Sound(Svol);
S_yummy6.attachSound('yummy6.wav');
S_yummy7 = new Sound(Svol);
S_yummy7.attachSound('yummy7.wav');
S_yummy8 = new Sound(Svol);
S_yummy8.attachSound('yummy8.wav');
S_yummy9 = new Sound(Svol);
S_yummy9.attachSound('yummy9.wav');
S_wee1 = new Sound(Svol);
S_wee1.attachSound('wee1.wav');
S_wee2 = new Sound(Svol);
S_wee2.attachSound('wee2.wav');
S_wee3 = new Sound(Svol);
S_wee3.attachSound('wee3.wav');
S_wee4 = new Sound(Svol);
S_wee4.attachSound('wee4.wav');
S_wee5 = new Sound(Svol);
S_wee5.attachSound('wee5.wav');
S_wee6 = new Sound(Svol);
S_wee6.attachSound('wee6.wav');
S_wik4voice = new Sound(Svol);
S_wik4voice.attachSound('wik4voice.wav');
S_wik6voice = new Sound(Svol);
S_wik6voice.attachSound('wik6voice.wav');
S_wik8voice = new Sound(Svol);
S_wik8voice.attachSound('wik8voice.wav');
S_wishfullfilled1 = new Sound(Svol);
S_wishfullfilled1.attachSound('wishfullfilled1.wav');
S_wishfullfilled2 = new Sound(Svol);
S_wishfullfilled2.attachSound('wishfullfilled2.wav');
S_wishfullfilled3 = new Sound(Svol);
S_wishfullfilled3.attachSound('wishfullfilled3.wav');
S_wishfullfilled4 = new Sound(Svol);
S_wishfullfilled4.attachSound('wishfullfilled4.wav');
S_wishfullfilled5 = new Sound(Svol);
S_wishfullfilled5.attachSound('wishfullfilled5.wav');
S_wishfullfilled6 = new Sound(Svol);
S_wishfullfilled6.attachSound('wishfullfilled6.wav');
S_wishfullfilled7 = new Sound(Svol);
S_wishfullfilled7.attachSound('wishfullfilled7.wav');
S_shout1 = new Sound(Svol);
S_shout1.attachSound('shout1.wav');
S_shout2 = new Sound(Svol);
S_shout2.attachSound('shout2.wav');
S_shout3 = new Sound(Svol);
S_shout3.attachSound('shout3.wav');
S_shout4 = new Sound(Svol);
S_shout4.attachSound('shout4.wav');
S_shout5 = new Sound(Svol);
S_shout5.attachSound('shout5.wav');
S_shout6 = new Sound(Svol);
S_shout6.attachSound('shout6.wav');
S_shout7 = new Sound(Svol);
S_shout7.attachSound('shout7.wav');
S_offering1 = new Sound(Svol);
S_offering1.attachSound('offering1.wav');
S_offering2 = new Sound(Svol);
S_offering2.attachSound('offering2.wav');
S_offering3 = new Sound(Svol);
S_offering3.attachSound('offering3.wav');
S_offering4 = new Sound(Svol);
S_offering4.attachSound('offering4.wav');
S_offering5 = new Sound(Svol);
S_offering5.attachSound('offering5.wav');
S_offering6 = new Sound(Svol);
S_offering6.attachSound('offering6.wav');
S_offering7 = new Sound(Svol);
S_offering7.attachSound('offering7.wav');
S_ok1 = new Sound(Svol);
S_ok1.attachSound('ok1.wav');
S_ok2 = new Sound(Svol);
S_ok2.attachSound('ok2.wav');
S_ok3 = new Sound(Svol);
S_ok3.attachSound('ok3.wav');
S_ok4 = new Sound(Svol);
S_ok4.attachSound('ok4.wav');
S_ok5 = new Sound(Svol);
S_ok5.attachSound('ok5.wav');
S_ok6 = new Sound(Svol);
S_ok6.attachSound('ok6.wav');
S_ok7 = new Sound(Svol);
S_ok7.attachSound('ok7.wav');
S_ok8 = new Sound(Svol);
S_ok8.attachSound('ok8.wav');
S_ok9 = new Sound(Svol);
S_ok9.attachSound('ok9.wav');
S_ok10 = new Sound(Svol);
S_ok10.attachSound('ok10.wav');
S_ok11 = new Sound(Svol);
S_ok11.attachSound('ok11.wav');
S_ok12 = new Sound(Svol);
S_ok12.attachSound('ok12.wav');
S_ok13 = new Sound(Svol);
S_ok13.attachSound('ok13.wav');
S_ok14 = new Sound(Svol);
S_ok14.attachSound('ok14.wav');
S_ok15 = new Sound(Svol);
S_ok15.attachSound('ok15.wav');
S_ok16 = new Sound(Svol);
S_ok16.attachSound('ok16.wav');
S_ok17 = new Sound(Svol);
S_ok17.attachSound('ok17.wav');
S_ok18 = new Sound(Svol);
S_ok18.attachSound('ok18.wav');
S_ok19 = new Sound(Svol);
S_ok19.attachSound('ok19.wav');
S_ok20 = new Sound(Svol);
S_ok20.attachSound('ok20.wav');
S_ok21 = new Sound(Svol);
S_ok21.attachSound('ok21.wav');
S_ok22 = new Sound(Svol);
S_ok22.attachSound('ok22.wav');
S_ok23 = new Sound(Svol);
S_ok23.attachSound('ok23.wav');
S_ok24 = new Sound(Svol);
S_ok24.attachSound('ok24.wav');
S_ok25 = new Sound(Svol);
S_ok25.attachSound('ok25.wav');
S_ok26 = new Sound(Svol);
S_ok26.attachSound('ok26.wav');
}
frame 5 {
function goToScreen(n) {
shift2 = function () {
_root.fader.removeMovieClip();
};
shift = function () {
_root.destScreen = n;
_root.gotoAndStop(101);
_root.fader.alphaTo(0, 0.35, 'linear', 0.2, shift2);
};
_root.attachMovie('fader', 'fader', 29531);
_root.fader._x = 400;
_root.fader._y = 300;
_root.fader._alpha = 0;
_root.fader.alphaTo(100, 0.35, 'linear', 0, shift);
}
stop();
var fromGame = false;
var goldStarRecieved = 0;
_root.attachMovie('editor', 'editor', 22000);
_root.editor._x = -207;
_root.editor._y = -240;
var symBlurOut = new flash.filters.BlurFilter(100, 100, 3);
var symBlurIn = new flash.filters.BlurFilter(0, 0, 4);
var t = 1;
_root.back._alpha = 0;
_root.glow._alpha = 0;
_root.re._alpha = 0;
_root.reflexLogo._alpha = 0;
_root.dev._alpha = 0;
gtmm = function () {
_root.gotoAndStop('M_MainMenu');
};
_root.S_Theme.start(0, 99999);
_root.back.alphaTo(100, t, 'easeOutQuad');
_root.dev.alphaTo(100, t, 'easeOutQuad');
_root.reflexLogo.alphaTo(100, t, 'easeOutQuad', 0.4);
_root.re.alphaTo(100, t, 'easeOutQuad', 0.8);
_root.back.alphaTo(0, t, 'easeOutQuad', 3.25);
_root.dev.alphaTo(0, t, 'easeOutQuad', 3.25);
_root.reflexLogo.alphaTo(0, t, 'easeOutQuad', 3.25);
_root.re.alphaTo(0, t, 'easeOutQuad', 3.25);
_root.alphaTo(100, 1, 'linear', 3.15, gtmm);
}
movieClip 12838 {
}
// unknown tag 88 length 293
movieClip 12841 {
}
movieClip 12844 ReflexiveText {
}
instance re of movieClip 12844 ReflexiveText {
onClipEvent (load) {
onPress = function () {
getURL('http://www.amazon.com/gp/product/B002BNKQHQ?tag=sproutsadventure-20', '_blank');
};
}
}
movieClip 12847 {
}
movieClip 12848 ReflexiveSymbol {
}
instance reflexLogo of movieClip 12848 ReflexiveSymbol {
onClipEvent (load) {
onPress = function () {
getURL('http://www.amazon.com/gp/product/B002BNKQHQ?tag=sproutsadventure-20', '_blank');
};
}
}
frame 10 {
function goToScreen(n) {
shift2 = function () {
_root.fader.removeMovieClip();
};
shift = function () {
_root.destScreen = n;
_root.gotoAndStop(101);
_root.fader.alphaTo(0, 0.35, 'linear', 0.2, shift2);
};
_root.attachMovie('fader', 'fader', 29531);
_root.fader._x = 400;
_root.fader._y = 300;
_root.fader._alpha = 0;
_root.fader.alphaTo(100, 0.35, 'linear', 0, shift);
}
function setSproutSize(age) {
var s = _root.sizeBase + Number(age * _root.sizeMultiplier);
return s;
}
function checkCollision(a, b) {
var collisionRect = com.gskinner.sprites.CollisionDetection.checkForCollision(a, b, 120);
var resultInfo = true;
if (collisionRect) {
resultInfo = true;
return resultInfo;
} else {
resultInfo = false;
return resultInfo;
}
}
function tutorialScript(n) {
if (_root.game.shelter1.pComplete < 100 || _root.game.shelter1._alpha != 100) {
if (n == 0) {
_root.tutBoxMaker(_root.Tut01XX);
_root.tutorialOn = 1;
} else {
if (n == 1) {
_root.game.SS1.sHunger = 80;
done = function () {
_root.tutBoxMaker(_root.Tut02XX);
_root.tutorialOn = 2;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 2) {
_root.game.attachMovie('tutorialArrow2', 'TA2', 5002);
_root.game.TA2._x = _root.game.garden01._x + 50;
_root.game.TA2._y = _root.game.garden01._y + 50;
done = function () {
_root.tutBoxMaker(_root.Tut03XX);
_root.tutorialOn = 3;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 3) {
_root.game.TA2.removeMovieClip();
_root.HUD.attachMovie('tutorialArrow', 'TA', 5003);
_root.HUD.TA._x = _root.HUD.rainButton._x;
_root.HUD.TA._y = _root.HUD.rainButton._y;
done = function () {
_root.tutBoxMaker(_root.Tut04XX);
_root.tutorialOn = 4;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 4) {
_root.HUD.TA.removeMovieClip();
_root.game.attachMovie('tutorialArrow2', 'TA2', 5002);
_root.game.TA2._x = _root.game.garden01._x + 50;
_root.game.TA2._y = _root.game.garden01._y + 50;
done = function () {
_root.tutBoxMaker(_root.Tut05XX);
_root.tutorialOn = 5;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 5) {
_root.game.TA2.removeMovieClip();
_root.HUD.attachMovie('tutorialArrow', 'TA', 5003);
_root.HUD.TA._x = _root.HUD.sunButton._x;
_root.HUD.TA._y = _root.HUD.sunButton._y;
done = function () {
_root.tutBoxMaker(_root.Tut06XX);
_root.tutorialOn = 6;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 6) {
_root.HUD.TA.removeMovieClip();
_root.game.attachMovie('tutorialArrow2', 'TA2', 5002);
_root.game.TA2._x = _root.game.garden01._x + 50;
_root.game.TA2._y = _root.game.garden01._y + 50;
done = function () {
_root.tutBoxMaker(_root.Tut07XX);
_root.tutorialOn = 7;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 7) {
_root.game.TA2.removeMovieClip();
_root.game.SS2.sLikes = 'brainstorming';
_root.game.SS2.col.setDesc('Brainstorming');
_root.game.SS2.needBubble.gotoAndStop('brainstorming');
_root.game.SS2.needBubble._alpha = 100;
_root.discoveryCheckInterval = setInterval(_root.discoveryCheck, 1500);
done = function () {
_root.tutBoxMaker(_root.Tut08XX);
_root.tutorialOn = 8;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 8) {
done = function () {
_root.tutBoxMaker(_root.Tut09XX);
_root.tutorialOn = 9;
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 9) {
done2 = function () {
this.removeMovieClip();
};
done = function () {
_root.tutBoxMaker(_root.Tut10XX);
_root.tutorialOn = 10;
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 5, done2);
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 10) {
done2 = function () {
this.removeMovieClip();
};
done = function () {
_root.tutBoxMaker(_root.Tut11XX);
_root.tutorialOn = 11;
this.ySlideTo(-100, 0.5, 'easeOutQuad', 5, done2);
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 11) {
done2 = function () {
this.removeMovieClip();
};
done = function () {
_root.tutBoxMaker(_root.Tut12XX);
_root.tutorialOn = 12;
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 5, done2);
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
} else {
if (n == 12) {
done2 = function () {
this.removeMovieClip();
};
done = function () {
_root.tipBoxMaker(_root.Tut13XX);
_root.tutorialOn = 13;
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 5, done2);
};
_root.tb.ySlideTo(-100, 0.5, 'easeOutQuad', 0, done);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function changeColor(sp, b, c, s, h) {
cm = new com.gskinner.geom.ColorMatrix();
cm.adjustColor(b, c, s, h);
sp.filters = [new flash.filters.ColorMatrixFilter(cm)];
}
function bubbleMaker(sproutNumber, amount, word, playsound) {
if (_root.game['SS' + sproutNumber].sTask == 'none' || _root.game['SS' + sproutNumber].sTask == 'weeding') {
if (_root.game['SS' + sproutNumber].pointOfInterest == 0) {
_root.game['SS' + sproutNumber].sTask = 'none';
_root.game['SS' + sproutNumber].ani.rot.gotoAndStop(13);
_root.game['SS' + sproutNumber].startDancing();
}
}
_root.effectsLayer.attachMovie('aBoostShell', 'sbub' + sproutNumber, 2200 + sproutNumber);
_root.effectsLayer['sbub' + sproutNumber]._x = _root.game['SS' + sproutNumber]._x;
_root.effectsLayer['sbub' + sproutNumber]._y = _root.game['SS' + sproutNumber]._y - 30;
_root.effectsLayer['sbub' + sproutNumber].t.amount.text = '+ ' + amount;
if (word == 'motivation') {
if (playsound != 1) {
_root.playSound('S_stonepickup');
}
_root.effectsLayer.attachMovie('foodFound', 'sfound' + Number(sproutNumber - 24), 2200 + Number(sproutNumber - 24));
_root.effectsLayer['sfound' + Number(sproutNumber - 24)]._x = _root.game['SS' + sproutNumber]._x;
_root.effectsLayer['sfound' + Number(sproutNumber - 24)]._y = _root.game['SS' + sproutNumber]._y;
_root.effectsLayer['sbub' + sproutNumber].t.word.text = _root.MotivationXX;
_root.game['SS' + sproutNumber].sMotivation += amount;
if (_root.game['SS' + sproutNumber].sMotivation > 100) {
_root.game['SS' + sproutNumber].sMotivation = 100;
}
_root.HUD.stats.amotivation.xScaleTo(_root.game['SS' + sproutNumber].sMotivation, 0.2, 'easeOutQuad');
} else {
if (word == 'curiosity') {
if (playsound != 1) {
_root.playSound('S_butterflypickup');
}
_root.effectsLayer.attachMovie('foodFound', 'bfound' + Number(sproutNumber - 24), 2200 + Number(sproutNumber - 24));
_root.effectsLayer['bfound' + Number(sproutNumber - 24)]._x = _root.game['SS' + sproutNumber]._x;
_root.effectsLayer['bfound' + Number(sproutNumber - 24)]._y = _root.game['SS' + sproutNumber]._y;
_root.effectsLayer['sbub' + sproutNumber].t.word.text = _root.CuriosityXX;
_root.game['SS' + sproutNumber].sCuriosity += amount;
if (_root.game['SS' + sproutNumber].sCuriosity > 100) {
_root.game['SS' + sproutNumber].sCuriosity = 100;
}
_root.HUD.stats.acuriosity.xScaleTo(_root.game['SS' + sproutNumber].sCuriosity, 0.2, 'easeOutQuad');
} else {
if (word == 'hunger') {
if (playsound != 1) {
_root.playSound('S_food');
}
_root.effectsLayer.attachMovie('foodFound', 'ffound' + Number(sproutNumber - 24), 2200 + Number(sproutNumber - 24));
_root.effectsLayer['ffound' + Number(sproutNumber - 24)]._x = _root.game['SS' + sproutNumber]._x;
_root.effectsLayer['ffound' + Number(sproutNumber - 24)]._y = _root.game['SS' + sproutNumber]._y;
_root.effectsLayer['sbub' + sproutNumber].t.word.text = _root.FullXX;
_root.game['SS' + sproutNumber].sHunger -= amount;
if (_root.game['SS' + sproutNumber].sHunger < 0) {
_root.game['SS' + sproutNumber].sHunger = 0;
}
_root.HUD.stats.ahunger.xScaleTo(Number(100 - _root.lastSprout.sHunger), 0.2, 'easeOutQuad');
} else {
if (word == 'awake') {
if (playsound != 1) {
_root.playSound('S_food');
}
_root.effectsLayer.attachMovie('foodFound', 'ffound' + Number(sproutNumber - 24), 2200 + Number(sproutNumber - 24));
_root.effectsLayer['ffound' + Number(sproutNumber - 24)]._x = _root.game['SS' + sproutNumber]._x;
_root.effectsLayer['ffound' + Number(sproutNumber - 24)]._y = _root.game['SS' + sproutNumber]._y;
_root.effectsLayer['sbub' + sproutNumber].t.word.text = _root.AwakeXX;
_root.game['SS' + sproutNumber].sSleepiness -= amount;
if (_root.game['SS' + sproutNumber].sSleepiness < 0) {
_root.game['SS' + sproutNumber].sSleepiness = 0;
}
_root.HUD.stats.asleepiness.xScaleTo(Number(100 - _root.lastSprout.sSleepiness), 0.2, 'easeOutQuad');
} else {
if (word == 'karma') {
if (playsound != 1) {
_root.playSound('S_offeringrecieved');
}
_root.effectsLayer.attachMovie('foodFound', 'wfound' + Number(sproutNumber - 24), 2200 + Number(sproutNumber - 24));
_root.effectsLayer['wfound' + Number(sproutNumber - 24)]._x = _root.game['SS' + sproutNumber]._x;
_root.effectsLayer['wfound' + Number(sproutNumber - 24)]._y = _root.game['SS' + sproutNumber]._y;
_root.effectsLayer['sbub' + sproutNumber].t.word.text = _root.KarmaXX;
_root.HUD.attachMovie('foodFound', 'wfound' + Number(sproutNumber - 26), 2200 + Number(sproutNumber - 26));
_root.HUD['wfound' + Number(sproutNumber - 26)]._x = _root.HUD.karmaSpot._x;
_root.HUD['wfound' + Number(sproutNumber - 26)]._y = _root.HUD.karmaSpot._y;
_root.karmaPoints += amount;
_root.totalKarmaPoints += amount;
if (_root.karmaPoints >= 65) {
_root.attachMovie('upsellShell', 'USS', 12500);
_root.USS._x = 400;
_root.USS._y = 300;
_root.USS.r = 'karma';
}
if (_root.karmaPoints >= 500 && _root.achievements[8] == 0) {
_root.achievements[8] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 8;
}
_root.HUD.sunButton.updateButton();
_root.HUD.rainButton.updateButton();
_root.HUD.windButton.updateButton();
_root.HUD.lightningButton.updateButton();
_root.HUD.rainbowButton.updateButton();
_root.HUD.giftButton.updateButton();
_root.HUD.magicFlowerButton.updateButton();
_root.HUD.visionButton.updateButton();
_root.HUD.fallingStarButton.updateButton();
_root.HUD.sproutlingButton.updateButton();
_root.HUD.earthquakeButton.updateButton();
}
}
}
}
}
}
function genericBubbleMaker(object, amount, word, playsound) {
_root.effectsLayer.attachMovie('aBoostShell', 'bbub', 2201);
_root.effectsLayer.bbub._x = object._x;
_root.effectsLayer.bbub._y = object._y;
_root.effectsLayer.bbub.t.amount.text = '+ ' + amount;
if (word == 'karma') {
if (playsound != 1) {
_root.playSound('S_offeringrecieved');
}
_root.effectsLayer.attachMovie('foodFound', 'wfound', 2200);
_root.effectsLayer.wfound._x = object._x;
_root.effectsLayer.wfound._y = object._y;
_root.effectsLayer.bbub.t.word.text = _root.KarmaXX;
_root.HUD.attachMovie('foodFound', 'wfound', 2200);
_root.HUD.wfound._x = _root.HUD.karmaSpot._x;
_root.HUD.wfound._y = _root.HUD.karmaSpot._y;
_root.karmaPoints += amount;
_root.totalKarmaPoints += amount;
if (_root.karmaPoints >= 65) {
_root.attachMovie('upsellShell', 'USS', 12500);
_root.USS._x = 400;
_root.USS._y = 300;
_root.USS.r = 'karma';
}
if (_root.karmaPoints >= 500 && _root.achievements[8] == 0) {
_root.achievements[8] = 1;
_root.attachMovie('achivementDiscovered', 'AD', 12000);
_root.AD._x = 400;
_root.AD._y = 300;
_root.AD.num = 8;
}
_root.HUD.sunButton.updateButton();
_root.HUD.rainButton.updateButton();
_root.HUD.windButton.updateButton();
_root.HUD.lightningButton.updateButton();
_root.HUD.rainbowButton.updateButton();
_root.HUD.giftButton.updateButton();
_root.HUD.magicFlowerButton.updateButton();
_root.HUD.visionButton.updateButton();
_root.HUD.fallingStarButton.updateButton();
_root.HUD.sproutlingButton.updateButton();
_root.HUD.earthquakeButton.updateButton();
}
}
function sproutBadPlace(cs, misc) {
i = 0;
while (i < _root.safePoints.length) {
var spoint = _root.safePoints[i];
spoint.distanceX = cs._x - Number(spoint.myMc._x);
spoint.distanceY = cs._y - Number(spoint.myMc._y);
spoint.distanceTotal = Math.sqrt(spoint.distanceX * spoint.distanceX + spoint.distanceY * spoint.distanceY);
if (i == _root.safePoints.length - 1) {
wer = function () {
cs.col.shouldWander('walking', 0);
};
_root.safePoints.sortOn('distanceTotal', Array.NUMERIC);
var q = _root.safePoints[0].myMc._x;
var qq = _root.safePoints[0].myMc._y;
if (misc == 'ball') {
cs.slideTo(q, qq, 0.15, 'easeOutQuad');
} else {
cs.slideTo(q, qq, 0.15, 'easeOutQuad', 0.25, wer);
cs.col.setDesc('BadDrop');
}
}
++i;
}
}
function presentOffering(sn, offeringType, offeringNumber) {
if (_root.totalOfferings > 20) {
_root.totalOfferings = 0;
} else {
++_root.totalOfferings;
}
if (offeringType == 'butterfly') {
var q = 2;
} else {
if (offeringType == 'stone') {
var q = 2;
}
}
var sp = _root.game['SS' + sn];
sp.sTask = 'offering';
sp.ani.gotoAndStop('offering');
_root.playSound('S_offering');
var gi = random(100);
if (gi > 35) {
if (sp.sAge > _root.workAge) {
_root.playSproutQuip('offering');
} else {
_root.playSproutQuip('baby');
}
}
_root.effectsLayer.attachMovie(offeringType + 'Offering', offeringType + 'Offering' + _root.totalOfferings, 3256 + _root.totalOfferings);
_root.effectsLayer[offeringType + 'Offering' + _root.totalOfferings]._x = sp._x;
_root.effectsLayer[offeringType + 'Offering' + _root.totalOfferings]._y = sp._y;
_root.effectsLayer[offeringType + 'Offering' + _root.totalOfferings].amount = q;
_root.effectsLayer[offeringType + 'Offering' + _root.totalOfferings].sprout = sp;
_root.effectsLayer[offeringType + 'Offering' + _root.totalOfferings].gotoAndStop(offeringNumber + 1);
_root.effectsLayer.attachMovie('genParticle', 'gpart' + sp.sNum, 6100 + sp.sNum);
_root.effectsLayer['gpart' + sp.sNum]._x = sp._x;
_root.effectsLayer['gpart' + sp.sNum]._y = sp._y;
if (_root.karmaPoints > 60) {
_root.tipBoxMaker(_root.game['SS' + sn].sName + _root.TWantsToGiveOffering2XX);
} else {
_root.tipBoxMaker(_root.game['SS' + sn].sName + _root.TWantsToGiveOfferingXX);
}
}
function tipBoxMaker(t) {
_root.attachMovie('tipBox', 'tb', 11954);
_root.tb.wtip.text = t;
}
function tutBoxMaker(t) {
_root.attachMovie('tutBox', 'tb', 11954);
_root.tb.wtip.text = t;
}
function removeFromZandPOIArrays(n) {
i = 0;
while (i < _root.zSortArray.length) {
if (_root.zSortArray[i] == n) {
_root.zSortArray.splice(i, 1);
}
++i;
}
j = 0;
while (j < _root.pointsOfInterest.length) {
if (_root.pointsOfInterest[j] == n) {
_root.pointsOfInterest.splice(j, 1);
}
++j;
}
n.removeMovieClip();
}
function cleanUp() {
_root.game.TA2.removeMovieClip();
_root.HUD.removeMovieClip();
_root.game.TA.removeMovieClip();
_root.tb.removeMovieClip();
_root.effectsLayer.removeMovieClip();
_root.WP.removeMovieClip();
_root.HT.removeMovieClip();
i = 0;
while (i < 55) {
_root['BFly' + i].removeMovieClip();
_root['Weed' + i].removeMovieClip();
_root['Stone' + i].removeMovieClip();
_root['F' + i].removeMovieClip();
++i;
}
}
function windMillMealMaker(cs, meal) {
cs.pointOfInterest = 0;
if (_root.mealsDiscovered[meal - 1] == 0) {
_root.mealsDiscovered[meal - 1] = 1;
_root.attachMovie('newFoodDiscoveredShell', 'NFDS', 12000);
_root.NFDS._x = 400;
_root.NFDS._y = 300;
_root.NFDS.mealName = _root['Meal' + meal + 'XX'];
_root.NFDS.cs = cs;
_root.NFDS.meal = meal;
} else {
if (meal == 1) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 15, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 15, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 2) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 15, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 15, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 3) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 15, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 15, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 4) {
f3 = function () {
_root.bubbleMaker(cs.sNum, 10, 'awake');
};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 10, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 5) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 20, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 10, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 6) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 7) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 20, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 8) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 9) {
f3 = function () {
_root.bubbleMaker(cs.sNum, 5, 'motivation');
};
f2 = function () {
_root.bubbleMaker(cs.sNum, 5, 'curiosity');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
} else {
if (meal == 10) {
f3 = function () {};
f2 = function () {
_root.bubbleMaker(cs.sNum, 10, 'motivation');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f3);
};
f1 = function () {
_root.bubbleMaker(cs.sNum, 20, 'awake');
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f2);
};
_root.game.windMill.alphaTo(100, 1, 'linear', 0, f1);
_root.bubbleMaker(cs.sNum, 100, 'hunger');
}
}
}
}
}
}
}
}
}
}
if (cs.needBubble.fLabel == 'hunger') {
cs.needBubble._alpha = 0;
}
if (cs.sGender == 'f') {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('yummy');
} else {
_root.playSproutQuip('baby');
}
_root.tipBoxMaker(cs.sName + _root['Meal' + meal + 'fDescriptionXX']);
} else {
if (cs.sAge > _root.workAge) {
_root.playSproutQuip('yummy');
} else {
_root.playSproutQuip('baby');
}
_root.tipBoxMaker(cs.sName + _root['Meal' + meal + 'DescriptionXX']);
}
}
}
stop();
var screenNumber = 0;
var wanderPointsVisible = false;
var accelerateTime = false;
var draggingScreen = false;
var movingSprout = false;
var holdingSprout = false;
var dayNumber = 0;
var GameTime = false;
var saveFromGame = false;
var worldView = false;
var selectionDepth = 31000;
var selectedSprout = 'none';
var lastSprout = 'none';
var destScreen = '';
var totalActiveSprouts = 0;
var totalCareerSprouts = 0;
var sproutArray = [];
var pointsOfInterest = [0];
var zSortArray = [];
var deletePlayer = 0;
var safePoints = [];
var lightningOn = false;
var brainstorming = 0;
var lastSproutNum = 0;
var lastGoodieMade = '';
var totalGoodies = 0;
var totalOfferings = 0;
var sizeMultiplier = 14;
var sizeBase = 30;
var tod = 0;
var todd = 0;
var effectNum = 0;
var playingInGameMovie = false;
var workAge = 4.999;
var totalWeeds = 0;
var zOrder = [];
var sunUnlockPoints = 3;
var rainUnlockPoints = 3;
var sproutlingUnlockPoints = 10;
var giftUnlockPoints = 25;
var windUnlockPoints = 45;
var lightningUnlockPoints = 70;
var visionUnlockPoints = 100;
var magicFlowerUnlockPoints = 135;
var rainbowUnlockPoints = 185;
var fallingStarUnlockPoints = 250;
var earthquakeUnlockPoints = 350;
var sunRechargeRate = 2;
var rainRechargeRate = 2;
var sproutlingRechargeRate = 0.2;
var giftRechargeRate = 1;
var windRechargeRate = 2.5;
var lightningRechargeRate = 0.5;
var visionRechargeRate = 0.7;
var magicFlowerRechargeRate = 1;
var rainbowRechargeRate = 0.25;
var fallingStarRechargeRate = 0.5;
var earthquakeRechargeRate = 0.15;
donewithmusic = function () {
_root.S_inGameMusic.stop('inGameMusic.wav');
};
_root.S_inGameMusic.volumeTo(0, 1, 'linear', 0, donewithmusic);
if (_root.fromSplash == false) {
if (_root.fromGame == true) {
_root.fromGame = false;
_root.S_Theme.setVolume(0);
_root.S_Theme.start(0, 99999);
_root.S_Theme.volumeTo(_root.Volume, 1, 'linear');
}
} else {
_root.S_nighttime.stop('nighttime.wav');
_root.S_daytime.stop('daytime.wav');
_root.S_daytime.setVolume(0);
_root.S_nighttime.setVolume(0);
_root.S_nighttime.start(0, 99999);
_root.S_daytime.start(0, 99999);
_root.fromSplash = false;
}
var day = 360;
var sTime = _root.timePlayed / 1000;
_root.tod = Number(sTime / day);
_root.todd = tod - Math.floor(tod);
var tempsound = _root.soundVolume / 100;
if (_root.todd <= 0.25) {
var dbase = 50 + Number(_root.todd * 200);
var nbase = 50 - Number(_root.todd * 200);
} else {
if (_root.todd <= 0.5) {
var dbase = 100 - Number(_root.todd * 100);
var nbase = Number(_root.todd) * 100;
} else {
if (_root.todd <= 0.75) {
var dbase = 50 - Number(Number(_root.todd - 0.25) * 100);
var nbase = 50 + Number(Number(_root.todd - 0.25) * 100);
} else {
var dbase = Number(_root.todd - 0.75) * 100;
var nbase = 100 - Number(Number(_root.todd - 0.75) * 100);
}
}
}
_root.S_daytime.volumeTo(Number(dbase * tempsound) / 2, 1, 'linear');
_root.S_nighttime.volumeTo(Number(nbase * tempsound) / 2, 1, 'linear');
clearInterval(discoveryCheckInterval);
clearInterval(updateProgressInterval);
clearInterval(zSortObjectsInterval);
clearInterval(makeGoodieInterval);
clearInterval(fixLameSproutsInterval);
var bsn = [_root.Structure0XX, _root.Structure1XX, _root.Structure2XX, _root.Structure3XX, _root.Structure4XX, _root.Structure5XX, _root.Structure6XX, _root.Structure7XX, _root.Structure8XX, _root.Structure9XX, _root.Structure10XX, _root.Structure11XX, _root.Structure12XX];
cleanUp();
var cheat1 = false;
var fromNotYouScreen = false;
var brandNewPlayer = false;
var mCreatePlayer = false;
var AchievementAwardedName = '';
var AchievementAwardedDescription = '';
var playerProfile = 'Player01';
var Player01info = false;
var Player02info = false;
var Player03info = false;
var Player04info = false;
var Player05info = false;
var currentPlayerName = 'none';
var Volume = 80;
var soundVolume = 100;
var customCursor = 'true';
var gameToolTips = 'true';
var FScreen = 'true';
var gameSpeed = 1;
var playedObservatoryMovie = 0;
var completedFinalBalloon = 0;
var flowerType = 1;
var karmaPoints = 5;
var totalKarmaPoints = 5;
var timePlayed = 0;
var wildFlowersPicked = 0;
var weeds = 0;
var cameraX = 0;
var cameraY = 0;
var spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var zooAnimalsArray = [0, 0, 0];
var balloonTimeAway = 0;
var mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var spellChargeArrayTemp = '';
var zooAnimalsArrayTemp = '';
var balloonTimeAwayTemp = '';
var mealsDiscoveredTemp = '';
var sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var sprout1Temp = '';
var sprout2Temp = '';
var sprout3Temp = '';
var sprout4Temp = '';
var sprout5Temp = '';
var sprout6Temp = '';
var sprout7Temp = '';
var sprout8Temp = '';
var sprout9Temp = '';
var sprout10Temp = '';
var sprout11Temp = '';
var sprout12Temp = '';
var bs = ['garden01', 'shelter1', 'bridge', 'school', 'wishingWell', 'toolShop', 'windMill', 'shelter2', 'zoo', 'pier', 'balloon', 'observatory'];
var shelter1 = [0, 0];
var shelter1Temp = '';
var shelter2 = [0, 0];
var shelter2Temp = '';
var shelter3 = [0, 0];
var shelter3Temp = '';
var garden01 = [1, 0];
var garden01Temp = '';
var bridge = [0, 0];
var bridgeTemp = '';
var windMill = [0, 0];
var windMillTemp = '';
var school = [0, 0];
var schoolTemp = '';
var pier = [0, 0];
var pierTemp = '';
var wishingWell = [0, 0];
var wishingWellTemp = '';
var toolShop = [0, 0];
var toolShopTemp = '';
var zoo = [0, 0];
var zooTemp = '';
var balloon = [0, 0];
var balloonTemp = '';
var observatory = [0, 0];
var observatoryTemp = '';
var egg = [0, 0];
var eggTemp = '';
var fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var fishingDiscoveriesTemp = '';
var achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var achievementsTemp = '';
var butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var butterfliesTemp = '';
var stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var stonesTemp = '';
var redFlowers = 0;
var greenFlowers = 0;
var blueFlowers = 0;
var kite2 = 0;
var kite3 = 0;
var tutorialOn = 0;
var mushroomBall = [0, 0];
var mushroomBallTemp = '';
var mushroomBall1 = [0, 0];
var mushroomBall2 = [0, 0];
var sproutlingMade = [0, 0];
var magicFlowerMade = [0, 0];
var giftMade = [0, 0];
var fallingStarMade = [0, 0];
var mushroomBall1Temp = '';
var mushroomBall2Temp = '';
var sproutlingMadeTemp = '';
var magicFlowerMadeTemp = '';
var giftMadeTemp = '';
var fallingStarMadeTemp = '';
var p1name = 'none';
var p1Volume = 75;
var p1soundVolume = 100;
var p1customCursor = 'true';
var p1gameToolTips = 'true';
var p1FScreen = 'true';
var p1gameSpeed = 1;
var p1flowerType = 1;
var p1cameraX = 0;
var p1cameraY = 0;
var p1playedObservatoryMovie = 0;
var p1completedFinalBalloon = 0;
var p1spellChargeArray = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
var p1spellChargeArrayTemp = '';
var p1zooAnimalsArray = [0, 0, 0];
var p1zooAnimalsArrayTemp = '';
var p1balloonTimeAway = 0;
var p1mealsDiscovered = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1mealsDiscoveredTemp = '';
var p1sprout1 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout1Temp = '';
var p1sprout2 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout2Temp = '';
var p1sprout3 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout3Temp = '';
var p1sprout4 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout4Temp = '';
var p1sprout5 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout5Temp = '';
var p1sprout6 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout6Temp = '';
var p1sprout7 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout7Temp = '';
var p1sprout8 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 200, '', 0, 1];
var p1sprout8Temp = '';
var p1sprout9 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout9Temp = '';
var p1sprout10 = ['none', 10, 10, 20, 'f', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout10Temp = '';
var p1sprout11 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout11Temp = '';
var p1sprout12 = ['none', 10, 10, 20, 'm', '', 35, 35, 20, 20, 0, '', 0, 1];
var p1sprout12Temp = '';
var p1karmaPoints = 5;
var p1totalKarmaPoints = 5;
var p1shelter1 = [0, 0];
var p1shelter1Temp = '';
var p1shelter2 = [0, 0];
var p1shelter2Temp = '';
var p1shelter3 = [0, 0];
var p1shelter3Temp = '';
var p1garden01 = [1, 0];
var p1garden01Temp = '';
var p1bridge = [0, 0];
var p1bridgeTemp = '';
var p1windMill = [0, 0];
var p1windMillTemp = '';
var p1school = [0, 0];
var p1schoolTemp = '';
var p1pier = [0, 0];
var p1pierTemp = '';
var p1wishingWell = [0, 0];
var p1wishingWellTemp = '';
var p1toolShop = [0, 0];
var p1toolShopTemp = '';
var p1zoo = [0, 0];
var p1zooTemp = '';
var p1balloon = [0, 0];
var p1balloonTemp = '';
var p1observatory = [0, 0];
var p1observatoryTemp = '';
var p1egg = [0, 0];
var p1eggTemp = '';
var p1fishingDiscoveries = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1fishingDiscoveriesTemp = '';
var p1wildFlowersPicked = 0;
var p1weeds = 0;
var p1timePlayed = 0;
var p1achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1achievementsTemp = '';
var p1butterflies = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1butterfliesTemp = '';
var p1stones = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var p1stonesTemp = '';
var p1redFlowers = 0;
var p1greenFlowers = 0;
var p1blueFlowers = 0;
var p1kite2 = 0;
var p1kite3 = 0;
var p1tutorialOn = 0;
var p1mushroomBall = [0, 0];
var p1mushroomBallTemp = '';
var p1mushroomBall1 = [0, 0];
var p1mushroomBall2 = [0, 0];
var p1sproutlingMade = [0, 0];
var p1magicFlowerMade = [0, 0];
var p1giftMade = [0, 0];
var p1fallingStarMade = [0, 0];
var p1mushroomBall1Temp = '';
var p1mushroomBall2Temp = '';
var p1sproutlingMadeTemp = '';
var p1magicFlowerMadeTemp = '';
var p1giftMadeTemp = '';
var p1fallingStarMadeTemp = '';
}
movieClip 12851 {
}
movieClip 12863 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 12865 {
frame 1 {
this._alpha = 0;
var tempOb = {'myMc': this, 'distanceTotal': 0, 'distanceX': 0, 'distanceY': 0};
_root.safePoints.push(tempOb);
}
}
movieClip 12866 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 5 {
gotoAndStop(2);
}
}
movieClip 12868 {
}
movieClip 12870 {
}
movieClip 12872 {
}
movieClip 12876 {
}
movieClip 12877 {
}
movieClip 12878 background {
frame 1 {
stop();
}
instance col of movieClip 12863 {
onClipEvent (load) {
function setCollisionFrame() {
var t = false;
i = 0;
while (i <= _root.bs.length) {
if (_root.bs[i] == 'bridge' && _root.bridge[1] >= 100 && _root.school[0] == 0 && t == false) {
t = true;
_root.game.BG.col.gotoAndStop('bridgeDone');
} else {
if (_root.game[_root.bs[i]].pDiscovered == undefined && t == false) {
t = true;
_root.game.BG.col.gotoAndStop(_root.bs[i - 1]);
} else {
if (t == false) {
if (t == false && _root.observatory[0] >= 1) {
t = true;
_root.game.BG.col.gotoAndStop('observatory');
}
}
}
}
++i;
}
}
setCollisionFrame();
}
}
instance hangGliderSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance barrelRideSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance of movieClip 12876 {
onClipEvent (load) {
this.stop();
}
}
instance of movieClip 12876 {
onClipEvent (load) {
this.stop();
}
}
instance bridgeSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance tsWallsSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter1SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance garden01SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWellSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance pierSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance windMillSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance zooSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance balloonSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter2SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance observatorySP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter12 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter13 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter14 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter15 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter16 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter17 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter18 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter19 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop10 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShop12 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter21 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter22 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter23 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter24 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter25 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter26 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter27 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter28 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter29 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter210 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter211 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter212 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo10 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance zoo12 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance schoolSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance school1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school10 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance school12 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance btorch1 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance btorch2 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon10 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill10 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance windMill11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance kite1SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance tsAnvilSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance tsBenchSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance tsFirePitSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance obtarget1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance obtarget3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance obtarget4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance obtarget5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance obtarget6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance obtarget7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter1Exit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance shelter2Exit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloonDestination of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShopSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance toolShopExit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance schoolExit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance observatoryExit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance trampolineSP1 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance trampolineExit of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance kite2SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance mushroomBall1SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance mushroomBall2SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance mushroomBall3SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance kite3SP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance balloonDestination2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell10 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingWell12 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance bridge9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier7 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier8 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier9 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier10 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier11 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pier12 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance pierExit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance balloon12 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance hangGliderExit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance hangGliderDestination of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance barrelRiderExit of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance barrelRiderStart of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance barrelRiderDestination1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance barrelRiderDestination2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance hangGliderFinished of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance tutWeedSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance tutStoneSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance tutFlowerSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance tutButterflySP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance begg of movieClip 11296 back_Egg {
onClipEvent (load) {
this._visible = false;
}
}
instance bmush1 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance bmush2 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance bmush3 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance bmush4 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance bmush5 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance bleaves of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance btower1 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance btower2 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance btower3 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance btower4 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance btower5 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance btower6 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance spottedDuckBillSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance strippedBullSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance stretchyNeckDeerSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance p2 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance IntroWindow01 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance p1 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance p3 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance p4 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance p5 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance e1 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance skipSP of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance fTarget1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance fTarget2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance rTarget1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance rTarget2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance rTarget3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance rTarget4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance wishingTarget of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance fpTarget4 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance fpTarget3 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance fpTarget6 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance fpTarget1 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance fpTarget5 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance fpTarget2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance obtarget2 of movieClip 11339 {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride1 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride2 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride3 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride4 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride5 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride6 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride7 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride8 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride9 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride10 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride11 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
instance eggride12 of movieClip 3 positionmarker {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 12880 {
}
movieClip 12882 {
}
instance nighttimeswaplayer of movieClip 3 positionmarker {
onClipEvent (load) {
this.swapDepths(_root.nightTime);
}
}
movieClip 12885 {
}
movieClip 12886 {
frame 1 {
t.html = true;
t.multiline = true;
t.wordWrap = true;
}
}
instance of movieClip 12886 {
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.OptionsXX;
var dest = 'M_Options';
this.onPress = function () {
_root.goToScreen(dest);
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.PlayXX;
this.onPress = function () {
_root.goToScreen('M_Game');
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.AchievementsXX;
var dest = 'M_Achievements';
this.onPress = function () {
_root.goToScreen(dest);
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
if (_root.Preorder == true) {
this.base.But.htmlText = _root.PreorderXX;
} else {
this.base.But.htmlText = _root.DownloadXX;
}
this.onPress = function () {
getURL('http://www.amazon.com/gp/product/B002BNKQHQ?tag=sproutsadventure-20', '_blank');
};
}
}
movieClip 12891 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 12892 {
instance of movieClip 12891 {
onClipEvent (load) {
var dest = 'M_SelectPlayer';
this.onPress = function () {
_root.goToScreen(dest);
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
}
}
instance of movieClip 12892 {
onClipEvent (enterFrame) {
if (_root.currentPlayerName != 'none') {
this._y = 552;
}
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DiscoveriesXX;
var dest = 'M_Discoveries';
this.onPress = function () {
_root.goToScreen(dest);
};
}
}
instance of movieClip 7487 {
onClipEvent (load) {
onPress = function () {
getURL('http://www.amazon.com/gp/product/B002BNKQHQ?tag=sproutsadventure-20', '_blank');
};
}
}
frame 11 {
stop();
}
instance of movieClip 7538 {
onClipEvent (load) {
this.gotoAndPlay(Number(random(20) + 1));
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.CancelXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.SaveGame();
_root.goToScreen(dest);
};
}
}
movieClip 12897 {
}
movieClip 12898 {
frame 1 {
this.onRollOver = function () {
this.alphaTo(100, 0.15, 'easeOutQuad');
this.scaleTo(120, 0.1, 'easeOutQuad');
};
this.onReleaseOutside = function () {
this.alphaTo(65, 0.35, 'easeOutQuad');
this.scaleTo(100, 0.1, 'easeOutQuad');
};
this.onRollOut = this.onReleaseOutside;
this.alphaTo(65, 0.55, 'easeOutQuad');
}
}
instance of movieClip 12898 {
onClipEvent (load) {
this.base.But.html = true;
if (_root.p1name != 'none') {
this.base.But.htmlText = _root.p1name;
var dest = 'M_MainMenu';
} else {
this.base.But.htmlText = _root.CreateNewPlayerXX;
}
this.onPress = function () {
if (_root.p1name != 'none') {
_root.playerProfile = 'Player01';
_root.changePlayers();
_root.goToScreen('M_MainMenu');
} else {
_root.attachMovie('createProfileShell', 'CPS', 12000);
_root.CPS._x = 400;
_root.CPS._y = 300;
_root.CPS.fromCreateScreen = 1;
}
};
}
}
instance of movieClip 12898 {
onClipEvent (load) {
this.base.But.html = true;
if (_root.p2name != 'none') {
this.base.But.htmlText = _root.p2name;
var dest = 'M_MainMenu';
} else {
this.base.But.htmlText = _root.CreateNewPlayerXX;
}
this.onPress = function () {
if (_root.p2name != 'none') {
_root.playerProfile = 'Player02';
_root.changePlayers();
_root.goToScreen('M_MainMenu');
} else {
_root.attachMovie('createProfileShell', 'CPS', 12000);
_root.CPS._x = 400;
_root.CPS._y = 300;
_root.CPS.fromCreateScreen = 1;
}
};
}
}
instance of movieClip 12898 {
onClipEvent (load) {
this.base.But.html = true;
if (_root.p3name != 'none') {
this.base.But.htmlText = _root.p3name;
var dest = 'M_MainMenu';
} else {
this.base.But.htmlText = _root.CreateNewPlayerXX;
}
this.onPress = function () {
if (_root.p3name != 'none') {
_root.playerProfile = 'Player03';
_root.changePlayers();
_root.goToScreen('M_MainMenu');
} else {
_root.attachMovie('createProfileShell', 'CPS', 12000);
_root.CPS._x = 400;
_root.CPS._y = 300;
_root.CPS.fromCreateScreen = 1;
}
};
}
}
instance of movieClip 12898 {
onClipEvent (load) {
this.base.But.html = true;
if (_root.p4name != 'none') {
this.base.But.htmlText = _root.p4name;
var dest = 'M_MainMenu';
} else {
this.base.But.htmlText = _root.CreateNewPlayerXX;
}
this.onPress = function () {
if (_root.p4name != 'none') {
_root.playerProfile = 'Player04';
_root.changePlayers();
_root.goToScreen('M_MainMenu');
} else {
_root.attachMovie('createProfileShell', 'CPS', 12000);
_root.CPS._x = 400;
_root.CPS._y = 300;
_root.CPS.fromCreateScreen = 1;
}
};
}
}
instance of movieClip 12898 {
onClipEvent (load) {
this.base.But.html = true;
if (_root.p5name != 'none') {
this.base.But.htmlText = _root.p5name;
var dest = 'M_MainMenu';
} else {
this.base.But.htmlText = _root.CreateNewPlayerXX;
}
this.onPress = function () {
if (_root.p5name != 'none') {
_root.playerProfile = 'Player05';
_root.changePlayers();
_root.goToScreen('M_MainMenu');
} else {
_root.attachMovie('createProfileShell', 'CPS', 12000);
_root.CPS._x = 400;
_root.CPS._y = 300;
_root.CPS.fromCreateScreen = 1;
}
};
}
}
instance of movieClip 7540 {
onClipEvent (enterFrame) {
var i = 0;
if (_root.playerProfile == 'Player01') {
i = 1;
} else {
if (_root.playerProfile == 'Player02') {
i = 2;
} else {
if (_root.playerProfile == 'Player03') {
i = 3;
} else {
if (_root.playerProfile == 'Player04') {
i = 4;
} else {
if (_root.playerProfile == 'Player05') {
i = 5;
}
}
}
}
}
if (i != 0) {
this._y = 110 + Number(i * 60);
} else {
this._y = -40;
}
}
}
// unknown tag 88 length 99
movieClip 12902 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance butp1del of movieClip 12902 {
onClipEvent (load) {
if (_root.p1name == 'none') {
this._alpha = 0;
} else {
this.alpha = 100;
this.onPress = function () {
if (_root.MC._x != -158) {
_root.playSound('S_ButtonSound');
_root.deletePlayer = 1;
_root.attachMovie('confirmDeletePlayer', 'CDP', 20000);
_root.CDP._x = 400;
_root.CDP._y = 300;
this.gotoAndStop(1);
}
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
}
}
instance butp1del of movieClip 12902 {
onClipEvent (load) {
if (_root.p2name == 'none') {
this._alpha = 0;
} else {
this.alpha = 100;
this.onPress = function () {
if (_root.MC._x != -158) {
_root.playSound('S_ButtonSound');
_root.deletePlayer = 2;
_root.attachMovie('confirmDeletePlayer', 'CDP', 20000);
_root.CDP._x = 400;
_root.CDP._y = 300;
this.gotoAndStop(1);
}
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
}
}
instance butp1del of movieClip 12902 {
onClipEvent (load) {
if (_root.p3name == 'none') {
this._alpha = 0;
} else {
this.alpha = 100;
this.onPress = function () {
if (_root.MC._x != -158) {
_root.playSound('S_ButtonSound');
_root.deletePlayer = 3;
_root.attachMovie('confirmDeletePlayer', 'CDP', 20000);
_root.CDP._x = 400;
_root.CDP._y = 300;
this.gotoAndStop(1);
}
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
}
}
instance butp1del of movieClip 12902 {
onClipEvent (load) {
if (_root.p4name == 'none') {
this._alpha = 0;
} else {
this.alpha = 100;
this.onPress = function () {
if (_root.MC._x != -158) {
_root.playSound('S_ButtonSound');
_root.deletePlayer = 4;
_root.attachMovie('confirmDeletePlayer', 'CDP', 20000);
_root.CDP._x = 400;
_root.CDP._y = 300;
this.gotoAndStop(1);
}
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
}
}
instance butp1del of movieClip 12902 {
onClipEvent (load) {
if (_root.p5name == 'none') {
this._alpha = 0;
} else {
this.alpha = 100;
this.onPress = function () {
if (_root.MC._x != -158) {
_root.playSound('S_ButtonSound');
_root.deletePlayer = 5;
_root.attachMovie('confirmDeletePlayer', 'CDP', 20000);
_root.CDP._x = 400;
_root.CDP._y = 300;
this.gotoAndStop(1);
}
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
}
}
frame 13 {
stop();
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.BackXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.SaveGame();
_root.goToScreen(dest);
};
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.NextXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.SaveGame();
_root.goToScreen(dest);
};
}
}
frame 14 {
stop();
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.OkXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.goToScreen(dest);
};
}
}
movieClip 12905 {
frame 1 {
tcredits.html = true;
tcredits.multiline = true;
tcredits.htmlText = _root.Credits01XX;
}
instance of movieClip 7487 {
onClipEvent (load) {
this.onPress = function () {
_root.goToScreen('M_EndCredits');
};
}
}
}
movieClip 12906 {
instance credits of movieClip 12905 {
onClipEvent (load) {
this.onEnterFrame = function () {
if (this._y <= -2550) {
_root.goToScreen('M_MainMenu');
delete this.onEnterFrame;
} else {
this._y -= 2;
updateAfterEvent();
}
};
}
}
}
frame 15 {
stop();
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.SaveGame();
_root.goToScreen(dest);
};
}
}
instance of movieClip 7538 {
}
instance musicvolumeknob of movieClip 7540 {
onClipEvent (load) {
var initx = this._x;
var dragging = false;
this._x = Number(_root.Volume * 3) + initx;
var left = initx;
var right = initx + 300;
var top = this._y;
var bottom = this._y;
this.onPress = function () {
this.dragging = true;
_root.playSound('S_ButtonSound');
startDrag('', false, left, top, right, bottom);
};
this.onRelease = function () {
this.dragging = false;
stopDrag();
};
this.onReleaseOutside = function () {
this.dragging = false;
stopDrag();
};
}
onClipEvent (enterFrame) {
if (this.dragging == true) {
var b = Number(this._x - initx);
_root.Volume = Math.round(Number(b / 3));
_root.S_inGameMusic.setVolume(_root.Volume);
_root.S_Theme.setVolume(_root.Volume);
}
}
}
instance soundvolumeknob of movieClip 7540 {
onClipEvent (load) {
var initx = this._x;
var dragging = false;
this._x = Number(_root.soundVolume * 3) + initx;
left = initx;
right = initx + 300;
top = this._y;
bottom = this._y;
this.onPress = function () {
this.dragging = true;
_root.playSound('S_ButtonSound');
startDrag('', false, left, top, right, bottom);
};
this.onRelease = function () {
this.dragging = false;
stopDrag();
};
this.onReleaseOutside = function () {
this.dragging = false;
stopDrag();
};
}
onClipEvent (enterFrame) {
if (this.dragging == true) {
var v = Number(this._x - initx);
_root.soundVolume = Number(v / 3);
var tempsound = _root.soundVolume / 100;
if (_root.todd <= 0.25) {
var dbase = 50 + Number(_root.todd * 200);
var nbase = 50 - Number(_root.todd * 200);
} else {
if (_root.todd <= 0.5) {
var dbase = 100 - Number(_root.todd * 100);
var nbase = Number(_root.todd) * 100;
} else {
if (_root.todd <= 0.75) {
var dbase = 50 - Number(Number(_root.todd - 0.25) * 100);
var nbase = 50 + Number(Number(_root.todd - 0.25) * 100);
} else {
var dbase = Number(_root.todd - 0.75) * 100;
var nbase = 100 - Number(Number(_root.todd - 0.75) * 100);
}
}
}
_root.S_daytime.setVolume(dbase * tempsound);
_root.S_nighttime.setVolume(nbase * tempsound);
_root.S_introMovie.setVolume(_root.soundVolume);
}
}
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.CreditsXX;
this.onPress = function () {
_root.goToScreen('M_EndCredits');
};
}
}
frame 16 {
stop();
tname.text = '';
tdesc.text = '';
}
instance of movieClip 156 ButtonMC {
onClipEvent (load) {
this.base.But.html = true;
this.base.But.htmlText = _root.DoneXX;
var dest = 'M_MainMenu';
this.onPress = function () {
_root.goToScreen(dest);
};
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 0;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 1;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 2;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 3;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 4;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 5;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 6;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 7;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 8;
}
}
instance of movieClip 12725 {
onClipEvent (load) {
var num = 9;
}
}
frame 17 {
stop();
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 0;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 1;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 2;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 3;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 4;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 5;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 6;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 7;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 8;
}
}
instance of movieClip 12787 {
onClipEvent (load) {
var num = 9;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 0;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 1;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 2;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 3;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 4;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 5;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 6;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 7;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 8;
}
}
instance of movieClip 12788 {
onClipEvent (load) {
var num = 9;
}
}
frame 19 {
stop();
_root.playingInGameMovie = true;
_root.attachMovie('movieBorder', 'MB', 6500);
_root.S_Theme.volumeTo(5, 0.5, 'linear');
_root.S_introMovie.start();
md10 = function () {
_root.mss.removeMovieClip();
_root.me.removeMovieClip();
_root.ms.removeMovieClip();
_root.bag.removeMovieClip();
_root.MB.removeMovieClip();
_root.goToScreen('M_Game');
};
md9 = function () {
_root.me.alphaTo(0, 2.5, 'linear', 0, md10);
};
md8 = function () {
_root.me.slideTo(-132, -200, 6, 'linear', 0, md9);
};
md7 = function () {
_root.mss.alphaTo(0, 4, 'linear');
_root.attachMovie('movieEgg', 'me', 6403);
_root.me._x = -182;
_root.me._y = -70;
_root.me._alpha = 0;
_root.me.alphaTo(100, 2, 'linear', 0, md8);
};
7;
md6 = function () {
_root.mss.slideTo(0, -130, 5, 'linear', 0, md7);
};
md5 = function () {
_root.ms.alphaTo(0, 4, 'linear');
_root.attachMovie('movieStorm', 'mss', 6402);
_root.mss._x = 8;
_root.mss._y = 64;
_root.mss._alpha = 0;
_root.mss.alphaTo(100, 5, 'linear', 0, md6);
};
md4 = function () {
_root.ms.slideTo(300, 70, 5, 'linear', 0, md5);
};
md3 = function () {
_root.attachMovie('movieSprout', 'ms', 6401);
_root.ms._x = 300;
_root.ms._y = 280;
_root.ms._alpha = 0;
_root.ms.alphaTo(100, 3, 'linear', 0, md4);
_root.bag.alphaTo(0, 5, 'linear');
};
md2 = function () {
_root.bag.alphaTo(100, 2, 'linear', 0, md3);
};
md1 = function () {
_root.bag.slideTo(40, -580, 12, 'linear', 0, md3);
};
_root.attachMovie('movieBackground', 'bag', 6400);
_root.bag._x = -170;
_root.bag._y = 12;
_root.bag._alpha = 0;
_root.bag.alphaTo(100, 4, 'linear', 0, md1);
}
frame 20 {
function StartGame() {
_root.stopTween();
_root.saveFromGame = true;
_root.S_inGameMovie.stop('inGameMovie.wav');
_root.GameTime = true;
_root.attachMovie('nightTimeEffect', 'nightTime', 1999);
_root.nightTime.blendMode = 3;
_root.nightTime._alpha = 0;
_root.nightTime.cacheAsBitmap = true;
_root.attachMovie('HUD', 'HUD', 11900);
_root.HUD.firstTimeUP = true;
_root.HUD._y = 250;
setHud = function () {
_root.HUD.firstTimeUP = false;
if (_root.playingInGameMovie == true) {
_root.HUD.adjustHUD('sprout', _root.game.SS1.sName, _root.game.SS1.sTask, _root.game.SS1.sNum);
_root.attachMovie('HUDTutorial', 'HT', 11904);
if (_root.movingSprout == true) {
_root.selectedSprout.col.onRelease();
_root.mousecursor.gotoAndStop(1);
}
}
};
_root.HUD.ySlideTo(0, 2, 'easeOutQuad', 0, setHud);
_root.game.BMC.removeMovieClip();
if (_root.playingInGameMovie == true) {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 0;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 0;
_root.game.SS5.needBubble._alpha = 0;
_root.game.SS2.col.shouldWander('walking', 0);
_root.game.SS1.col.shouldWander('walking', 0);
_root.game.SS3.col.shouldWander('walking', 0);
_root.game.SS4.col.shouldWander('walking', 0);
_root.game.SS5.col.shouldWander('walking', 0);
_root.game.SS2.col.setDesc('Nothing');
_root.game.SS1.col.setDesc('Nothing');
_root.game.SS3.col.setDesc('Nothing');
_root.game.SS4.col.setDesc('Nothing');
_root.game.SS5.col.setDesc('Nothing');
}
if (_root.game.BG.col._currentframe >= 4) {
if (_root.game.BG.sPoints._currentframe == 1) {
_root.safePoints = [];
_root.game.BG.sPoints.gotoAndStop(2);
}
}
j = 1;
while (j < 11) {
if (_root.game.garden01.pDiscovered > 1) {
if (_root.game.garden01.pDiscovered == 4) {
if (j <= _root.game.garden01.pComplete) {
_root.game.garden01['s' + j].gotoAndStop(_root.game.garden01.pDiscovered);
}
} else {
_root.game.garden01['s' + j].gotoAndStop(_root.game.garden01.pDiscovered);
}
}
++j;
}
}
stop();
_root.fromGame = true;
donewithmusic = function () {
_root.S_Theme.stop('SproutsTheme.wav');
};
_root.S_Theme.volumeTo(0, 4, 'linear', 0, donewithmusic);
_root.safePoints = [];
var updateProgressInterval = setInterval(updateProgress, 2000);
var zSortObjectsInterval = setInterval(zSortObjects, 350);
var makeGoodieInterval = setInterval(makeGoodie, 7000);
var fixLameSproutsInterval = setInterval(fixLameSprouts, 3500);
_root.attachMovie('positionMarker', 'game', 1);
_root.game._x = 0;
_root.game._y = 0;
_root.game.swapDepths(-8);
_root.game.attachMovie('background', 'BG', 2);
_root.game.BG._x = 0;
_root.game.BG._y = 0;
_root.game.BG.swapDepths(-9);
var g = _root.game;
var gb = _root.game.BG;
_root.createEmptyMovieClip('effectsLayer', 2002);
_root.effectsLayer.onEnterFrame = function () {
this._x = _root.game._x;
this._y = _root.game._y;
this._yscale = _root.game._xscale;
this._xscale = this._yscale;
};
i = 0;
while (i < _root.bs.length) {
if (_root[_root.bs[i]][0] >= 1) {
g.attachMovie(_root.bs[i], _root.bs[i], 160 + i);
g[_root.bs[i]]._x = gb[_root.bs[i] + 'SP']._x;
g[_root.bs[i]]._y = gb[_root.bs[i] + 'SP']._y;
g[_root.bs[i]].pComplete = _root[_root.bs[i]][1];
g[_root.bs[i]].pDiscovered = _root[_root.bs[i]][0];
g[_root.bs[i]].pNumberOfWorkers = 0;
g[_root.bs[i]].pEffort = 100;
g[_root.bs[i]].pnum = i;
if (g[_root.bs[i]].pComplete >= 100) {
g[_root.bs[i]].gotoAndStop(g[_root.bs[i]]._totalframes);
}
_root.pointsOfInterest.push(g[_root.bs[i]]);
_root.zSortArray.push(g[_root.bs[i]]);
}
++i;
}
g.attachMovie('kiteShell', 'kite1', 79);
g.kite1._x = gb.kite1SP._x;
g.kite1._y = gb.kite1SP._y;
g.kite1.pComplete = 100;
g.kite1.pDiscovered = 1;
_root.pointsOfInterest.push(g.kite1);
_root.zSortArray.push(g.kite1);
g.attachMovie('mushroomBall1Shell', 'mball1', 2058);
if (_root.mushroomBall[0] == 0 || _root.mushroomBall[1] == 0) {
g.mball1._x = gb.mushroomBall1SP._x;
g.mball1._y = gb.mushroomBall1SP._y;
} else {
g.mball1._x = _root.mushroomBall[0];
g.mball1._y = _root.mushroomBall[1];
}
g.mball1.ball.stop();
g.mball1.pComplete = 100;
g.mball1.pDiscovered = 1;
_root.pointsOfInterest.push(g.mball1);
_root.zSortArray.push(g.mball1);
if (_root.sproutlingMade[0] != 0 || _root.sproutlingMade[1] != 0) {
g.attachMovie('eggShell', 'ES', 95);
g.ES._x = _root.sproutlingMade[0];
g.ES._y = _root.sproutlingMade[1];
_root.zSortArray.push(g.ES);
_root.pointsOfInterest.push(g.ES);
}
if (_root.mushroomBall1[0] != 0 || _root.mushroomBall1[1] != 0) {
g.attachMovie('mushroomBall2Shell', 'mball2', 2098);
g.mball2._x = _root.mushroomBall1[0];
g.mball2._y = _root.mushroomBall1[1];
g.mball2.pComplete = 100;
g.mball2.pDiscovered = 1;
g.mball2.ball.stop();
_root.zSortArray.push(g.mball2);
_root.pointsOfInterest.push(g.mball2);
}
if (_root.mushroomBall2[0] != 0 || _root.mushroomBall2[1] != 0) {
g.attachMovie('mushroomBall3Shell', 'mball3', 2099);
g.mball3._x = _root.mushroomBall2[0];
g.mball3._y = _root.mushroomBall2[1];
g.mball3.pComplete = 100;
g.mball3.pDiscovered = 1;
g.mball3.ball.stop();
_root.zSortArray.push(g.mball3);
_root.pointsOfInterest.push(g.mball3);
}
if (_root.toolShop[1] >= 200) {
g.attachMovie('trampolineShell', 'trampoline', 2076);
g.trampoline._x = gb.trampolineSP1._x;
g.trampoline._y = gb.trampolineSP1._y;
g.trampoline.pComplete = 100;
g.trampoline.pDiscovered = 1;
_root.pointsOfInterest.push(g.trampoline);
_root.zSortArray.push(g.trampoline);
}
if (_root.toolShop[1] >= 400) {
g.attachMovie('kite2Shell', 'kite2', 2077);
g.kite2._x = gb.kite2SP._x;
g.kite2._y = gb.kite2SP._y;
g.kite2.pComplete = 100;
g.kite2.pDiscovered = 1;
_root.pointsOfInterest.push(g.kite2);
_root.zSortArray.push(g.kite2);
}
if (_root.toolShop[1] >= 500) {
g.attachMovie('barrelRideShell', 'barrelRide', 2078);
g.barrelRide._x = gb.barrelRideSP._x;
g.barrelRide._y = gb.barrelRideSP._y;
g.barrelRide.pComplete = 100;
g.barrelRide.pDiscovered = 1;
_root.pointsOfInterest.push(g.barrelRide);
_root.zSortArray.push(g.barrelRide);
}
if (_root.toolShop[1] >= 700) {
g.attachMovie('kite3Shell', 'kite3', 2079);
g.kite3._x = gb.kite3SP._x;
g.kite3._y = gb.kite3SP._y;
g.kite3.pComplete = 100;
g.kite3.pDiscovered = 1;
_root.pointsOfInterest.push(g.kite3);
_root.zSortArray.push(g.kite3);
}
if (_root.toolShop[1] >= 800) {
g.attachMovie('hangGliderShell', 'hangGlider', 2080);
g.hangGlider._x = gb.hangGliderSP._x;
g.hangGlider._y = gb.hangGliderSP._y;
g.hangGlider.pComplete = 100;
g.hangGlider.pDiscovered = 1;
_root.pointsOfInterest.push(g.hangGlider);
_root.zSortArray.push(g.hangGlider);
}
if (_root.magicFlowerMade[0] != 0 || _root.magicFlowerMade[1] != 0) {
g.attachMovie('magicFlower', 'magicFlowerBud', 2095);
g.magicFlowerBud._x = _root.magicFlowerMade[0];
g.magicFlowerBud._y = _root.magicFlowerMade[1];
g.magicFlowerBud.pDiscovered = 1;
g.magicFlowerBud.pComplete = 100;
_root.zSortArray.push(g.magicFlowerBud);
_root.pointsOfInterest.push(g.magicFlowerBud);
}
if (_root.giftMade[0] != 0 || _root.giftMade[1] != 0) {
g.attachMovie('giftBox', 'giftBox', 2096);
g.giftBox._x = _root.giftMade[0];
g.giftBox._y = _root.giftMade[1];
g.giftBox.pDiscovered = 1;
g.giftBox.pComplete = 100;
_root.zSortArray.push(g.giftBox);
_root.pointsOfInterest.push(g.giftBox);
}
if (_root.fallingStarMade[0] != 0 || _root.fallingStarMade[1] != 0) {
g.attachMovie('fstarShell', 'fstarShell1', 2097);
g.fstarShell1._x = _root.fallingStarMade[0];
g.fstarShell1._y = _root.fallingStarMade[1];
g.fstarShell1.pDiscovered = 1;
g.fstarShell1.pComplete = 100;
_root.zSortArray.push(g.fstarShell1);
_root.pointsOfInterest.push(g.fstarShell1);
}
g.attachMovie('back_Egg', 'back_egg', 80);
g.back_egg._x = gb.begg._x;
g.back_egg._y = gb.begg._y;
if (_root.playedObservatoryMovie == 1) {
g.back_egg.gotoAndStop(2);
g.back_egg.onRollOver = function () {
_root.HUD.adjustHUD('misc', _root.EndEggTitleXX, _root.EndEggDescriptionXX, this._parent.pnum);
};
}
g.back_egg.cacheAsBitmap = true;
_root.zSortArray.push(g.back_egg);
g.attachMovie('back_mush1', 'back_mush1', 81);
g.back_mush1._x = gb.bmush1._x;
g.back_mush1._y = gb.bmush1._y;
g.back_mush1.cacheAsBitmap = true;
_root.zSortArray.push(g.back_mush1);
g.attachMovie('back_mush2', 'back_mush2', 82);
g.back_mush2._x = gb.bmush2._x;
g.back_mush2._y = gb.bmush2._y;
g.back_mush2.cacheAsBitmap = true;
_root.zSortArray.push(g.back_mush2);
g.attachMovie('back_mush3', 'back_mush3', 83);
g.back_mush3._x = gb.bmush3._x;
g.back_mush3._y = gb.bmush3._y;
g.back_mush3.cacheAsBitmap = true;
_root.zSortArray.push(g.back_mush3);
g.attachMovie('back_mush4', 'back_mush4', 84);
g.back_mush4._x = gb.bmush4._x;
g.back_mush4._y = gb.bmush4._y;
g.back_mush4.cacheAsBitmap = true;
_root.zSortArray.push(g.back_mush4);
g.attachMovie('back_mush5', 'back_mush5', 85);
g.back_mush5._x = gb.bmush5._x;
g.back_mush5._y = gb.bmush5._y;
g.back_mush5.cacheAsBitmap = true;
_root.zSortArray.push(g.back_mush5);
g.attachMovie('back_tower1', 'back_tower1', 86);
g.back_tower1._x = gb.btower1._x;
g.back_tower1._y = gb.btower1._y;
g.back_tower1.cacheAsBitmap = true;
_root.zSortArray.push(g.back_tower1);
g.attachMovie('back_tower2', 'back_tower2', 87);
g.back_tower2._x = gb.btower2._x;
g.back_tower2._y = gb.btower2._y;
g.back_tower2.cacheAsBitmap = true;
_root.zSortArray.push(g.back_tower2);
g.attachMovie('back_tower3', 'back_tower3', 88);
g.back_tower3._x = gb.btower3._x;
g.back_tower3._y = gb.btower3._y;
g.back_tower3.cacheAsBitmap = true;
_root.zSortArray.push(g.back_tower3);
g.attachMovie('back_tower4', 'back_tower4', 89);
g.back_tower4._x = gb.btower4._x;
g.back_tower4._y = gb.btower4._y;
g.back_tower4.cacheAsBitmap = true;
_root.zSortArray.push(g.back_tower4);
g.attachMovie('back_tower5', 'back_tower5', 90);
g.back_tower5._x = gb.btower5._x;
g.back_tower5._y = gb.btower5._y;
g.back_tower5.cacheAsBitmap = true;
_root.zSortArray.push(g.back_tower5);
g.attachMovie('back_tower6', 'back_tower6', 91);
g.back_tower6._x = gb.btower6._x;
g.back_tower6._y = gb.btower6._y;
g.back_tower6.cacheAsBitmap = true;
_root.zSortArray.push(g.back_tower6);
g.attachMovie('torchShell', 'torch1', 92);
g.torch1._x = gb.btorch1._x;
g.torch1._y = gb.btorch1._y;
_root.zSortArray.push(g.torch1);
g.attachMovie('torchShell', 'torch2', 93);
g.torch2._x = gb.btorch2._x;
g.torch2._y = gb.btorch2._y;
_root.zSortArray.push(g.torch2);
g.attachMovie('back_leaves', 'back_leaves', 94);
g.back_leaves._x = gb.bleaves._x;
g.back_leaves._y = gb.bleaves._y;
g.back_leaves.cacheAsBitmap = true;
_root.zSortArray.push(g.back_leaves);
g._x = -767;
g._y = -200;
if (_root.sprout1[0] == 'none') {
_root.playingInGameMovie = true;
_root.createSprout(gb.p1._x, gb.p1._y, 'm', 1);
_root.createSprout(gb.p2._x, gb.p2._y, 'f', 1);
_root.createSprout(gb.p3._x, gb.p3._y, 'm', 1);
_root.createSprout(gb.p4._x, gb.p4._y, 'f', 1);
_root.createSprout(gb.p5._x, gb.p5._y, 'm', 1);
cMovie13 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 0;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 0;
_root.game.SS5.needBubble._alpha = 0;
_root.StartGame();
};
cMovie12 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 100;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 0;
_root.game.SS5.needBubble._alpha = 0;
_root.alphaTo(100, 8, 'linear', 0, cMovie13);
};
cMovie11 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 0;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 100;
_root.game.SS5.needBubble._alpha = 0;
_root.alphaTo(100, 3, 'linear', 1.5, cMovie12);
};
cMovie10 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 100;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 0;
_root.game.SS5.needBubble._alpha = 0;
_root.alphaTo(100, 10, 'linear', 0, cMovie11);
};
cMovie9 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 0;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 100;
_root.game.SS5.needBubble._alpha = 0;
_root.alphaTo(100, 2, 'linear', 0, cMovie10);
};
cMovie8 = function () {
_root.game.SS2.needBubble._alpha = 100;
_root.game.SS1.needBubble._alpha = 0;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 0;
_root.game.SS5.needBubble._alpha = 0;
_root.alphaTo(100, 2, 'linear', 0, cMovie9);
};
cMovie7 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 100;
_root.game.SS3.needBubble._alpha = 0;
_root.game.SS4.needBubble._alpha = 0;
_root.game.SS5.needBubble._alpha = 0;
_root.alphaTo(100, 2, 'linear', 0, cMovie8);
};
cMovie6 = function () {
_root.game.SS2.needBubble._alpha = 100;
_root.game.SS1.needBubble._alpha = 100;
_root.game.SS3.needBubble._alpha = 100;
_root.game.SS4.needBubble._alpha = 100;
_root.game.SS5.needBubble._alpha = 100;
_root.alphaTo(100, 2, 'linear', 0, cMovie7);
};
cMovie5 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 0;
_root.game.SS3.needBubble._alpha = 100;
_root.alphaTo(100, 2, 'linear', 0, cMovie6);
};
cMovie4 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 100;
_root.game.BG.eggGlow.alphaTo(100, 2, 'linear');
_root.alphaTo(100, 0.5, 'linear', 0, cMovie5);
};
cMovie3 = function () {
_root.game.SS2.needBubble._alpha = 100;
_root.game.SS1.needBubble._alpha = 0;
_root.alphaTo(100, 1.5, 'linear', 0, cMovie4);
};
cMovie2 = function () {
_root.game.SS2.needBubble._alpha = 100;
_root.game.SS1.needBubble._alpha = 100;
_root.game.SS1.col.setRot(2, _root.game.BG.e1._x, _root.game.BG.e1._y);
_root.alphaTo(100, 0.5, 'linear', 0, cMovie3);
};
cMovie1 = function () {
_root.game.SS2.needBubble._alpha = 0;
_root.game.SS1.needBubble._alpha = 100;
_root.game.SS1.col.setRot(1, _root.game.SS2._x, _root.game.SS2._y);
_root.alphaTo(100, 4, 'linear', 0, cMovie2);
};
startMovie = function () {
_root.S_inGameMovie.start();
_root.game.SS1.needBubble.gotoAndStop('talk');
_root.game.SS2.needBubble.gotoAndStop('talk');
_root.game.SS3.needBubble.gotoAndStop('talk');
_root.game.SS4.needBubble.gotoAndStop('talk');
_root.game.SS5.needBubble.gotoAndStop('talk');
_root.game.SS2.needBubble._alpha = 100;
_root.alphaTo(100, 4.5, 'linear', 0, cMovie1);
};
_root.game.SS1.col.setRot(2, _root.game.BG.e1._x, _root.game.BG.e1._y);
_root.game.SS2.col.setRot(2, _root.game.BG.e1._x, _root.game.BG.e1._y);
_root.game.SS3.col.setRot(2, _root.game.BG.e1._x, _root.game.BG.e1._y);
_root.game.SS4.col.setRot(2, _root.game.BG.e1._x, _root.game.BG.e1._y);
_root.game.SS5.col.setRot(2, _root.game.BG.e1._x, _root.game.BG.e1._y);
_root.alphaTo(100, 1, 'linear', 0, startMovie);
_root.game.attachMovie('buttonMC', 'BMC', 60);
_root.game.BMC._x = _root.game.BG.skipSP._x;
_root.game.BMC._y = _root.game.BG.skipSP._y;
_root.game.BMC.base.But.html = true;
_root.game.BMC.base.But.htmlText = _root.SkipXX;
_root.game.BMC.onPress = function () {
if (_root.GameTime == false) {
_root.StartGame();
this.removeMovieClip();
}
};
} else {
_root.attachMovie('loadingShell', 'LS', 28764);
_root.GameTime = true;
_root.reloadGame();
}
}
frame 21 {
stop();
_root.playingInGameMovie = true;
var wanderPointsVisible = false;
var accelerateTime = false;
var draggingScreen = false;
var movingSprout = false;
var holdingSprout = false;
var GameTime = false;
var saveFromGame = false;
var worldView = false;
var selectionDepth = 31000;
var selectedSprout = 'none';
var lastSprout = 'none';
var destScreen = '';
var totalActiveSprouts = 0;
var totalCareerSprouts = 0;
var sproutArray = [];
var pointsOfInterest = [0];
var zSortArray = [];
var deletePlayer = 0;
var safePoints = [];
var tutorialOn = 0;
var lightningOn = false;
var brainstorming = 0;
var lastSproutNum = 0;
var lastGoodieMade = '';
var totalGoodies = 0;
var totalOfferings = 0;
var sizeMultiplier = 10;
var sizeBase = 30;
var todd = 0;
var effectNum = 0;
var playingInGameMovie = false;
var workAge = 7;
var sunUnlockPoints = 3;
var rainUnlockPoints = 3;
var sproutlingUnlockPoints = 10;
var giftUnlockPoints = 25;
var windUnlockPoints = 40;
var lightningUnlockPoints = 55;
var visionUnlockPoints = 70;
var magicFlowerUnlockPoints = 85;
var rainbowUnlockPoints = 100;
var fallingStarUnlockPoints = 120;
var sunRechargeRate = 2;
var rainRechargeRate = 2;
var sproutlingRechargeRate = 0.2;
var giftRechargeRate = 1;
var windRechargeRate = 2;
var lightningRechargeRate = 0.5;
var visionRechargeRate = 0.7;
var magicFlowerRechargeRate = 1;
var rainbowRechargeRate = 0.25;
var fallingStarRechargeRate = 0.5;
clearInterval(discoveryCheckInterval);
clearInterval(updateProgressInterval);
clearInterval(zSortObjectsInterval);
clearInterval(makeGoodieInterval);
clearInterval(fixLameSproutsInterval);
_root.HUD.removeMovieClip();
_root.attachMovie('movieBorder2', 'MB', 6500);
_root.S_endGameMovie2.start();
md10 = function () {
_root.saveFromGame = false;
_root.playedObservatoryMovie = 1;
_root.SaveGame();
_root.goToScreen('M_Game');
};
md9 = function () {
_root.bag.slideTo(394, 344, 10, 'linear', 7, md10);
};
md8 = function () {
_root.bag.slideTo(300, 287, 1.5, 'linear', 0, md9);
};
md7 = function () {
_root.bag.slideTo(418, 266, 4, 'linear', 0, md8);
};
md6 = function () {
_root.bag.slideTo(400, 330, 4, 'linear', 0, md7);
};
md5 = function () {
_root.bag.slideTo(370, 397, 4, 'linear', 0, md6);
};
md4 = function () {
_root.bag.slideTo(200, 240, 5, 'linear', 0, md5);
};
md3 = function () {
_root.bag.slideTo(404, 218, 6, 'linear', 0, md4);
};
md2 = function () {
_root.bag.slideTo(430, 368, 1.5, 'linear', 0, md3);
};
md1 = function () {
_root.bag.slideTo(673, 184, 2, 'linear', 0, md2);
};
_root.attachMovie('movieBackground2', 'bag', 6400);
_root.bag._x = 486;
_root.bag._y = 304;
_root.bag.alphaTo(100, 2, 'linear', 0, md1);
}
frame 101 {
_root.MB.removeMovieClip();
_root.bag.removeMovieClip();
_root.game.removeMovieClip();
_root.gotoAndStop(_root.destScreen);
}
frame 105 {
stop();
mdm.Application.exit();
}