Frame 1
function onEnterFrame() {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = Math.round(PercentLoaded);
percent.text = bar._xscale + "%";
} else {
bar._xscale = 100;
percent.text = "100%";
start_bttn._visible = true;
delete onEnterFrame;
}
}
dataS = SharedObject.getLocal("drawdude");
var first_time = false;
if (dataS.data.savedPlayer == undefined) {
dataS.data.savedPlayer = false;
}
if (!dataS.data.savedPlayer) {
first_time = true;
dataS.data.slot1 = 1;
dataS.data.slot2 = 1;
dataS.data.slot3 = 1;
dataS.data.slot4 = 1;
dataS.data.slot5 = 1;
}
stop();
Stage.showMenu = false;
start_bttn._visible = false;
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("1b6efbfc", this, 10301, true);
_root.gotoAndStop("main");
Frame 3
var linkageId = "image";
var myBitmapData = flash.display.BitmapData.loadBitmap(linkageId);
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
stop();
dude.swapDepths(200);
drawok = false;
_root.colour = 1;
var item = new Color("item");
var item2 = new Color("item2");
dude.moveTo(0, -255);
dude.lineTo(1, -255);
dude.moveTo(0, -72);
dude.lineTo(1, -72);
dude.onEnterFrame = function () {
if (_root.canvas.hitTest(_root.pencil._x, _root.pencil._y, true)) {
drawok = true;
} else {
drawok = false;
}
item.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
imdrawing = false;
};
imdrawing = false;
onMouseDown = function () {
if (drawok) {
if (imdrawing == false) {
dude.moveTo(dude._xmouse, dude._ymouse);
dudeX.push(0);
dudeX.push(dude._xmouse);
dudeY.push(0);
dudeY.push(dude._ymouse);
imdrawing = true;
}
if (imdrawing == true) {
onEnterFrame = function () {
if (drawok) {
dude.lineTo(dude._xmouse, dude._ymouse);
dudeX.push(1);
dudeX.push(current_colour);
dudeX.push(dude._xmouse);
dudeY.push(1);
dudeY.push(current_colour);
dudeY.push(dude._ymouse);
}
};
}
} else {
item2.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
dude.lineStyle(10, "0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16), 100);
current_colour = "0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16);
}
};
onMouseUp = function () {
onEnterFrame = function () {
item.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
imdrawing = false;
};
};
var dudeX = new Array();
var dudeY = new Array();
var current_colour = "";
Frame 4
var linkageId = "image";
var myBitmapData = flash.display.BitmapData.loadBitmap(linkageId);
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
stop();
Mouse.hide();
arm.swapDepths(201);
drawok = false;
_root.colour = 1;
var item = new Color("item");
var item2 = new Color("item2");
arm.moveTo(0, -10);
arm.lineTo(1, -10);
arm.moveTo(0, 100);
arm.lineTo(1, 100);
arm.onEnterFrame = function () {
if (_root.canvas.hitTest(_root.pencil._x, _root.pencil._y, true)) {
drawok = true;
} else {
drawok = false;
}
item.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
imdrawing = false;
};
imdrawing = false;
onMouseDown = function () {
if (drawok) {
if (imdrawing == false) {
arm.moveTo(arm._xmouse, arm._ymouse);
armX.push(0);
armX.push(arm._xmouse);
armY.push(0);
armY.push(arm._ymouse);
imdrawing = true;
}
if (imdrawing == true) {
onEnterFrame = function () {
if (drawok) {
arm.lineTo(arm._xmouse, arm._ymouse);
armX.push(1);
armX.push(current_colour);
armX.push(arm._xmouse);
armY.push(1);
armY.push(current_colour);
armY.push(arm._ymouse);
}
};
}
} else {
item2.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
arm.lineStyle(10, "0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16), 100);
current_colour = "0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16);
}
};
onMouseUp = function () {
onEnterFrame = function () {
item.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
imdrawing = false;
};
};
var armX = new Array();
var armY = new Array();
var current_colour = "";
Frame 5
var linkageId = "image";
var myBitmapData = flash.display.BitmapData.loadBitmap(linkageId);
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
stop();
Mouse.hide();
leg.swapDepths(202);
drawok = false;
_root.colour = 1;
var item = new Color("item");
var item2 = new Color("item2");
leg.moveTo(0, -10);
leg.lineTo(1, -10);
leg.moveTo(0, 115);
leg.lineTo(1, 115);
leg.onEnterFrame = function () {
if (_root.canvas.hitTest(_root.pencil._x, _root.pencil._y, true)) {
drawok = true;
} else {
drawok = false;
}
item.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
imdrawing = false;
};
imdrawing = false;
onMouseDown = function () {
if (drawok) {
if (imdrawing == false) {
leg.moveTo(leg._xmouse, leg._ymouse);
legX.push(0);
legX.push(leg._xmouse);
legY.push(0);
legY.push(leg._ymouse);
imdrawing = true;
}
if (imdrawing == true) {
onEnterFrame = function () {
if (drawok) {
leg.lineTo(leg._xmouse, leg._ymouse);
legX.push(1);
legX.push(current_colour);
legX.push(leg._xmouse);
legY.push(1);
legY.push(current_colour);
legY.push(leg._ymouse);
}
};
}
} else {
item2.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
leg.lineStyle(10, "0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16), 100);
current_colour = "0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16);
}
};
onMouseUp = function () {
onEnterFrame = function () {
item.setRGB("0x" + myBitmapData.getPixel(_root._xmouse - mc._x, _root._ymouse - mc._y).toString(16));
imdrawing = false;
};
};
var legX = new Array();
var legY = new Array();
var current_colour = "";
Frame 6
new_bttn.enabled = true;
save_bttn.enabled = true;
load_bttn.enabled = true;
reset_bttn.enabled = true;
createEmptyMovieClip("ground", 2);
ground.lineStyle(20, 0, 100);
ground.moveTo(100, 300);
ground.lineTo(450, 300);
duplicateMovieClip (arm, "arm2", 198);
duplicateMovieClip (leg, "leg2", 199);
_global.moving = false;
dude.scale = dude._xscale;
dude.jumpheight = 15;
dude.jump = true;
dude.friction = 0.9;
dude.maxspeed = 20;
dude.acceleration = 1;
dude.speedX = 0;
dude.gravity = 0;
dude.attack = false;
dude.onEnterFrame = function () {
with (this) {
_global.dir = _xscale;
_y = _y + gravity;
_x = _x + speedX;
speedX = speedX * friction;
if ((speedX > -0.5) && (speedX < 0)) {
speedX = 0;
}
if ((speedX < 0.5) && (speedX > 0)) {
speedX = 0;
}
if ((jump && (_root.ground.hitTest(_x, _y, true))) && (gravity > 0)) {
jump = false;
}
if (_root.ground.hitTest(_x + (_width / 2), _y - (_height / 2), true) || (_root.ground.hitTest(_x + (_width / 2), _y - _height, true))) {
_x--;
_x = _x - speedX;
speedX = 0;
} else if (_root.ground.hitTest(_x - (_width / 2), _y - (_height / 2), true) || (_root.ground.hitTest(_x - (_width / 2), _y - _height, true))) {
_x++;
_x = _x - speedX;
speedX = 0;
} else if ((!_root.ground.hitTest(_x, _y, true)) && (gravity > 0)) {
while (_root.ground.hitTest(_x - (_width / 2), _y, true) || (_root.ground.hitTest(_x + (_width / 2), _y, true))) {
_y--;
jump = false;
}
}
if (gravity > 0) {
while (_root.ground.hitTest(_x, _y, true)) {
_y--;
}
}
if (gravity < jumpheight) {
gravity++;
}
if ((Key.isDown(38) && (!jump)) && (_root.ground.hitTest(_x, _y + 3, true))) {
jump = true;
gravity = -jumpheight;
_y--;
}
if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true) && (!jump)) {
gravity = 2;
}
speedX = speedX + acceleration;
}
if (Key.isDown(37)) {
_xscale = -scale;
if (_root.ground.hitTest(_x, _y + 3, true) && (!jump)) {
gravity = 2;
}
speedX = speedX - acceleration;
}
if (_x > 300) {
_x = 300;
_root.ground._x = _root.ground._x - speedX;
} else if (_x < 250) {
_x = 250;
_root.ground._x = _root.ground._x - speedX;
}
if (_y > 350) {
_y = 350;
_root.ground._y = _root.ground._y - gravity;
} else if (_y < 150) {
_y = 150;
_root.ground._y = _root.ground._y - gravity;
}
if (Key.isDown(39) || (Key.isDown(37))) {
_global.moving = true;
} else {
_global.moving = false;
}
}
};
arm.timer = 0;
arm.leftswing = false;
arm.rightswing = false;
arm.scale = arm._xscale;
arm.onEnterFrame = function () {
with (this) {
if (_global.moving) {
timer = timer + 2;
if ((timer > 59) && (timer < 79)) {
leftswing = true;
rightswing = false;
} else if (timer < 20) {
leftswing = true;
rightswing = false;
} else if ((timer > 19) && (timer < 60)) {
leftswing = false;
rightswing = true;
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
if (leftswing) {
this._rotation = this._rotation + 8;
} else if (rightswing) {
this._rotation = this._rotation - 8;
}
if (_global.dir > 1) {
_xscale = scale;
} else {
_xscale = -scale;
}
this._x = _root.dude._x;
this._y = _root.dude._y - 50;
}
};
arm2.timer = 0;
arm2.leftswing = false;
arm2.rightswing = false;
arm2.scale = arm2._xscale;
arm2.onEnterFrame = function () {
with (this) {
if (_global.moving) {
timer = timer + 2;
if ((timer > 59) && (timer < 79)) {
leftswing = true;
rightswing = false;
} else if (timer < 20) {
leftswing = true;
rightswing = false;
} else if ((timer > 19) && (timer < 60)) {
leftswing = false;
rightswing = true;
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
if (leftswing) {
this._rotation = this._rotation - 8;
} else if (rightswing) {
this._rotation = this._rotation + 8;
}
if (_global.dir > 1) {
_xscale = scale;
this._x = _root.dude._x + 5;
} else {
_xscale = -scale;
this._x = _root.dude._x - 5;
}
this._y = _root.dude._y - 50;
}
};
leg.timer = 0;
leg.leftswing = false;
leg.rightswing = false;
leg.scale = leg._xscale;
leg.onEnterFrame = function () {
with (this) {
if (_global.moving) {
timer = timer + 2;
if ((timer > 59) && (timer < 79)) {
leftswing = true;
rightswing = false;
} else if (timer < 20) {
leftswing = true;
rightswing = false;
} else if ((timer > 19) && (timer < 60)) {
leftswing = false;
rightswing = true;
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
if (leftswing) {
this._rotation = this._rotation + 5;
} else if (rightswing) {
this._rotation = this._rotation - 5;
}
if (_global.dir > 1) {
this.swapDepths(202);
_xscale = scale;
} else {
this.swapDepths(199);
_xscale = -scale;
}
this._x = _root.dude._x;
this._y = _root.dude._y - 25;
}
};
leg2.timer = 0;
leg2.leftswing = false;
leg2.rightswing = false;
leg2.scale = leg2._xscale;
leg2.onEnterFrame = function () {
with (this) {
if (_global.moving) {
timer = timer + 2;
if ((timer > 59) && (timer < 79)) {
leftswing = true;
rightswing = false;
} else if (timer < 20) {
leftswing = true;
rightswing = false;
} else if ((timer > 19) && (timer < 60)) {
leftswing = false;
rightswing = true;
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
} else {
this._rotation = 0;
leftswing = false;
rightswing = false;
timer = 0;
}
if (leftswing) {
this._rotation = this._rotation - 5;
} else if (rightswing) {
this._rotation = this._rotation + 5;
}
if (_global.dir > 1) {
this.swapDepths(199);
_xscale = scale;
} else {
this.swapDepths(202);
_xscale = -scale;
}
this._x = _root.dude._x + 5;
this._y = _root.dude._y - 25;
}
};
nextFrame();
Frame 7
imdrawing = false;
onMouseDown = function () {
_global.go = true;
if (imdrawing == false) {
ground.moveTo(ground._xmouse, ground._ymouse);
imdrawing = true;
}
if (imdrawing == true) {
onEnterFrame = function () {
ground.lineTo(ground._xmouse, ground._ymouse);
};
}
};
onMouseUp = function () {
onEnterFrame = function () {
imdrawing = false;
};
};
dudeLoad._visible = false;
if (just_created) {
just_created = false;
} else {
inst._visible = false;
close_bttn._visible = false;
}
if (first_time) {
first_time = false;
} else {
inst2._visible = false;
}
var saving = false;
Instance of Symbol 45 MovieClip "close_bttn" in Frame 7
on (release) {
_root.inst._visible = false;
this._visible = false;
}
on (rollOver) {
nextFrame();
}
on (rollOut) {
prevFrame();
}
Instance of Symbol 54 MovieClip "pencil" in Frame 7
onClipEvent (load) {
this.swapDepths(499);
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Symbol 10 Button
on (release) {
Mouse.hide();
_root.nextFrame();
}
Symbol 15 Button
on (release) {
getURL ("http://www.mindless-games.com/", "_blank");
}
Symbol 26 Button
on (release) {
delete dude.onEnterFrame;
_root.dude._x = -100;
_root.nextFrame();
}
Symbol 35 Button
on (release) {
delete arm.onEnterFrame;
_root.arm._x = -100;
_root.nextFrame();
}
Symbol 39 Button
on (release) {
just_created = true;
delete leg.onEnterFrame;
leg._x = -100;
dude._width = 36;
dude._height = 84;
dude._x = 250;
dude._y = 200;
arm._width = 15;
arm._height = 35;
leg._width = 20;
leg._height = 40;
_root.nextFrame();
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
this.createEmptyMovieClip("dude", 200);
dude.moveTo(0, -255);
dude.lineTo(1, -255);
dude.moveTo(0, -72);
dude.lineTo(1, -72);
dude.lineStyle(10, 0, 100);
dude._x = 200;
dude._y = 300;
d = 0;
while (d < _root.dataS.data["dudeX" + slotNumb].length) {
if (_root.dataS.data["dudeX" + slotNumb][d] == 0) {
d++;
dude.moveTo(_root.dataS.data["dudeX" + slotNumb][d], _root.dataS.data["dudeY" + slotNumb][d]);
} else {
d++;
dude.lineStyle(10, _root.dataS.data["dudeX" + slotNumb][d], 100);
d++;
dude.lineTo(_root.dataS.data["dudeX" + slotNumb][d], _root.dataS.data["dudeY" + slotNumb][d]);
}
d++;
}
this.createEmptyMovieClip("arm", 201);
arm.moveTo(0, -10);
arm.lineTo(1, -10);
arm.moveTo(0, 100);
arm.lineTo(1, 100);
arm.lineStyle(10, 0, 100);
arm._x = 300;
arm._y = 300;
a = 0;
while (a < _root.dataS.data["armX" + slotNumb].length) {
if (_root.dataS.data["armX" + slotNumb][a] == 0) {
a++;
arm.moveTo(_root.dataS.data["armX" + slotNumb][a], _root.dataS.data["armY" + slotNumb][a]);
} else {
a++;
arm.lineStyle(10, _root.dataS.data["armX" + slotNumb][a], 100);
a++;
arm.lineTo(_root.dataS.data["armX" + slotNumb][a], _root.dataS.data["armY" + slotNumb][a]);
}
a++;
}
this.createEmptyMovieClip("leg", 202);
leg.moveTo(0, -10);
leg.lineTo(1, -10);
leg.moveTo(0, 115);
leg.lineTo(1, 115);
leg.lineStyle(10, 0, 100);
leg._x = 400;
leg._y = 300;
l = 0;
while (l < _root.dataS.data["legX" + slotNumb].length) {
if (_root.dataS.data["legX" + slotNumb][l] == 0) {
l++;
leg.moveTo(_root.dataS.data["legX" + slotNumb][l], _root.dataS.data["legY" + slotNumb][l]);
} else {
l++;
leg.lineStyle(10, _root.dataS.data["legX" + slotNumb][l], 100);
l++;
leg.lineTo(_root.dataS.data["legX" + slotNumb][l], _root.dataS.data["legY" + slotNumb][l]);
}
l++;
}
dude._width = 24;
dude._height = 56;
dude._x = 30;
dude._y = 70;
arm._width = 10;
arm._height = 23;
leg._width = 13;
leg._height = 27;
arm.duplicateMovieClip("arm2", 199);
leg.duplicateMovieClip("leg2", 198);
arm._y = dude._y - 33;
arm2._y = dude._y - 33;
arm._x = dude._x;
arm2._x = dude._x + 3;
leg._x = dude._x;
leg._y = dude._y - 20;
leg2._x = dude._x + 3;
leg2._y = dude._y - 20;
Instance of Symbol 49 MovieClip "slot1" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
var slotNumb = 1;
this.gotoAndStop(_root.dataS.data.slot1);
}
on (release) {
if (_root.saving) {
_root.new_bttn.enabled = true;
_root.save_bttn.enabled = true;
_root.load_bttn.enabled = true;
_root.reset_bttn.enabled = true;
_root.dataS.data.slot1 = 2;
_root.dataS.data.dudeX1 = _root.dudeX;
_root.dataS.data.dudeY1 = _root.dudeY;
_root.dataS.data.armX1 = _root.armX;
_root.dataS.data.armY1 = _root.armY;
_root.dataS.data.legX1 = _root.legX;
_root.dataS.data.legY1 = _root.legY;
_root.dataS.data.enemyX1 = _root.enemyX;
_root.dataS.data.enemyY1 = _root.enemyY;
dataS.flush();
_root.saving = false;
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
dude.removeMovieClip();
arm.removeMovieClip();
arm2.removeMovieClip();
leg.removeMovieClip();
leg2.removeMovieClip();
this.gotoAndStop(1);
this.gotoAndStop(_root.dataS.data.slot1);
} else if (_root.dataS.data.slot1 == 2) {
_root.nl = 1;
_root.dudeX = _root.dataS.data.dudeX1;
_root.dudeY = _root.dataS.data.dudeY1;
_root.armX = _root.dataS.data.armX1;
_root.armY = _root.dataS.data.armY1;
_root.legX = _root.dataS.data.legX1;
_root.legY = _root.dataS.data.legY1;
_root.enemyX = _root.dataS.data.enemyX1;
_root.enemyY = _root.dataS.data.enemyY1;
with (_root) {
ground.removeMovieClip();
dude.removeMovieClip();
arm.removeMovieClip();
leg.removeMovieClip();
arm2.removeMovieClip();
leg2.removeMovieClip();
_root.createEmptyMovieClip("dude", 200);
dude.moveTo(0, -255);
dude.lineTo(1, -255);
dude.moveTo(0, -72);
dude.lineTo(1, -72);
dude.lineStyle(10, 0, 100);
dude._x = 200;
dude._y = 300;
d = 0;
while (d < dataS.data["dudeX" + nl].length) {
if (dataS.data["dudeX" + nl][d] == 0) {
d++;
dude.moveTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
} else {
d++;
dude.lineStyle(10, dataS.data["dudeX" + nl][d], 100);
d++;
dude.lineTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
}
d++;
}
_root.createEmptyMovieClip("arm", 201);
arm.moveTo(0, -10);
arm.lineTo(1, -10);
arm.moveTo(0, 100);
arm.lineTo(1, 100);
arm.lineStyle(10, 0, 100);
arm._x = 300;
arm._y = 300;
a = 0;
while (a < dataS.data["armX" + nl].length) {
if (dataS.data["armX" + nl][a] == 0) {
a++;
arm.moveTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
} else {
a++;
arm.lineStyle(10, dataS.data["armX" + nl][a], 100);
a++;
arm.lineTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
}
a++;
}
_root.createEmptyMovieClip("leg", 202);
leg.moveTo(0, -10);
leg.lineTo(1, -10);
leg.moveTo(0, 115);
leg.lineTo(1, 115);
leg.lineStyle(10, 0, 100);
leg._x = 400;
leg._y = 300;
l = 0;
while (l < dataS.data["legX" + nl].length) {
if (dataS.data["legX" + nl][l] == 0) {
l++;
leg.moveTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
} else {
l++;
leg.lineStyle(10, dataS.data["legX" + nl][l], 100);
l++;
leg.lineTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
}
l++;
}
dude._width = 36;
dude._height = 84;
dude._x = 250;
dude._y = 200;
arm._width = 15;
arm._height = 35;
leg._width = 20;
leg._height = 40;
prevFrame();
}
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
}
}
Instance of Symbol 49 MovieClip "slot2" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
var slotNumb = 2;
this.gotoAndStop(_root.dataS.data.slot2);
}
on (release) {
if (_root.saving) {
_root.new_bttn.enabled = true;
_root.save_bttn.enabled = true;
_root.load_bttn.enabled = true;
_root.reset_bttn.enabled = true;
_root.dataS.data.slot2 = 2;
_root.dataS.data.dudeX2 = _root.dudeX;
_root.dataS.data.dudeY2 = _root.dudeY;
_root.dataS.data.armX2 = _root.armX;
_root.dataS.data.armY2 = _root.armY;
_root.dataS.data.legX2 = _root.legX;
_root.dataS.data.legY2 = _root.legY;
_root.dataS.data.enemyX2 = _root.enemyX;
_root.dataS.data.enemyY2 = _root.enemyY;
dataS.flush();
_root.saving = false;
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
dude.removeMovieClip();
arm.removeMovieClip();
arm2.removeMovieClip();
leg.removeMovieClip();
leg2.removeMovieClip();
this.gotoAndStop(1);
this.gotoAndStop(_root.dataS.data.slot2);
} else if (_root.dataS.data.slot2 == 2) {
_root.nl = 2;
_root.dudeX = _root.dataS.data.dudeX2;
_root.dudeY = _root.dataS.data.dudeY2;
_root.armX = _root.dataS.data.armX2;
_root.armY = _root.dataS.data.armY2;
_root.legX = _root.dataS.data.legX2;
_root.legY = _root.dataS.data.legY2;
_root.enemyX = _root.dataS.data.enemyX2;
_root.enemyY = _root.dataS.data.enemyY2;
with (_root) {
ground.removeMovieClip();
dude.removeMovieClip();
arm.removeMovieClip();
leg.removeMovieClip();
arm2.removeMovieClip();
leg2.removeMovieClip();
_root.createEmptyMovieClip("dude", 200);
dude.moveTo(0, -255);
dude.lineTo(1, -255);
dude.moveTo(0, -72);
dude.lineTo(1, -72);
dude.lineStyle(10, 0, 100);
dude._x = 200;
dude._y = 300;
d = 0;
while (d < dataS.data["dudeX" + nl].length) {
if (dataS.data["dudeX" + nl][d] == 0) {
d++;
dude.moveTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
} else {
d++;
dude.lineStyle(10, dataS.data["dudeX" + nl][d], 100);
d++;
dude.lineTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
}
d++;
}
_root.createEmptyMovieClip("arm", 201);
arm.moveTo(0, -10);
arm.lineTo(1, -10);
arm.moveTo(0, 100);
arm.lineTo(1, 100);
arm.lineStyle(10, 0, 100);
arm._x = 300;
arm._y = 300;
a = 0;
while (a < dataS.data["armX" + nl].length) {
if (dataS.data["armX" + nl][a] == 0) {
a++;
arm.moveTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
} else {
a++;
arm.lineStyle(10, dataS.data["armX" + nl][a], 100);
a++;
arm.lineTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
}
a++;
}
_root.createEmptyMovieClip("leg", 202);
leg.moveTo(0, -10);
leg.lineTo(1, -10);
leg.moveTo(0, 115);
leg.lineTo(1, 115);
leg.lineStyle(10, 0, 100);
leg._x = 400;
leg._y = 300;
l = 0;
while (l < dataS.data["legX" + nl].length) {
if (dataS.data["legX" + nl][l] == 0) {
l++;
leg.moveTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
} else {
l++;
leg.lineStyle(10, dataS.data["legX" + nl][l], 100);
l++;
leg.lineTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
}
l++;
}
dude._width = 36;
dude._height = 84;
dude._x = 250;
dude._y = 200;
arm._width = 15;
arm._height = 35;
leg._width = 20;
leg._height = 40;
prevFrame();
}
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
}
}
Instance of Symbol 49 MovieClip "slot3" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
var slotNumb = 4;
this.gotoAndStop(_root.dataS.data.slot3);
}
on (release) {
if (_root.saving) {
_root.new_bttn.enabled = true;
_root.save_bttn.enabled = true;
_root.load_bttn.enabled = true;
_root.reset_bttn.enabled = true;
_root.dataS.data.slot3 = 2;
_root.dataS.data.dudeX3 = _root.dudeX;
_root.dataS.data.dudeY3 = _root.dudeY;
_root.dataS.data.armX3 = _root.armX;
_root.dataS.data.armY3 = _root.armY;
_root.dataS.data.legX3 = _root.legX;
_root.dataS.data.legY3 = _root.legY;
_root.dataS.data.enemyX3 = _root.enemyX;
_root.dataS.data.enemyY3 = _root.enemyY;
dataS.flush();
_root.saving = false;
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
dude.removeMovieClip();
arm.removeMovieClip();
arm2.removeMovieClip();
leg.removeMovieClip();
leg2.removeMovieClip();
this.gotoAndStop(1);
this.gotoAndStop(_root.dataS.data.slot3);
} else if (_root.dataS.data.slot3 == 2) {
_root.nl = 3;
_root.dudeX = _root.dataS.data.dudeX3;
_root.dudeY = _root.dataS.data.dudeY3;
_root.armX = _root.dataS.data.armX3;
_root.armY = _root.dataS.data.armY3;
_root.legX = _root.dataS.data.legX3;
_root.legY = _root.dataS.data.legY3;
_root.enemyX = _root.dataS.data.enemyX3;
_root.enemyY = _root.dataS.data.enemyY3;
with (_root) {
ground.removeMovieClip();
dude.removeMovieClip();
arm.removeMovieClip();
leg.removeMovieClip();
arm2.removeMovieClip();
leg2.removeMovieClip();
_root.createEmptyMovieClip("dude", 200);
dude.moveTo(0, -255);
dude.lineTo(1, -255);
dude.moveTo(0, -72);
dude.lineTo(1, -72);
dude.lineStyle(10, 0, 100);
dude._x = 200;
dude._y = 300;
d = 0;
while (d < dataS.data["dudeX" + nl].length) {
if (dataS.data["dudeX" + nl][d] == 0) {
d++;
dude.moveTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
} else {
d++;
dude.lineStyle(10, dataS.data["dudeX" + nl][d], 100);
d++;
dude.lineTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
}
d++;
}
_root.createEmptyMovieClip("arm", 201);
arm.moveTo(0, -10);
arm.lineTo(1, -10);
arm.moveTo(0, 100);
arm.lineTo(1, 100);
arm.lineStyle(10, 0, 100);
arm._x = 300;
arm._y = 300;
a = 0;
while (a < dataS.data["armX" + nl].length) {
if (dataS.data["armX" + nl][a] == 0) {
a++;
arm.moveTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
} else {
a++;
arm.lineStyle(10, dataS.data["armX" + nl][a], 100);
a++;
arm.lineTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
}
a++;
}
_root.createEmptyMovieClip("leg", 202);
leg.moveTo(0, -10);
leg.lineTo(1, -10);
leg.moveTo(0, 115);
leg.lineTo(1, 115);
leg.lineStyle(10, 0, 100);
leg._x = 400;
leg._y = 300;
l = 0;
while (l < dataS.data["legX" + nl].length) {
if (dataS.data["legX" + nl][l] == 0) {
l++;
leg.moveTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
} else {
l++;
leg.lineStyle(10, dataS.data["legX" + nl][l], 100);
l++;
leg.lineTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
}
l++;
}
dude._width = 36;
dude._height = 84;
dude._x = 250;
dude._y = 200;
arm._width = 15;
arm._height = 35;
leg._width = 20;
leg._height = 40;
prevFrame();
}
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
}
}
Instance of Symbol 49 MovieClip "slot4" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
var slotNumb = 4;
this.gotoAndStop(_root.dataS.data.slot4);
}
on (release) {
if (_root.saving) {
_root.new_bttn.enabled = true;
_root.save_bttn.enabled = true;
_root.load_bttn.enabled = true;
_root.reset_bttn.enabled = true;
_root.dataS.data.slot4 = 2;
_root.dataS.data.dudeX4 = _root.dudeX;
_root.dataS.data.dudeY4 = _root.dudeY;
_root.dataS.data.armX4 = _root.armX;
_root.dataS.data.armY4 = _root.armY;
_root.dataS.data.legX4 = _root.legX;
_root.dataS.data.legY4 = _root.legY;
_root.dataS.data.enemyX4 = _root.enemyX;
_root.dataS.data.enemyY4 = _root.enemyY;
dataS.flush();
_root.saving = false;
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
dude.removeMovieClip();
arm.removeMovieClip();
arm2.removeMovieClip();
leg.removeMovieClip();
leg2.removeMovieClip();
this.gotoAndStop(1);
this.gotoAndStop(_root.dataS.data.slot4);
} else if (_root.dataS.data.slot4 == 2) {
_root.nl = 4;
_root.dudeX = _root.dataS.data.dudeX4;
_root.dudeY = _root.dataS.data.dudeY4;
_root.armX = _root.dataS.data.armX4;
_root.armY = _root.dataS.data.armY4;
_root.legX = _root.dataS.data.legX4;
_root.legY = _root.dataS.data.legY4;
_root.enemyX = _root.dataS.data.enemyX4;
_root.enemyY = _root.dataS.data.enemyY4;
with (_root) {
ground.removeMovieClip();
dude.removeMovieClip();
arm.removeMovieClip();
leg.removeMovieClip();
arm2.removeMovieClip();
leg2.removeMovieClip();
_root.createEmptyMovieClip("dude", 200);
dude.moveTo(0, -255);
dude.lineTo(1, -255);
dude.moveTo(0, -72);
dude.lineTo(1, -72);
dude.lineStyle(10, 0, 100);
dude._x = 200;
dude._y = 300;
d = 0;
while (d < dataS.data["dudeX" + nl].length) {
if (dataS.data["dudeX" + nl][d] == 0) {
d++;
dude.moveTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
} else {
d++;
dude.lineStyle(10, dataS.data["dudeX" + nl][d], 100);
d++;
dude.lineTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
}
d++;
}
_root.createEmptyMovieClip("arm", 201);
arm.moveTo(0, -10);
arm.lineTo(1, -10);
arm.moveTo(0, 100);
arm.lineTo(1, 100);
arm.lineStyle(10, 0, 100);
arm._x = 300;
arm._y = 300;
a = 0;
while (a < dataS.data["armX" + nl].length) {
if (dataS.data["armX" + nl][a] == 0) {
a++;
arm.moveTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
} else {
a++;
arm.lineStyle(10, dataS.data["armX" + nl][a], 100);
a++;
arm.lineTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
}
a++;
}
_root.createEmptyMovieClip("leg", 202);
leg.moveTo(0, -10);
leg.lineTo(1, -10);
leg.moveTo(0, 115);
leg.lineTo(1, 115);
leg.lineStyle(10, 0, 100);
leg._x = 400;
leg._y = 300;
l = 0;
while (l < dataS.data["legX" + nl].length) {
if (dataS.data["legX" + nl][l] == 0) {
l++;
leg.moveTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
} else {
l++;
leg.lineStyle(10, dataS.data["legX" + nl][l], 100);
l++;
leg.lineTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
}
l++;
}
dude._width = 36;
dude._height = 84;
dude._x = 250;
dude._y = 200;
arm._width = 15;
arm._height = 35;
leg._width = 20;
leg._height = 40;
prevFrame();
}
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
}
}
Instance of Symbol 49 MovieClip "slot5" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
var slotNumb = 5;
this.gotoAndStop(_root.dataS.data.slot5);
}
on (release) {
if (_root.saving) {
_root.new_bttn.enabled = true;
_root.save_bttn.enabled = true;
_root.load_bttn.enabled = true;
_root.reset_bttn.enabled = true;
_root.dataS.data.slot5 = 2;
_root.dataS.data.dudeX5 = _root.dudeX;
_root.dataS.data.dudeY5 = _root.dudeY;
_root.dataS.data.armX5 = _root.armX;
_root.dataS.data.armY5 = _root.armY;
_root.dataS.data.legX5 = _root.legX;
_root.dataS.data.legY5 = _root.legY;
_root.dataS.data.enemyX5 = _root.enemyX;
_root.dataS.data.enemyY5 = _root.enemyY;
dataS.flush();
_root.saving = false;
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
dude.removeMovieClip();
arm.removeMovieClip();
arm2.removeMovieClip();
leg.removeMovieClip();
leg2.removeMovieClip();
this.gotoAndStop(1);
this.gotoAndStop(_root.dataS.data.slot5);
} else if (_root.dataS.data.slot5 == 2) {
_root.nl = 5;
_root.dudeX = _root.dataS.data.dudeX5;
_root.dudeY = _root.dataS.data.dudeY5;
_root.armX = _root.dataS.data.armX5;
_root.armY = _root.dataS.data.armY5;
_root.legX = _root.dataS.data.legX5;
_root.legY = _root.dataS.data.legY5;
_root.enemyX = _root.dataS.data.enemyX5;
_root.enemyY = _root.dataS.data.enemyY5;
with (_root) {
ground.removeMovieClip();
dude.removeMovieClip();
arm.removeMovieClip();
leg.removeMovieClip();
arm2.removeMovieClip();
leg2.removeMovieClip();
_root.createEmptyMovieClip("dude", 200);
dude.moveTo(0, -255);
dude.lineTo(1, -255);
dude.moveTo(0, -72);
dude.lineTo(1, -72);
dude.lineStyle(10, 0, 100);
dude._x = 200;
dude._y = 300;
d = 0;
while (d < dataS.data["dudeX" + nl].length) {
if (dataS.data["dudeX" + nl][d] == 0) {
d++;
dude.moveTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
} else {
d++;
dude.lineStyle(10, dataS.data["dudeX" + nl][d], 100);
d++;
dude.lineTo(dataS.data["dudeX" + nl][d], dataS.data["dudeY" + nl][d]);
}
d++;
}
_root.createEmptyMovieClip("arm", 201);
arm.moveTo(0, -10);
arm.lineTo(1, -10);
arm.moveTo(0, 100);
arm.lineTo(1, 100);
arm.lineStyle(10, 0, 100);
arm._x = 300;
arm._y = 300;
a = 0;
while (a < dataS.data["armX" + nl].length) {
if (dataS.data["armX" + nl][a] == 0) {
a++;
arm.moveTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
} else {
a++;
arm.lineStyle(10, dataS.data["armX" + nl][a], 100);
a++;
arm.lineTo(dataS.data["armX" + nl][a], dataS.data["armY" + nl][a]);
}
a++;
}
_root.createEmptyMovieClip("leg", 202);
leg.moveTo(0, -10);
leg.lineTo(1, -10);
leg.moveTo(0, 115);
leg.lineTo(1, 115);
leg.lineStyle(10, 0, 100);
leg._x = 400;
leg._y = 300;
l = 0;
while (l < dataS.data["legX" + nl].length) {
if (dataS.data["legX" + nl][l] == 0) {
l++;
leg.moveTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
} else {
l++;
leg.lineStyle(10, dataS.data["legX" + nl][l], 100);
l++;
leg.lineTo(dataS.data["legX" + nl][l], dataS.data["legY" + nl][l]);
}
l++;
}
dude._width = 36;
dude._height = 84;
dude._x = 250;
dude._y = 200;
arm._width = 15;
arm._height = 35;
leg._width = 20;
leg._height = 40;
prevFrame();
}
_parent._visible = false;
_root.ground._alpha = 100;
_root.dude._alpha = 100;
_root.arm._alpha = 100;
_root.leg._alpha = 100;
_root.arm2._alpha = 100;
_root.leg2._alpha = 100;
}
}
Symbol 59 Button
on (release) {
ground.removeMovieClip();
_root.createEmptyMovieClip("ground", 2);
ground.lineStyle(20, 0, 100);
ground.moveTo(100, 300);
ground.lineTo(450, 300);
dude.speedX = 0;
dude._xscale = dude.scale;
dude.gravity = 0;
dude._y = 200;
dude._x = 100;
ground._y = 0;
ground._x = 0;
}
Symbol 63 Button
on (release) {
dudeLoad._visible = true;
ground._alpha = 50;
dude._alpha = 50;
arm._alpha = 50;
leg._alpha = 50;
arm2._alpha = 50;
leg2._alpha = 50;
new_bttn.enabled = false;
save_bttn.enabled = false;
load_bttn.enabled = false;
reset_bttn.enabled = false;
}
Symbol 67 Button
on (release) {
saving = true;
dataS.data.savedPlayer = true;
dudeLoad._visible = true;
ground._alpha = 50;
dude._alpha = 50;
arm._alpha = 50;
leg._alpha = 50;
arm2._alpha = 50;
leg2._alpha = 50;
new_bttn.enabled = false;
save_bttn.enabled = false;
load_bttn.enabled = false;
reset_bttn.enabled = false;
}
Symbol 71 Button
on (release) {
ground.removeMovieClip();
dude.removeMovieClip();
arm.removeMovieClip();
leg.removeMovieClip();
arm2.removeMovieClip();
leg2.removeMovieClip();
_root.gotoAndStop("design");
}