Frame 1
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}
Frame 2
gotoAndPlay (1);
Frame 3
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.pleasehitme.com", "_blank");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2008 PleaseHitMe.com", deadClick);
copyrightNotice.separatorBefore = true;
var mySiteLink = new ContextMenuItem("Designed by PleaseHitMe.com", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
stop();
Frame 4
super_sonic_dying.removeMovieClip();
tunnel_movie.removeMovieClip();
_root.attachMovie("sonic_change", "sonic_change", _root.getNextHighestDepth(), {_x:115, _y:180});
charge_noise_sound = new Sound();
charge_noise_sound.attachSound("charge_noise");
charge_noise_sound.start();
Frame 25
stop();
Frame 26
stop();
sonic_change.removeMovieClip();
var star_filter = (new flash.filters.GlowFilter(16777215, 0.8, 4, 4, 2, 3, false, false));
var power_rings_filter = (new flash.filters.GlowFilter(16314760, 0.8, 4, 4, 2, 3, false, false));
collect_ring_sound = new Sound();
collect_ring_sound.attachSound("ring_sound");
die_sound = new Sound();
die_sound.attachSound("die");
boom_sound = new Sound();
boom_sound.attachSound("boom");
bg_sound = new Sound();
bg_sound.attachSound("levelonemusic");
bg_sound.start();
var hscore;
scores = 0;
gravity = 2.1;
thrust = 4.2;
yspeed = 0;
xspeed = 25;
distance = 100;
star_interval = 10000;
frames_passed = 0;
tunnel_height = -60;
rings = 35;
power = false;
_root.attachMovie("bg_ani", "bg_ani", _root.getNextHighestDepth(), {_x:0, _y:75});
_root.attachMovie("super_sonic", "super_sonic", _root.getNextHighestDepth(), {_x:150, _y:200});
_root.attachMovie("tunnel", "tunnel_movie", _root.getNextHighestDepth(), {_x:500, _y:tunnel_height});
_root.attachMovie("flash", "flashbg", _root.getNextHighestDepth(), {_x:0, _y:0});
flashbg._alpha = 75;
_root.createEmptyMovieClip("deadly_movie", _root.getNextHighestDepth());
_root.attachMovie("score", "score", _root.getNextHighestDepth());
super_sonic.onEnterFrame = function () {
score.sc.text = (((((("Distance: " + distance) + " - ") + "Ring Power: ") + rings) + " - ") + "High Score: ") + hscore;
if ((rings > 0) and power) {
yspeed = yspeed - thrust;
rings = rings - 1;
}
if (distance == 32725) {
bg_sound.start();
}
if (distance == 5700) {
_root.attachMovie("b_bang", "b_bang", _root.getNextHighestDepth(), {_x:-30, _y:180});
boom_sound.start();
}
if (distance == 5800) {
boom_sound.start();
}
if (distance == 5900) {
boom_sound.start();
}
if (distance == 6000) {
boom_sound.start();
}
if (distance == 6100) {
boom_sound.start();
}
if (distance == 6200) {
boom_sound.start();
}
if (distance == 6300) {
boom_sound.start();
}
if (distance == 6400) {
boom_sound.start();
}
if (distance == 6500) {
boom_sound.start();
}
if (distance == 6600) {
boom_sound.start();
}
if (distance == 6700) {
boom_sound.start();
}
if (distance == 6800) {
boom_sound.start();
}
if (distance == 6900) {
boom_sound.start();
}
if (distance == 7000) {
boom_sound.start();
}
if (distance == 7100) {
boom_sound.start();
}
if (distance == 7200) {
boom_sound.start();
}
if (distance == 7300) {
boom_sound.start();
}
if (distance == 7400) {
boom_sound.start();
}
if (distance == 7500) {
boom_sound.start();
}
if (distance == 7600) {
boom_sound.start();
}
if (distance == 7700) {
boom_sound.start();
}
if (distance == 7800) {
boom_sound.start();
}
if (distance == 7900) {
boom_sound.start();
}
if (distance == 8000) {
boom_sound.start();
}
if (distance == 8100) {
boom_sound.start();
}
if (distance == 8200) {
boom_sound.start();
}
if (distance == 8300) {
boom_sound.start();
}
if (distance == 8400) {
boom_sound.start();
}
if (distance == 8500) {
boom_sound.start();
}
if (distance == 8600) {
boom_sound.start();
}
if (distance == 8700) {
boom_sound.start();
}
if (distance == 8800) {
boom_sound.start();
}
if (distance == 8900) {
boom_sound.start();
}
if (distance == 9000) {
boom_sound.start();
}
if (distance == 9100) {
boom_sound.start();
}
if (distance == 9200) {
boom_sound.start();
}
if (distance == 9300) {
boom_sound.start();
}
if (distance == 9400) {
boom_sound.start();
}
if (distance == 9500) {
boom_sound.start();
}
if (distance == 9600) {
boom_sound.start();
}
if (distance == 9700) {
boom_sound.start();
}
if (distance == 9800) {
boom_sound.start();
}
if (distance == 9900) {
boom_sound.start();
}
if (distance == 10000) {
b_bang.removeMovieClip();
}
if (distance == 100) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:200});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 800) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:200});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 1350) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 2000) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:100});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 2750) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 3350) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 4000) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:100});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 5200) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 7200) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:100});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 7725) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:100});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 8550) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:200});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 9325) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 10425) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:100});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 11550) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 13175) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 14650) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 18025) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:100});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 19225) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 20000) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 22375) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 23050) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 26900) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:200});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 29050) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:290});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 35100) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:200});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
if (distance == 37525) {
_root.attachMovie("power_rings", "power_rings", _root.getNextHighestDepth(), {_x:560, _y:200});
power_rings.filters = new Array(power_rings_filter);
power_rings.onEnterFrame = function () {
this._x = this._x - (xspeed * 1.2);
if (this._x < -10) {
this.removeMovieClip();
}
};
}
tunnel_movie._x = tunnel_movie._x - xspeed;
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
frames_passed++;
distance = distance + xspeed;
if (frames_passed >= star_interval) {
sm = _root.attachMovie("star", "star" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x - 70, _y:this._y - 15});
sm.filters = new Array(star_filter);
sm.onEnterFrame = function () {
this._x = this._x - xspeed;
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
frames_passed = 0;
}
if (super_sonic.hitTest(_root.power_rings)) {
collect_ring_sound.start();
rings = rings + 35;
power_rings.removeMovieClip();
}
if (distance == 38800) {
tunnel_movie.removeMovieClip();
scores = rings + distance;
yspeed = 0;
rings = 0;
gravity = 0;
}
if (distance >= 39700) {
tunnel_movie.removeMovieClip();
super_sonic.removeMovieClip();
score.removeMovieClip();
flashbg.removeMovieClip();
power_rings.removeMovieClip();
warning.removeMovieClip();
flake.removeMovieClip();
bg_ani.removeMovieClip();
b_bang.removeMovieClip();
stopAllSounds();
_root.gotoAndPlay(39);
}
if (((super_sonic._y > 400) or (super_sonic._y < 0)) or _root.tunnel_movie.hitTest(super_sonic._x, super_sonic._y, true)) {
scores = rings + distance;
yspeed = 0;
rings = 0;
gravity = 0;
die_sound.start();
_root.attachMovie("super_sonic_dying", "super_sonic_dying", _root.getNextHighestDepth());
_root.super_sonic_dying._x = super_sonic._x;
_root.super_sonic_dying._y = super_sonic._y;
super_sonic.removeMovieClip();
warning.removeMovieClip();
score.removeMovieClip();
flashbg.removeMovieClip();
power_rings.removeMovieClip();
bg_ani.removeMovieClip();
b_bang.removeMovieClip();
_root.gotoAndPlay(27);
}
};
_root.onMouseDown = function () {
power = true;
star_interval = 5;
};
_root.onMouseUp = function () {
power = false;
star_interval = 5;
};
final_score.text = scores;
if (hscore == undefined) {
hscore = scores;
high_score.text = scores;
} else if (scores > hscore) {
hscore = scores;
high_score.text = hscore;
} else {
high_score.text = hscore;
}
Frame 38
stop();
stopAllSounds();
bg_ani.removeMovieClip();
tunnel_movie.removeMovieClip();
_root.gotoAndPlay(38);
Frame 39
stop();
final_score.text = scores;
if (hscore == undefined) {
hscore = scores;
high_score.text = scores;
} else if (scores > hscore) {
hscore = scores;
high_score.text = hscore;
} else {
high_score.text = hscore;
}
Symbol 39 MovieClip [bg_ani] Frame 200
gotoAndPlay (116);
Symbol 55 MovieClip [super_sonic_dying] Frame 12
stop();
Symbol 65 MovieClip [sonic_change] Frame 17
stop();
Symbol 104 Button
on (release) {
_root.gotoAndPlay(4);
}
Symbol 108 Button
on (release) {
_root.gotoAndStop(26);
}
Symbol 116 Button
on (release) {
_root.gotoAndPlay(4);
}