Frame 1
function itemHandler1(obj, item) {
getURL ("http://mooseisloose.tk");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Mooseisloose Website", itemHandler1);
myMenu.customItems.push(item1);
_root.menu = myMenu;
Frame 2
stop();
Instance of Symbol 15 MovieClip "platform" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 19 MovieClip "platform7" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform6" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 21 MovieClip "platform5" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 22 MovieClip "platform4" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 23 MovieClip "platform3" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 24 MovieClip "platform2" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 25 MovieClip "platform1" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform9" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform8" in Frame 2
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 28 MovieClip "chart" in Frame 2
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -15;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl1end)) {
_root.nextFrame();
}
}
Frame 3
stop();
Instance of Symbol 15 MovieClip "platform" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 19 MovieClip "platform7" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform6" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 21 MovieClip "platform5" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 22 MovieClip "platform4" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 23 MovieClip "platform3" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 24 MovieClip "platform2" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 25 MovieClip "platform1" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform9" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform8" in Frame 3
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 28 MovieClip "chart" in Frame 3
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -15;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl2end)) {
_root.nextFrame();
}
}
Frame 4
stop();
Instance of Symbol 15 MovieClip "platform" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 19 MovieClip "platform7" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform6" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 21 MovieClip "platform5" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 22 MovieClip "platform4" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 23 MovieClip "platform3" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 24 MovieClip "platform2" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 25 MovieClip "platform1" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform9" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform8" in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 28 MovieClip "chart" in Frame 4
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -15;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl3end)) {
_root.nextFrame();
}
}
Frame 5
stop();
Instance of Symbol 15 MovieClip "platform" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 19 MovieClip "platform7" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform6" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 21 MovieClip "platform5" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 22 MovieClip "platform4" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 23 MovieClip "platform3" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 24 MovieClip "platform2" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 25 MovieClip "platform1" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform9" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform8" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 28 MovieClip "chart" in Frame 5
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -15;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl4end)) {
_root.nextFrame();
}
}
Frame 6
stop();
Instance of Symbol 15 MovieClip "platform" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 19 MovieClip "platform7" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform6" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 21 MovieClip "platform5" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 22 MovieClip "platform4" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 23 MovieClip "platform3" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 24 MovieClip "platform2" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 25 MovieClip "platform1" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform9" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 20 MovieClip "platform8" in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.circle.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (_root.circle.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (_root.circle.ymin > ymax)) && (_root.circle.jump > -1)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 28 MovieClip "chart" in Frame 6
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -15;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl5end)) {
_root.nextFrame();
}
}
Frame 7
stop();
Instance of Symbol 28 MovieClip "chart" in Frame 7
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -14;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl6end)) {
_root.nextFrame();
}
}
Instance of Symbol 52 MovieClip "platform" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform3" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform10" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform9" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform8" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform2" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform1" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform4" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform5" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform6" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform7" in Frame 7
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Frame 8
stop();
Instance of Symbol 28 MovieClip "chart" in Frame 8
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -14;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl7end)) {
_root.nextFrame();
}
}
Instance of Symbol 52 MovieClip "platform" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform3" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform10" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform9" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform8" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform2" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform1" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform4" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform5" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform6" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform7" in Frame 8
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Frame 9
stop();
Instance of Symbol 28 MovieClip "chart" in Frame 9
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -14;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl8end)) {
_root.nextFrame();
}
}
Instance of Symbol 52 MovieClip "platform" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform3" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform10" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform9" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform8" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform2" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform1" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform4" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform5" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform6" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform7" in Frame 9
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Frame 10
stop();
Instance of Symbol 28 MovieClip "chart" in Frame 10
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -14;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl9end)) {
_root.nextFrame();
}
}
Instance of Symbol 52 MovieClip "platform" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform3" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform10" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform9" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform8" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform2" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform1" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform4" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform5" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform6" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform7" in Frame 10
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Frame 11
stop();
Instance of Symbol 28 MovieClip "chart" in Frame 11
onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 15;
maxfall = -14;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
}
onClipEvent (load) {
var rebound = 15;
}
onClipEvent (enterFrame) {
(_root.wall.hitTest(getBounds(_root).xMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
(_root.wall.hitTest(getBounds(_root).xMin, _y, true) ? (_x = (_x + rebound)_x + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMin, _y, true) ? (_y = (_y + rebound)_y + rebound) : 0);
(_root.wall.hitTest(getBounds(_root).yMax, _y, true) ? (_x = (_x - rebound)_x - rebound) : 0);
}
onClipEvent (enterFrame) {
if (hitTest(_root.lvl10end)) {
_root.nextFrame();
}
}
Instance of Symbol 52 MovieClip "platform" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform3" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform10" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform9" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform8" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform2" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform1" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform4" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform5" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform6" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 54 MovieClip "platform7" in Frame 11
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.circle.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.circle.xMax > xMin) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if ((_root.circle.yMax - (_root.chart.jump * 2)) > yMin) {
_root.circle._y = ymin - (_root.chart._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(_root.circle.yMax) > Math.round(yMin)) {
if (hitTest(_root.circle) && (_root.chart.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.chart) && (_root.chart.xmin > xmax)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.chart) && (_root.chart.ymin > ymax)) && (_root.chart.jump > -1)) {
_root.circle.jump = -1 * _root.chart.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (_root.circle.ymax > ymin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if ((((((_root.circle.ymax - _root.circle.jump) > ymin) && (_root.circle.xMin < xMax)) && (_root.circle.xMax > xMin)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Symbol 9 Button
on (release) {
_root.play();
}
Symbol 10 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 10 MovieClip Frame 2
gotoAndPlay (1);
Symbol 84 Button
on (release) {
play();
}