Frame 1
stop();
onEnterFrame = function () {
bar.gotoAndPlay(Math.round(getPercent * 100));
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(2);
}
};
Instance of Symbol 30 MovieClip in Frame 1
on (release) {
getURL ("http://www.real-free-arcade.com/?from=SonicOnClouds", _blank);
}
Frame 2
stop();
var Music = new Sound();
Music.attachSound("Mus");
Music.start();
onEnterFrame = function () {
};
Frame 3
stop();
Music.stop();
var Mus2 = new Sound();
Mus2.attachSound("Mus2");
Instance of Symbol 61 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.end)) {
_x = (_x + 3100);
}
_x = (_x - (_root.scrollspeed / 4));
}
Instance of Symbol 61 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.end)) {
_x = (_x + 3100);
}
_x = (_x - (_root.scrollspeed / 4));
}
Instance of Symbol 63 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.end)) {
_x = (_x + 3720);
}
_x = (_x - (_root.scrollspeed / 2));
}
Instance of Symbol 63 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.end)) {
_x = (_x + 3720);
}
_x = (_x - (_root.scrollspeed / 2));
}
Instance of Symbol 124 MovieClip "ground" in Frame 3
onClipEvent (load) {
_root.started = false;
_root.metal = 0;
_root.score = 0;
_root.coinwait = 0;
_root.coinon = false;
_root.scrollspeed = 0;
_root.scrollerspd = 0;
_root.timespd = 1;
_root.slowtime = 0;
spawntimer = 0;
_root.scored = 0;
_root.i = 0;
spawntimer = 60 - (_root.scrollspeed * 2);
}
onClipEvent (enterFrame) {
if (_root.slowtime > 0) {
if (_root.timespd > 0.3) {
_root.timespd = _root.timespd - 0.01;
}
} else if (_root.timespd < 1) {
_root.timespd = _root.timespd + 0.01;
}
_root.slowtime--;
if (_root.slowtime < 0) {
_root.slowtime = 0;
}
_root.scrollspeed = _root.scrollerspd * _root.timespd;
_root.metal--;
if (_root.metal < 0) {
_root.metal = 0;
}
if (_root.dude.gravfx == false) {
_root.started = false;
_root.scrollerspd = 0;
}
if (_root.started == true) {
if (_root.scrollerspd < 1) {
_root.scrollerspd = 1;
}
_root.scored = Math.round(_root.score);
spawntimer--;
_root.scrollerspd = _root.scrollerspd + 0.0017;
_root.coinwait = _root.coinwait - (_root.scrollspeed / 2);
if (spawntimer < 1) {
duplicateMovieClip (_root.ground.orig, "CLOUD" + _root.i, _root.i);
_root.ground["CLOUD" + _root.i]._x = 640;
_root.ground["CLOUD" + _root.i]._y = (random(150 + Math.floor(_root.scrollspeed)) + 200) - _root.scrollspeed;
if ((_root.scored > 1000) && (_root.scrollspeed < 8.5)) {
_root.ground["CLOUD" + _root.i]._alpha = 100 - (_root.scrollspeed * 10);
}
_root.i++;
if (_root.scrollspeed < 5) {
spawntimer = 70 - (_root.scrollspeed * 7);
} else {
spawntimer = 35;
}
if (_root.coinwait < 1) {
duplicateMovieClip (_root.ground.coin, "COIN" + _root.i, _root.i + 150);
_root.ground["COIN" + _root.i]._x = 580;
_root.ground["COIN" + _root.i]._y = random(200 + Math.floor(_root.scrollspeed));
_root.i++;
_root.coinwait = 100;
}
bonus = random(15 + (Math.floor(_root.scrollspeed) * 4));
if (bonus == 6) {
duplicateMovieClip (_root.ground.met, "THING" + _root.i, _root.i + 63);
_root.ground["THING" + _root.i]._x = 640;
_root.ground["THING" + _root.i]._y = 427;
_root.i++;
}
if (bonus == 8) {
duplicateMovieClip (_root.ground.slo, "THING" + _root.i, _root.i + 42);
_root.ground["THING" + _root.i]._x = 640;
_root.ground["THING" + _root.i]._y = 427;
_root.i++;
}
if (bonus == 13) {
duplicateMovieClip (_root.ground.ext, "THING" + _root.i, _root.i + 21);
_root.ground["THING" + _root.i]._x = 640;
_root.ground["THING" + _root.i]._y = 427;
_root.i++;
}
}
if (_root.i > 20) {
_root.i = 0;
}
}
}
Instance of Symbol 137 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.crouchtime > 19) {
_alpha = 100;
_x = _root.dude._x;
_y = _root.dude._y;
} else {
_alpha = 0;
_x = 275;
_y = -150;
}
}
Instance of Symbol 222 MovieClip "dude" in Frame 3
onClipEvent (load) {
_root.flip = false;
_root.coins = 0;
speedgah = 0;
crouch = false;
speedduh = 0;
_root.j = 89;
gotoAndStop(_root.char);
charspeed = 0.55;
charfall = 0.9;
grav = 0;
contact = true;
gravfx = true;
speed = 0;
scale = _xscale;
fall = false;
jumpheight = 15;
maxfall = 14;
maxspeed = 8;
var soundJump = new Sound();
soundJump.attachSound("jumpSnd");
}
onClipEvent (enterFrame) {
jumpheight = 15;
maxfall = 14;
if ((_root.failer.hitTest(_x, _y, true) || (_root.failer.hitTest(_x - (_width / 2), _y - (_height / 2), true))) || (_root.failer.hitTest(_x + (_width / 2), _y - (_height / 2), true))) {
gravfx = false;
_root.music1.stop();
_root.music2.stop();
gotoAndStop ("fail");
}
if (grav > 1.2) {
this.guy.gotoAndPlay("jump");
this.guy.jumper.gotoAndStop(2);
}
if (gravfx == true) {
if (grav < maxfall) {
grav = grav + charfall;
}
_y = (_y + grav);
while ((_root.ground.hitTest(_x, _y + 7, true) && (grav > -0.01)) && (!_root.ground.hitTest(_x, _y - 5, true))) {
_y = (_y + charfall);
}
while ((_root.ground.hitTest(_x, _y, true) && (grav > -0.01)) && (!_root.ground.hitTest(_x, _y - 20, true))) {
_y = (_y - charfall);
if (contact == false) {
speedduh = speedgah;
speedgah = 0;
contact = true;
} else {
speedgah = 0;
contact = true;
}
grav = 0;
}
}
if (Key.isDown(40)) {
_root.started = true;
}
if (((Key.isDown(38) && (_root.ground.hitTest(_x, _y + 6, true))) && (contact == true)) || ((Key.isDown(38) && (_root.ground.hitTest(_x, _y + 6, true))) && (contact == true))) {
_root.started = true;
soundJump.start();
grav = -jumpheight;
_y = (_y - 4);
speedgah = speedduh;
jump = true;
hold = true;
}
if ((((!hold) && (Key.isDown(38))) && (!jump)) && (!_root.ground.hitTest(_x, _y + 6, true))) {
grav = -jumpheight;
_y = (_y - 4);
jump = true;
hold = true;
duplicateMovieClip (_root.ground.jth, "JUMP" + _root.i, _root.i);
_root.ground["JUMP" + _root.i]._x = _x;
_root.ground["JUMP" + _root.i]._y = _y;
_root.i++;
} else if ((!Key.isDown(32)) && (!Key.isDown(38))) {
hold = false;
}
if (_root.crouchtime == 0) {
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((_root.ground.hitTest(_x, _y + 2, true) && (grav > -0.01)) && (!_root.ground.hitTest(_x, _y - 20, true))) {
guy.gotoAndStop("walk");
}
_xscale = (-scale);
}
if ((!Key.isDown(37)) && (Key.isDown(39))) {
if ((_root.ground.hitTest(_x, _y + 2, true) && (grav > -0.01)) && (!_root.ground.hitTest(_x, _y - 20, true))) {
guy.gotoAndStop("walk");
}
_xscale = scale;
}
}
if (!_root.ground.hitTest(_x, _y + 6, true)) {
if (_root.flip == false) {
guy.gotoAndStop("jump");
}
if (_root.slowtime > 1) {
duplicateMovieClip (_root.yay.d, "arr" + _root.j, _root.j);
_root.yay["arr" + _root.j]._x = _x;
_root.yay["arr" + _root.j]._y = _y;
_root.j++;
if (_root.j > 100) {
_root.j = 89;
}
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (_root.ground.hitTest(_x, _y + 2, true))) && (grav > -0.01)) && (!_root.ground.hitTest(_x, _y - 20, true))) {
guy.gotoAndStop("idle");
}
if ((guy._currentframe == 3) || (guy._currentframe == 4)) {
_x = (_x + (speedgah * charspeed));
}
if ((_root.ground.hitTest(_x, _y + 6, true) && (_root.crouchtime == 0)) && (contact == true)) {
_x = (_x + (speedduh * charspeed));
}
if (Key.isDown(37)) {
if (!_root.ground.hitTest(_x, _y + 6, true)) {
if (speedgah > -6) {
speedgah = speedgah - 1;
}
} else if (speedduh > -6) {
speedduh = speedduh - 1.5;
}
}
if (Key.isDown(39)) {
if (!_root.ground.hitTest(_x, _y + 6, true)) {
if (speedgah < 6) {
speedgah = speedgah + 1;
}
} else if (speedduh < 6) {
speedduh = speedduh + 1.5;
}
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
contact = false;
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (speedduh > 0) {
speedduh = speedduh - 1;
}
if (speedduh < 0) {
speedduh = speedduh + 1;
}
if ((speedduh == 0.5) || (speedduh == -0.5)) {
speedduh = 0;
}
}
}
}
Frame 4
stop();
Mus2.stop();
var MusOver = new Sound();
MusOver.attachSound("MusOver");
MusOver.start();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 100
stop();
Symbol 45 MovieClip Frame 19
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 10
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 10
stop();
Instance of Symbol 55 MovieClip in Symbol 59 MovieClip Frame 17
on (release) {
_root.gotoAndPlay(2);
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(11);
}
Instance of Symbol 58 MovieClip in Symbol 59 MovieClip Frame 17
on (release) {
getURL ("http://www.real-free-arcade.com/?from=SonicOnClouds", _blank);
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(11);
}
Symbol 59 MovieClip Frame 30
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 1
stop();
Instance of Symbol 68 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude._x, _root.dude._y, true) && (_root.dude.grav > -0.01)) {
_root.hitting = true;
}
}
Instance of Symbol 72 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.metal > 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 77 MovieClip in Symbol 87 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.metal > 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 82 MovieClip in Symbol 87 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.metal > 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 87 MovieClip Frame 17
stop();
Symbol 92 MovieClip Frame 200
stop();
Symbol 98 MovieClip Frame 200
stop();
Symbol 104 MovieClip Frame 200
stop();
Instance of Symbol 87 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
onClipEvent (enterFrame) {
if (_root.metal > 0) {
_alpha = 100;
}
_x = (_x - _root.scrollspeed);
if (this.hitTest(_root.dude._x, _root.dude._y + 3, true) && (_root.dude.grav > -0.01)) {
if (_root.metal < 1) {
if (alpha < 1) {
alpha = 1;
}
_alpha = (_alpha - ((0.2 * _root.scrollspeed) * _root.dude.charspeed));
} else {
_alpha = 100;
}
if ((_alpha < (10 + (_root.scrollspeed / 2))) && (_currentframe < 9)) {
_root.score = _root.score + 500;
gotoAndPlay ("poof");
}
_root.dude._x = _root.dude._x - _root.scrollspeed;
}
}
Instance of Symbol 87 MovieClip "orig" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(3) + 1);
scx = _xscale;
if (_root.scrollspeed < 10) {
_xscale = (((scx * 0.8) + random(Math.round(scx * 0.2))) - (_root.scrollspeed * 3));
} else {
_xscale = (((scx * 0.8) + random(Math.round(scx * 0.2))) - 30);
}
_yscale = (_xscale * 1.6);
}
onClipEvent (enterFrame) {
if (_root.metal > 0) {
_alpha = 100;
}
_x = (_x - _root.scrollspeed);
if (this.hitTest(_root.dude._x, _root.dude._y + 3, true) && (_root.dude.grav > -0.01)) {
if (_root.metal < 1) {
_alpha = (_alpha - ((0.5 * _root.scrollspeed) * _root.dude.charspeed));
} else {
_alpha = 100;
}
if ((_alpha < (10 + (_root.scrollspeed / 2))) && (_currentframe < 9)) {
_root.score = _root.score + 500;
gotoAndPlay ("poof");
}
_root.dude._x = _root.dude._x - _root.scrollspeed;
}
}
Instance of Symbol 87 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
onClipEvent (enterFrame) {
if (_root.metal > 0) {
_alpha = 100;
}
_x = (_x - _root.scrollspeed);
if (this.hitTest(_root.dude._x, _root.dude._y + 3, true) && (_root.dude.grav > -0.01)) {
if (_root.metal < 1) {
if (alpha < 1) {
alpha = 1;
}
_alpha = (_alpha - ((0.2 * _root.scrollspeed) * _root.dude.charspeed));
} else {
_alpha = 100;
}
if ((_alpha < (10 + (_root.scrollspeed / 2))) && (_currentframe < 9)) {
_root.score = _root.score + 500;
gotoAndPlay ("poof");
}
_root.dude._x = _root.dude._x - _root.scrollspeed;
}
}
Instance of Symbol 87 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
onClipEvent (enterFrame) {
if (_root.metal > 0) {
_alpha = 100;
}
_x = (_x - _root.scrollspeed);
if (this.hitTest(_root.dude._x, _root.dude._y + 3, true) && (_root.dude.grav > -0.01)) {
if (_root.metal < 1) {
if (alpha < 1) {
alpha = 1;
}
_alpha = (_alpha - ((0.2 * _root.scrollspeed) * _root.dude.charspeed));
} else {
_alpha = 100;
}
if ((_alpha < (10 + (_root.scrollspeed / 2))) && (_currentframe < 9)) {
_root.score = _root.score + 500;
gotoAndPlay ("poof");
}
_root.dude._x = _root.dude._x - _root.scrollspeed;
}
}
Instance of Symbol 92 MovieClip "met" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
var metall = new Sound();
metall.attachSound("metall");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
metall.start();
_root.metal = _root.metal + 400;
_root.metalson = new Sound(this);
_root.metalson.attachSound("metalSnd");
_root.metalson.start(0, 1);
this.unloadMovie();
}
_x = (_x - _root.scrollspeed);
}
Instance of Symbol 98 MovieClip "slo" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
var soundFreeze = new Sound();
soundFreeze.attachSound("freezeSnd");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
soundFreeze.start();
_root.slowtime = _root.slowtime + 400;
_root.slowson = new Sound(this);
_root.slowson.attachSound("ss");
_root.slowson.start(0, 1);
this.unloadMovie();
}
_x = (_x - _root.scrollspeed);
}
Instance of Symbol 104 MovieClip "ext" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
var bonusSnd = new Sound();
bonusSnd.attachSound("bonus");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
bonusSnd.start();
_root.score = _root.score + 500;
this.unloadMovie();
}
_x = (_x - _root.scrollspeed);
}
Instance of Symbol 123 MovieClip "coin" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
var bonusD = new Sound();
bonusD.attachSound("soundD");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
bonusD.start();
_root.coins++;
_root.score = _root.score + 100;
this.unloadMovie();
}
_x = (_x - _root.scrollspeed);
}
Symbol 165 MovieClip Frame 9
gotoAndPlay (5);
Symbol 165 MovieClip Frame 22
gotoAndPlay (19);
Symbol 166 MovieClip Frame 9
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
stop();
Instance of Symbol 168 MovieClip "d" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.char);
}
onClipEvent (enterFrame) {
if (_name != "d") {
if (_root.slowtime < 1) {
_alpha = 0;
}
_alpha = (_alpha - 7.5);
}
}
Symbol 187 MovieClip Frame 3
stop();
Symbol 188 MovieClip Frame 20
stop();
Symbol 189 MovieClip Frame 1
_root.crouchtime = 0;
stop();
Instance of Symbol 180 MovieClip in Symbol 189 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
_parent.gotoAndStop(2);
} else {
_parent.stop;
}
}
Symbol 189 MovieClip Frame 2
stop();
Instance of Symbol 188 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.crouchtime = _currentframe;
if (!Key.isDown(40)) {
_root.dude.grav = -6 - (_root.crouchtime / 1.4);
_root.flip = true;
_parent._parent.gotoAndStop(4);
} else {
_parent.stop;
}
}
Symbol 217 MovieClip Frame 1
JumpS._visible = 0;
Symbol 217 MovieClip Frame 6
JumpS._visible = 1;
JumpS._rotation = JumpS._rotation + 90;
Symbol 217 MovieClip Frame 7
JumpS._rotation = JumpS._rotation + 90;
Symbol 217 MovieClip Frame 8
JumpS._rotation = JumpS._rotation + 90;
Symbol 217 MovieClip Frame 9
JumpS._rotation = JumpS._rotation + 90;
Symbol 217 MovieClip Frame 10
JumpS._visible = 0;
gotoAndPlay (1);
Symbol 218 MovieClip Frame 1
stop();
_root.crouchtime = 0;
Symbol 218 MovieClip Frame 2
stop();
_root.crouchtime = 0;
Instance of Symbol 207 MovieClip in Symbol 218 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.paus == true) {
gotoAndStop (21);
}
}
Symbol 218 MovieClip Frame 3
stop();
Instance of Symbol 167 MovieClip "jumper" in Symbol 218 MovieClip Frame 3
onClipEvent (load) {
if (_root.flip == true) {
play();
if (_currentframe != 1) {
_root.flip = false;
}
}
_root.crouchtime = 0;
}
Instance of Symbol 217 MovieClip in Symbol 218 MovieClip Frame 4
onClipEvent (load) {
if (_root.flip == true) {
gotoAndPlay ("flip");
if (_currentframe != 1) {
_root.flip = false;
}
}
if (_root.paus == true) {
stop();
} else if (_currentframe != 11) {
play();
}
_root.crouchtime = 0;
}
Instance of Symbol 167 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 15);
}
Instance of Symbol 219 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.char);
}
Symbol 221 MovieClip Frame 97
_root.gotoAndStop("fail");
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 232 Button
on (release) {
trace(scored);
trace(pole.text);
getURL ((((("http://action-game-house.com/index.php?t=9&gameid=10&scrore=" + String(scored)) + "&name=") + pole.text) + "&key=") + String(((scored * scored) + (5 * scored)) + 34), "_blank");
gotoAndPlay (2);
}
Symbol 234 Button
on (release) {
trace(scored);
trace(pole.text);
gotoAndPlay (2);
}