Frame 3
function updateColormatrix() {
cm = new com.gskinner.geom.ColorMatrix();
cm.adjustColor(brightStart, contrastStart, saturationStart, hueStart);
}
function BWbg(mc) {
trace("saturationStart " + saturationStart);
updateColormatrix();
eval (mc).filters = [new flash.filters.ColorMatrixFilter(cm)];
}
function displayScores(mc) {
names = _root.topnickname.split(",");
scores = _root.topscore.split(",");
i = 0;
while (i <= 19) {
if (names[i] == undefined) {
names[i] = "";
}
if (scores[i] == undefined) {
scores[i] = "";
}
eval ((mc + ".n") + (i + 1)).text = names[i];
eval ((mc + ".p") + (i + 1)).text = scores[i];
i++;
}
}
function cancelSubmit(mc, useridframe) {
trace("cancelSubmit");
delete _root.send_lv.onLoad;
_root.skipsubmit = true;
mc.gotoAndStop(useridframe);
}
function _newUser() {
getURL (_root._registerurl, "_blank");
}
function _trackClickThru(mc) {
if (_root._allowclick) {
mc.hit_area.onRelease = function () {
getURL (_root._clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
}
function _resetUsername(txt) {
txt.onSetFocus = function () {
if ((this.text == _root._msgValid) or (this.text == "Connecting Error!")) {
this.text = "";
}
};
}
function _readSharedData() {
_root.so_uname = ((_root._sostatus.data.so_uname == undefined) ? "" : (_root._sostatus.data.so_uname));
_root.so_jumpframe = ((_root._sostatus.data.so_jumpframe == undefined) ? "" : (_root._sostatus.data.so_jumpframe));
_root.so_sound = ((_root._sostatus.data.so_sound == undefined) ? 1 : (_root._sostatus.data.so_sound));
_resetString = _root._sostatus.data.so_resetString;
trace("==========================");
trace((("_root.so_jumpframe : " + _root._sostatus.data.so_jumpframe) + " : ") + _root.so_uname);
if (_root.so_jumpframe != "") {
_assignValue(_resetString);
_root.createEmptyMovieClip("eye", _root.getNextHighestDepth());
_root.eye.onEnterFrame = function () {
if ((_root.getBytesTotal() == _root.getBytesLoaded()) and (_root.getBytesLoaded() > 50000)) {
_root.intro = 0;
_root._sostatus.data.so_jumpframe = "";
_root._sostatus.flush();
this.onEnterFrame = null;
_root.gotoAndStop(_root.so_jumpframe);
}
};
} else {
_root.intro = 1;
play();
}
_root.uname = _root.so_uname;
_root.gamesound = _root.so_sound;
}
function _writeSharedData(jumpframe, jumpurl, _resetString) {
_root._sostatus.data.so_uname = ((_root.so_uname == undefined) ? "" : (_root.so_uname));
_root._sostatus.data.so_sound = _root.so_sound;
_root._sostatus.data.so_resetString = _resetString;
_root._sostatus.data.so_jumpframe = jumpframe;
_root._sostatus.flush();
if (jumpurl != "") {
getURL (jumpurl);
} else {
gotoAndPlay (1);
}
}
function _assignValue(_val) {
_arr = new Array();
_arr = _val.split("|");
i = 0;
while (i < (_arr.length / 2)) {
_var2 = ((i * 2) + 1) - 1;
_var3 = _var2 + 1;
_root[_arr[_var2]] = _arr[_var3];
i++;
}
}
function _playAgain(mc, jumpframe, _resetString) {
_root.so_uname = _root.uname;
if ((_root.gurl != undefined) and (_root.gurl != "")) {
_writeSharedData(jumpframe, _root.gurl, _resetString);
} else {
_root.intro = 0;
_assignValue(_resetString);
mc.gotoAndStop(jumpframe);
}
}
brightStart = 0;
contrastStart = 0;
saturationStart = -100;
hueStart = 0;
_root.levelscore = 0;
_root.level = 1;
var allSounds = new Sound();
updateColormatrix();
trace("Hello");
_root._google_txt.text = "Nirvana";
_root._gameid = "1007";
_root._clickthru = "http://www.games2win.com/?utm_campaign=spill_games_games_com&utm_medium=games&utm_content=nirvana";
_root._customer_id = "games2win";
_root.uname = "";
_root.submiturl = "/gamesubmit.asp";
_root.topnickname = [];
_root.topscore = [];
dataSubmit = function (myname, myscore, mygameid, destmc, useridframe, connframe, top10frame, _ord) {
trace("dataSubmit");
_root.skipsubmit = false;
myname = myname.trim();
_loc = eval (destmc);
if (((myname.length == 0) or (myname == "Invalid Nickname!")) or (myname == "Connecting Error!")) {
_root.uname = "Invalid Nickname!";
} else {
_root.send_lv = new LoadVars();
_root.send_lv.onLoad = function (success) {
if (success and (!_root.skipsubmit)) {
if (_root.send_lv.isreg == 0) {
_root.uname = "Invalid Nickname!";
_loc.gotoAndStop(useridframe);
} else if (_root.send_lv.isreg == 1) {
_root.topnickname = send_lv.topnicknames;
_root.topscore = send_lv.topscores;
_loc.gotoAndPlay(top10frame);
}
}
};
_root.send_lv.nickname = myname;
_root.send_lv.points = myscore;
_root.send_lv.gameid = mygameid;
_root.send_lv.order = _ord;
_root.send_lv.sendAndLoad(submiturl, _root.send_lv, "POST");
_loc.gotoAndPlay(connframe);
}
};
String.prototype.trim = function () {
var _local3 = 0;
var _local2 = this.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(this.charAt(_local2))]) {
}
while (white["_" + ord(this.charAt(_local3++))]) {
}
return(this.slice(_local3 - 1, _local2 + 1));
};
_root._registerurl = "http://www.games2win.com/register.asp";
_root._allowclick = true;
var _sostatus = SharedObject.getLocal("gamestatus", "/");
_readSharedData();
Frame 4
stop();
Frame 7
stop();
Instance of Symbol 90 MovieClip in Frame 7
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
text = ("Loaded " + percent) + "%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay("lblgameintro");
}
}
Instance of Symbol 95 MovieClip in Frame 7
on (release) {
getURL ("http://www.gamesgames.com/moregames/", "_blank");
}
Frame 8
stop();
Instance of Symbol 145 MovieClip in Frame 8
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
Frame 9
stop();
_root.pos = "story";
Frame 10
stop();
_root.pos = "inst";
Frame 11
stop();
_root.pos = "mode";
Frame 12
stop();
_root.level = 1;
randompos = 0;
Corigin = 0;
gamestart = 0;
factor = 0;
bufferfactor = 0;
BWbg(level1.levelbg_mc);
_root._levelgame = "level2";
stopAllSounds();
saturationStart = -100;
_root.Plevel = "level1";
Frame 13
stop();
_root.level = 2;
saturationStart = -100;
randompos = 0;
Corigin = 0;
gamestart = 0;
factor = 0;
bufferfactor = 0;
BWbg(level2.leve2bg_mc);
_root._levelgame = "level3";
stopAllSounds();
_root.Plevel = "level2";
Frame 14
stop();
_root.level = 3;
saturationStart = -100;
_root.BWbg(level3.leve3bg_mc);
_root.BWbg(level3.level3_2);
_root.BWbg(level3.leve3_3);
_root._levelgame = "level4end";
stopAllSounds();
_root.Plevel = "level3";
Frame 15
stop();
_root.fix = 2;
saturationStart = -100;
_root.tryagain = false;
_root.Plevel = "level4";
Frame 16
stop();
_root.Plevel = "";
Frame 17
stop();
Frame 18
stop();
Frame 19
stop();
Symbol 523 MovieClip [__Packages.com.gskinner.geom.ColorMatrix] Frame 0
class com.gskinner.geom.ColorMatrix extends Array
{
var join, slice;
function ColorMatrix (p_matrix) {
super();
p_matrix = fixMatrix(p_matrix);
copyMatrix(((p_matrix.length == LENGTH) ? (p_matrix) : (IDENTITY_MATRIX)));
}
function adjustColor(p_brightness, p_contrast, p_saturation, p_hue) {
adjustHue(p_hue);
adjustContrast(p_contrast);
adjustBrightness(p_brightness);
adjustSaturation(p_saturation);
}
function adjustBrightness(p_val) {
p_val = cleanValue(p_val, 100);
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
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]);
}
function adjustContrast(p_val) {
p_val = cleanValue(p_val, 100);
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
var _local2;
if (p_val < 0) {
_local2 = 127 + ((p_val / 100) * 127);
} else {
_local2 = p_val % 1;
if (_local2 == 0) {
_local2 = DELTA_INDEX[p_val];
} else {
_local2 = (DELTA_INDEX[p_val << 0] * (1 - _local2)) + (DELTA_INDEX[(p_val << 0) + 1] * _local2);
}
_local2 = (_local2 * 127) + 127;
}
multiplyMatrix([_local2 / 127, 0, 0, 0, 0.5 * (127 - _local2), 0, _local2 / 127, 0, 0, 0.5 * (127 - _local2), 0, 0, _local2 / 127, 0, 0.5 * (127 - _local2), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
function adjustSaturation(p_val) {
p_val = cleanValue(p_val, 100);
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
var _local2 = 1 + ((p_val > 0) ? ((3 * p_val) / 100) : (p_val / 100));
var _local5 = 0.3086;
var _local4 = 0.6094;
var _local6 = 0.082;
multiplyMatrix([(_local5 * (1 - _local2)) + _local2, _local4 * (1 - _local2), _local6 * (1 - _local2), 0, 0, _local5 * (1 - _local2), (_local4 * (1 - _local2)) + _local2, _local6 * (1 - _local2), 0, 0, _local5 * (1 - _local2), _local4 * (1 - _local2), (_local6 * (1 - _local2)) + _local2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
function adjustHue(p_val) {
p_val = (cleanValue(p_val, 180) / 180) * Math.PI;
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
var _local3 = Math.cos(p_val);
var _local2 = Math.sin(p_val);
var _local5 = 0.213;
var _local4 = 0.715;
var _local6 = 0.072;
multiplyMatrix([(_local5 + (_local3 * (1 - _local5))) + (_local2 * (-_local5)), (_local4 + (_local3 * (-_local4))) + (_local2 * (-_local4)), (_local6 + (_local3 * (-_local6))) + (_local2 * (1 - _local6)), 0, 0, (_local5 + (_local3 * (-_local5))) + (_local2 * 0.143), (_local4 + (_local3 * (1 - _local4))) + (_local2 * 0.14), (_local6 + (_local3 * (-_local6))) + (_local2 * -0.283), 0, 0, (_local5 + (_local3 * (-_local5))) + (_local2 * (-(1 - _local5))), (_local4 + (_local3 * (-_local4))) + (_local2 * _local4), (_local6 + (_local3 * (1 - _local6))) + (_local2 * _local6), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
function concat(p_matrix) {
p_matrix = fixMatrix(p_matrix);
if (p_matrix.length != LENGTH) {
return(undefined);
}
multiplyMatrix(p_matrix);
}
function clone() {
return(new com.gskinner.geom.ColorMatrix(this));
}
function toString() {
return(("ColorMatrix [ " + join(" , ")) + " ]");
}
function toArray() {
return(slice(0, 20));
}
function copyMatrix(p_matrix) {
var _local3 = LENGTH;
var _local2 = 0;
while (_local2 < _local3) {
this[_local2] = p_matrix[_local2];
_local2++;
}
}
function multiplyMatrix(p_matrix) {
var _local6 = [];
var _local5 = 0;
while (_local5 < 5) {
var _local3 = 0;
while (_local3 < 5) {
_local6[_local3] = this[_local3 + (_local5 * 5)];
_local3++;
}
_local3 = 0;
while (_local3 < 5) {
var _local4 = 0;
var _local2 = 0;
while (_local2 < 5) {
_local4 = _local4 + (p_matrix[_local3 + (_local2 * 5)] * _local6[_local2]);
_local2++;
}
this[_local3 + (_local5 * 5)] = _local4;
_local3++;
}
_local5++;
}
}
function cleanValue(p_val, p_limit) {
return(Math.min(p_limit, Math.max(-p_limit, p_val)));
}
function fixMatrix(p_matrix) {
if (p_matrix instanceof com.gskinner.geom.ColorMatrix) {
p_matrix = p_matrix.slice(0);
}
if (p_matrix.length < LENGTH) {
p_matrix = p_matrix.slice(0, p_matrix.length).concat(IDENTITY_MATRIX.slice(p_matrix.length, LENGTH));
} else if (p_matrix.length > LENGTH) {
p_matrix = p_matrix.slice(0, LENGTH);
}
return(p_matrix);
}
static var DELTA_INDEX = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 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.56, 0.59, 0.62, 0.65, 0.68, 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.7, 9, 9.4, 9.6, 9.8, 10];
static var 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];
static var LENGTH = IDENTITY_MATRIX.length;
}
Symbol 74 MovieClip Frame 60
stop();
_parent.nextFrame();
Symbol 77 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 85 MovieClip Frame 85
_root.gotoAndStop("lblloader");
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Instance of Symbol 85 MovieClip in Symbol 86 MovieClip Frame 2
on (release) {
getURL ("http://www.gamesgames.com/moregames/", "_blank");
}
Symbol 128 Button
on (release) {
_root.gotoAndStop("select");
}
Symbol 129 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 130 Button
on (release) {
_root.gotoAndStop("story");
}
Symbol 145 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 145 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 147 MovieClip Frame 364
stop();
Symbol 192 Button
on (release) {
_root.gotoAndStop("level4");
}
Symbol 197 Button
on (release) {
_root.gotoAndStop("level1");
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 201 Button
on (release) {
_root.pos = "lblgameintro";
play();
}
Symbol 202 Button
on (release) {
_root.pos = "select";
play();
}
Symbol 203 MovieClip Frame 25
inststory.gotoAndStop(_root.pos);
Symbol 203 MovieClip Frame 35
stop();
Symbol 203 MovieClip Frame 67
_root.gotoAndStop(_root.pos);
Symbol 209 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 700
_root.gamewin = true;
gotoAndStop (1);
Symbol 220 Button
on (press, keyPress "<Enter>") {
Mouse.hide();
nextFrame();
}
Symbol 228 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 7
_parent.glow.gotoAndPlay(2);
Symbol 239 MovieClip Frame 117
if (_parent.med == true) {
stop();
} else {
_parent.levgame.gotoAndStop(2);
}
Symbol 239 MovieClip Frame 141
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 15
_parent.med_start_mc.gotoAndPlay(2);
Symbol 244 MovieClip Frame 22
stop();
_parent.starttimer();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 700
_root.gamewin = true;
gotoAndStop (1);
Symbol 254 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 255 MovieClip Frame 152
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 258 MovieClip Frame 15
_root.randompos = random(4) - 2;
Symbol 259 MovieClip Frame 20
_root.bufferfactor = _root.bufferfactor - 0.5;
if (_root.bufferfactor < 3) {
_root.bufferfactor = 3;
_root.rotatefactor = 0.25;
}
Symbol 262 MovieClip Frame 5
stop();
_root.gamestart = 0;
Symbol 276 Button
on (release) {
play();
}
Symbol 279 MovieClip Frame 2
score = _root.levelscore * 100;
Symbol 279 MovieClip Frame 30
stop();
Symbol 279 MovieClip Frame 47
_parent.play();
Symbol 280 MovieClip Frame 13
stop();
Symbol 280 MovieClip Frame 17
if (submit == true) {
_root.gotoAndStop("gameOver");
} else {
_root.gotoAndStop(_root._levelgame);
}
Symbol 286 Button
on (release) {
_root.tryagain = true;
play();
}
Symbol 296 MovieClip Frame 36
stop();
if ((_root._levelgame == "level2") or (_root.Plevel == "level4")) {
sub_btn._visible = false;
submit._visible = false;
}
Symbol 296 MovieClip Frame 55
_parent.play();
Symbol 299 Button
on (release) {
play();
}
Symbol 300 MovieClip Frame 30
stop();
Symbol 300 MovieClip Frame 48
_parent.play();
Symbol 301 MovieClip Frame 13
stop();
Symbol 301 MovieClip Frame 17
if (submit == true) {
_root.gotoAndStop("gameOver");
} else if ((_root.gurl == "") or (_root.gurl == undefined)) {
_parent._parent.gotoAndStop(1);
} else {
_root._playAgain(_root, _root.Plevel);
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
clearInterval(_parent.int1);
_parent.timer_mc._visible = false;
Symbol 302 MovieClip Frame 3
trace("gameover");
clearInterval(_parent.int1);
_parent.timer_mc._visible = false;
stopAllSounds();
Symbol 304 MovieClip Frame 330
stop();
Symbol 305 MovieClip Frame 1
stop();
_root.BWbg(levelbg_mc);
Symbol 305 MovieClip Frame 2
function timerfn() {
if (_root.gamestart == 0) {
if (timer_mc._totalframes == timer_mc._currentframe) {
sadhu.gotoAndStop(1);
_root.gamestart = 1;
Mouse.show();
clearInterval(int1);
levgame.gotoAndStop("gameover");
stop();
}
if (_root.gamewin == true) {
_root.levelscore = int(_root.levelscore) + (timer_mc._totalframes - timer_mc._currentframe);
trace("_root.levelscore : " + _root.levelscore);
trace("gamewin");
clearInterval(int1);
_root.gamestart = 1;
_root.gamewin = true;
glowsadhu._visible = true;
sadhu._visible = false;
} else {
timer_mc.gotoAndStop(timer_mc._currentframe + addF);
}
}
}
function Cbg() {
_root.BWbg(levelbg_mc);
}
stop();
glowsadhu._visible = false;
int1 = setInterval(this, "timerfn", 1000);
level_tim = 60;
addF = timer_mc._totalframes / level_tim;
_root.Dmove = true;
Cbg();
Instance of Symbol 255 MovieClip "sadhu" in Symbol 305 MovieClip Frame 2
onClipEvent (load) {
mid = 83;
gameover1 = false;
gameover = false;
colo = false;
this.gotoAndStop(mid);
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (_root.gamestart == 0) {
if (_root.Corigin < _root.randompos) {
_root.Corigin = _root.Corigin + 0.5;
} else if (_root.Corigin > _root.randompos) {
_root.Corigin = _root.Corigin - 0.5;
}
if (_root.Dmove == true) {
a = Math.round((_root.Corigin + _root.factor) / 4);
}
if ((((a == 0) or (a == (-Infinity))) or (a == Infinity)) or (a == undefined)) {
a = 1;
}
if ((this._currentframe < (mid + 20)) and (this._currentframe > (mid - 20))) {
this.Lring.gotoAndStop(this.Lring._currentframe + 1);
this.Uring.gotoAndStop(this.Uring._currentframe + 1);
} else if ((this._currentframe < (mid - 40)) or (this._currentframe > 130)) {
} else {
this.Lring.gotoAndStop(this.Lring._currentframe - 2);
this.Uring.gotoAndStop(this.Uring._currentframe - 2);
}
if (this._currentframe < 20) {
gameover1 = true;
this.Lring.gotoAndStop(1);
this.Uring.gotoAndStop(1);
_root.gamestart = 1;
} else if (this._currentframe > 130) {
gameover = true;
this.Lring.gotoAndStop(1);
this.Uring.gotoAndStop(1);
_root.gamestart = 1;
}
this.gotoAndStop(this._currentframe + a);
}
if (gameover1 == true) {
this.gotoAndStop(this._currentframe - 1);
} else if (gameover == true) {
this.gotoAndStop(this._currentframe + 1);
}
if (_root.gamewin == true) {
_parent.glowsadhu._visible = true;
_parent.sadhu._visible = false;
_root.gamestart = 1;
gameover1 = false;
gameover = false;
_root.saturationStart = _root.saturationStart + 1;
if ((_root.saturationStart >= 0) and (_root.gamewin ne false)) {
_root.levelscore = int(_root.levelscore) + (_parent.timer_mc._totalframes - _parent.timer_mc._currentframe);
trace("_root.levelscore : " + _root.levelscore);
trace("gamewin");
_root.gamewin = false;
Mouse.show();
_parent.bird.gotoAndPlay(2);
}
_parent.Cbg();
}
}
Instance of Symbol 257 MovieClip in Symbol 305 MovieClip Frame 2
onClipEvent (load) {
ox = _x;
val = 0;
}
onClipEvent (enterFrame) {
_root.distance = Math.round(-((_x - _xmouse) - ox));
if (lfactor == _root.distance) {
_root.Dmove = false;
} else {
_root.Dmove = true;
}
_root.factor = (_root.distance / 10) / _root.bufferfactor;
lfactor = _root.distance;
}
Instance of Symbol 262 MovieClip "delete_mc" in Symbol 305 MovieClip Frame 2
/* no clip actions */
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 7
_parent._parent.glow.gotoAndPlay(2);
Symbol 314 MovieClip Frame 40
if (_parent._parent.med == true) {
} else {
_parent._parent.levgame.gotoAndStop(2);
}
Symbol 314 MovieClip Frame 100
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 700
_root.gamewin = true;
gotoAndStop (1);
Symbol 323 Button
on (press, keyPress "<Enter>") {
Mouse.hide();
nextFrame();
}
Symbol 325 MovieClip Frame 2
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 325 MovieClip Frame 144
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 326 MovieClip Frame 1
stop();
_root.BWbg(leve2bg_mc);
Symbol 326 MovieClip Frame 2
function timerfn() {
if (_root.gamestart == 0) {
if (timer_mc._totalframes == timer_mc._currentframe) {
sadhu.gotoAndStop(1);
_root.gamestart = 1;
Mouse.show();
clearInterval(int1);
levgame.gotoAndStop("gameover");
stop();
}
if (_root.gamewin == true) {
clearInterval(int1);
_root.gamestart = 1;
_root.gamewin = true;
glowsadhu._visible = true;
sadhu._visible = false;
} else {
timer_mc.gotoAndStop(timer_mc._currentframe + addF);
}
}
}
function Cbg() {
_root.BWbg(leve2bg_mc);
}
stop();
glowsadhu._visible = false;
int1 = setInterval(this, "timerfn", 1000);
level_tim = 120;
addF = timer_mc._totalframes / level_tim;
_root.Dmove = true;
Cbg();
Instance of Symbol 325 MovieClip "sadhu" in Symbol 326 MovieClip Frame 2
onClipEvent (load) {
mid = 76;
gameover1 = false;
gameover = false;
colo = false;
this.gotoAndStop(mid);
this._alpha = 100;
}
onClipEvent (enterFrame) {
trace((("_root.gamestart " + _root.gamestart) + " ") + this._currentframe);
if (_root.gamestart == 0) {
if (_root.Corigin < _root.randompos) {
_root.Corigin = _root.Corigin + 0.5;
} else if (_root.Corigin > _root.randompos) {
_root.Corigin = _root.Corigin - 0.5;
}
if (_root.Dmove == true) {
a = Math.round(_root.Corigin + _root.factor);
}
if ((((a == 0) or (a == (-Infinity))) or (a == Infinity)) or (a == undefined)) {
a = 1;
}
if ((this._currentframe < (mid + 20)) and (this._currentframe > (mid - 20))) {
this.Uring.gotoAndStop(this.Uring._currentframe + 1);
this.Lring.gotoAndStop(this.Lring._currentframe + 1);
} else if ((this._currentframe < 50) or (this._currentframe > 110)) {
} else {
this.Uring.gotoAndStop(this.Uring._currentframe - 2);
this.Lring.gotoAndStop(this.Lring._currentframe - 2);
}
if (this._currentframe < 25) {
trace("hello");
this.Uring.gotoAndStop(1);
this.Lring.gotoAndStop(1);
gameover1 = true;
_root.gamestart = 1;
} else if (this._currentframe > 125) {
trace("hello111");
this.Uring.gotoAndStop(1);
this.Lring.gotoAndStop(1);
gameover = true;
_root.gamestart = 1;
}
this.gotoAndStop(this._currentframe + a);
}
if (gameover1 == true) {
this.gotoAndStop(this._currentframe - 1);
} else if (gameover == true) {
this.gotoAndStop(this._currentframe + 1);
}
if (_root.gamewin == true) {
_parent.glowsadhu._visible = true;
_parent.sadhu._visible = false;
_root.gamestart = 1;
gameover1 = false;
gameover = false;
_root.saturationStart = _root.saturationStart + 1;
if ((_root.saturationStart >= 0) and (_root.gamewin ne false)) {
_root.levelscore = int(_root.levelscore) + (_parent.timer_mc._totalframes - _parent.timer_mc._currentframe);
trace("_root.levelscore : " + _root.levelscore);
trace("gamewin");
_root.gamewin = false;
Mouse.show();
_parent.leve2bg_mc.flower_mc.gotoAndPlay(2);
}
_parent.Cbg();
}
}
Instance of Symbol 257 MovieClip in Symbol 326 MovieClip Frame 2
onClipEvent (load) {
ox = _x;
val = 0;
}
onClipEvent (enterFrame) {
_root.distance = Math.round(-((_x - _xmouse) - ox));
if (lfactor == _root.distance) {
_root.Dmove = false;
} else {
_root.Dmove = true;
}
_root.factor = (_root.distance / 10) / _root.bufferfactor;
lfactor = _root.distance;
}
Instance of Symbol 262 MovieClip "delete_mc" in Symbol 326 MovieClip Frame 2
/* no clip actions */
Symbol 338 Button
on (press, keyPress "<Enter>") {
Mouse.hide();
_parent.nextFrame();
}
Symbol 339 MovieClip Frame 48
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 900
_root.gamewin = true;
this._visible = false;
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 900
this._visible = false;
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 900
_root.gamewin = true;
gotoAndStop (1);
Symbol 343 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 344 MovieClip Frame 100
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 402 MovieClip Frame 53
stop();
Symbol 403 MovieClip Frame 1
stop();
_root.BWbg(leve3bg_mc);
_root.BWbg(level3_2);
_root.BWbg(leve3_3);
_root.bufferfactor = 0;
_root.rotatefactor = 0;
Symbol 403 MovieClip Frame 2
function timerfn() {
if (_root.gamestart == 0) {
if (timer_mc._totalframes == timer_mc._currentframe) {
sadhu.gotoAndStop(1);
_root.gamestart = 1;
Mouse.show();
clearInterval(int1);
levgame.gotoAndStop("gameover");
stop();
}
if (_root.gamewin == true) {
clearInterval(int1);
_root.gamestart = 1;
_root.gamewin = true;
} else {
timer_mc.gotoAndStop(timer_mc._currentframe + addF);
}
}
}
function Cbg() {
_root.BWbg(leve3bg_mc);
_root.BWbg(level3_2);
_root.BWbg(leve3_3);
}
stop();
int1 = setInterval(this, "timerfn", 1000);
level_tim = 120;
addF = timer_mc._totalframes / level_tim;
_root.Dmove = true;
Cbg();
glowsadhu._visible = false;
sadhu._visible = true;
Instance of Symbol 344 MovieClip "sadhu" in Symbol 403 MovieClip Frame 2
onClipEvent (load) {
mid = 50;
gameover1 = false;
gameover = false;
colo = false;
this.gotoAndStop(mid);
this._alpha = 100;
_root.Corigin = 0;
}
onClipEvent (enterFrame) {
trace((("_root.gamestart " + _root.gamestart) + " ") + this._currentframe);
if (_root.gamestart == 0) {
if (_root.Corigin < _root.randompos) {
_root.Corigin = _root.Corigin + 0.5;
} else if (_root.Corigin > _root.randompos) {
_root.Corigin = _root.Corigin - 0.5;
}
if (_root.Dmove == true) {
a = Math.round((_root.Corigin + _root.factor) / 2);
}
trace("ss a" + a);
if ((((a == 0) or (a == (-Infinity))) or (a == Infinity)) or (a == undefined)) {
a = 1;
}
if ((this._currentframe < (mid + 30)) and (this._currentframe > (mid - 30))) {
this.Uring.gotoAndStop(this.Uring._currentframe + 1);
this.Lring.gotoAndStop(this.Lring._currentframe + 1);
} else if ((this._currentframe < 15) or (this._currentframe > 85)) {
} else {
this.Uring.gotoAndStop(this.Uring._currentframe - 2);
this.Lring.gotoAndStop(this.Lring._currentframe - 2);
}
if (this._currentframe < 15) {
trace("hello");
this.Uring.gotoAndStop(1);
this.Lring.gotoAndStop(1);
gameover1 = true;
_root.gamestart = 1;
} else if (this._currentframe > 85) {
trace("hello111");
this.Uring.gotoAndStop(1);
this.Lring.gotoAndStop(1);
gameover = true;
_root.gamestart = 1;
}
this.gotoAndStop(this._currentframe + a);
}
if (gameover1 == true) {
this.gotoAndStop(this._currentframe - 1);
} else if (gameover == true) {
this.gotoAndStop(this._currentframe + 1);
}
if (_root.gamewin == true) {
glowsadhu._visible = true;
sadhu._visible = false;
_root.gamestart = 1;
gameover1 = false;
gameover = false;
_root.saturationStart = _root.saturationStart + 1;
_root.saturationStart = _root.saturationStart + 1;
if ((_root.saturationStart >= 0) and (_root.gamewin ne false)) {
_root.levelscore = int(_root.levelscore) + (_parent.timer_mc._totalframes - _parent.timer_mc._currentframe);
trace("_root.levelscore : " + _root.levelscore);
trace("gamewin");
_root.gamewin = false;
Mouse.show();
_parent.play(3);
}
_parent.Cbg();
}
}
Instance of Symbol 257 MovieClip in Symbol 403 MovieClip Frame 2
onClipEvent (load) {
ox = _x;
val = 0;
}
onClipEvent (enterFrame) {
_root.distance = Math.round(-((_x - _xmouse) - ox));
if (lfactor == _root.distance) {
_root.Dmove = false;
} else {
_root.Dmove = true;
}
_root.factor = (_root.distance / 10) / _root.bufferfactor;
lfactor = _root.distance;
}
Instance of Symbol 262 MovieClip "delete_mc" in Symbol 403 MovieClip Frame 2
/* no clip actions */
Symbol 403 MovieClip Frame 287
stop();
levgame.gotoAndStop("levelcompleted");
Symbol 408 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 36
stop();
Symbol 409 MovieClip Frame 68
_parent.nextFrame();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 48
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 500
_root.gamewin = true;
this._visible = false;
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 500
this._visible = false;
Symbol 419 MovieClip Frame 2
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 419 MovieClip Frame 100
_root.gamestart = 1;
Mouse.show();
clearInterval(_parent.int1);
_parent.levgame.gotoAndStop("gameover");
stop();
Symbol 420 MovieClip Frame 1
stop();
trace(_root.tryagain);
if (_root.tryagain == true) {
sadhu.gotoAndStop(sadhu._totalframes);
}
Symbol 420 MovieClip Frame 2
function timerfn() {
if (_root.gamestart == 0) {
if (timer_mc._totalframes == timer_mc._currentframe) {
sadhu.gotoAndStop(1);
_root.gamestart = 1;
Mouse.show();
clearInterval(int1);
levgame.gotoAndStop("gameover");
stop();
}
if (_root.gamewin == true) {
clearInterval(int1);
_root.gamestart = 1;
_root.gamewin = true;
glowsadhu._visible = true;
sadhu._visible = false;
} else {
timer_mc.gotoAndStop(timer_mc._currentframe + addF);
}
}
}
stop();
int1 = setInterval(this, "timerfn", 1000);
level_tim = 60;
addF = timer_mc._totalframes / level_tim;
_root.Dmove = true;
_root.Corigin = 0;
_root.bufferfactor = 0;
Instance of Symbol 419 MovieClip in Symbol 420 MovieClip Frame 2
onClipEvent (load) {
mid = 50;
gameover1 = false;
gameover = false;
colo = false;
this.gotoAndStop(mid);
}
onClipEvent (enterFrame) {
if (_root.gamestart == 0) {
if (_root.Corigin < _root.randompos) {
_root.Corigin = _root.Corigin + 0.5;
} else if (_root.Corigin > _root.randompos) {
_root.Corigin = _root.Corigin - 0.5;
}
if (_root.Dmove == true) {
a = Math.round((_root.Corigin + _root.factor) / 8);
}
if ((((a == 0) or (a == (-Infinity))) or (a == Infinity)) or (a == undefined)) {
a = 1;
}
if ((this._currentframe < (mid + 30)) and (this._currentframe > (mid - 30))) {
this.Uring.gotoAndStop(this.Uring._currentframe + 1);
this.Lring.gotoAndStop(this.Lring._currentframe + 1);
} else if ((this._currentframe < 15) or (this._currentframe > 85)) {
} else {
this.Uring.gotoAndStop(this.Uring._currentframe - 2);
this.Lring.gotoAndStop(this.Lring._currentframe - 2);
}
if (this.Lring._currentframe == this.Lring._totalframes) {
_root.gamewin = true;
this.gotoAndStop(mid);
this.Uring._visible = false;
this.Lring._visible = false;
}
if (this._currentframe < 15) {
this.Uring.gotoAndStop(1);
this.Lring.gotoAndStop(1);
gameover1 = true;
_root.gamestart = 1;
} else if (this._currentframe > 85) {
this.Uring.gotoAndStop(1);
this.Lring.gotoAndStop(1);
gameover = true;
_root.gamestart = 1;
}
this.gotoAndStop(this._currentframe + a);
}
if (gameover1 == true) {
this.gotoAndStop(this._currentframe - 1);
} else if (gameover == true) {
this.gotoAndStop(this._currentframe + 1);
}
trace(_root.gamewin);
if (_root.gamewin == true) {
_root.gamestart = 1;
gameover1 = false;
gameover = false;
_root.saturationStart = _root.saturationStart + 1;
if (_root.saturationStart >= 0) {
_root.gamewin = false;
Mouse.show();
_parent.nextFrame();
}
_parent._parent.Cbg();
}
}
Instance of Symbol 257 MovieClip in Symbol 420 MovieClip Frame 2
onClipEvent (load) {
ox = _x;
val = 0;
}
onClipEvent (enterFrame) {
_root.distance = Math.round(-((_x - _xmouse) - ox));
if (lfactor == _root.distance) {
_root.Dmove = false;
} else {
_root.Dmove = true;
}
_root.factor = (_root.distance / 10) / _root.bufferfactor;
lfactor = _root.distance;
}
Instance of Symbol 262 MovieClip "delete_mc" in Symbol 420 MovieClip Frame 2
/* no clip actions */
Symbol 420 MovieClip Frame 3
trace("Current frames" + _parent._currentframe);
if (_parent._currentframe == 4) {
_parent.level3.gotoAndPlay(3);
gotoAndStop (4);
} else if (_parent._currentframe == 3) {
_parent.leve2bg_mc.flower_mc.gotoAndPlay(2);
} else if (_parent._currentframe == 2) {
_parent.birds.gotoAndPlay(2);
}
Symbol 420 MovieClip Frame 4
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 2
stop();
Symbol 434 Button
on (rollOver) {
_parent._parent._parent._parent.gotoAndStop(2);
}
on (rollOut) {
trace("_root.fix " + _root.fix);
_parent._parent._parent._parent.gotoAndStop(_root.fix);
}
on (press) {
_root.fix = 2;
}
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 2
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 2
stop();
Symbol 444 Button
on (rollOver) {
_parent._parent._parent._parent.gotoAndStop(3);
}
on (rollOut) {
trace("_root.fix " + _root.fix);
_parent._parent._parent._parent.gotoAndStop(_root.fix);
}
on (press) {
_root.fix = 3;
}
Symbol 445 Button
on (rollOver) {
_parent._parent._parent._parent.gotoAndStop(4);
}
on (rollOut) {
trace("_root.fix " + _root.fix);
_parent._parent._parent._parent.gotoAndStop(_root.fix);
}
on (press) {
_root.fix = 4;
}
Symbol 446 Button
on (release) {
error_mc._visible = false;
if (_root.lev_time == 0) {
error_mc._visible = true;
error_mc.gotoAndPlay(2);
} else {
_parent.play();
}
}
Symbol 449 MovieClip Frame 30
this._visible = false;
Symbol 450 MovieClip Frame 1
_root.lev_time = 0;
error_mc._visible = false;
var i = 1;
while (i <= 4) {
eval ("bb" + i).id = i;
eval ("bb" + i).onRelease = function () {
var j = 1;
while (j <= 4) {
eval ("optt" + j).gotoAndStop(1);
eval ("bb" + j).enabled = true;
j++;
}
answer[a] = this.id;
if (cont12[6] == answer[a]) {
suc = suc + 1;
}
eval ("optt" + this.id).gotoAndPlay(2);
if (this.id == 1) {
_root.lev_time = 1;
} else if (this.id == 2) {
_root.lev_time = 2;
} else if (this.id == 3) {
_root.lev_time = 4;
}
this.enabled = false;
};
i++;
}
_root.fix = 2;
Symbol 451 MovieClip Frame 30
stop();
Symbol 451 MovieClip Frame 48
_parent.play();
gotoAndStop (1);
Symbol 452 MovieClip Frame 2
stopAllSounds();
Symbol 452 MovieClip Frame 13
stop();
Symbol 452 MovieClip Frame 17
_parent._parent.level4_sadhu.sadhu.gotoAndPlay(2);
gotoAndStop (1);
Symbol 453 MovieClip Frame 1
stop();
Symbol 454 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("lblgameintro");
}
Symbol 460 MovieClip Frame 207
_parent.play();
gotoAndStop (1);
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 13
stop();
Symbol 461 MovieClip Frame 17
_parent._parent.level4_sadhu.sadhu.gotoAndPlay(2);
gotoAndStop (1);
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 32
_parent.med_start_mc.gotoAndPlay(2);
Symbol 462 MovieClip Frame 122
_parent.starttimer();
Symbol 462 MovieClip Frame 287
stop();
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
function Cbg() {
_root.BWbg(levelbg_mc);
_root.BWbg(level1);
_root.BWbg(leve2bg_mc);
_root.BWbg(level3.leve3bg_mc);
_root.BWbg(level3.level3_2);
_root.BWbg(level3.leve3_3);
}
function starttimer() {
trace(_root.lev_time);
addF = (_root.lev_time * 60) / 120;
if (addF == 0.5) {
addF = 1;
Fram = 2;
} else {
Fram = 1;
}
int1 = setInterval(this, "timer_fn", 1000);
timer_mc._visible = true;
}
function timer_fn() {
trace((("a " + aa) + " ") + addF);
bb++;
trace(bb);
if (addF eq aa) {
aa = 0;
trace("reset " + timer_mc._currentframe);
timer_mc.gotoAndStop(timer_mc._currentframe + Fram);
}
if (timer_mc._currentframe == timer_mc._totalframes) {
_root.gotoAndStop("lblgameintro");
}
aa++;
}
stop();
med = true;
aa = 0;
Cbg();
bb = 0;
timer_mc._visible = false;
Symbol 463 MovieClip Frame 3
stop();
Cbg();
Symbol 463 MovieClip Frame 4
stop();
Cbg();
Symbol 467 MovieClip Frame 1
stop();
Symbol 468 Button
on (release) {
stopAllSounds();
play();
}
Symbol 469 MovieClip Frame 35
stop();
Symbol 469 MovieClip Frame 67
if (_root.Plevel == "") {
_root.Plevel = "lblgameintro";
}
if (submit == true) {
_root.gotoAndStop("gameOver");
} else {
_root._playAgain(_root, _root.Plevel);
}
Symbol 478 Button
on (release) {
if (_root.Plevel == "") {
_root.Plevel = "lblgameintro";
}
_root.score = 0;
_root._playAgain(_root, _root.Plevel);
}
Symbol 479 MovieClip Frame 1
if (_parent.cancel == true) {
gotoAndStop (35);
}
Symbol 479 MovieClip Frame 2
_root.score = _root.levelscore * 100;
Symbol 479 MovieClip Frame 35
stop();
username_txt.onSetFocus = function () {
if (username_txt.text == "Invalid Nickname!") {
username_txt.text = "";
}
};
Symbol 482 Button
on (release) {
cancel = true;
_root.cancelSubmit(_root, "gameOver");
}
Symbol 520 MovieClip Frame 1
_root.displayScores(this);
Symbol 522 Button
on (release) {
_root.gotoAndStop("level4");
}