PDA

View Full Version : get your code heads on!


Mortimer Jazz
10-15-2002, 06:26 PM
I thought we could have a competition. Someone must be able to do better than these, [and knowing you lot there should be some
funny ones in amongst the replies] :)

Pseudo scripts
some code from the past....not very pc but only joking - honest! ;)

if(nagged == true && socialLife== false){
woman = true;
_root.trousers.pocket.wallet = "";//empty
}else{
woman=false;
gotoAndPlay("withYourself");

}

drinking pseudo-code

if (day=="Monday" || day=="Tuesday" || day=="Wednesday" || day=="Thursday" || day=="Friday" || day=="Saturday" || day=="Sunday") {
if (money==true){
celebration.gotoAndStop ("pub");//yay!
}else{
//if you haven't got enough cash then ask yor parent
_parent.gotoAndPlay('onSympathy');
loadVariables("beg.txt", "mouth");
amount = 50;
harrass(amount);
}
}

function harrass(dosh){
while (_parent.hasGivenIn == false || cashGiven<dosh || begLevel!=100){
begLevel ++;
}

if (success){
return fakeGratitude;
gotoAndPlay("drinking games");
}
}




..or maybe you could add extra functionality to one of mine :)
They could be rated on usefulness - how about a function to shut the kids up or something :D

Billy T
10-16-2002, 12:11 AM
if only flash was capable of such control over our lives...

the results could be catastrophic though :(

imagine a newbie (totally unaware of the power of Flash) was playing around with something like this while the TV was on in the background -

count=0;
_root.onEnterFrame=function(){
if(bushSaid=="terrorism"){
count++;
}
if(count>50){
myBrain.gotoAndStop("explode");
}
}

could get very ugly, very quickly...

Mortimer Jazz
10-16-2002, 12:20 AM
yay for topical code humour :D
I tried this part on it's own

if(bushSaid=="weapons of mass destruction"){
count++;
}

...and I got this message:

256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.

Billy T
10-16-2002, 12:29 AM
LOL ;)

maybe you should report this bug to macromedia - this is meant to be a professional program and it can't even keep up with current political affairs!! :(