Frame 1
this.onEnterFrame = function () {
var _local4 = this.getBytesLoaded();
var _local3 = this.getBytesTotal();
trace("loaded" + _local4);
trace("total" + _local3);
this.loadtxt.text = Math.round((_local4 / _local3) * 100) + "%";
if (Math.round((_local4 / _local3) * 100) >= 100) {
trace("ok");
_root.gotoAndStop("star");
delete onEnterFrame;
}
};
stop();
Frame 24
stop();
for (var name in this) {
if ((typeof(this[name]) == "movieclip") && (name != "mouse")) {
this[name].removeMovieClip();
}
}
_global.help = true;
Mouse.hide();
_global.rennums = 1;
_root.mouse.removeMovieClip();
this.attachMovie("mouse", "mouse", this.getNextHighestDepth());
mouse.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
_root.anothers.stop();
_root.anothers = new Sound();
_root.anothers.attachSound("Start", this);
_root.anothers.start(0, 9999);
_root.anothers.setVolume(100);
Frame 27
prevFrame();
Frame 33
_root.anothers.stop();
_root.anothers = new Sound();
_root.anothers.attachSound("Over", this);
_root.anothers.start(0, 9999);
_root.anothers.setVolume(100);
_global.rennums = 1;
_global.help = true;
Frame 36
prevFrame();
Frame 44
function del_root() {
_global.xnum = 0;
for (var _local3 in this) {
if (typeof(this[_local3]) == "movieclip") {
this[_local3].removeMovieClip();
}
}
chushi();
}
function xyrennum() {
trace("!!!!!!!!!!");
_global.rennums++;
clearInterval(times.timesin);
this.ren._x = 100;
this.ren._y = 547;
rennum.gotoAndStop(_global.rennums);
this.times.removeMovieClip();
this.attachMovie("times", "times", this.getNextHighestDepth() + 4);
this.times._x = 14.5;
this.times._y = 72;
if (rennum._currentframe == 4) {
for (var _local4 in this) {
if ((typeof(this[_local4]) == "movieclip") && (_local4 != "mouse")) {
this[_local4].removeMovieClip();
}
}
_root.gotoAndStop("Game_over");
}
}
function this_guan(ok) {
clearInterval(times.timesin);
del_root();
trace("hehe5555555555555555");
}
function fast_guan() {
clearInterval(times.timesin);
_global.gk = 1;
del_root();
_root.rennum.gotoAndStop(1);
_global.fenshu = 0;
}
function next_guan() {
clearInterval(times.timesin);
_global.gk++;
del_root();
trace("\u8FC7\u5173\u62C9");
}
function renfun() {
flag = 0;
grav = (_root.ren.grav = 0);
speed = (_root.ren.speed = 5);
jumpHeight = (_root.ren.jumpHeight = 12);
scale = _root.ren._xscale;
yp = (_root.ren.yp = 0);
grounded = (_root.ren.grounded = false);
timer = (_root.ren.timer = 0);
timer2 = (_root.ren.timer2 = 0);
_root.ren.onEnterFrame = function () {
trace(grav);
if (Key.isDown(39) || (Key.isDown(37))) {
flag = 1;
}
if (flag) {
grav++;
}
_root.ren._y = _root.ren._y + grav;
while (_root.xian.hitTest(_root.ren._x, _root.ren._y, true)) {
_root.ren._y = _root.ren._y - 1;
grav = 0;
}
if (Key.isDown(39)) {
_root.ren._x = _root.ren._x + speed;
_root.ren._xscale = scale;
if (_root.xian.hitTest(_root.ren._x, _root.ren._y + 3, true)) {
this.mc.gotoAndStop(1);
trace("aa");
}
} else if (Key.isDown(37)) {
_root.ren._x = _root.ren._x - speed;
_root.ren._xscale = -scale;
if (_root.xian.hitTest(_root.ren._x, _root.ren._y + 3, true)) {
this.mc.gotoAndStop(1);
trace("bb");
}
} else if (_root.xian.hitTest(_root.ren._x, _root.ren._y + 3, true) && (!Key.isDown(38))) {
if (this.mc._currentframe != 4) {
this.mc.gotoAndStop(3);
}
}
if (((!Key.isDown(38)) && (!Key.isDown(37))) && (!Key.isDown(39))) {
trace("hehe");
if (this.mc._currentframe != 4) {
trace("hehe2");
this.mc.gotoAndStop(4);
}
trace("dd");
}
if (Key.isDown(38) && (_root.xian.hitTest(_root.ren._x, _root.ren._y + 3, true))) {
trace("cc");
grav = -jumpHeight;
_root.ren._y = _root.ren._y - 4;
this.mc.gotoAndStop(2);
}
if (_root.xian.hitTest(_root.ren._x + (_root.ren._width / 2), _root.ren._y - (_root.ren._height / 2), true) || (_root.xian.hitTest(_root.ren._x + (_root.ren._width / 2), _root.ren._y - ((_root.ren._height / 6) * 4), true))) {
_root.ren._x = _root.ren._x - speed;
}
if (_root.xian.hitTest(_root.ren._x - (_root.ren._width / 2), _root.ren._y - (_root.ren._height / 2), true) || (_root.xian.hitTest(_root.ren._x - (_root.ren._width / 2), _root.ren._y - ((_root.ren._height / 6) * 4), true))) {
_root.ren._x = _root.ren._x + speed;
}
if (_root.xian.hitTest(_root.ren._x, _root.ren._y - _root.ren._height, true)) {
grav = 2;
}
if (_root.ren._y > 750) {
grav = 0;
someSound = new Sound();
someSound.attachSound("scream", this);
someSound.start();
xyrennum();
trace("not1");
} else if (((_root.ren._y < 0) || (_root.ren._x < 0)) || (_root.ren._x > 800)) {
xyrennum();
trace("not");
}
if (grav >= 15) {
trace("trace(grav)" + grav);
this.mc.gotoAndStop(3);
}
qifun();
};
}
function qifun() {
if (_root.guanka.qi.hitTest(_root.ren)) {
another = new Sound();
another.attachSound("ding", this);
another.start();
if (_global.gk == 6) {
_root.gotoAndStop("Next_Level2");
} else {
_root.gotoAndStop("Next_Level");
}
}
}
function xianfun() {
_root.onMouseDown = function () {
if (_global.help == false) {
_root.mouse.gotoAndStop(2);
_root.xian.xian.lineStyle(20, 14335, 100);
_root.xian.xian.moveTo(_root._xmouse, _root._ymouse);
this.onMouseMove = function () {
_global.xnum++;
if ((_global.xnum % 3) == 2) {
var _local4 = "xinxin" + _global.xnum;
this.attachMovie("xinxin", _local4, this.getNextHighestDepth() + _global.xnum);
this[_local4]._x = (_root._xmouse + random(10)) - 5;
this[_local4]._y = (_root._ymouse + random(10)) - 5;
this[_local4]._xscale = (this[_local4]._yscale = random(65) + 35);
this[_local4]._rotation = _global.xnum * 5;
}
_root.xian.xian.lineTo(_root._xmouse, _root._ymouse);
updateAfterEvent();
};
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
_root.mouse.gotoAndStop(1);
};
}
function chushi() {
_root.anothers.stop();
var _local4 = (random(1000) % 2) + 1;
_root.anothers = new Sound();
_root.anothers.attachSound("Ing-Version" + _local4, this);
_root.anothers.start(0, 9999);
_root.anothers.setVolume(100);
this.attachMovie("xian", "xian", this.getNextHighestDepth());
this.attachMovie("guanka", "guanka", this.getNextHighestDepth() + 2);
this.attachMovie("ren", "ren", this.getNextHighestDepth() + 3);
this.attachMovie("times", "times", this.getNextHighestDepth() + 4);
this.times.swapDepths(this.getNextHighestDepth() + 10);
this.ren.mc._xscale = (this.ren.mc._yscale = 30);
this.ren._x = 100;
this.ren._y = 547;
this.times._x = 14.5;
this.times._y = 72;
this.guanka.gotoAndStop(_global.gk);
_root.mouse.removeMovieClip();
this.attachMovie("mouse", "mouse", this.getNextHighestDepth() + 5);
mouse.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
if (_global.help == false) {
xianfun();
renfun();
qifun();
} else {
onEnterFrame = function () {
if (this.ren.mc._currentframe != 4) {
this.ren.mc.gotoAndStop(4);
} else {
delete onEnterFrame;
}
};
helpmov._visible = true;
helpmov.onRelease = function () {
_root.xianfun();
_root.renfun();
_root.qifun();
_global.help = false;
_root.helpmov._visible = false;
};
}
this.this_guan_but.onRelease = function () {
this_guan();
};
this.fast_guan_but.onRelease = function () {
fast_guan();
};
this.main_button.onRelease = function () {
_root.gotoAndStop("star");
};
this.Quit.onRelease = function () {
_root.gotoAndStop("star");
};
}
helpmov._visible = false;
Mouse.hide();
_global.gk = 1;
_global.xnum = 0;
_global.mytimes = 0;
_global.mytimes = 0;
stop();
trace(_global.rennums);
bar = 100;
_global.fenshu = 0;
chushi();
Frame 48
prevFrame();
Frame 51
next_guan();
rennum.gotoAndStop(_global.rennums);
Frame 62
prevFrame();
Frame 70
for (var name in this) {
if ((typeof(this[name]) == "movieclip") && (name != "mouse")) {
this[name].removeMovieClip();
}
}
if ((_global.mytimes % 60) < 10) {
var s = ("0" + (_global.mytimes % 60));
} else {
var s = (_global.mytimes % 60);
}
var clock = ((("0" + Math.floor(_global.mytimes / 60)) + ":") + s);
mytime.text = clock;
trace(clock);
_global.fenshu = _global.fenshu + ((_global.timesall - _global.mytimes) * _global.gk);
trace("_global.gk:" + _global.gk);
trace((_global.timesall - _global.mytimes) * _global.gk);
myfenshu.text = _global.fenshu;
trace("times.timesall:" + _global.mytimes);
trace(_global.mytimes);
trace("SCORE=" + myfenshu.text);
Frame 73
prevFrame();
Frame 80
for (var name in this) {
if ((typeof(this[name]) == "movieclip") && (name != "mouse")) {
this[name].removeMovieClip();
}
}
_global.help = true;
if ((_global.mytimes % 60) < 10) {
var s = ("0" + (_global.mytimes % 60));
} else {
var s = (_global.mytimes % 60);
}
var clock = ((("0" + Math.floor(_global.mytimes / 60)) + ":") + s);
mytime.text = clock;
trace(clock);
_global.fenshu = _global.fenshu + (((_global.timesall - _global.mytimes) * 1) * _global.gk);
trace(((_global.timesall - _global.mytimes) * 1) * _global.gk);
myfenshu.text = _global.fenshu;
trace("times.timesall:" + _global.mytimes);
trace(_global.mytimes);
_global.rennums = 1;
Frame 83
prevFrame();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 39 MovieClip Frame 3
stop();
Symbol 39 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.ren)) {
_root.xyrennum();
}
};
Symbol 86 MovieClip Frame 1
stop();
var i = 0;
var speed = 2;
this.onEnterFrame = function () {
if ((i % speed) == 0) {
this._rotation = this._rotation + speed;
}
i++;
};
Symbol 101 MovieClip [guanka] Frame 6
stop();
Symbol 104 MovieClip [mouse] Frame 1
stop();
Symbol 109 MovieClip [xinxin] Frame 13
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 9
gotoAndPlay (2);
Symbol 123 MovieClip Frame 1
stop();
Symbol 124 MovieClip [times] Frame 1
var Y = (mask._y + mask._height);
var H = mask._height;
var fps = 24;
mask._height = 0;
gk.gotoAndStop(_global.gk);
var timesin;
var timesall = 30;
_global.timesall = timesall;
var timesnow = 0;
onEnterFrame = function () {
if (_global.help == false) {
if (((!timesin) || (timesnow == 0)) || (!Ycart)) {
Ycart = H / (timesall * fps);
}
mask._height = mask._height + Ycart;
mask._y = Y - mask._height;
if (((timesall * fps) - timesnow) <= (10 * fps)) {
deng.play();
}
if (Math.floor(timesnow / fps) >= timesall) {
_root.xyrennum();
_root.this_guan();
delete this.onEnterFrame;
this.removeMovieClip();
}
if ((timesnow % fps) == 0) {
line._rotation = line._rotation + 6;
}
timesnow++;
_global.mytimes = Math.floor(timesnow / fps);
}
};
Symbol 146 MovieClip Frame 1
var i = 0;
while (i <= 20) {
this.attachMovie("xinxin", "xinxin" + i, this.getNextHighestDepth() + i);
trace(i);
this["xinxin" + i]._x = -50 + random(this._width + 50);
this["xinxin" + i]._y = -50 + random(this._height + 50);
this["xinxin" + i]._xscale = random(80) + 50;
this["xinxin" + i]._yscale = this["xinxin" + i]._xscale;
i++;
}
Symbol 147 Button
on (release) {
_root.gotoAndStop("How_to_play");
}
Symbol 156 MovieClip Frame 1
var i = 0;
while (i <= 20) {
this.attachMovie("xinxin", "xinxin" + i, this.getNextHighestDepth() + i);
trace(i);
this["xinxin" + i]._x = -50 + random(this._width + 50);
this["xinxin" + i]._y = -50 + random(this._height + 50);
this["xinxin" + i]._xscale = random(80) + 20;
this["xinxin" + i]._yscale = this["xinxin" + i]._xscale;
i++;
}
Symbol 157 Button
on (release) {
SubmitGamePlay();
_root.gotoAndStop("Game");
}
Symbol 159 MovieClip Frame 1
function SubmitGamePlay() {
var Collector = new LoadVars();
Collector.onLoad = function (success) {
txtstatus = Collector.status;
if (Collector.status == "success") {
trace("valid");
} else if (((Collector.status == "failure") || (Collector.status == "undefined")) || (Collector.status == "")) {
trace("invalid");
} else {
trace("invalid");
}
};
var _local1 = "http://data.disney.co.in/contests/disney_games/game_plays.php?gamename=Ala_AmazingMap";
Collector.sendAndLoad(_local1, Collector, "POST");
trace(_local1);
}
Symbol 169 Button
on (release) {
gotoAndStop ("Game");
}
Symbol 181 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
this._visible = false;
Symbol 214 Button
on (release) {
gotoAndStop ("Game_N");
}
Symbol 225 Button
on (release) {
function remove_unwanted_string(thestring, the_char_to_remove) {
var _local4 = thestring;
var _local3 = "";
var _local5 = _local4.length;
if (_local5 > 3) {
var _local1 = 0;
while (_local1 < _local5) {
var _local2 = _local4.charAt(_local1);
if (_local2 != the_char_to_remove) {
_local3 = _local3 + _local2;
}
_local1++;
}
} else {
_local3 = _local4;
}
trace(_local3);
var _local7 = Number(_local3);
return(_local7);
}
trace("SCORE=" + myfenshu.text);
_root.finalscore.text = myfenshu.text;
var the_score;
var string_to_convert = _root.finalscore.text;
trace("the score is " + string_to_convert);
var converted_num = remove_unwanted_string(string_to_convert, ",");
var or_score = String(converted_num);
trace("Score=" + or_score);
getURL (((("javascript:sendpoint('" + or_score) + "','") + "Ala_AmazingMap") + "')");
}