Combined Code
movieClip 2 {
}
movieClip 3 rref {
instance of movieClip 2 {
onClipEvent (enterFrame) {
_rotation = _rotation + 10;
}
}
}
movieClip 21 {
frame 1 {
stop();
}
frame 100 {
stop();
}
}
movieClip 22 fref {
}
movieClip 25 pref {
}
movieClip 28 tref2 {
}
movieClip 31 tref {
}
movieClip 34 {
}
movieClip 36 {
}
movieClip 37 {
}
movieClip 38 eref {
}
movieClip 41 sref2 {
}
movieClip 44 sref {
}
movieClip 50 {
frame 1 {
stop();
}
}
movieClip 51 sprref {
}
movieClip 54 ref {
}
frame 1 {
var urlString = _root._url;
if (urlString.indexOf('armorgames.com') == -1 and urlString.indexOf('wixgames.co.uk') == -1) {
_root.locker.gotoAndStop(2);
}
}
frame 1 {
function Lbar() {
if (getBytesLoaded() >= getBytesTotal() and extra > 49 and _root.loads !== 0) {
play();
packname = 'level';
clearInterval(LoaderInt);
}
}
var NoMenu = new ContextMenu();
NoMenu.hideBuiltInItems();
this.menu = NoMenu;
var htmlURI = String(flash.external.ExternalInterface.call('window.location.href.toString'));
extra = 50;
LoaderInt = setInterval(Lbar, 10);
}
frame 1 {
stop();
}
// unknown tag 88 length 65
movieClip 61 {
}
movieClip 64 {
}
button 65 {
on (release) {
getURL('http://armor.ag/MoreGames', '_blank');
}
}
// unknown tag 88 length 164
movieClip 71 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
}
instance locker of movieClip 71 {
onClipEvent (rollOver) {
this.useHandCursor = false;
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
++i;
if (i > 20) {
this.swapDepths(_root.getNextHighestDepth());
i = 0;
}
}
}
frame 2 {
if (itisready == 1) {
var htmlURI = String(flash.external.ExternalInterface.call('window.location.href.toString'));
htmlURI = unescape(htmlURI);
if (htmlURI.indexOf('userlvl') !== -1) {
selectedchar = htmlURI.indexOf('userlvl');
typing = 0;
Lname = '';
Lcreator = '';
Ltime = '';
Lcode = '';
while (selectedchar < htmlURI.length) {
++selectedchar;
if (htmlURI.charAt(selectedchar) == '~') {
++typing;
}
if (htmlURI.charAt(selectedchar - 1) == '~') {
++typing;
}
if (typing == 2) {
if (htmlURI.charAt(selectedchar) == '_') {
Lname += ' ';
} else {
Lname += htmlURI.charAt(selectedchar);
}
}
if (typing == 4) {
if (htmlURI.charAt(selectedchar) == '_') {
Ltime += ' ';
} else {
Ltime += htmlURI.charAt(selectedchar);
}
}
if (typing == 6) {
if (htmlURI.charAt(selectedchar) == '_') {
Lcreator += ' ';
} else {
Lcreator += htmlURI.charAt(selectedchar);
}
}
if (typing == 8) {
if (htmlURI.charAt(selectedchar) == '_') {
Lcode += ' ';
} else {
Lcode += htmlURI.charAt(selectedchar);
}
}
}
gotoAndStop(11);
} else {
if (coins == 0) {
gotoAndStop(30);
}
}
} else {
nameslist = '';
game = SharedObject.getLocal('noitcelfer');
if (game.data.coins == undefined) {
coins = 0;
} else {
coins = game.data.coins;
}
if (game.data.playercolour == undefined) {
playercolour = '0x000000';
} else {
playercolour = game.data.playercolour;
}
if (game.data.colour == undefined) {
colour = new Array(1, 1);
} else {
colour = game.data.colour;
}
if (game.data.pack == undefined) {
pack = new Array();
} else {
pack = game.data.pack;
}
if (game.data.locked1 == undefined) {
locked1 = 1;
} else {
locked1 = game.data.locked1;
}
if (game.data.locked2 == undefined) {
locked2 = 1;
} else {
locked2 = game.data.locked2;
}
if (game.data.locked3 == undefined) {
locked3 = 1;
} else {
locked3 = game.data.locked3;
}
itisready = 1;
gotoAndPlay(25);
}
}
frame 2 {
play();
}
frame 3 {
stop();
gorightback = 0;
bot.tar = 535;
bot._visible = true;
name1 = '...';
name2 = '...';
name3 = '...';
name4 = '...';
name5 = '...';
name6 = '...';
name7 = '...';
name8 = '...';
cre1 = '...';
cre2 = '...';
cre3 = '...';
cre4 = '...';
cre5 = '...';
cre6 = '...';
cre7 = '...';
cre8 = '...';
clearall = 1;
coinsdisplay = 'Coins: ' + coins;
srslts = '';
if (loadbefore == 1) {
currentpage = 1;
i = 0;
while (i < 8) {
names2[i] = main_xml2.firstChild.childNodes[i].childNodes[0];
create2[i] = main_xml2.firstChild.childNodes[i].childNodes[1];
++i;
}
name1 = names2[0];
name2 = names2[1];
name3 = names2[2];
name4 = names2[3];
name5 = names2[4];
name6 = names2[5];
name7 = names2[6];
name8 = names2[7];
if (_root.pack[1] == 1) {
name1 += ' ✓';
}
if (_root.pack[2] == 1) {
name2 += ' ✓';
}
if (_root.pack[3] == 1) {
name3 += ' ✓';
}
if (_root.pack[4] == 1) {
name4 += ' ✓';
}
if (_root.pack[5] == 1) {
name5 += ' ✓';
}
if (locked1 == undefined) {
locked1 = 1;
}
if (locked2 == undefined) {
locked2 = 1;
}
if (locked3 == undefined) {
locked3 = 1;
}
if (locked1 == 1) {
name6 += ' (locked)';
}
if (locked2 == 1) {
name7 += ' (locked)';
}
if (locked3 == 1) {
name8 += ' (locked)';
}
if (_root.pack[6] == 1) {
name6 += ' ✓';
}
if (_root.pack[7] == 1) {
name7 += ' ✓';
}
if (_root.pack[8] == 1) {
name8 += ' ✓';
}
cre1 = create2[0];
cre2 = create2[1];
cre3 = create2[2];
cre4 = create2[3];
cre5 = create2[4];
cre6 = create2[5];
cre7 = create2[6];
cre8 = create2[7];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
}
if (name6 == undefined) {
name6 = '';
}
if (name7 == undefined) {
name7 = '';
}
if (name8 == undefined) {
name8 = '';
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
if (cre6 == undefined) {
cre6 = '';
}
if (cre7 == undefined) {
cre7 = '';
}
if (cre8 == undefined) {
cre8 = '';
}
} else {
var names2 = Array();
var time2 = Array();
var create2 = Array();
var code2 = Array();
new TextInput();
main_xml2 = new XML();
main_xml2.ignoreWhite = true;
main_xml2.load('http://www.wixgames.co.uk/levelpacks.xml');
}
main_xml2.onLoad = function (success) {
loadbefore = 1;
currentpage = 1;
i = 0;
while (i < 8) {
names2[i] = main_xml2.firstChild.childNodes[i].childNodes[0];
create2[i] = main_xml2.firstChild.childNodes[i].childNodes[1];
++i;
}
name1 = names2[0];
name2 = names2[1];
name3 = names2[2];
name4 = names2[3];
name5 = names2[4];
name6 = names2[5];
name7 = names2[6];
name8 = names2[7];
if (_root.pack[1] == 1) {
name1 += ' ✓';
}
if (_root.pack[2] == 1) {
name2 += ' ✓';
}
if (_root.pack[3] == 1) {
name3 += ' ✓';
}
if (_root.pack[4] == 1) {
name4 += ' ✓';
}
if (_root.pack[5] == 1) {
name5 += ' ✓';
}
if (locked1 == undefined) {
locked1 = 1;
}
if (locked2 == undefined) {
locked2 = 1;
}
if (locked3 == undefined) {
locked3 = 1;
}
if (locked1 == 1) {
name6 += ' (locked)';
}
if (locked2 == 1) {
name7 += ' (locked)';
}
if (locked3 == 1) {
name8 += ' (locked)';
}
if (_root.pack[6] == 1) {
name6 += ' ✓';
}
if (_root.pack[7] == 1) {
name7 += ' ✓';
}
if (_root.pack[8] == 1) {
name8 += ' ✓';
}
cre1 = create2[0];
cre2 = create2[1];
cre3 = create2[2];
cre4 = create2[3];
cre5 = create2[4];
cre6 = create2[5];
cre7 = create2[6];
cre8 = create2[7];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
}
if (name6 == undefined) {
name6 = '';
}
if (name7 == undefined) {
name7 = '';
}
if (name8 == undefined) {
name8 = '';
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
if (cre6 == undefined) {
cre6 = '';
}
if (cre7 == undefined) {
cre7 = '';
}
if (cre8 == undefined) {
cre8 = '';
}
};
}
frame 3 {
moveable = 1;
i = 1;
abouttomoveon = 0;
}
movieClip 73 {
}
// unknown tag 88 length 86
// unknown tag 88 length 63
// unknown tag 88 length 548
movieClip 98 {
frame 1 {
onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(3);
} else {
gotoAndStop(2);
}
};
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5 - 5] == undefined or _root.names2[_root.currentpage * 5 - 5] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = Number(_root.currentpage * 5 - 5);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
trace(_root.Lname);
_root.packname = _root.name1;
_root.packnumber = 1;
_root.gotoAndStop(11);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5 - 4] == undefined or _root.names2[_root.currentpage * 5 - 4] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = Number(_root.currentpage * 5 - 4);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
_root.packname = _root.name2;
_root.packnumber = 2;
_root.gotoAndStop(11);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5 - 3] == undefined or _root.names2[_root.currentpage * 5 - 3] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = Number(_root.currentpage * 5 - 3);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
_root.packname = _root.name3;
_root.packnumber = 3;
_root.gotoAndStop(11);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5 - 2] == undefined or _root.names2[_root.currentpage * 5 - 2] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = Number(_root.currentpage * 5 - 2);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
_root.packname = _root.name4;
_root.packnumber = 4;
_root.gotoAndStop(11);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5 - 1] == undefined or _root.names2[_root.currentpage * 5 - 1] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = Number(_root.currentpage * 5 - 1);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
_root.packname = _root.name5;
_root.packnumber = 5;
_root.gotoAndStop(11);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5] == undefined or _root.names2[_root.currentpage * 5] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
_root.lock._visible = false;
}
onClipEvent (release) {
if (_root.name6.indexOf('locked') == -1 or _root.name6.indexOf('locked') == undefined) {
_root.lid = Number(_root.currentpage * 5);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
_root.packname = _root.name6;
_root.packnumber = 6;
_root.gotoAndStop(11);
} else {
_root.lock._visible = true;
}
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5 + 1] == undefined or _root.names2[_root.currentpage * 5 + 1] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
_root.lock._visible = false;
}
onClipEvent (release) {
if (_root.name7.indexOf('locked') == -1 or _root.name7.indexOf('locked') == undefined) {
_root.lid = Number(_root.currentpage * 5 + 1);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
_root.packname = _root.name7;
_root.packnumber = 7;
_root.gotoAndStop(11);
} else {
_root.lock._visible = true;
}
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names2[_root.currentpage * 5 + 2] == undefined or _root.names2[_root.currentpage * 5 + 2] == '') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
_root.lock._visible = false;
}
onClipEvent (release) {
if (_root.name8.indexOf('locked') == -1 or _root.name8.indexOf('locked') == undefined) {
_root.lid = Number(_root.currentpage * 5 + 2);
_root.lid2 = 0;
trace('LID: ' + _root.lid);
_root.Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[0];
_root.Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[2];
_root.Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[1];
_root.Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].firstChild.childNodes[3];
_root.packname = _root.name8;
_root.packnumber = 8;
_root.gotoAndStop(11);
} else {
_root.lock._visible = true;
}
}
}
movieClip 110 {
frame 5 {
stop();
}
}
movieClip 114 {
frame 6 {
stop();
}
}
movieClip 115 {
frame 1 {
stop();
}
}
instance of movieClip 115 {
onClipEvent (load) {
loaded = (_root.main_xml2.getBytesLoaded() / _root.main_xml2.getBytesTotal()) * 100;
loading = 'Loading (' + int(loaded) + '%)';
if (loaded > 99) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
loaded = (_root.main_xml2.getBytesLoaded() / _root.main_xml2.getBytesTotal()) * 100;
loading = 'Loading (' + int(loaded) + '%)';
if (loaded > 99) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 119 {
}
instance lock of movieClip 119 {
onClipEvent (rollOver) {
_visible = false;
}
onClipEvent (load) {
_visible = false;
}
}
movieClip 122 {
}
instance of movieClip 122 {
onClipEvent (load) {
if (_root.music == 1) {
_visible = true;
_root.musicon = true;
} else {
_visible = false;
}
if (_root.musicon == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicon == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (release) {
if (_root.musicon == true) {
_root.musicon = false;
_root.coolTune.stop();
} else {
_root.musicon = true;
_root.coolTune.start(0, 999999);
}
}
}
movieClip 125 {
}
instance bot of movieClip 125 {
onClipEvent (load) {
tar = 535;
}
onClipEvent (enterFrame) {
if (_y == tar) {
_visible = false;
} else {
_visible = true;
if (_y < tar) {
_y = _y + 10;
}
if (_y > tar) {
_visible = false;
_y = _y - 10;
}
}
}
}
button 129 {
on (release) {
gotoAndStop(3);
}
}
button 132 {
on (release) {
gotoAndStop(4);
}
}
button 134 {
on (release) {
gotoAndStop(5);
}
}
button 136 {
on (release) {
gotoAndStop(6);
}
}
button 138 {
on (release) {
timer = 0;
i = 1;
reload2 = 1;
gotoAndStop(14);
}
}
movieClip 143 {
}
movieClip 145 {
}
button 151 {
on (release) {
getURL('http://armor.ag/MoreGames', '_blank');
}
}
movieClip 154 {
}
instance of movieClip 154 {
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
prevframe = _root._currentframe;
++timer;
if (timer > 90) {
timer = 0;
game = SharedObject.getLocal('noitcelfer');
game.data.coins = _root.coins;
game.data.playercolour = _root.playercolour;
game.data.colour = _root.colour;
game.data.pack = _root.pack;
game.data.locked1 = _root.locked1;
game.data.locked2 = _root.locked2;
game.data.locked3 = _root.locked3;
game.flush();
}
}
}
frame 4 {
stop();
nomore = 0;
bot.tar = 465;
bot._visible = true;
clearall = 1;
coinsdisplay = 'Coins: ' + coins;
srslts = '';
var names = Array();
var time = Array();
var create = Array();
var code = Array();
main_xml = new XML();
main_xml.ignoreWhite = true;
main_xml.load('http://www.wixgames.co.uk/creatorapproved.xml');
main_xml.onLoad = function (success) {
currentpage = 1;
i = 0;
while (i < 5) {
names[i] = main_xml.firstChild.childNodes[i].childNodes[0];
code[i] = main_xml.firstChild.childNodes[i].childNodes[1];
create[i] = main_xml.firstChild.childNodes[i].childNodes[2];
time[i] = main_xml.firstChild.childNodes[i].childNodes[3];
++i;
}
name1 = names[0];
name2 = names[1];
name3 = names[2];
name4 = names[3];
name5 = names[4];
cre1 = create[0];
cre2 = create[1];
cre3 = create[2];
cre4 = create[3];
cre5 = create[4];
code1 = code[0];
code2 = code[1];
code3 = code[2];
code4 = code[3];
code5 = code[4];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
};
nextbutton.onRelease = function () {
if (nomore != 1) {
++currentpage;
}
i = currentpage * 5 - 5;
while (i < currentpage * 5) {
names[i] = main_xml.firstChild.childNodes[i].childNodes[0];
code[i] = main_xml.firstChild.childNodes[i].childNodes[1];
create[i] = main_xml.firstChild.childNodes[i].childNodes[2];
time[i] = main_xml.firstChild.childNodes[i].childNodes[3];
++i;
}
name1 = names[currentpage * 5 - 5];
name2 = names[currentpage * 5 - 4];
name3 = names[currentpage * 5 - 3];
name4 = names[currentpage * 5 - 2];
name5 = names[currentpage * 5 - 1];
cre1 = create[currentpage * 5 - 5];
cre2 = create[currentpage * 5 - 4];
cre3 = create[currentpage * 5 - 3];
cre4 = create[currentpage * 5 - 2];
cre5 = create[currentpage * 5 - 1];
code1 = code[currentpage * 5 - 5];
code2 = code[currentpage * 5 - 4];
code3 = code[currentpage * 5 - 3];
code4 = code[currentpage * 5 - 2];
code5 = code[currentpage * 5 - 1];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
nomore = 1;
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
};
prevbutton.onRelease = function () {
--currentpage;
if (currentpage < 1) {
currentpage = 1;
} else {
nomore = 0;
}
i = currentpage * 5 - 5;
while (i < currentpage * 5) {
names[i] = main_xml.firstChild.childNodes[i].childNodes[0];
code[i] = main_xml.firstChild.childNodes[i].childNodes[1];
create[i] = main_xml.firstChild.childNodes[i].childNodes[2];
time[i] = main_xml.firstChild.childNodes[i].childNodes[3];
++i;
}
name1 = names[currentpage * 5 - 5];
name2 = names[currentpage * 5 - 4];
name3 = names[currentpage * 5 - 3];
name4 = names[currentpage * 5 - 2];
name5 = names[currentpage * 5 - 1];
cre1 = create[currentpage * 5 - 5];
cre2 = create[currentpage * 5 - 4];
cre3 = create[currentpage * 5 - 3];
cre4 = create[currentpage * 5 - 2];
cre5 = create[currentpage * 5 - 1];
code1 = code[currentpage * 5 - 5];
code2 = code[currentpage * 5 - 4];
code3 = code[currentpage * 5 - 3];
code4 = code[currentpage * 5 - 2];
code5 = code[currentpage * 5 - 1];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
};
}
frame 4 {
moveable = 1;
i = 1;
abouttomoveon = 0;
name1 = '...';
name2 = '...';
name3 = '...';
name4 = '...';
name5 = '...';
cre1 = '...';
cre2 = '...';
cre3 = '...';
cre4 = '...';
cre5 = '...';
}
movieClip 160 {
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 5] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 5;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
trace(_root.Ltime);
_root.gotoAndStop(8);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 4] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 4;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(8);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 3] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 3;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(8);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 2] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 2;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(8);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 1] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 1;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(8);
}
}
movieClip 181 {
}
instance of movieClip 181 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.srslts == '' or _root.srslts == 'No results found') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = 1;
_root.Lname = _root.rlname;
_root.Lcreator = _root.rlcreator;
_root.Lcode = _root.rlcode;
trace(_root.Lcode);
_root.Ltime = _root.rltime;
_root.gotoAndStop(8);
}
}
button 183 {
on (release) {
if (_root.inputb.text == 'search') {
_root.inputb.text = '';
}
Selection.setFocus('inputb');
Selection.setSelection(inputb.length, inputb.length);
}
}
movieClip 185 {
}
button 186 {
on (release) {
foundat = 0;
inputtotal = inputb.text.toUpperCase();
var input = Array();
i = 0;
while (i < inputtotal.length) {
input[i] = inputtotal.charAt(i);
++i;
}
i -= 1;
search = (main_xml.toString()).toUpperCase();
j = 0;
while (j < search.length) {
if (input[0] == search.charAt(j) and input[1] == search.charAt(j + 1) and input[2] == search.charAt(j + 2)) {
if (i > 2) {
if (input[3] == search.charAt(j + 3)) {
if (i > 3) {
if (input[4] == search.charAt(j + 4)) {
if (i > 4) {
if (input[5] == search.charAt(j + 5)) {
if (i > 5) {
if (input[6] == search.charAt(j + 6)) {
if (i > 6) {
if (input[7] == search.charAt(j + 7)) {
if (i > 7) {
if (input[8] == search.charAt(j + 8)) {
if (i > 8) {
if (input[9] == search.charAt(j + 9)) {
if (i > 9) {
if (input[10] == search.charAt(j + 10)) {
foundat = j;
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
++j;
}
if (foundat == 0) {
rlname = 'No results found';
} else {
l = foundat;
while (search.charAt(l - 1) !== '>' or search.charAt(l - 2) !== 'L') {
--l;
}
m = foundat;
while (search.charAt(m + 1) !== '<' or search.charAt(m + 3) !== 'L' or search.charAt(m + 8) !== '>') {
++m;
}
n = l;
aresult = '';
while (n <= m) {
aresult += search.charAt(n);
++n;
}
selector = 0;
entering = 0;
rlname = '';
rlcode = '';
rlcreator = '';
rltime = '';
while (selector < aresult.length) {
++selector;
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'N') {
entering = 1;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'C') {
entering = 2;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'R') {
entering = 3;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'P') {
entering = 4;
}
if (aresult.charAt(selector) == '<') {
entering = 0;
}
if (entering == 1) {
rlname += aresult.charAt(selector);
}
if (entering == 2) {
rlcode += aresult.charAt(selector);
}
if (entering == 3) {
rlcreator += aresult.charAt(selector);
}
if (entering == 4) {
rltime += aresult.charAt(selector);
}
}
}
if (foundat == 0) {
srslts = 'No results found';
} else {
srslts = rlname + ' by ' + rlcreator;
}
}
on (keyPress '<Enter>') {
foundat = 0;
inputtotal = inputb.text.toUpperCase();
var input = Array();
i = 0;
while (i < inputtotal.length) {
input[i] = inputtotal.charAt(i);
++i;
}
i -= 1;
search = (main_xml.toString()).toUpperCase();
j = 0;
while (j < search.length) {
if (input[0] == search.charAt(j) and input[1] == search.charAt(j + 1) and input[2] == search.charAt(j + 2)) {
if (i > 2) {
if (input[3] == search.charAt(j + 3)) {
if (i > 3) {
if (input[4] == search.charAt(j + 4)) {
if (i > 4) {
if (input[5] == search.charAt(j + 5)) {
if (i > 5) {
if (input[6] == search.charAt(j + 6)) {
if (i > 6) {
if (input[7] == search.charAt(j + 7)) {
if (i > 7) {
if (input[8] == search.charAt(j + 8)) {
if (i > 8) {
if (input[9] == search.charAt(j + 9)) {
if (i > 9) {
if (input[10] == search.charAt(j + 10)) {
if (i > 10) {
if (input[11] == search.charAt(j + 11)) {
if (i > 11) {
if (input[12] == search.charAt(j + 12)) {
if (i > 12) {
if (input[13] == search.charAt(j + 13)) {
if (i > 13) {
if (input[14] == search.charAt(j + 14)) {
if (i > 14) {
if (input[15] == search.charAt(j + 15)) {
foundat = j;
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
} else {
foundat = j;
}
}
++j;
}
if (foundat == 0) {
rlname = 'No results found';
} else {
l = foundat;
while (search.charAt(l - 1) !== '>' or search.charAt(l - 2) !== 'L') {
--l;
}
m = foundat;
while (search.charAt(m + 1) !== '<' or search.charAt(m + 3) !== 'L' or search.charAt(m + 8) !== '>') {
++m;
}
n = l;
aresult = '';
while (n <= m) {
aresult += search.charAt(n);
++n;
}
selector = 0;
entering = 0;
rlname = '';
rlcode = '';
rlcreator = '';
rltime = '';
while (selector < aresult.length) {
++selector;
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'N') {
entering = 1;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'C') {
entering = 2;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'R') {
entering = 3;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'P') {
entering = 4;
}
if (aresult.charAt(selector) == '<') {
entering = 0;
}
if (entering == 1) {
rlname += aresult.charAt(selector);
}
if (entering == 2) {
rlcode += aresult.charAt(selector);
}
if (entering == 3) {
rlcreator += aresult.charAt(selector);
}
if (entering == 4) {
rltime += aresult.charAt(selector);
}
}
}
if (foundat == 0) {
srslts = 'No results found';
} else {
srslts = rlname + ' by ' + rlcreator;
}
}
}
movieClip 190 {
frame 5 {
stop();
}
}
movieClip 194 {
frame 6 {
stop();
}
}
movieClip 195 {
frame 1 {
stop();
}
}
instance of movieClip 195 {
onClipEvent (load) {
loaded = (_root.main_xml.getBytesLoaded() / _root.main_xml.getBytesTotal()) * 100;
loading = 'Loading (' + int(loaded) + '%)';
if (loaded > 99) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
loaded = (_root.main_xml.getBytesLoaded() / _root.main_xml.getBytesTotal()) * 100;
loading = 'Loading (' + int(loaded) + '%)';
if (loaded > 99) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 197 {
}
instance of movieClip 197 {
onClipEvent (rollOver) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if (_root.currentpage == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 197 {
onClipEvent (rollOver) {
this.useHandCursor = false;
}
onClipEvent (enterFrame) {
if (_root.nomore == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
button 199 {
on (release) {
foundat = 0;
inputtotal = inputb.text.toUpperCase();
search = (main_xml.toString()).toUpperCase();
inputwords = inputtotal.split(' ');
foundat = -1;
i = 0;
while (i <= inputwords.length) {
if (foundat == -1) {
foundat = search.indexOf(inputwords[i]);
}
++i;
}
if (foundat == -1) {
rlname = 'No results found';
} else {
l = foundat;
while (search.charAt(l - 1) !== '>' or search.charAt(l - 2) !== 'L') {
--l;
}
m = foundat;
while (search.charAt(m + 1) !== '<' or search.charAt(m + 3) !== 'L' or search.charAt(m + 8) !== '>') {
++m;
}
n = l;
aresult = '';
while (n <= m) {
aresult += search.charAt(n);
++n;
}
selector = 0;
entering = 0;
rlname = '';
rlcode = '';
rlcreator = '';
rltime = '';
while (selector < aresult.length) {
++selector;
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'N') {
entering = 1;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'C') {
entering = 2;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'R') {
entering = 3;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'P') {
entering = 4;
}
if (aresult.charAt(selector) == '<') {
entering = 0;
}
if (entering == 1) {
rlname += aresult.charAt(selector);
}
if (entering == 2) {
rlcode += aresult.charAt(selector);
}
if (entering == 3) {
rlcreator += aresult.charAt(selector);
}
if (entering == 4) {
rltime += aresult.charAt(selector);
}
}
}
if (foundat == -1) {
srslts = 'No results found';
} else {
srslts = rlname + ' by ' + rlcreator;
}
}
on (keyPress '<Enter>') {
foundat = 0;
inputtotal = inputb.text.toUpperCase();
search = (main_xml.toString()).toUpperCase();
inputwords = inputtotal.split(' ');
foundat = -1;
i = 0;
while (i <= inputwords.length) {
if (foundat == -1) {
foundat = search.indexOf(inputwords[i]);
}
++i;
}
if (foundat == -1) {
rlname = 'No results found';
} else {
l = foundat;
while (search.charAt(l - 1) !== '>' or search.charAt(l - 2) !== 'L') {
--l;
}
m = foundat;
while (search.charAt(m + 1) !== '<' or search.charAt(m + 3) !== 'L' or search.charAt(m + 8) !== '>') {
++m;
}
n = l;
aresult = '';
while (n <= m) {
aresult += search.charAt(n);
++n;
}
selector = 0;
entering = 0;
rlname = '';
rlcode = '';
rlcreator = '';
rltime = '';
while (selector < aresult.length) {
++selector;
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'N') {
entering = 1;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'L' and aresult.charAt(selector - 5) == 'C') {
entering = 2;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'R') {
entering = 3;
}
if (aresult.charAt(selector - 1) == '>' and aresult.charAt(selector - 6) == 'P') {
entering = 4;
}
if (aresult.charAt(selector) == '<') {
entering = 0;
}
if (entering == 1) {
rlname += aresult.charAt(selector);
}
if (entering == 2) {
rlcode += aresult.charAt(selector);
}
if (entering == 3) {
rlcreator += aresult.charAt(selector);
}
if (entering == 4) {
rltime += aresult.charAt(selector);
}
}
}
if (foundat == -1) {
srslts = 'No results found';
} else {
srslts = rlname + ' by ' + rlcreator;
}
}
}
frame 5 {
stop();
nomore = 0;
bot.tar = 465;
bot._visible = true;
clearall = 1;
coinsdisplay = 'Coins: ' + coins;
srslts = '';
var names = Array();
var time = Array();
var create = Array();
var code = Array();
main_xml = new XML();
main_xml.ignoreWhite = true;
main_xml.load('http://www.wixgames.co.uk/creator.xml');
main_xml.onLoad = function (success) {
currentpage = 1;
i = 0;
while (i < 5) {
names[i] = main_xml.firstChild.childNodes[i].childNodes[0];
code[i] = main_xml.firstChild.childNodes[i].childNodes[1];
create[i] = main_xml.firstChild.childNodes[i].childNodes[2];
time[i] = main_xml.firstChild.childNodes[i].childNodes[3];
++i;
}
name1 = names[0];
name2 = names[1];
name3 = names[2];
name4 = names[3];
name5 = names[4];
cre1 = create[0];
cre2 = create[1];
cre3 = create[2];
cre4 = create[3];
cre5 = create[4];
code1 = code[0];
code2 = code[1];
code3 = code[2];
code4 = code[3];
code5 = code[4];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
};
nextbutton.onRelease = function () {
if (nomore != 1) {
++currentpage;
}
i = currentpage * 5 - 5;
while (i < currentpage * 5) {
names[i] = main_xml.firstChild.childNodes[i].childNodes[0];
code[i] = main_xml.firstChild.childNodes[i].childNodes[1];
create[i] = main_xml.firstChild.childNodes[i].childNodes[2];
time[i] = main_xml.firstChild.childNodes[i].childNodes[3];
++i;
}
name1 = names[currentpage * 5 - 5];
name2 = names[currentpage * 5 - 4];
name3 = names[currentpage * 5 - 3];
name4 = names[currentpage * 5 - 2];
name5 = names[currentpage * 5 - 1];
cre1 = create[currentpage * 5 - 5];
cre2 = create[currentpage * 5 - 4];
cre3 = create[currentpage * 5 - 3];
cre4 = create[currentpage * 5 - 2];
cre5 = create[currentpage * 5 - 1];
code1 = code[currentpage * 5 - 5];
code2 = code[currentpage * 5 - 4];
code3 = code[currentpage * 5 - 3];
code4 = code[currentpage * 5 - 2];
code5 = code[currentpage * 5 - 1];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
nomore = 1;
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
};
prevbutton.onRelease = function () {
--currentpage;
if (currentpage < 1) {
currentpage = 1;
} else {
nomore = 0;
}
i = currentpage * 5 - 5;
while (i < currentpage * 5) {
names[i] = main_xml.firstChild.childNodes[i].childNodes[0];
code[i] = main_xml.firstChild.childNodes[i].childNodes[1];
create[i] = main_xml.firstChild.childNodes[i].childNodes[2];
time[i] = main_xml.firstChild.childNodes[i].childNodes[3];
++i;
}
name1 = names[currentpage * 5 - 5];
name2 = names[currentpage * 5 - 4];
name3 = names[currentpage * 5 - 3];
name4 = names[currentpage * 5 - 2];
name5 = names[currentpage * 5 - 1];
cre1 = create[currentpage * 5 - 5];
cre2 = create[currentpage * 5 - 4];
cre3 = create[currentpage * 5 - 3];
cre4 = create[currentpage * 5 - 2];
cre5 = create[currentpage * 5 - 1];
code1 = code[currentpage * 5 - 5];
code2 = code[currentpage * 5 - 4];
code3 = code[currentpage * 5 - 3];
code4 = code[currentpage * 5 - 2];
code5 = code[currentpage * 5 - 1];
if (name1 == undefined) {
name1 = '';
}
if (name2 == undefined) {
name2 = '';
}
if (name3 == undefined) {
name3 = '';
}
if (name4 == undefined) {
name4 = '';
}
if (name5 == undefined) {
name5 = '';
}
if (cre1 == undefined) {
cre1 = '';
}
if (cre2 == undefined) {
cre2 = '';
}
if (cre3 == undefined) {
cre3 = '';
}
if (cre4 == undefined) {
cre4 = '';
}
if (cre5 == undefined) {
cre5 = '';
}
};
}
frame 5 {
moveable = 1;
i = 1;
abouttomoveon = 0;
name1 = '...';
name2 = '...';
name3 = '...';
name4 = '...';
name5 = '...';
cre1 = '...';
cre2 = '...';
cre3 = '...';
cre4 = '...';
cre5 = '...';
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 5] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 5;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
trace(_root.lid);
_root.gotoAndStop(21);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 4] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 4;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(21);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 3] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 3;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(21);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 2] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 2;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(21);
}
}
instance of movieClip 98 {
onClipEvent (enterFrame) {
if (_root.names[_root.currentpage * 5 - 1] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = _root.currentpage * 5 - 1;
_root.Lname = _root.names[_root.lid];
_root.Lcreator = _root.create[_root.lid];
_root.Lcode = _root.code[_root.lid];
_root.Ltime = _root.time[_root.lid];
_root.gotoAndStop(21);
}
}
instance of movieClip 181 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.srslts == '' or _root.srslts == 'No results found') {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.lid = 1;
_root.Lname = _root.rlname;
_root.Lcreator = _root.rlcreator;
_root.Lcode = _root.rlcode;
trace(_root.Lcode);
_root.Ltime = _root.rltime;
_root.gotoAndStop(21);
}
}
instance of movieClip 195 {
onClipEvent (load) {
loaded = (_root.main_xml.getBytesLoaded() / _root.main_xml.getBytesTotal()) * 100;
loading = 'Loading (' + int(loaded) + '%)';
if (loaded > 99) {
gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
loaded = (_root.main_xml.getBytesLoaded() / _root.main_xml.getBytesTotal()) * 100;
loading = 'Loading (' + int(loaded) + '%)';
if (loaded > 99) {
gotoAndStop(2);
}
}
}
frame 6 {
bot.tar = 535;
bot._visible = true;
}
movieClip 223 {
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0xCE0000';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[2] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[2] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0x000000';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[1] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[1] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0x9A00CF';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[3] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[3] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0x0098CE';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[4] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[4] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0x009A00';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[5] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[5] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0xCD9A00';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[6] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[6] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0xCE6600';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[7] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[7] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 223 {
onClipEvent (load) {
colour = '0x9A6600';
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[8] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.playercolour == colour) {
gotoAndStop(2);
} else {
if (_root.colour[8] == 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 226 {
}
instance of movieClip 226 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[1] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[1] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0x000000';
}
}
movieClip 228 {
}
instance of movieClip 228 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[2] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[2] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0xCE0000';
}
}
movieClip 230 {
}
instance of movieClip 230 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[3] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[3] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0x9A00CF';
}
}
movieClip 232 {
}
instance of movieClip 232 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[4] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[4] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0x0098CE';
}
}
movieClip 234 {
}
instance of movieClip 234 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[5] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[5] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0x009A00';
}
}
movieClip 236 {
}
instance of movieClip 236 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[6] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[6] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0xCD9A00';
}
}
movieClip 238 {
}
instance of movieClip 238 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[7] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[7] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0xCE6600';
}
}
movieClip 240 {
}
instance of movieClip 240 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.colour[8] == 1) {
_root.playercolour = colour;
} else {
if (_root.coins >= 50) {
_root.coins = Number(_root.coins - 50);
_root.colour[8] = 1;
_root.playercolour = colour;
}
}
}
onClipEvent (load) {
colour = '0x9A6600';
}
}
movieClip 242 {
}
instance of movieClip 242 {
onClipEvent (enterFrame) {
_root.coinsdisplay = 'Coins: ' + _root.coins;
}
}
movieClip 245 {
}
instance of movieClip 245 {
onClipEvent (load) {
if (_root.locked1 == 1) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.locked1 == 1) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
movieClip 247 {
}
instance of movieClip 247 {
onClipEvent (load) {
if (_root.locked2 == 1) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.locked2 == 1) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
movieClip 249 {
}
instance of movieClip 249 {
onClipEvent (load) {
if (_root.locked3 == 1) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.locked3 == 1) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
movieClip 252 {
}
instance of movieClip 252 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.coins >= 50 and _root.locked1 == 1) {
_root.coins = Number(_root.coins - 50);
_root.locked1 = 0;
}
}
}
movieClip 254 {
}
instance of movieClip 254 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.coins >= 100 and _root.locked2 == 1) {
_root.coins = Number(_root.coins - 100);
_root.locked2 = 0;
}
}
}
movieClip 256 {
}
instance of movieClip 256 {
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut, dragOut) {
_alpha = 100;
}
onClipEvent (release) {
if (_root.coins >= 150 and _root.locked3 == 1) {
_root.coins = Number(_root.coins - 150);
_root.locked3 = 0;
}
}
}
button 258 {
on (release) {
_root.nextFrame();
}
}
movieClip 262 {
}
instance of movieClip 262 {
onClipEvent (rollOver) {
if (_root.link1 != 1) {
_root.hover1.gotoAndStop(2);
}
}
onClipEvent (rollOut, dragOut) {
if (_root.link1 != 1) {
_root.hover1.gotoAndStop(1);
}
}
onClipEvent (press) {
if (_root.link1 != 1) {
_root.coins = Number(_root.coins + 50);
}
_root.link1 = 1;
getURL('http://www.facebook.com/wixgames', '_blank');
}
onClipEvent (enterFrame) {
if (_root.link1 == 1) {
_root.hover1.gotoAndStop(3);
}
}
}
movieClip 265 {
frame 1 {
stop();
}
}
frame 8 {
moveable = 0;
Ltime = Ltime.toString();
trace(Ltime);
String.prototype.removeHTML = function () {
var v3 = '';
var v2;
v2 = this.indexOf('<');
while (v2 != -1) {
v3 += this.substr(0, v2);
this = this.substr(this.indexOf('>') + 1);
}
return v3 + this;
};
ASSetPropFlags(String.prototype, 'removeHTML', 1);
Ltime = Ltime.removeHTML();
Ltime = Number(Ltime);
Ltime = Math.round(Ltime * 100) / 100;
trace(Ltime);
cover.timetobeat = Ltime + ' seconds';
}
frame 8 {
clearall = 0;
var code = (Lcode.toString()).toLowerCase();
trace(code);
j = 0;
if (code.charAt(0) == '<') {
j = 10;
}
while (j < code.length) {
trace(j);
trace('doing it');
if (code.charAt(j) == 'b' and code.charAt(j + 1) !== 'm') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'box' + extra + newdepth;
newname2 = 'box' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 's') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'spike' + extra + newdepth;
newname2 = dir + 'spike' + extra;
trace(newname2);
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 't') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
if (dir == 'e') {
dir = 'ne';
} else {
if (dir == 'w') {
dir = 'nw';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'tri' + extra + newdepth;
newname2 = dir + 'tri' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
j -= 2;
}
if (code.charAt(j) == 'p') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'plat' + extra + newdepth;
newname2 = 'plat' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'e' and code.charAt(j - 1) !== 'n') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'enemy' + extra + newdepth;
newname2 = 'enemy' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'a') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'spring' + extra + newdepth;
newname2 = 'spring' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'r' and code.charAt(j + 1) != 's') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'razor' + extra + newdepth;
newname2 = 'razor' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'f') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'fall' + extra + newdepth;
newname2 = 'fall' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'm') {
if (code.charAt(j - 1) == 'b') {
thespeed = 0.5;
} else {
thespeed = 1;
}
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
rval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
rval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'mbox' + extra + newdepth;
if (thespeed == 0.5) {
newname2 = 'mbox' + extra;
} else {
newname2 = 'mubox' + extra;
}
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
_root[newname].startx = _root[newname]._x;
_root[newname].range = rval * 10;
_root[newname].dir = 2;
_root[newname].speed = thespeed;
--j;
}
++j;
}
}
movieClip 270 {
frame 1 {
stop();
}
}
instance expl of movieClip 270 {
onClipEvent (enterFrame) {
trace('y=' + _y + ', x=' + _x);
}
}
instance explr of movieClip 270 {
onClipEvent (enterFrame) {
_x = _root.expl._x;
_y = 500 - _root.expl._y;
gotoAndStop(_root.expl._currentframe);
}
}
movieClip 271 {
}
instance box of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'box') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'yu' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'box') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 273 {
}
instance uspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'ty' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'rt' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 275 {
}
instance utri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'er' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'we' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 277 {
}
instance mbox of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mbox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mbox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'l' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mbox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
movieClip 279 {
}
instance plat of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plat') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'qw' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plat') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'px' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'c' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'v' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 280 {
}
movieClip 281 {
}
movieClip 282 {
}
instance enemy of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemy') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemy') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ex' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxi of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'h' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'g' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'f' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'd' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 's' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxi of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'e' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance plati of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plati') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'a' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plati') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'y' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'u' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyi of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyi') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'i' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'eix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxv of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxv of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance platv of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'platv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'platv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyv of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyv') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'evx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance fall of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fall') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'j' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fall') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 284 {
}
instance mubox of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mubox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mubox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'k' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance falli of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'falli') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'q' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'falli') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxi of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'w' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance fallv of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fallv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fallv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxv of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'muboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
movieClip 285 {
frame 1 {
stop();
}
}
instance spring of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'spring') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'n' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'spring') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ax' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 286 {
}
instance razor of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razor') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'm' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razor') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springi of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'o' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'aix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razori of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razori') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'p' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razori') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springv of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'avx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razorv of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razorv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razorv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 288 {
}
instance netri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'x' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'z' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -180;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 't' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'r' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 290 {
}
movieClip 295 {
frame 1 {
fra = _root._currentframe;
onEnterFrame = function () {
if (_root._currentframe != fra and _root._currentframe != fra + 1 and _root._currentframe != fra - 1) {
this.removeMovieClip();
}
};
}
frame 1 {
stop();
}
frame 2 {
_root.reset = 0;
}
frame 10 {
gotoAndStop(1);
}
frame 17 {
_root.nextFrame();
gotoAndStop(1);
}
}
instance resetter of movieClip 295 {
onClipEvent (enterFrame) {
if (_root.reset == 1) {
play();
}
}
}
movieClip 299 {
}
movieClip 301 {
instance of movieClip 299 {
onClipEvent (keyPress '<Space>') {
_root.nextFrame();
_parent.removeMovieClip();
}
}
}
instance cover of movieClip 301 {
onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() - 2);
}
}
}
movieClip 303 {
frame 1 {
gotoAndPlay(2);
}
frame 7 {
stop();
}
}
movieClip 304 {
}
instance of movieClip 304 {
onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() + 1);
}
}
}
frame 9 {
clearall = 0;
tdisplay.swapDepths(_root.getNextHighestDepth());
caption = Lname + ' by ' + Lcreator;
caption2 = caption;
moveable = 0;
ltimer = Ltime;
tdisplay.ltimer = ltimer;
stop();
}
movieClip 307 {
}
instance of movieClip 307 {
onClipEvent (load) {
caption = _root.caption;
caption2 = _root.caption2;
time = 0;
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
++time;
if (time == 5) {
this.swapDepths(_root.getNextHighestDepth());
}
if (_root._currentframe != frame) {
this.removeMovieClip();
}
}
}
movieClip 320 {
frame 11 {
gotoAndPlay(3);
}
}
movieClip 325 {
frame 3 {
stop();
}
}
movieClip 326 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance guy2 of movieClip 326 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
_rotation = -_root.guy._rotation;
_x = _root.guy._x;
_y = 500 - _root.guy._y;
gotoAndStop(_root.guy._currentframe);
}
}
instance guy of movieClip 326 {
onClipEvent (load) {
timer = 0;
startx = _x;
starty = _y;
_root.abouttomoveon = 0;
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
timer += 0.03333333333333333;
_root.timer = Math.round(timer * 100) / 100;
_root.tdisplay.timer = _root.timer;
if (Math.round(_root.tdisplay.timer * 1) / 1 == _root.tdisplay.timer * 1 / 1) {
_root.tdisplay.timer += '.0';
}
if (Math.round(_root.tdisplay.timer * 10) / 10 == _root.tdisplay.timer * 10 / 10) {
_root.tdisplay.timer += '0';
}
_root.timer = _root.tdisplay.timer;
if (_root.reset == 1) {
timer = 0;
_root.deaths = Number(_root.deaths + 1);
_x = startx;
_y = starty;
_rotation = 0;
gotoAndStop(1);
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
}
if (_x > 750) {
if (_root.resetter._currentframe < 11) {
_root.resetter.swapDepths(_root.getNextHighestDepth());
_root.resetter.gotoAndPlay(11);
}
}
if (_root.jumpable == 1) {
_rotation = 0;
} else {
_rotation = xspeed * 5;
}
targetxspeed = 0;
if (Key.isDown(39) or Key.isDown(68)) {
targetxspeed = 4;
}
if (Key.isDown(37) or Key.isDown(65)) {
targetxspeed = -4;
}
if (Key.isDown(40) and _root.jumpable == 1) {
if (xspeed >= 0) {
gotoAndStop(7);
} else {
gotoAndStop(8);
}
targetxspeed = 0;
} else {
if (xspeed >= 0) {
if (_root.jumpable < 1) {
gotoAndStop(5);
} else {
if (xspeed > 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
} else {
if (xspeed < 0) {
if (_root.jumpable < 1) {
gotoAndStop(6);
} else {
if (xspeed < -1) {
gotoAndStop(4);
} else {
gotoAndStop(2);
}
}
}
}
}
if (Key.isDown(38) or Key.isDown(32) or Key.isDown(87)) {
if (_root.jumpable == 1) {
yspeed = -10;
}
}
yspeed += 1;
if (yspeed > 7) {
yspeed = 7;
}
_y = _y + yspeed;
xspeed += (targetxspeed - xspeed) / 4;
if (xspeed < 1 and xspeed > 0) {
xspeed = 1.0e-026;
}
if (xspeed > -1 and xspeed < 0) {
xspeed = -1.0e-026;
}
_x = _x + xspeed;
_root.jumpable = 0;
if (_y > 230) {
_y = 230;
yspeed = 0;
_root.jumpable = 1;
}
}
}
button 329 {
on (release) {
lid = Number(lid + 1);
Lname = main_xml.firstChild.childNodes[lid].childNodes[0];
Lcode = main_xml.firstChild.childNodes[lid].childNodes[1];
Lcreator = main_xml.firstChild.childNodes[lid].childNodes[2];
Ltime = main_xml.firstChild.childNodes[lid].childNodes[3];
if (Lname == undefined) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(4);
} else {
clearall = 1;
gobackone = 1;
}
}
}
button 332 {
on (release) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(4);
}
}
movieClip 337 {
frame 1 {
stop();
}
}
instance tdisplay of movieClip 337 {
onClipEvent (enterFrame) {
if (timer < _root.ltimer) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
if (_root._currentframe !== fram) {
this.removeMovieClip();
}
}
onClipEvent (load) {
fram = _root._currentframe;
}
}
movieClip 339 {
frame 7 {
stop();
}
}
instance of movieClip 339 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
movieClip 341 {
}
instance of movieClip 341 {
onClipEvent (keyPress 'r') {
_root.reset = 1;
}
onClipEvent (keyPress 'R') {
_root.reset = 1;
}
onClipEvent (enterFrame) {
if (_root.gobackone == 1) {
_root.gobackone = 0;
_root.prevFrame();
}
}
}
frame 10 {
_root.coins = Number(_root.coins + 3);
if (_root.timer <= _root.ltimer) {
_root.coins = Number(_root.coins + 10);
}
timeachieved = timer + ' seconds';
timetobeat = ltimer + ' seconds';
coinsdisplay = 'Coins: ' + coins;
clearall = 1;
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(mc);
++j;
}
i = 1;
}
button 350 {
on (release) {
gotoAndStop(8);
}
on (keyPress 'r') {
gotoAndStop(8);
}
on (keyPress 'R') {
gotoAndStop(8);
}
}
button 353 {
on (release) {
lid = Number(lid + 1);
Lname = main_xml.firstChild.childNodes[lid].childNodes[0];
Lcode = main_xml.firstChild.childNodes[lid].childNodes[1];
Lcreator = main_xml.firstChild.childNodes[lid].childNodes[2];
Ltime = main_xml.firstChild.childNodes[lid].childNodes[3];
if (Lname == undefined) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(4);
} else {
gotoAndStop(8);
}
}
on (keyPress '<Space>') {
lid = Number(lid + 1);
Lname = main_xml.firstChild.childNodes[lid].childNodes[0];
Lcode = main_xml.firstChild.childNodes[lid].childNodes[1];
Lcreator = main_xml.firstChild.childNodes[lid].childNodes[2];
Ltime = main_xml.firstChild.childNodes[lid].childNodes[3];
if (Lname == undefined) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(4);
} else {
gotoAndStop(8);
}
}
}
movieClip 356 {
frame 15 {
stop();
}
}
movieClip 359 {
frame 40 {
stop();
}
}
instance of movieClip 359 {
onClipEvent (load) {
if (_root.timer <= _root.ltimer) {
play();
_root.coinsdisplay = 'Coins: ' + _root.coins;
} else {
stop();
}
}
}
button 362 {
on (release) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(4);
}
}
movieClip 364 {
}
frame 11 {
gorightback = 0;
moveable = 0;
Ltime = Ltime.toString();
trace(Ltime);
String.prototype.removeHTML = function () {
var v3 = '';
var v2;
v2 = this.indexOf('<');
while (v2 != -1) {
v3 += this.substr(0, v2);
this = this.substr(this.indexOf('>') + 1);
}
return v3 + this;
};
ASSetPropFlags(String.prototype, 'removeHTML', 1);
Ltime = Ltime.removeHTML();
Ltime = Number(Ltime);
Ltime = Math.round(Ltime * 100) / 100;
trace(Ltime);
cover.timetobeat = Ltime + ' seconds';
}
frame 11 {
clearall = 0;
var code = (Lcode.toString()).toLowerCase();
trace(code);
j = 0;
if (code.charAt(0) == '<') {
j = 10;
}
while (j < code.length) {
trace(j);
trace('doing it');
if (code.charAt(j) == 'b' and code.charAt(j + 1) !== 'm') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'box' + extra + newdepth;
newname2 = 'box' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 's') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'spike' + extra + newdepth;
newname2 = dir + 'spike' + extra;
trace(newname2);
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 't') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
if (dir == 'e') {
dir = 'ne';
} else {
if (dir == 'w') {
dir = 'nw';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'tri' + extra + newdepth;
newname2 = dir + 'tri' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
j -= 2;
}
if (code.charAt(j) == 'p') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'plat' + extra + newdepth;
newname2 = 'plat' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'e' and code.charAt(j - 1) !== 'n') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'enemy' + extra + newdepth;
newname2 = 'enemy' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'a') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'spring' + extra + newdepth;
newname2 = 'spring' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'r' and code.charAt(j + 1) != 's') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'razor' + extra + newdepth;
newname2 = 'razor' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'f') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'fall' + extra + newdepth;
newname2 = 'fall' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'm') {
if (code.charAt(j - 1) == 'b') {
thespeed = 0.5;
} else {
thespeed = 1;
}
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
rval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
rval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'mbox' + extra + newdepth;
if (thespeed == 0.5) {
newname2 = 'mbox' + extra;
} else {
newname2 = 'mubox' + extra;
}
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
_root[newname].startx = _root[newname]._x;
_root[newname].range = rval * 10;
_root[newname].dir = 2;
_root[newname].speed = thespeed;
--j;
}
++j;
}
}
instance expl of movieClip 270 {
onClipEvent (enterFrame) {
trace('y=' + _y + ', x=' + _x);
}
}
instance explr of movieClip 270 {
onClipEvent (enterFrame) {
_x = _root.expl._x;
_y = 500 - _root.expl._y;
gotoAndStop(_root.expl._currentframe);
}
}
instance box of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'box') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'yu' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'box') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'ty' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'rt' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'er' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'we' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mbox of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mbox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mbox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'l' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mbox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance plat of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plat') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'qw' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plat') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'px' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'c' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'v' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemy of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemy') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemy') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ex' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxi of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'h' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'g' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'f' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'd' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 's' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxi of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'e' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance plati of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plati') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'a' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plati') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'y' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'u' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyi of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyi') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'i' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'eix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxv of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxv of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance platv of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'platv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'platv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyv of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyv') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'evx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance fall of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fall') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'j' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fall') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mubox of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mubox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mubox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'k' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance falli of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'falli') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'q' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'falli') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxi of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'w' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance fallv of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fallv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fallv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxv of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'muboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance spring of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'spring') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'n' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'spring') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ax' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razor of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razor') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'm' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razor') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springi of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'o' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'aix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razori of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razori') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'p' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razori') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springv of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'avx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razorv of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razorv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razorv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'x' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'z' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -180;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 't' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'r' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance resetter of movieClip 295 {
onClipEvent (enterFrame) {
if (_root.reset == 1) {
play();
}
}
}
instance cover of movieClip 301 {
onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() - 2);
}
}
}
instance of movieClip 304 {
onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() + 1);
}
}
}
frame 12 {
clearall = 0;
tdisplay.swapDepths(_root.getNextHighestDepth());
caption = Lname + ' by ' + Lcreator;
caption2 = caption;
moveable = 0;
ltimer = Ltime;
tdisplay.ltimer = ltimer;
stop();
}
instance guy2 of movieClip 326 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
_rotation = -_root.guy._rotation;
_x = _root.guy._x;
_y = 500 - _root.guy._y;
gotoAndStop(_root.guy._currentframe);
}
}
instance guy of movieClip 326 {
onClipEvent (load) {
timer = 0;
startx = _x;
starty = _y;
_root.abouttomoveon = 0;
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
timer += 0.03333333333333333;
_root.timer = Math.round(timer * 100) / 100;
_root.tdisplay.timer = _root.timer;
if (Math.round(_root.tdisplay.timer * 1) / 1 == _root.tdisplay.timer * 1 / 1) {
_root.tdisplay.timer += '.0';
}
if (Math.round(_root.tdisplay.timer * 10) / 10 == _root.tdisplay.timer * 10 / 10) {
_root.tdisplay.timer += '0';
}
_root.timer = _root.tdisplay.timer;
if (_root.reset == 1) {
timer = 0;
_root.deaths = Number(_root.deaths + 1);
_x = startx;
_y = starty;
_rotation = 0;
gotoAndStop(1);
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
}
if (_x > 750) {
if (_root.resetter._currentframe < 11) {
_root.resetter.swapDepths(_root.getNextHighestDepth());
_root.resetter.gotoAndPlay(11);
}
}
if (_root.jumpable == 1) {
_rotation = 0;
} else {
_rotation = xspeed * 5;
}
targetxspeed = 0;
if (Key.isDown(39) or Key.isDown(68)) {
targetxspeed = 4;
}
if (Key.isDown(37) or Key.isDown(65)) {
targetxspeed = -4;
}
if (Key.isDown(40) and _root.jumpable == 1) {
if (xspeed >= 0) {
gotoAndStop(7);
} else {
gotoAndStop(8);
}
targetxspeed = 0;
} else {
if (xspeed >= 0) {
if (_root.jumpable < 1) {
gotoAndStop(5);
} else {
if (xspeed > 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
} else {
if (xspeed < 0) {
if (_root.jumpable < 1) {
gotoAndStop(6);
} else {
if (xspeed < -1) {
gotoAndStop(4);
} else {
gotoAndStop(2);
}
}
}
}
}
if (Key.isDown(38) or Key.isDown(32) or Key.isDown(87)) {
if (_root.jumpable == 1) {
yspeed = -10;
}
}
yspeed += 1;
if (yspeed > 7) {
yspeed = 7;
}
_y = _y + yspeed;
xspeed += (targetxspeed - xspeed) / 4;
if (xspeed < 1 and xspeed > 0) {
xspeed = 1.0e-026;
}
if (xspeed > -1 and xspeed < 0) {
xspeed = -1.0e-026;
}
_x = _x + xspeed;
_root.jumpable = 0;
if (_y > 230) {
_y = 230;
yspeed = 0;
_root.jumpable = 1;
}
}
}
button 365 {
on (release) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(3);
}
}
instance tdisplay of movieClip 337 {
onClipEvent (enterFrame) {
if (timer < _root.ltimer) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
if (_root._currentframe !== fram) {
this.removeMovieClip();
}
}
onClipEvent (load) {
fram = _root._currentframe;
}
}
instance of movieClip 339 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
instance of movieClip 341 {
onClipEvent (keyPress 'r') {
_root.reset = 1;
}
onClipEvent (keyPress 'R') {
_root.reset = 1;
}
}
frame 13 {
stop();
abouttomoveon = 0;
gorightback = 1;
if (justcomeback === 1) {
justcomeback = 0;
} else {
if (_root.timer <= _root.ltimer) {
_root.coins = Number(_root.coins + 10);
}
_root.coins = Number(_root.coins + 3);
timeachieved = timer + ' seconds';
timetobeat = ltimer + ' seconds';
coinsdisplay = 'Coins: ' + coins;
clearall = 1;
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(mc);
++j;
}
i = 1;
}
}
button 372 {
on (release) {
gotoAndStop(11);
}
on (keyPress 'r') {
gotoAndStop(11);
}
on (keyPress 'R') {
gotoAndStop(11);
}
}
button 373 {
on (release) {
lid2 = Number(lid2 + 1);
Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[0];
Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[1];
Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[2];
Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[3];
if (Lname == undefined) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(25);
} else {
gotoAndStop(11);
}
}
on (keyPress '<Space>') {
lid2 = Number(lid2 + 1);
Lname = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[0];
Lcode = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[1];
Lcreator = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[2];
Ltime = _root.main_xml2.firstChild.childNodes[_root.lid].childNodes[2].childNodes[_root.lid2].childNodes[3];
if (Lname == undefined) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(25);
} else {
gotoAndStop(11);
}
}
}
instance of movieClip 359 {
onClipEvent (load) {
if (_root.timer <= _root.ltimer) {
play();
_root.coinsdisplay = 'Coins: ' + _root.coins;
} else {
stop();
}
}
}
button 374 {
on (release) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(3);
}
}
frame 14 {
if (gorightback == 1) {
gorightback = 0;
justcomeback = 1;
gotoAndStop(13);
} else {
onEnterFrame = function () {
toolbox2._alpha -= 20;
if (toolbox2._alpha <= 0) {
toolbox2.removeMovieClip();
delete onEnterFrame;
}
};
toolbox.swapDepths(_root.getNextHighestDepth());
moveable = 1;
if (reload == 1) {
reload = 0;
var code = _root.finalcode;
i = 1;
j = 0;
if (code.charAt(0) == '<') {
j = 10;
}
while (j < code.length) {
trace(j);
trace('doing it');
if (code.charAt(j) == 'b' and code.charAt(j + 1) !== 'm') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'box' + extra + newdepth;
newname2 = 'box' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 's') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'spike' + extra + newdepth;
newname2 = dir + 'spike' + extra;
trace(newname2);
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 't') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
if (dir == 'e') {
dir = 'ne';
} else {
if (dir == 'w') {
dir = 'nw';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'tri' + extra + newdepth;
newname2 = dir + 'tri' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
j -= 2;
}
if (code.charAt(j) == 'p') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'plat' + extra + newdepth;
newname2 = 'plat' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'e' and code.charAt(j - 1) !== 'n') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'enemy' + extra + newdepth;
newname2 = 'enemy' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'a') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'spring' + extra + newdepth;
newname2 = 'spring' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'r' and code.charAt(j + 1) != 's') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'razor' + extra + newdepth;
newname2 = 'razor' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'f') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'fall' + extra + newdepth;
newname2 = 'fall' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'm') {
if (code.charAt(j - 1) == 'b') {
thespeed = 0.5;
} else {
thespeed = 1;
}
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
rval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
rval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'mbox' + extra + newdepth;
if (thespeed == 0.5) {
newname2 = 'mbox' + extra;
} else {
newname2 = 'mubox' + extra;
}
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
_root[newname].startx = _root[newname]._x;
_root[newname].range = rval * 10;
_root[newname].dir = 2;
_root[newname].speed = thespeed;
--j;
}
++j;
}
}
finalcode = '';
resetmovers = 0;
}
}
instance box of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'box') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'yu' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'box') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'ty' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'rt' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'er' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'we' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mbox of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mbox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mbox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'l' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mbox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance plat of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plat') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'qw' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plat') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'px' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'c' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'v' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemy of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemy') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemy') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ex' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxi of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'h' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'g' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'f' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'd' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 's' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxi of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'e' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance plati of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plati') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'a' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plati') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'y' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'u' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyi of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'i' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'eix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 379 {
frame 1 {
stop();
}
}
instance expl of movieClip 379 {
onClipEvent (enterFrame) {
trace('y=' + _y + ', x=' + _x);
}
}
instance explr of movieClip 379 {
onClipEvent (enterFrame) {
_x = _root.expl._x;
_y = 500 - _root.expl._y;
gotoAndStop(_root.expl._currentframe);
}
}
instance boxv of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxv of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance platv of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'platv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'platv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyv of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'evx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance fall of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fall') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'j' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fall') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mubox of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mubox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mubox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'k' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance falli of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'falli') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'q' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'falli') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxi of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'w' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance fallv of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fallv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fallv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxv of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'muboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance spring of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'spring') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'n' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'spring') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ax' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razor of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razor') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'm' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razor') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springi of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'o' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'aix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razori of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razori') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'p' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razori') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springv of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'avx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razorv of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razorv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razorv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'x' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'z' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -180;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 't' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'r' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
movieClip 381 {
}
instance of movieClip 381 {
onClipEvent (enterFrame) {
_root.i = Math.round(_root.i);
_root.deletelast = 0;
if (!Key.isDown(8)) {
zup = 1;
}
if (zup == 1) {
if (Key.isDown(8)) {
zup = 0;
_root.deletelast = 1;
}
}
}
}
movieClip 385 {
frame 3 {
stop();
}
}
movieClip 386 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance guy of movieClip 386 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
}
movieClip 387 {
}
movieClip 389 {
}
instance of movieClip 389 {
onClipEvent (load) {
if (_root.grid == 1) {
_visible = true;
} else {
_visible = false;
_root.grid = 0;
}
timer = 0;
}
onClipEvent (enterFrame) {
if (_root.grid == 1) {
_visible = true;
} else {
_visible = false;
}
--timer;
if (Key.isDown(71) and timer < 0) {
_root.grid = 1 - _root.grid;
timer = 10;
}
}
}
movieClip 392 {
}
movieClip 393 {
}
movieClip 397 {
}
button 398 {
on (release) {
_root.confirm.gotoAndStop(2);
_root.confirm.swapDepths(_root.getNextHighestDepth());
}
}
button 400 {
on (release) {
_root.confirm.gotoAndStop(3);
_root.confirm.swapDepths(_root.getNextHighestDepth());
}
}
button 402 {
on (release) {
_root.nextFrame();
}
}
button 403 {
on (release) {
_root.ibu = _root.i;
_root.director.tar = 16;
_root.director.play();
_root.director.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 412 {
frame 1 {
stop();
}
frame 5 {
stop();
}
}
movieClip 413 {
}
movieClip 414 {
frame 1 {
}
frame 1 {
stop();
}
instance of movieClip 392 {
onClipEvent (press) {
_parent.startDrag();
}
onClipEvent (release, releaseOutside) {
_parent.stopDrag();
}
}
instance of movieClip 393 {
onClipEvent (load) {
gotoAndStop(3);
}
onClipEvent (press, keyPress 'n') {
gotoAndStop(3);
_parent.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_parent._currentframe == 1) {
gotoAndStop(3);
changed = 1;
} else {
if (changed) {
gotoAndStop(1);
changed = 0;
}
}
}
}
instance of movieClip 393 {
onClipEvent (load) {
stop();
}
onClipEvent (press, keyPress 'i') {
gotoAndStop(3);
_parent.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_parent._currentframe == 2) {
gotoAndStop(3);
changed = 1;
} else {
if (changed) {
gotoAndStop(1);
changed = 0;
}
}
}
}
instance of movieClip 393 {
onClipEvent (load) {
stop();
}
onClipEvent (press, keyPress 'v') {
gotoAndStop(3);
_parent.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_parent._currentframe == 3) {
gotoAndStop(3);
changed = 1;
} else {
if (changed) {
gotoAndStop(1);
changed = 0;
}
}
}
}
instance of movieClip 279 {
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'box' + newdepth;
_root.box.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'b') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'box' + newdepth;
_root.box.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Block (B)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'uspike' + newdepth;
_root.uspike.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'w') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'uspike' + newdepth;
_root.uspike.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Up spike (W)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dspike' + newdepth;
_root.dspike.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 's') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dspike' + newdepth;
_root.dspike.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Down spike (S)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'utri' + newdepth;
_root.utri.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'j') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'utri' + newdepth;
_root.utri.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'SE triangle (J)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dtri' + newdepth;
_root.dtri.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'h') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dtri' + newdepth;
_root.dtri.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'SW triangle (H)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'enemy' + newdepth;
_root.enemy.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
_root[newname].startx = _root[newname]._x;
}
}
onClipEvent (keyPress 'e') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'enemy' + newdepth;
_root.enemy.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Enemy (E)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'plat' + newdepth;
_root.plat.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'p') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'plat' + newdepth;
_root.plat.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Platform (P)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'lspike' + newdepth;
_root.lspike.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'a') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'lspike' + newdepth;
_root.lspike.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Left spike (A)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'rspike' + newdepth;
_root.rspike.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'd') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'rspike' + newdepth;
_root.rspike.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Right spike (D)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'netri' + newdepth;
_root.netri.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'u') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'netri' + newdepth;
_root.netri.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'NE triangle (U)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'nwtri' + newdepth;
_root.nwtri.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'y') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'nwtri' + newdepth;
_root.nwtri.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'NW triangle (Y)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mbox' + newdepth;
_root.mbox.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 2;
plantsoon = 0;
}
}
onClipEvent (keyPress 'm') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mbox' + newdepth;
_root.mbox.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Moving block (M)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'spring' + newdepth;
_root.spring.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 't') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'spring' + newdepth;
_root.spring.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Spring (T)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'fall' + newdepth;
_root.fall.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'c') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'fall' + newdepth;
_root.fall.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Crumbly block (C)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mubox' + newdepth;
_root.mubox.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 2;
plantsoon = 0;
}
}
onClipEvent (keyPress 'f') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mubox' + newdepth;
_root.mubox.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Fast moving block (F)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'razor' + newdepth;
_root.razor.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'o') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'razor' + newdepth;
_root.razor.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Buzzsaw (O)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
frame 2 {
stop();
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'springi' + newdepth;
_root.springi.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 't') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'springi' + newdepth;
_root.springi.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Spring (T)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'falli' + newdepth;
_root.falli.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'c') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'falli' + newdepth;
_root.falli.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Crumbly block (C)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'muboxi' + newdepth;
_root.muboxi.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 2;
plantsoon = 0;
}
}
onClipEvent (keyPress 'f') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'muboxi' + newdepth;
_root.muboxi.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Fast moving block (F)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'razori' + newdepth;
_root.razori.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'o') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'razori' + newdepth;
_root.razori.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Buzzsaw (O)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'boxi' + newdepth;
_root.boxi.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'b') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'boxi' + newdepth;
_root.boxi.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Block (B)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'uspikei' + newdepth;
_root.uspikei.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'w') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'uspikei' + newdepth;
_root.uspikei.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Up spike (W)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dspikei' + newdepth;
_root.dspikei.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 's') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dspikei' + newdepth;
_root.dspikei.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Down spike (S)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'utrii' + newdepth;
_root.utrii.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'j') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'utrii' + newdepth;
_root.utrii.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'SE triangle (J)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dtrii' + newdepth;
_root.dtrii.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'h') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dtrii' + newdepth;
_root.dtrii.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'SW triangle (H)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'enemyi' + newdepth;
_root.enemyi.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
_root[newname].startx = _root[newname]._x;
}
}
onClipEvent (keyPress 'e') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'enemyi' + newdepth;
_root.enemyi.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Enemy (E)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'plati' + newdepth;
_root.plati.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'p') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'plati' + newdepth;
_root.plati.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Platform (P)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'lspikei' + newdepth;
_root.lspikei.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'a') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'lspikei' + newdepth;
_root.lspikei.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Left spike (A)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'rspikei' + newdepth;
_root.rspikei.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'd') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'rspikei' + newdepth;
_root.rspikei.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Right spike (D)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'netrii' + newdepth;
_root.netrii.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'u') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'netrii' + newdepth;
_root.netrii.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'NE triangle (U)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'nwtrii' + newdepth;
_root.nwtrii.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'y') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'nwtrii' + newdepth;
_root.nwtrii.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'NW triangle (Y)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mboxi' + newdepth;
_root.mboxi.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 2;
plantsoon = 0;
}
}
onClipEvent (keyPress 'm') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mboxi' + newdepth;
_root.mboxi.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Moving block (M)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
frame 3 {
stop();
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'springv' + newdepth;
_root.springv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 't') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'springv' + newdepth;
_root.springv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Spring (T)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'fallv' + newdepth;
_root.fallv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'c') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'fallv' + newdepth;
_root.fallv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Crumbly block (C)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'muboxv' + newdepth;
_root.muboxv.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 2;
plantsoon = 0;
}
}
onClipEvent (keyPress 'f') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'muboxv' + newdepth;
_root.muboxv.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Fast moving block (F)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'razorv' + newdepth;
_root.razorv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'o') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'razorv' + newdepth;
_root.razorv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Buzzsaw (O)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'boxv' + newdepth;
_root.boxv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'b') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'boxv' + newdepth;
_root.boxv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Block (B)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'uspikev' + newdepth;
_root.uspikev.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'w') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'uspikev' + newdepth;
_root.uspikev.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Up spike (W)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dspikev' + newdepth;
_root.dspikev.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 's') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dspikev' + newdepth;
_root.dspikev.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Down spike (S)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'utriv' + newdepth;
_root.utriv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'j') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'utriv' + newdepth;
_root.utriv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'SE triangle (J)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dtriv' + newdepth;
_root.dtriv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'h') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'dtriv' + newdepth;
_root.dtriv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'SW triangle (H)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'enemyv' + newdepth;
_root.enemyv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
_root[newname].startx = _root[newname]._x;
}
}
onClipEvent (keyPress 'e') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'enemyv' + newdepth;
_root.enemyv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Enemy (E)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'platv' + newdepth;
_root.platv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'p') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'platv' + newdepth;
_root.platv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Platform (P)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'lspikev' + newdepth;
_root.lspikev.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'a') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'lspikev' + newdepth;
_root.lspikev.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Left spike (A)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'rspikev' + newdepth;
_root.rspikev.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'd') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'rspikev' + newdepth;
_root.rspikev.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Right spike (D)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'netriv' + newdepth;
_root.netriv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'u') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'netriv' + newdepth;
_root.netriv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'NE triangle (U)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'nwtriv' + newdepth;
_root.nwtriv.duplicateMovieClip(newname, newdepth);
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 1;
plantsoon = 0;
}
}
onClipEvent (keyPress 'y') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'nwtriv' + newdepth;
_root.nwtriv.duplicateMovieClip(newname, newdepth);
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'NW triangle (Y)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
instance of movieClip 412 {
onClipEvent (dragOut) {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mboxv' + newdepth;
_root.mboxv.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
}
}
onClipEvent (enterFrame) {
if (plantsoon == 1) {
_root[newname].planted = 2;
plantsoon = 0;
}
}
onClipEvent (keyPress 'm') {
if (_root.i < 200) {
newdepth = _root.getNextHighestDepth();
newname = 'mboxv' + newdepth;
_root.mboxv.duplicateMovieClip(newname, newdepth);
_root[newname].planted = 0;
plantsoon = 1;
}
}
onClipEvent (rollOver) {
gotoAndPlay(2);
_root.keycodes = 'Moving block (M)';
}
onClipEvent (releaseOutside, rollOut) {
gotoAndPlay(6);
_root.keycodes = '';
}
}
}
instance toolbox of movieClip 414 {
onClipEvent (load) {
_alpha = 0;
vis = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100 and vis == 0) {
_alpha = _alpha + 20;
} else {
vis = 1;
}
_root.piecesleft = 'Pieces used ' + (int(_root.i) - 1) + '/199';
if (delay == 1) {
delay = 0;
_root.clearall = 0;
}
if (_root.clearall == 1) {
delay = 1;
}
if (_y > 535) {
_y = 535;
}
if (_y < 55) {
_y = 55;
}
if (_x > 985) {
_x = 985;
}
if (_x < -235) {
_x = -235;
}
}
}
instance guy2 of movieClip 386 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
_rotation = -_root.guy._rotation;
_x = _root.guy._x;
_y = 500 - _root.guy._y;
gotoAndStop(_root.guy._currentframe);
}
}
movieClip 416 {
}
instance of movieClip 416 {
onClipEvent (enterFrame) {
if (Key.isDown(16) or Key.isDown(18) or Key.isDown(17)) {
if (justturned == 1) {
justturned = 0;
this.swapDepths(_root.getNextHighestDepth());
}
_visible = true;
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
_root.deleting = 1;
} else {
justturned = 1;
_visible = false;
Mouse.show();
_root.deleting = 0;
}
}
}
movieClip 420 {
frame 5 {
stop();
}
}
button 422 {
on (release) {
_root.clearall = 1;
_root.finalcode = '';
_root.i = 1;
prevFrame();
}
}
button 424 {
on (release) {
gotoAndStop(4);
}
}
button 427 {
on (release) {
_root.moveable = 0;
removeMovieClip(_root.toolbox);
_root.gotoAndStop(3);
_root.confirm.removeMovieClip();
}
}
movieClip 429 {
frame 5 {
_parent.gotoAndStop(1);
}
}
movieClip 430 {
frame 1 {
stop();
}
instance of movieClip 420 {
onClipEvent (rollOver) {
this.useHandCursor = false;
}
}
}
movieClip 433 {
frame 1 {
onEnterFrame = function () {
if (_root.keycodes != '') {
keycodes = _root.keycodes;
}
};
}
}
movieClip 434 {
frame 4 {
stop();
}
frame 8 {
stop();
}
}
instance of movieClip 434 {
onClipEvent (load) {
_root.keycodes = '';
}
onClipEvent (enterFrame) {
if (_root.keycodes == '') {
if (_currentframe < 5) {
gotoAndPlay(5);
}
} else {
if (_currentframe > 4) {
gotoAndPlay(1);
}
}
}
}
movieClip 438 {
frame 1 {
stop();
}
frame 5 {
_root.gotoAndStop(tar);
}
}
instance of movieClip 304 {
onClipEvent (load) {
if (_root.reload2 == 1) {
_visible = true;
} else {
_visible = false;
}
_root.reload2 = 0;
}
}
frame 15 {
clearall = 0;
hideall = 0;
onEnterFrame = function () {
toolbox._alpha -= 20;
if (toolbox._alpha <= 0) {
toolbox.removeMovieClip();
delete onEnterFrame;
}
};
toolbox2.swapDepths(_root.getNextHighestDepth());
moveable = 0;
}
movieClip 440 {
}
button 441 {
on (release) {
_root.prevFrame();
}
}
movieClip 443 {
instance of movieClip 440 {
onClipEvent (press) {
_parent.startDrag();
}
onClipEvent (release, releaseOutside) {
_parent.stopDrag();
}
}
}
instance toolbox2 of movieClip 443 {
onClipEvent (load) {
_alpha = 0;
vis = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100 and vis == 0) {
_alpha = _alpha + 20;
} else {
vis = 1;
}
}
}
instance guy2 of movieClip 386 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
_rotation = -_root.guy._rotation;
_x = _root.guy._x;
_y = 500 - _root.guy._y;
gotoAndStop(_root.guy._currentframe);
}
}
movieClip 446 {
frame 1 {
stop();
}
frame 2 {
_root.reset = 0;
}
}
instance resetter of movieClip 446 {
onClipEvent (enterFrame) {
if (_root.reset == 1) {
play();
}
}
}
instance guy of movieClip 386 {
onClipEvent (load) {
startx = _x;
starty = _y;
_root.abouttomoveon = 0;
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
if (_root.reset == 1) {
_root.deaths = Number(_root.deaths + 1);
_x = startx;
_y = starty;
_rotation = 0;
gotoAndStop(1);
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
}
if (_root.abouttomoveon == 1) {
_root.nextFrame();
}
if (_x > 750) {
_root.prevFrame();
}
if (_root.jumpable == 1) {
_rotation = 0;
} else {
_rotation = xspeed * 5;
}
targetxspeed = 0;
if (Key.isDown(39) or Key.isDown(68)) {
targetxspeed = 4;
}
if (Key.isDown(37) or Key.isDown(65)) {
targetxspeed = -4;
}
if (Key.isDown(40) and _root.jumpable == 1) {
if (xspeed >= 0) {
gotoAndStop(7);
} else {
gotoAndStop(8);
}
targetxspeed = 0;
} else {
if (xspeed >= 0) {
if (_root.jumpable < 1) {
gotoAndStop(5);
} else {
if (xspeed > 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
} else {
if (xspeed < 0) {
if (_root.jumpable < 1) {
gotoAndStop(6);
} else {
if (xspeed < -1) {
gotoAndStop(4);
} else {
gotoAndStop(2);
}
}
}
}
}
if (Key.isDown(38) or Key.isDown(32) or Key.isDown(87)) {
if (_root.jumpable == 1) {
yspeed = -10;
}
}
yspeed += 1;
if (yspeed > 7) {
yspeed = 7;
}
_y = _y + yspeed;
xspeed += (targetxspeed - xspeed) / 4;
if (xspeed < 1 and xspeed > 0) {
xspeed = 1.0e-026;
}
if (xspeed > -1 and xspeed < 0) {
xspeed = -1.0e-026;
}
_x = _x + xspeed;
_root.jumpable = 0;
if (_y > 230) {
_y = 230;
yspeed = 0;
_root.jumpable = 1;
}
}
}
frame 16 {
clearall = 0;
hideall = 0;
abouttomoveon = 0;
toolbox.removeMovieClip();
toolbox2.removeMovieClip();
trace(i);
j = 0;
if (goback !== 1) {
trace('code 1 is: ' + _root.code1);
trace('finalcode was: ' + finalcode);
_root.finalcode = '';
while (j < ibu - 1) {
++j;
codenum = 'code' + j;
trace('blah ');
_root.finalcode += _root[codenum];
}
}
j = 0;
if (goback == 1) {
goback = 0;
}
}
button 449 {
on (release) {
reload = 1;
reload2 = 1;
_root.director.tar = 14;
_root.director.play();
}
}
button 450 {
on (release) {
moveable = 0;
_root.director.tar = 17;
_root.director.play();
}
}
frame 17 {
j = 0;
moveable = 0;
}
frame 17 {
clearall = 0;
hideall = 0;
var code = finalcode;
j = 0;
if (code.charAt(0) == '<') {
j = 10;
}
while (j < code.length) {
trace(j);
trace('doing it');
if (code.charAt(j) == 'b' and code.charAt(j + 1) !== 'm') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'box' + extra + newdepth;
newname2 = 'box' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 's') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'spike' + extra + newdepth;
newname2 = dir + 'spike' + extra;
trace(newname2);
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 't') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
if (dir == 'e') {
dir = 'ne';
} else {
if (dir == 'w') {
dir = 'nw';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'tri' + extra + newdepth;
newname2 = dir + 'tri' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
j -= 2;
}
if (code.charAt(j) == 'p') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'plat' + extra + newdepth;
newname2 = 'plat' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'e' and code.charAt(j - 1) !== 'n') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'enemy' + extra + newdepth;
newname2 = 'enemy' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'a') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'spring' + extra + newdepth;
newname2 = 'spring' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'r' and code.charAt(j + 1) != 's') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'razor' + extra + newdepth;
newname2 = 'razor' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'f') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'fall' + extra + newdepth;
newname2 = 'fall' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'm') {
if (code.charAt(j - 1) == 'b') {
thespeed = 0.5;
} else {
thespeed = 1;
}
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
rval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
rval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'mbox' + extra + newdepth;
if (thespeed == 0.5) {
newname2 = 'mbox' + extra;
} else {
newname2 = 'mubox' + extra;
}
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
_root[newname].startx = _root[newname]._x;
_root[newname].range = rval * 10;
_root[newname].dir = 2;
_root[newname].speed = thespeed;
--j;
}
++j;
}
if (goback == 1) {
timer = 0;
gotoAndStop(16);
}
}
instance expl of movieClip 270 {
onClipEvent (enterFrame) {
trace('y=' + _y + ', x=' + _x);
}
}
instance explr of movieClip 270 {
onClipEvent (enterFrame) {
_x = _root.expl._x;
_y = 500 - _root.expl._y;
gotoAndStop(_root.expl._currentframe);
}
}
instance box of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'box') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'yu' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'box') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'ty' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'rt' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'er' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'we' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mbox of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mbox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'mbox') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'l' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mbox') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance plat of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plat') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'qw' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plat') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'px' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'c' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'v' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemy of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemy') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemy') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ex' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxi of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'h' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'g' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'f' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'd' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxi of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'e' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance plati of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plati') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'a' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plati') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'y' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'u' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyi of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyi') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'i' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'eix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxv of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxv of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance platv of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'platv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'platv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyv of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyv') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'evx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance fall of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fall') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'j' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fall') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mubox of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mubox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'mubox') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'k' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance falli of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'falli') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'q' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'falli') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxi of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'muboxi') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'w' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance fallv of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fallv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fallv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxv of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'muboxv') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'muboxv') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance spring of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'spring') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'n' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'spring') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ax' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razor of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razor') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'm' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razor') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springi of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'o' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'aix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razori of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razori') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'p' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razori') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springv of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'avx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razorv of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razorv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razorv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'x' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 't' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 's' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'z' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._rotation = -180;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'r' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance resetter of movieClip 295 {
onClipEvent (enterFrame) {
if (_root.reset == 1) {
play();
}
}
}
movieClip 453 {
instance of movieClip 299 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.nextFrame();
_parent.removeMovieClip();
}
}
}
}
instance cover of movieClip 453 {
onClipEvent (load) {
i = 2;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() - 2);
}
}
}
instance of movieClip 304 {
onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() + 1);
}
}
}
frame 18 {
clearall = 0;
tdisplay.swapDepths(_root.getNextHighestDepth());
caption = Lname + ' by ' + Lcreator;
caption2 = caption;
moveable = 0;
ltimer = Ltime;
tdisplay.ltimer = ltimer;
stop();
}
instance uspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'ty' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'rt' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'er' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'we' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mbox of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mbox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'mbox') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'l' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mbox') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance plat of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plat') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'qw' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plat') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'px' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'c' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'v' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'g' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'f' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'd' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxi of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'e' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance plati of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plati') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'a' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plati') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'y' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'u' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxv of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance platv of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'platv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'platv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance fall of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fall') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'j' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fall') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mubox of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mubox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'mubox') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'k' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance falli of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'falli') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'q' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'falli') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxi of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'muboxi') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'w' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance fallv of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fallv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fallv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxv of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
onClipEvent (enterFrame) {
if (_name !== 'muboxv') {
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
this.clear();
if (planted == 2) {
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'muboxv') {
if (planted == 0) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
instance spring of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'spring') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'n' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'spring') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ax' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razor of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razor') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'm' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razor') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springi of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'o' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'aix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razori of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razori') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'p' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razori') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springv of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'avx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razorv of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razorv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razorv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'x' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 't' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 's' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'z' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._rotation = -180;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance guy2 of movieClip 326 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
_rotation = -_root.guy._rotation;
_x = _root.guy._x;
_y = 500 - _root.guy._y;
gotoAndStop(_root.guy._currentframe);
}
}
instance guy of movieClip 326 {
onClipEvent (load) {
timer = 0;
startx = _x;
starty = _y;
_root.abouttomoveon = 0;
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
timer += 0.03333333333333333;
_root.timer = Math.round(timer * 100) / 100;
_root.tdisplay.timer = _root.timer;
if (Math.round(_root.tdisplay.timer * 1) / 1 == _root.tdisplay.timer * 1 / 1) {
_root.tdisplay.timer += '.0';
}
if (Math.round(_root.tdisplay.timer * 10) / 10 == _root.tdisplay.timer * 10 / 10) {
_root.tdisplay.timer += '0';
}
_root.timer = _root.tdisplay.timer;
if (_root.reset == 1) {
timer = 0;
_root.deaths = Number(_root.deaths + 1);
_x = startx;
_y = starty;
_rotation = 0;
gotoAndStop(1);
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
}
if (_x > 750) {
if (_root.resetter._currentframe < 11) {
_root.resetter.swapDepths(_root.getNextHighestDepth());
_root.resetter.gotoAndPlay(11);
}
}
if (_root.jumpable == 1) {
_rotation = 0;
} else {
_rotation = xspeed * 5;
}
targetxspeed = 0;
if (Key.isDown(39) or Key.isDown(68)) {
targetxspeed = 4;
}
if (Key.isDown(37) or Key.isDown(65)) {
targetxspeed = -4;
}
if (Key.isDown(40) and _root.jumpable == 1) {
if (xspeed >= 0) {
gotoAndStop(7);
} else {
gotoAndStop(8);
}
targetxspeed = 0;
} else {
if (xspeed >= 0) {
if (_root.jumpable < 1) {
gotoAndStop(5);
} else {
if (xspeed > 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
} else {
if (xspeed < 0) {
if (_root.jumpable < 1) {
gotoAndStop(6);
} else {
if (xspeed < -1) {
gotoAndStop(4);
} else {
gotoAndStop(2);
}
}
}
}
}
if (Key.isDown(38) or Key.isDown(32) or Key.isDown(87)) {
if (_root.jumpable == 1) {
yspeed = -10;
}
}
yspeed += 1;
if (yspeed > 7) {
yspeed = 7;
}
_y = _y + yspeed;
xspeed += (targetxspeed - xspeed) / 4;
if (xspeed < 1 and xspeed > 0) {
xspeed = 1.0e-026;
}
if (xspeed > -1 and xspeed < 0) {
xspeed = -1.0e-026;
}
_x = _x + xspeed;
_root.jumpable = 0;
if (_y > 230) {
_y = 230;
yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 339 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
instance of movieClip 341 {
onClipEvent (keyPress 'r') {
_root.reset = 1;
}
onClipEvent (keyPress 'R') {
_root.reset = 1;
}
}
movieClip 457 {
frame 1 {
stop();
}
}
instance tdisplay of movieClip 457 {
onClipEvent (enterFrame) {
stop();
if (_root._currentframe !== fram) {
this.removeMovieClip();
}
}
onClipEvent (load) {
fram = _root._currentframe;
}
}
button 460 {
on (release) {
timer = 0;
_root.director.tar = 16;
_root.director.play();
}
}
frame 19 {
stop();
hideall = 1;
timeachieved = timer + ' seconds';
}
button 463 {
on (release) {
gotoAndStop(17);
}
on (keyPress 'r') {
gotoAndStop(17);
}
on (keyPress 'R') {
gotoAndStop(17);
}
}
button 466 {
on (release) {
if (timer > 5) {
if (timer < 100) {
_root.nextFrame();
} else {
errors = 'Sorry your time is too high. People don\'t like playing levels that take too long because of the insane frustration so try to set a time that is less than 100 seconds!';
}
} else {
errors = 'Sorry your time is too low. There\'s no way to get a time that low without cheating so people playing your level who can\'t cheat won\'t be able to beat it!';
}
}
}
button 467 {
on (release) {
goback = 1;
_root.gotoAndStop(17);
}
}
frame 20 {
clearall = 0;
hideall = 0;
submitted = 0;
abouttomoveon = 0;
toolbox.removeMovieClip();
toolbox2.removeMovieClip();
trace(i);
j = 0;
onEnterFrame = function () {
if (inputlevelname.text != '' and dal != 1) {
dal = 1;
inputlevelname.text = inputlevelname.text.toUpperCase();
}
if (inputcreatorname.text != '' and dac != 1) {
dac = 1;
inputcreatorname.text = inputcreatorname.text.toUpperCase();
}
if (dal == 1 and dac == 1) {
delete onEnterFrame;
}
};
}
instance expl of movieClip 379 {
onClipEvent (enterFrame) {
trace('y=' + _y + ', x=' + _x);
}
}
instance explr of movieClip 379 {
onClipEvent (enterFrame) {
_x = _root.expl._x;
_y = 500 - _root.expl._y;
gotoAndStop(_root.expl._currentframe);
}
}
instance box of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'box') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'yu' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'box') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'ty' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'rt' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'er' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtri of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'we' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mbox of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mbox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mbox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'l' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mbox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance plat of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plat') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'qw' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plat') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'px' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'c' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspike of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspike') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'v' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspike') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemy of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemy') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemy') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ex' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxi of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'h' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'g' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'f' + i;
_root[mc] = _root.attachMovie('sref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'd' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtrii of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 's' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxi of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'e' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxi') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance plati of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'plati') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'a' + i;
_root[mc] = _root.attachMovie('pref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'plati') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'y' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikei of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikei') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'u' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikei') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyi of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyi') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'i' + i;
_root[mc] = _root.attachMovie('eref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'eix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance boxv of movieClip 271 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'boxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'boxv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance uspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'uspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'uspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'usvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance utriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'utriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'utriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'utvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance dtriv of movieClip 275 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'dtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'dtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'dtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mboxv of movieClip 277 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'bmvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
dir = 2;
speed = 0.5;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance platv of movieClip 279 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'platv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'platv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'pvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.guy.yspeed >= 0) {
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance lspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'lspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'lspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'lsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance rspikev of movieClip 273 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'rspikev') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'rspikev') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rsvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance enemyv of movieClip 282 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'enemyv') {
startx = _x;
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.reset == 1) {
_x = startx;
}
if (planted == 1 and _root.moveable == 1) {
_x = startx;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'enemyv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'evx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -8;
_root.jumpable = 0;
_root.expl._x = _x;
_root.expl._y = _y;
_root.expl.play();
_x = 10000;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
if (planted !== 1) {
startx = _x;
}
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance fall of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fall') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'j' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fall') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance mubox of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'mubox') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'mubox') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'k' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance falli of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'falli') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'q' + i;
_root[mc] = _root.attachMovie('fref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'falli') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxi of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxi') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'w' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'mubox') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umix' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance fallv of movieClip 21 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'fallv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root.moveable == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root.reset == 1) {
gotoAndStop(1);
_root[mc].inner.gotoAndStop(1);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'fallv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'fvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance muboxv of movieClip 284 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'muboxv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted == 0) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
this.clear();
if (_name !== 'muboxv') {
if (_root.resetmovers == 1 and startx > 0) {
_x = startx;
this.lineStyle(2, 0, 25, false, 0, 'none');
this.lineTo(range - 100, 0);
}
if (dir == 1) {
_x = _x - speed;
}
if (dir == 2) {
_x = _x + speed;
}
if (range >= 100) {
if (_x < startx) {
dir = 2;
}
if (_x > startx + range - 100) {
dir = 1;
}
}
if (range < 100) {
if (_x < startx + range - 100) {
dir = 2;
}
if (_x > startx) {
dir = 1;
}
}
}
}
onClipEvent (load) {
_root.toolbox.swapDepths(_root.getNextHighestDepth());
}
onClipEvent (enterFrame) {
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (planted == 2) {
_root.resetmovers = 1;
this.lineStyle(2, 0, 100, false, 0, 'none');
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < 20) {
mousex = 20;
}
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
this.lineTo(mousex - _x, 0);
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'muboxv') {
if (planted == 0) {
_root.resetmovers = 1;
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'umvx' + startx / 10 + 'y' + _y / 10 + 'r' + range / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true) or this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
if (dir == 1) {
_root.guy._x -= speed;
}
if (dir == 2) {
_root.guy._x += speed;
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
if (planted == 0) {
planted = 2;
}
}
onClipEvent (mouseDown) {
if (planted == 2) {
_root.resetmovers = 0;
planted = 1;
startx = _x;
mousex = Math.round(_root._xmouse / 10) * 10;
if (mousex < _x - 100) {
mousex = _x - 100;
}
if (mousex > _x + 100) {
mousex = _x + 100;
}
if (mousex < 20) {
mousex = 20;
}
range = mousex - _x + 100;
trace('Range: ' + range);
dir = 2;
speed = 1;
}
}
onClipEvent (press) {
if (Math.abs(_x - _root._xmouse) <= 10) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
startx = 0;
range = 0;
dir = 0;
speed = 0;
}
}
}
}
instance spring of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'spring') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'n' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'spring') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'ax' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razor of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razor') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'm' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razor') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springi of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springi') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'o' + i;
_root[mc] = _root.attachMovie('sprref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springi') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'aix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razori of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razori') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'p' + i;
_root[mc] = _root.attachMovie('rref', mc, i);
_root[mc]._x = -20;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razori') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance springv of movieClip 285 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'springv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'springv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'avx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = -15;
play();
_root[mc].inner.play();
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance razorv of movieClip 286 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'razorv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
_rotation = _rotation + 10;
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'razorv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'rvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
if (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
trace('SHOULD HAVE REMOVED');
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'x' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtri of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtri') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'z' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -180;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtri') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 't' + i;
_root[mc] = _root.attachMovie('tref', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = 90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtrii of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtrii') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'r' + i;
_root[mc] = _root.attachMovie('tref2', mc, i);
_root[mc]._x = -20;
_root[mc]._rotation = -90;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 25;
} else {
_alpha = 0;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtrii') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtix' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance netriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'netriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'netriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'netvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
instance nwtriv of movieClip 288 {
onClipEvent (load) {
if (_root.moveable == 0) {
this.useHandCursor = false;
}
if (_name !== 'nwtriv') {
if (_root.moveable == 1) {
codepart = 'code' + _root.i;
_root.i = Number(_root.i) + 1;
}
if (planted !== 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
yspeed = 0;
_root.toolbox.swapDepths(_root.getNextHighestDepth());
myi = _root.i;
}
onClipEvent (enterFrame) {
if (_root.deletelast == 1 and myi == _root.i) {
_root[codepart] = '';
removeMovieClip(this);
_root.i -= 0.9;
}
if (_root._currentframe < 4 or _root.clearall == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_root.moveable == 1) {
_alpha = 50;
} else {
_alpha = 100;
}
if (_root._currentframe == 16 or _root._currentframe == 7 or _root.hideall == 1) {
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
if (_name !== 'nwtriv') {
if (planted !== 1) {
_x = Math.round(_root._xmouse / 10) * 10;
_y = Math.round(_root._ymouse / 10) * 10;
if (_y > 260) {
_y = 500 - Math.round(_root._ymouse / 10) * 10;
} else {
if (_y > 240) {
_y = 240;
}
}
if (_x < 20) {
_x = 20;
}
} else {
_root[codepart] = 'nwtvx' + _x / 10 + 'y' + _y / 10 + 'z';
}
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
onClipEvent (mouseUp) {
planted = 1;
}
onClipEvent (press) {
if (_root.moveable == 1) {
if (_root.deleting == 1) {
_root[codepart] = '';
removeMovieClip(_root[mc]);
removeMovieClip(this);
}
planted = 0;
}
}
}
button 469 {
on (release) {
goback = 1;
_root.gotoAndStop(17);
}
}
button 474 {
on (release) {
_root.gotoAndStop(17);
}
}
button 479 {
on (release) {
function stripSpaces(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j - 1) == 'f' and input.charAt(j) == 'u' and input.charAt(j + 1) == 'c' and input.charAt(j + 2) == 'k') {
v2 += '*';
} else {
v2 += input.charAt(j);
}
++j;
}
return v2;
}
function removec(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j - 1) == 'c' and input.charAt(j) == 'u' and input.charAt(j + 1) == 'n' and input.charAt(j + 2) == 'n') {
v2 += '*';
} else {
v2 += input.charAt(j);
}
++j;
}
return v2;
}
function removes(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j - 2) == 's' and input.charAt(j - 1) == 'h' and input.charAt(j) == 'i' and input.charAt(j + 1) == 't') {
v2 += '*';
} else {
v2 += input.charAt(j);
}
++j;
}
return v2;
}
function changeAnds(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j) == '&') {
v2 += '+';
} else {
if (input.charAt(j) == '<') {
v2 += '≤';
} else {
if (input.charAt(j) == '>') {
v2 += '≥';
} else {
v2 += input.charAt(j);
}
}
}
++j;
}
return v2;
}
if (inputlevelname.text !== '' and inputcreatorname.text !== '' and timer > 0 and finalcode !== '') {
ilname = stripSpaces(inputlevelname.text);
ilname = changeAnds(ilname);
ilname = removec(ilname);
ilname = removes(ilname);
icname = stripSpaces(inputcreatorname.text);
icname = changeAnds(icname);
icname = removec(icname);
icname = removes(icname);
icode = finalcode;
if (submitted == 0) {
submitted = 1;
var link = 'http://www.wixgames.co.uk/levelsubmit.asp?vname=' + escape(ilname) + '&vcreator=' + escape(icname) + '&vcode=' + escape(icode) + '&vtime=' + escape(timer);
if (_url.indexOf('wixgames.co.uk') == -1) {
getURL(link, '_blank');
} else {
var jscommand = 'window.open(\'' + link + '\',\'\',\'height=500,width=800,resizable=0,scrollbars=0,toolbar=0,location=0,directories=0,status=1,menubar=0,copyhistory=0\');';
var url = 'javascript:' + jscommand + ' void(0);';
getURL(url, '_self');
}
nameslist += '-' + ilname;
}
}
}
}
button 481 {
on (release) {
function stripSpaces(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j) == ' ') {
v2 += '_';
} else {
v2 += input.charAt(j);
}
++j;
}
return v2;
}
function changeAnds(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j) == '&') {
v2 += '+';
} else {
v2 += input.charAt(j);
}
++j;
}
return v2;
}
if (inputlevelname.text !== '' and inputcreatorname.text !== '' and timer > 0 and finalcode !== '') {
ilname = stripSpaces(inputlevelname.text);
ilname = changeAnds(ilname);
icname = stripSpaces(inputcreatorname.text);
icname = changeAnds(icname);
icode = finalcode;
System.setClipboard('http://www.wixgames.co.uk/noitcelfer2.asp?userlvl~' + ilname + '~' + timer + '~' + icname + '~' + icode);
}
}
}
button 483 {
on (release) {
function stripSpaces(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j) == ' ') {
v2 += '_';
} else {
v2 += input.charAt(j);
}
++j;
}
return v2;
}
function changeAnds(input) {
var v2 = '';
j = 0;
while (j < input.length) {
if (input.charAt(j) == '&') {
v2 += '+';
} else {
v2 += input.charAt(j);
}
++j;
}
return v2;
}
if (inputlevelname.text !== '' and inputcreatorname.text !== '' and timer > 0 and finalcode !== '') {
ilname = stripSpaces(inputlevelname.text);
ilname = changeAnds(ilname);
icname = stripSpaces(inputcreatorname.text);
icname = changeAnds(icname);
icode = finalcode;
url = 'http://www.wixgames.co.uk/noitcelfer2.asp?userlvl~' + ilname + '~' + timer + '~' + icname + '~' + icode;
url2 = 'https://www.facebook.com/dialog/feed?app_id=107457502680373&link=' + escape(url) + '&picture=http://www.wixgames.co.uk/reflect200.jpg&name=' + escape('noitcelfeR 2 - Custom Level') + '&caption=' + escape(inputlevelname.text + ' by ' + inputcreatorname.text) + '&description=' + escape(inputcreatorname.text + ' made a level on noitcelfeR 2. Click here to play it!') + '&redirect_uri=http://www.facebook.com';
var link = url2;
if (_url.indexOf('wixgames.co.uk') == -1) {
getURL(link, '_blank');
} else {
var jscommand = 'window.open(\'' + link + '\',\'\',\'height=600,width=1020,resizable=0,scrollbars=0,toolbar=0,location=0,directories=0,status=1,menubar=0,copyhistory=0\');';
var url = 'javascript:' + jscommand + ' void(0);';
getURL(url, '_self');
}
}
}
}
movieClip 487 {
}
instance of movieClip 487 {
onClipEvent (load) {
this.useHandCursor = false;
stop();
}
onClipEvent (release) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.inputlevelname.text !== '' and _root.inputcreatorname.text !== '' and _root.timer > 0) {
_visible = false;
} else {
_visible = true;
}
i = 0;
while (i < _root.inputlevelname.text.length) {
if (_root.inputlevelname.text.charAt(i) == '<' or _root.inputlevelname.text.charAt(i) == '>') {
_visible = true;
}
++i;
}
i = 0;
while (i < _root.inputcreatorname.text.length) {
if (_root.inputcreatorname.text.charAt(i) == '<' or _root.inputcreatorname.text.charAt(i) == '>') {
_visible = true;
}
++i;
}
}
}
movieClip 489 {
frame 10 {
gotoAndStop(1);
}
}
instance resetter of movieClip 489 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
frame 21 {
moveable = 0;
Ltime = Ltime.toString();
trace(Ltime);
String.prototype.removeHTML = function () {
var v3 = '';
var v2;
v2 = this.indexOf('<');
while (v2 != -1) {
v3 += this.substr(0, v2);
this = this.substr(this.indexOf('>') + 1);
}
return v3 + this;
};
ASSetPropFlags(String.prototype, 'removeHTML', 1);
Ltime = Ltime.removeHTML();
Ltime = Number(Ltime);
Ltime = Math.round(Ltime * 100) / 100;
trace(Ltime);
cover.timetobeat = Ltime + ' seconds';
}
frame 21 {
clearall = 0;
var code = (Lcode.toString()).toLowerCase();
trace(code);
j = 0;
if (code.charAt(0) == '<') {
j = 10;
}
while (j < code.length) {
trace(j);
trace('doing it');
if (code.charAt(j) == 'b' and code.charAt(j + 1) !== 'm') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'box' + extra + newdepth;
newname2 = 'box' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 's') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'spike' + extra + newdepth;
newname2 = dir + 'spike' + extra;
trace(newname2);
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 't') {
dir = code.charAt(j - 1);
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
if (dir == 'e') {
dir = 'ne';
} else {
if (dir == 'w') {
dir = 'nw';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = dir + 'tri' + extra + newdepth;
newname2 = dir + 'tri' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
j -= 2;
}
if (code.charAt(j) == 'p') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'plat' + extra + newdepth;
newname2 = 'plat' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'e' and code.charAt(j - 1) !== 'n') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'enemy' + extra + newdepth;
newname2 = 'enemy' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'a') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'spring' + extra + newdepth;
newname2 = 'spring' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'r' and code.charAt(j + 1) != 's') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'razor' + extra + newdepth;
newname2 = 'razor' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'f') {
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'fall' + extra + newdepth;
newname2 = 'fall' + extra;
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
--j;
}
if (code.charAt(j) == 'm') {
if (code.charAt(j - 1) == 'b') {
thespeed = 0.5;
} else {
thespeed = 1;
}
if (code.charAt(j + 1) == 'i') {
extra = 'i';
++j;
} else {
if (code.charAt(j + 1) == 'v') {
extra = 'v';
++j;
} else {
extra = '';
}
}
j += 2;
if (code.charAt(j + 1) < 10) {
xval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
xval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
yval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
yval = Number(code.charAt(j));
j += 2;
}
if (code.charAt(j + 1) < 10) {
rval = Number(code.charAt(j) * 10) + Number(code.charAt(j + 1));
j += 3;
} else {
rval = Number(code.charAt(j));
j += 2;
}
newdepth = _root.getNextHighestDepth();
newname = 'mbox' + extra + newdepth;
if (thespeed == 0.5) {
newname2 = 'mbox' + extra;
} else {
newname2 = 'mubox' + extra;
}
_root[newname2].duplicateMovieClip(newname, newdepth);
_root[newname]._x = xval * 10;
_root[newname]._y = yval * 10;
_root[newname].planted = 1;
_root[newname].startx = _root[newname]._x;
_root[newname].range = rval * 10;
_root[newname].dir = 2;
_root[newname].speed = thespeed;
--j;
}
++j;
}
}
instance expl of movieClip 270 {
onClipEvent (enterFrame) {
trace('y=' + _y + ', x=' + _x);
}
}
instance explr of movieClip 270 {
onClipEvent (enterFrame) {
_x = _root.expl._x;
_y = 500 - _root.expl._y;
gotoAndStop(_root.expl._currentframe);
}
}
instance resetter of movieClip 295 {
onClipEvent (enterFrame) {
if (_root.reset == 1) {
play();
}
}
}
movieClip 492 {
}
instance warning of movieClip 492 {
onClipEvent (load) {
i = 2;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth());
}
}
}
instance cover of movieClip 301 {
onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() - 2);
}
}
}
instance of movieClip 304 {
onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
--i;
if (i >= 0) {
this.swapDepths(_root.getNextHighestDepth() + 1);
}
}
}
frame 22 {
clearall = 0;
warning.removeMovieClip();
tdisplay.swapDepths(_root.getNextHighestDepth());
caption = Lname + ' by ' + Lcreator;
caption2 = caption;
moveable = 0;
ltimer = Ltime;
tdisplay.ltimer = ltimer;
stop();
}
instance guy2 of movieClip 326 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
_rotation = -_root.guy._rotation;
_x = _root.guy._x;
_y = 500 - _root.guy._y;
gotoAndStop(_root.guy._currentframe);
}
}
instance guy of movieClip 326 {
onClipEvent (load) {
timer = 0;
startx = _x;
starty = _y;
_root.abouttomoveon = 0;
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
timer += 0.03333333333333333;
_root.timer = Math.round(timer * 100) / 100;
_root.tdisplay.timer = _root.timer;
if (Math.round(_root.tdisplay.timer * 1) / 1 == _root.tdisplay.timer * 1 / 1) {
_root.tdisplay.timer += '.0';
}
if (Math.round(_root.tdisplay.timer * 10) / 10 == _root.tdisplay.timer * 10 / 10) {
_root.tdisplay.timer += '0';
}
_root.timer = _root.tdisplay.timer;
if (_root.reset == 1) {
timer = 0;
_root.deaths = Number(_root.deaths + 1);
_x = startx;
_y = starty;
_rotation = 0;
gotoAndStop(1);
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
}
if (_x > 750) {
if (_root.resetter._currentframe < 11) {
_root.resetter.swapDepths(_root.getNextHighestDepth());
_root.resetter.gotoAndPlay(11);
}
}
if (_root.jumpable == 1) {
_rotation = 0;
} else {
_rotation = xspeed * 5;
}
targetxspeed = 0;
if (Key.isDown(39) or Key.isDown(68)) {
targetxspeed = 4;
}
if (Key.isDown(37) or Key.isDown(65)) {
targetxspeed = -4;
}
if (Key.isDown(40) and _root.jumpable == 1) {
if (xspeed >= 0) {
gotoAndStop(7);
} else {
gotoAndStop(8);
}
targetxspeed = 0;
} else {
if (xspeed >= 0) {
if (_root.jumpable < 1) {
gotoAndStop(5);
} else {
if (xspeed > 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
} else {
if (xspeed < 0) {
if (_root.jumpable < 1) {
gotoAndStop(6);
} else {
if (xspeed < -1) {
gotoAndStop(4);
} else {
gotoAndStop(2);
}
}
}
}
}
if (Key.isDown(38) or Key.isDown(32) or Key.isDown(87)) {
if (_root.jumpable == 1) {
yspeed = -10;
}
}
yspeed += 1;
if (yspeed > 7) {
yspeed = 7;
}
_y = _y + yspeed;
xspeed += (targetxspeed - xspeed) / 4;
if (xspeed < 1 and xspeed > 0) {
xspeed = 1.0e-026;
}
if (xspeed > -1 and xspeed < 0) {
xspeed = -1.0e-026;
}
_x = _x + xspeed;
_root.jumpable = 0;
if (_y > 230) {
_y = 230;
yspeed = 0;
_root.jumpable = 1;
}
}
}
button 493 {
on (release) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(5);
}
}
instance tdisplay of movieClip 337 {
onClipEvent (enterFrame) {
if (timer < _root.ltimer) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
if (_root._currentframe !== fram) {
this.removeMovieClip();
}
}
onClipEvent (load) {
fram = _root._currentframe;
}
}
instance of movieClip 339 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
instance of movieClip 341 {
onClipEvent (keyPress 'r') {
_root.reset = 1;
}
onClipEvent (keyPress 'R') {
_root.reset = 1;
}
}
instance of movieClip 341 {
onClipEvent (keyPress 'r') {
_root.reset = 1;
}
onClipEvent (keyPress 'R') {
_root.reset = 1;
}
onClipEvent (enterFrame) {
if (_root.gobackone == 1) {
_root.gobackone = 0;
_root.prevFrame();
}
}
}
instance of movieClip 307 {
onClipEvent (load) {
caption = _root.caption;
caption2 = _root.caption2;
time = 0;
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
++time;
if (time == 5) {
this.swapDepths(_root.getNextHighestDepth());
}
if (_root._currentframe != frame) {
this.removeMovieClip();
}
}
}
frame 23 {
stop();
_root.coins = Number(_root.coins + 3);
if (_root.timer <= _root.ltimer) {
_root.coins = Number(_root.coins + 10);
}
timeachieved = timer + ' seconds';
timetobeat = ltimer + ' seconds';
coinsdisplay = 'Coins: ' + coins;
clearall = 1;
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(mc);
++j;
}
i = 1;
trace(Lname);
trace(Lcreator);
String.prototype.removeHTML = function () {
var v3 = '';
var v2;
v2 = this.indexOf('<');
while (v2 != -1) {
v3 += this.substr(0, v2);
this = this.substr(this.indexOf('>') + 1);
}
return v3 + this;
};
ASSetPropFlags(String.prototype, 'removeHTML', 1);
trace(code.removeHTML());
Lname = Lname.toString();
Lcreator = Lcreator.toString();
trace(Lname);
trace(Lname.removeHTML());
lname2 = Lname.removeHTML();
code2 = code.removeHTML();
lcreator2 = Lcreator.removeHTML();
niceone.approve.onRelease = function () {
if (nameslist.indexOf(lname2) == -1) {
var v1 = 'http://www.wixgames.co.uk/levelapproved.asp?vname=' + escape(String(lname2)) + '&vcreator=' + escape(String(lcreator2)) + '&vcode=' + escape(String(code2)) + '&vtime=' + escape(Ltime) + '&vlid=' + escape(lid);
var v2 = 'window.open(\'' + v1 + '\',\'\',\'height=500,width=800,resizable=0,scrollbars=0,toolbar=0,location=0,directories=0,status=1,menubar=0,copyhistory=0\');';
var v3 = 'javascript:' + v2 + ' void(0);';
if (_url.indexOf('wixgames.co.uk') == -1) {
getURL(v1, '_blank');
} else {
getURL(v3, '_self');
}
}
niceone._visible = false;
};
}
button 498 {
on (release) {
gotoAndStop(21);
}
on (keyPress 'r') {
gotoAndStop(21);
}
on (keyPress 'R') {
gotoAndStop(21);
}
}
button 499 {
on (release) {
lid = Number(lid + 1);
Lname = main_xml.firstChild.childNodes[lid].childNodes[0];
Lcode = main_xml.firstChild.childNodes[lid].childNodes[1];
Lcreator = main_xml.firstChild.childNodes[lid].childNodes[2];
Ltime = main_xml.firstChild.childNodes[lid].childNodes[3];
if (Lname == undefined) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(4);
} else {
gotoAndStop(21);
}
}
on (keyPress '<Space>') {
lid = Number(lid + 1);
Lname = main_xml.firstChild.childNodes[lid].childNodes[0];
Lcode = main_xml.firstChild.childNodes[lid].childNodes[1];
Lcreator = main_xml.firstChild.childNodes[lid].childNodes[2];
Ltime = main_xml.firstChild.childNodes[lid].childNodes[3];
if (Lname == undefined) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(5);
} else {
gotoAndStop(21);
}
}
}
instance of movieClip 359 {
onClipEvent (load) {
if (_root.timer <= _root.ltimer) {
play();
_root.coinsdisplay = 'Coins: ' + _root.coins;
} else {
gotoAndStop(41);
}
}
}
button 500 {
on (release) {
j = 0;
i = _root.getNextHighestDepth();
while (j <= i) {
var mc = 'r' + j;
removeMovieClip(_root[mc]);
++j;
}
gotoAndStop(5);
}
}
button 512 {
on (release) {
_visible = false;
}
}
movieClip 513 {
}
instance niceone of movieClip 513 {
onClipEvent (load) {
if (_root.timer <= _root.ltimer) {
_visible = true;
} else {
_visible = false;
_root.loadthead();
}
}
}
frame 24 {
gotoAndStop(19);
}
frame 25 {
msg = 'Congratulations! You completed the ' + packname + '!';
_root.pack[packnumber] = 1;
}
button 515 {
on (release) {
gotoAndStop(3);
}
}
button 517 {
on (release) {
gotoAndStop(4);
}
}
button 519 {
on (release) {
timer = 0;
i = 1;
reload2 = 1;
gotoAndStop(14);
}
}
movieClip 523 {
frame 1 {
stop();
if (_root.userlevel == 1) {
_root.userlevel = 0;
nextFrame();
}
}
frame 2 {
stop();
}
}
instance resetter of movieClip 489 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
frame 26 {
play();
}
button 527 {
on (release) {
nextFrame();
}
}
button 530 {
on (release) {
gotoAndPlay(28);
}
}
frame 27 {
stop();
loadText = new LoadVars();
loadText.load('http://www.wixgames.co.uk/reflectmusiclocation.txt');
loadText.onLoad = function () {
trace(this.q);
coolTune = new Sound(_root);
coolTune.loadSound(this.q.toString(), true);
onEnterFrame = function () {
if (coolTune.position > 0) {
play();
delete onEnterFrame;
}
};
coolTune.onSoundComplete = function () {
coolTune.start(0, 999999);
};
};
music = 1;
}
movieClip 533 {
}
instance of movieClip 533 {
onClipEvent (load) {
_visible = false;
time = 0;
}
onClipEvent (enterFrame) {
++time;
if (time > 500) {
_visible = true;
}
}
onClipEvent (keyPress '<Space>') {
_root.coolTune.stop();
_root.play();
}
}
frame 28 {
stop();
}
movieClip 541 {
}
movieClip 547 {
}
movieClip 550 {
frame 1 {
_root.stop();
gotoAndPlay(2);
}
frame 219 {
_root.nextFrame();
}
}
instance of movieClip 550 {
onClipEvent (release) {
getURL('http://armor.ag/MoreGames', '_blank');
}
}
movieClip 552 {
}
// unknown tag 88 length 86
movieClip 555 {
}
movieClip 608 {
frame 1 {
_root.stop();
}
frame 150 {
_root.play();
}
}
movieClip 609 {
frame 1 {
gotoAndPlay(2);
}
instance of movieClip 608 {
onClipEvent (release) {
getURL('http://www.wixgames.co.uk', '_blank');
}
}
frame 150 {
_root.gotoAndStop(2);
}
}
frame 30 {
clearall = 0;
moveable = 0;
stop();
}
instance expl of movieClip 270 {
onClipEvent (enterFrame) {
trace('y=' + _y + ', x=' + _x);
}
}
instance explr of movieClip 270 {
onClipEvent (enterFrame) {
_x = _root.expl._x;
_y = 500 - _root.expl._y;
gotoAndStop(_root.expl._currentframe);
}
}
instance of movieClip 271 {
onClipEvent (load) {
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 273 {
onClipEvent (load) {
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('sref', mc, i);
_root[mc]._x = -20;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
if (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
if (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
_root.reset = 1;
}
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
}
}
instance of movieClip 271 {
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 271 {
onClipEvent (load) {
yspeed = 0;
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 271 {
onClipEvent (load) {
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 271 {
onClipEvent (load) {
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 271 {
onClipEvent (load) {
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 271 {
onClipEvent (load) {
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 271 {
onClipEvent (load) {
i = _root.getNextHighestDepth();
var mc = 'b' + i;
_root[mc] = _root.attachMovie('ref', mc, i);
_root[mc]._x = -20;
}
onClipEvent (enterFrame) {
if (_root.abouttomoveon == 1) {
removeMovieClip(_root[mc]);
}
_root[mc]._y = 500 - _y;
_root[mc]._x = _x;
while (this.hitTest(_root.guy._x, _root.guy._y - 9, true)) {
++_root.guy._y;
++_root.guy.yspeed;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y - 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x + 4, _root.guy._y + 2, true)) {
--_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y - 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 4, _root.guy._y + 2, true)) {
++_root.guy._x;
_root.guy.xspeed = 0;
}
while (this.hitTest(_root.guy._x - 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
while (this.hitTest(_root.guy._x + 1, _root.guy._y + 9, true)) {
--_root.guy._y;
_root.guy.yspeed = 0;
_root.jumpable = 1;
}
}
}
instance guy2 of movieClip 326 {
onClipEvent (load) {
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
_rotation = -_root.guy._rotation;
_x = _root.guy._x;
_y = 500 - _root.guy._y;
gotoAndStop(_root.guy._currentframe);
}
}
instance guy of movieClip 326 {
onClipEvent (load) {
timer = 0;
startx = _x;
starty = _y;
_root.abouttomoveon = 0;
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
mycolour = new Color(this);
mycolour.setRGB(_root.playercolour);
}
onClipEvent (enterFrame) {
timer += 0.03333333333333333;
_root.timer = Math.round(timer * 100) / 100;
_root.tdisplay.timer = _root.timer;
if (Math.round(_root.tdisplay.timer * 1) / 1 == _root.tdisplay.timer * 1 / 1) {
_root.tdisplay.timer += '.0';
}
if (Math.round(_root.tdisplay.timer * 10) / 10 == _root.tdisplay.timer * 10 / 10) {
_root.tdisplay.timer += '0';
}
_root.timer = _root.tdisplay.timer;
if (_root.reset == 1) {
timer = 0;
_root.deaths = Number(_root.deaths + 1);
_x = startx;
_y = starty;
_rotation = 0;
gotoAndStop(1);
xspeed = 0;
yspeed = 0;
targetxspeed = 0;
}
if (_root.abouttomoveon == 1) {
_root.nextFrame();
}
if (_x > 750) {
if (_root.resetter._currentframe < 11) {
_root.resetter.swapDepths(_root.getNextHighestDepth());
_root.resetter.gotoAndPlay(11);
}
}
if (_root.jumpable == 1) {
_rotation = 0;
} else {
_rotation = xspeed * 5;
}
targetxspeed = 0;
if (Key.isDown(39) or Key.isDown(68)) {
targetxspeed = 4;
}
if (Key.isDown(37) or Key.isDown(65)) {
targetxspeed = -4;
}
if (Key.isDown(40) and _root.jumpable == 1) {
if (xspeed >= 0) {
gotoAndStop(7);
} else {
gotoAndStop(8);
}
targetxspeed = 0;
} else {
if (xspeed >= 0) {
if (_root.jumpable < 1) {
gotoAndStop(5);
} else {
if (xspeed > 1) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
} else {
if (xspeed < 0) {
if (_root.jumpable < 1) {
gotoAndStop(6);
} else {
if (xspeed < -1) {
gotoAndStop(4);
} else {
gotoAndStop(2);
}
}
}
}
}
if (Key.isDown(38) or Key.isDown(32) or Key.isDown(87)) {
if (_root.jumpable == 1) {
yspeed = -10;
}
}
yspeed += 1;
if (yspeed > 7) {
yspeed = 7;
}
_y = _y + yspeed;
xspeed += (targetxspeed - xspeed) / 4;
if (xspeed < 1 and xspeed > 0) {
xspeed = 1.0e-026;
}
if (xspeed > -1 and xspeed < 0) {
xspeed = -1.0e-026;
}
_x = _x + xspeed;
_root.jumpable = 0;
if (_y > 230) {
_y = 230;
yspeed = 0;
_root.jumpable = 1;
}
}
}
instance of movieClip 339 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
instance resetter of movieClip 295 {
onClipEvent (enterFrame) {
if (_root.reset == 1) {
play();
}
if (_currentframe == 15) {
_root.abouttomoveon = 1;
}
}
}
instance of movieClip 341 {
onClipEvent (keyPress 'r') {
_root.reset = 1;
}
onClipEvent (keyPress 'R') {
_root.reset = 1;
}
}
movieClip 611 {
}
instance of movieClip 611 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x < 130) {
tara = 100;
} else {
tara = 0;
}
}
}
movieClip 613 {
}
instance of movieClip 613 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 130 and _root.guy._x < 260) {
tara = 100;
} else {
tara = 0;
}
}
}
movieClip 615 {
}
instance of movieClip 615 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 260 and _root.guy._x < 390) {
tara = 100;
} else {
tara = 0;
}
}
}
movieClip 617 {
}
instance of movieClip 617 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 390 and _root.guy._x < 520) {
tara = 100;
} else {
tara = 0;
}
}
}
movieClip 619 {
}
instance of movieClip 619 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 520 and _root.guy._x < 750) {
tara = 100;
} else {
tara = 0;
}
}
}
instance of movieClip 611 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x < 130) {
tara = 100;
} else {
tara = 0;
}
}
}
instance of movieClip 613 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 130 and _root.guy._x < 260) {
tara = 100;
} else {
tara = 0;
}
}
}
instance of movieClip 615 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 260 and _root.guy._x < 390) {
tara = 100;
} else {
tara = 0;
}
}
}
instance of movieClip 617 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 390 and _root.guy._x < 520) {
tara = 100;
} else {
tara = 0;
}
}
}
instance of movieClip 619 {
onClipEvent (load) {
tara = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < tara) {
_alpha = _alpha + 10;
}
if (_alpha > tara) {
_alpha = _alpha - 10;
}
if (_root.guy._x > 520 and _root.guy._x < 750) {
tara = 100;
} else {
tara = 0;
}
}
}
instance of movieClip 122 {
onClipEvent (load) {
if (_root.music == 1) {
_visible = true;
_root.musicon = true;
} else {
_visible = false;
}
if (_root.musicon == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicon == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (release) {
if (_root.musicon == true) {
_root.musicon = false;
_root.coolTune.stop();
} else {
_root.musicon = true;
_root.coolTune.start(0, 999999);
}
}
}
frame 31 {
stop();
i = 0;
while (i < 50) {
mc = 'b' + i;
_root[mc].removeMovieClip();
++i;
}
}
instance resetter of movieClip 489 {
onClipEvent (load) {
gotoAndPlay(2);
}
}
button 633 {
on (release) {
getURL('http://armor.ag/MoreGames', '_blank');
}
}
button 636 {
on (release) {
getURL('http://www.facebook.com/ArmorGames', '_blank');
}
}