Weird Variable Problems

Hi, i’ve been doing some flash work on our mmpog ( www.projectducky.cjb.net ) for a while, and one of the major snags i’ve come across while programming the map (Non-current version: [url=“http://24.70.244.63/game/litemap2.swf”]24.70.244.63/game/litemap2.swf ) is that a couple territories have decided they don’t want to load in, even with identical code. My friend insists his asp code is perfect, and i can’t find any differences in the codes between the working and non-working territories.

The human territory seems to load on that map, but in reality i told it to go yellow regardless of its ownership.

So i guess my question is, is this my fault, his fault or a severly annoying flash bug?

Current Human Code (minus the work-around)

Cland refers to the territory you are in (in ingame mode)

if ((cland) != “Human”) {
if ((Human) == “Human”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x660000);
} else if ((Human) == “human”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x999900);
} else if ((Human) == “treant”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x009900);
} else if ((Human) == “undead”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x330033);
} else if ((Human) == “goblin”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x333333);
} else if ((Human) == “gith”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x804000);
} else if ((Human) == “nomad”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x808040);
}
} else {
if ((Human) == “Human”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x663300);
} else if ((Human) == “human”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x99bb00);
} else if ((Human) == “treant”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x00ff00);
} else if ((Human) == “undead”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x660066);
} else if ((Human) == “goblin”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0x666666);
} else if ((Human) == “gith”) {
mc_Human = new color(“Human”);
mc_Human.setrgb(0xce6700);
}
}