Frame 1
stop();
Frame 2
function luoUkko() {
kuka._visible = false;
uusi = attachMovie("uggo", "uggo" + i, _root.getNextHighestDepth(), {_x:uggoX, _y:uggoY});
uusi.onPress = function () {
startDrag (this);
_root.kuka = this;
this.swapDepths(_root.getNextHighestDepth());
_root["yl\u00E4napit"].swapDepths(_root.getNextHighestDepth());
_root.generateGenetaulu();
};
uusi.onRelease = function () {
uggoStopDrag(this);
stopDrag();
};
uusi.onReleaseOutside = function () {
uggoStopDrag(this);
stopDrag();
};
i++;
kuka = uusi;
nollaa(kuka);
yl\u00E4napit.swapDepths(_root.getNextHighestDepth());
}
function uggoStopDrag(kuka) {
if (!_root["kaikkiN\u00E4kyvyys"]) {
kuka._x = _root.uggoX;
kuka._y = _root.uggoY;
}
}
function siirr\u00E4(_arg1, nro) {
var _local4 = new Color(_arg1.v);
v = "0x" + _local4.getRGB().toString(16);
var _local3 = new Color(_arg1.v2);
v2 = "0x" + _local3.getRGB().toString(16);
var _local2 = new Color(_arg1.v3);
v3 = "0x" + _local2.getRGB().toString(16);
_arg1.gotoAndStop(nro);
myColor = new Color(_arg1.v);
myColor.setRGB(v);
myColor = new Color(_arg1.v2);
myColor.setRGB(v2);
myColor = new Color(_arg1.v3);
myColor.setRGB(v3);
}
function siirr\u00E4Silm\u00E4t(_arg1, nro) {
var _local3 = new Color(_arg1.v);
v = "0x" + _local3.getRGB().toString(16);
var _local2 = new Color(_arg1.pupilli.v);
v2 = "0x" + _local2.getRGB().toString(16);
_arg1.gotoAndStop(nro);
myColor = new Color(_arg1.v);
myColor.setRGB(v);
myColor = new Color(_arg1.pupilli.v);
myColor.setRGB(v2);
}
function nollaa(kenelle) {
nollaaKamat(kenelle);
nollaaV\u00E4rit(kenelle);
nollaaData(kenelle);
setProperty(kenelle.naama.vsi.pupilli, _xscale , -100);
}
function nollaaKamat(kenelle) {
for (var _local2 in kenelle) {
if (_local2.charAt(0) == "x") {
kenelle[_local2]._visible = false;
}
}
kenelle.alusV._visible = true;
kenelle.ponnarit._visible = false;
kenelle.etukka._visible = false;
kenelle.ettukka._visible = false;
kenelle.eetukka._visible = false;
kenelle.sivutukka._visible = false;
kenelle.x_merkki.merkki.merkkinappi._visible = false;
kenelle.kulmakarvat = 1;
}
function nollaaV\u00E4rit(kenelle) {
for (var _local2 in kenelle) {
if (_local2.charAt(0) != "v") {
myColor = new Color(kenelle[_local2].v);
myColor.setRGB("0xFFFFFF");
myColor = new Color(kenelle[_local2].v2);
myColor.setRGB("0xFFFFFF");
myColor = new Color(kenelle[_local2].v3);
myColor.setRGB("0xFFFFFF");
}
}
myColor = new Color(kenelle.naama.vsi.pupilli.v);
myColor.setRGB("0xFFFFFF");
myColor = new Color(kenelle.naama.osi.pupilli.v);
myColor.setRGB("0xFFFFFF");
myColor = new Color(kenelle.naama.vk.v);
myColor.setRGB("0xFFFFFF");
myColor = new Color(kenelle.naama.ok.v);
myColor.setRGB("0xFFFFFF");
myColor = new Color(kenelle.naama.suu.v);
myColor.setRGB("0xFFFFFF");
kenelle.naama.suu.v._visible = false;
}
function nollaaData(kenelle) {
kenelle.mew = "???";
kenelle.etunimi = "???";
kenelle.sukunimi = "???";
kenelle.mewElukka = "???";
kenelle.luonne = new Array("???", "???", "???");
kenelle.harrastukset = new Array("???");
kenelle.tarina = "(description)";
kenelle.mewMerkki = "(location)";
kenelle["mewCardv\u00E4ri"] = "000000";
}
var uggoX = _root.apu_uggo._x;
var uggoY = _root.apu_uggo._y;
genetaulu._visible = false;
apu_uggo.unloadMovie();
var kuka = null;
var i = 0;
var kaikkiN\u00E4kyvyys = false;
luoUkko();
_root.nollaa(kuka);
function generateMew() {
if (datagene) {
generateData();
}
randomUggo();
_root.kuka["mewCardv\u00E4ri"] = "";
_root.genetaulu._visible = true;
huspois._visible = true;
if (!datagene) {
_root.genetaulu._visible = false;
}
generateGenetaulu();
if (!_root.genetaulu._visible) {
_root.mewcardnappi.gotoAndStop(1);
} else {
_root.mewcardnappi.gotoAndStop(2);
}
}
function generateData() {
_root.kuka.etunimi = "a";
_root.kuka.sukunimi = "a";
_root.kuka.pr = null;
_root.kuka.sc = null;
while (_root.kuka.etunimi == _root.kuka.sukunimi) {
_root.kuka.etunimi = annaRandom(etunimet, etunimet.length);
_root.kuka.sukunimi = annaRandom(sukunimet, sukunimet.length);
}
_root.kuka.mew = annaRandom(mewTaulu, mewTaulu.length);
_root.kuka.mewElukka = annaRandom(elukka, elukka.length);
annaHarrastus();
annaLuonne();
annaTarina();
}
function generateGenetaulu() {
if (!_root.genetaulu._visible) {
laitaUkkodata();
} else if (_root.kuka["mewCardv\u00E4ri"] != "") {
var _local3 = new Color(_root.genetaulu.v);
_root.kuka["mewCardv\u00E4ri"] = _local3.getRGB().toString(16);
}
_root.genetaulu.value_mew.text = "Mew " + _root.kuka.mew;
_root.genetaulu.value_givenName.text = _root.kuka.etunimi;
_root.genetaulu.value_familyName.text = _root.kuka.sukunimi;
_root.genetaulu.value_animal.text = _root.kuka.mewElukka;
if (_root.kuka.luonne[1] != "") {
_root.genetaulu.value_personality.text = (((_root.kuka.luonne[0] + ", ") + _root.kuka.luonne[1]) + ", ") + _root.kuka.luonne[2];
} else {
_root.genetaulu.value_personality.text = _root.kuka.luonne[0];
}
_root.genetaulu.value_hobbies.text = _root.kuka.harrastukset;
_root.genetaulu.value_story.text = _root.kuka.tarina;
_root.genetaulu.value_mewMark.text = _root.kuka.mewMerkki;
kloonaaMerkki();
genetauluv\u00E4rit();
if (_root.kuka["mewCardv\u00E4ri"] != "") {
var _local2 = new Color(_root.genetaulu.v);
_local2.setRGB("0x" + _root.kuka["mewCardv\u00E4ri"]);
}
}
function laitaUkkodata() {
if (_root.genetaulu.value_mew.text.indexOf("Mew ") == 0) {
_root.kuka.mew = _root.genetaulu.value_mew.text.substring(4, _root.genetaulu.value_mew.text.length);
} else {
_root.kuka.mew = _root.genetaulu.value_mew.text;
}
_root.kuka.etunimi = _root.genetaulu.value_givenName.text;
_root.kuka.sukunimi = _root.genetaulu.value_familyName.text;
_root.kuka.mewElukka = _root.genetaulu.value_animal.text;
_root.kuka.luonne = new Array(_root.genetaulu.value_personality.text, "", "");
_root.kuka.harrastukset = new Array(_root.genetaulu.value_hobbies.text);
_root.kuka.tarina = _root.genetaulu.value_story.text;
_root.kuka.mewMerkki = _root.genetaulu.value_mewMark.text;
}
function annaRandom(taulu, num) {
var _local1 = Math.floor(Math.random() * num);
return(taulu[_local1]);
}
function annaLuonne() {
eka = annaRandom(pos, pos.length);
toka = annaRandom(pos, pos.length);
var _local2 = 0;
do {
if (!((eka == toka) || (apuKiellettyYhdistelm\u00E4(eka, toka)))) {
break;
}
toka = annaRandom(pos, pos.length);
_local2++;
} while (_local2 != 20);
kolmas = annaRandom(neg, neg.length);
_local2 = 0;
do {
if (!(kiellettyYhdistelm\u00E4((eka + "-") + kolmas) || (kiellettyYhdistelm\u00E4((toka + "-") + kolmas)))) {
break;
}
kolmas = annaRandom(neg, neg.length);
_local2++;
} while (_local2 != 20);
_root.kuka.luonne = new Array(eka, toka, kolmas);
return((((eka + ", ") + toka) + ", ") + kolmas);
}
function apuKiellettyYhdistelm\u00E4(yy, kaa) {
if (yy < kaa) {
return(kiellettyYhdistelm\u00E4((eka + "-") + toka));
}
return(kiellettyYhdistelm\u00E4((toka + "-") + eka));
}
function kiellettyYhdistelm\u00E4(searchElement) {
var _local2 = 0;
var _local3 = kielletty.length - 1;
var _local1;
var _local4;
while (_local2 <= _local3) {
_local1 = ((_local2 + _local3) / 2) | 0;
_local4 = kielletty[_local1];
if (_local4 < searchElement) {
_local2 = _local1 + 1;
} else if (_local4 > searchElement) {
_local3 = _local1 - 1;
} else {
return(true);
}
}
return(false);
}
function annaHarrastus() {
_root.kuka.harrastukset = null;
monta = harrastusLkm();
var _local2 = 0;
h = "";
while (_local2 < monta) {
r = Math.floor(Math.random() * 20);
if (r > 13) {
uusi = annaRandom(harrastus, harrastus.length);
} else if (r > 6) {
uusi = annaRandom(liikunta, liikunta.length);
} else {
uusi = muuHarrastus();
}
if (h.indexOf(uusi) > -1) {
continue;
}
h = ((h + "* ") + uusi) + newline;
_local2++;
}
_root.kuka.harrastukset = h;
return("Hobbies: " + h);
}
function muuHarrastus() {
apuluku = Math.floor(Math.random() * 7) + 1;
if (apuluku >= 6) {
if (h.indexOf("collecting") > -1) {
return(annaRandom(harrastus, harrastus.length));
}
return("collecting " + ker\u00E4ilyharrastus());
}
if (apuluku == 5) {
if (h.indexOf("playing the") > -1) {
return(annaRandom(liikunta, liikunta.length));
}
return("playing the " + annaRandom(soitin, soitin.length));
}
if (apuluku == 4) {
if (h.indexOf("her pet") > -1) {
return(annaRandom(harrastus, harrastus.length));
}
return((("her pet " + annaRandom(lemmikki, lemmikki.length)) + " ") + annaRandom(lemmikkinimi, lemmikkinimi.length));
}
if (apuluku == 3) {
if (h.indexOf("listening to music") > -1) {
return(annaRandom(liikunta, liikunta.length));
}
return(genret("listening to music", musiikkigenre));
}
if (apuluku == 2) {
if (h.indexOf("reading") > -1) {
return(annaRandom(harrastus, harrastus.length));
}
if (h.indexOf("watching") > -1) {
return(annaRandom(liikunta, liikunta.length));
}
if (Math.floor(Math.random() * 20) > 10) {
return(genret("watching anime", animangagenre));
}
return(genret("reading manga", animangagenre));
}
if (h.indexOf("reading") > -1) {
return(annaRandom(harrastus, harrastus.length));
}
return(genret("reading", kirjagenre));
}
function genret(alku, taulu) {
if (Math.floor(Math.random() * 10) > 7) {
return(alku + " (anything goes!)");
}
monta = Math.floor(Math.random() * 3) + 1;
var _local1 = 0;
q = "";
while (_local1 < monta) {
r = Math.floor(Math.random() * 20);
uusi = annaRandom(taulu, taulu.length);
if (h.indexOf(uusi) > -1) {
continue;
}
q = (q + uusi) + ", ";
_local1++;
}
q = q.substring(0, q.length - 2);
return(((alku + " (") + q) + ")");
}
function ker\u00E4ilyharrastus() {
apuluku = Math.floor(Math.random() * 10) + 1;
if (apuluku > 4) {
return(annaRandom(ker\u00E4ily, ker\u00E4ily.length));
}
aputaulu = ker\u00E4ilyjuttu.concat(sarjat);
return((annaRandom(aputaulu, aputaulu.length) + " ") + annaRandom(ker\u00E4ilyobjekti, ker\u00E4ilyobjekti.length));
}
function harrastusLkm() {
apuluku = Math.floor(Math.random() * 25) + 1;
lkm = 1;
if (apuluku > 23) {
lkm = 5;
} else if (apuluku > 19) {
lkm = 4;
} else if (apuluku > 6) {
lkm = 3;
} else if (apuluku > 3) {
lkm = 2;
}
return(lkm);
}
var mew = "";
var mewElukka = "";
var datagene = true;
var ihogene = true;
var asugene = true;
var tukkagene = true;
var kasvogene = true;
var v\u00E4rigene = true;
var rehut = ["Strawberry", "Cherry", "Blueberry", "Raspberry", "Cranberry", "Fruit", "Vegetable", "Veggie", "Berry", "Grapes", "Orange", "Lemon", "Tangerine", "Apple", "Banana", "Grapefruit", "Peach", "Pineapple", "Pear", "Mango", "Apricot", "Lychee", "Cantaloupe", "Coconut", "Durian", "Kiwi", "Papaya", "Plum", "Pomelo", "Carambola", "Avocado", "Pomegranate", "Lime", "Citron", "Carrot", "Lettuce", "Cauliflower", "Cucumber", "Pea", "Bean", "Watermelon", "Tomato", "Chili", "Potato", "Yam", "Pepper", "Radish", "Onion", "Salad", "Pumpkin", "Broccoli", "Celery", "Corn", "Asparagus", "Garlic", "Ichigo", "Momo", "Ringo", "Sakuranbo", "Suika", "Mikan", "Ume", "Kaki", "Zakuro", "Anzu", "Tamanegi", "Daikon", "Shiitake", "Mint", "Truffle", "Peanut", "Acorn", "Chestnut", "Hazelnut", "Almond", "Walnut", "Pecan", "Pistachio", "Macadamia", "Cabbage", "Persimmon"];
var karkit = ["Chocolate", "Licorice", "Marshmallow", "Lollipop", "Vanilla", "Toffee", "Fudge", "Marzipan", "Sugar", "Candy", "Sweets", "Taffy", "Caramel", "Nougat", "Bubblegum", "Pudding", "Muffin", "Cupcake", "Cake", "Pie", "Biscuit", "Cotton candy", "Tiramisu", "Ice cream", "Merengue", "Tart", "Croissant", "Cinnamon roll", "Cheesecake", "Fruitcake", "Neapolitan", "Crepe", "Jelly", "Gingerbread", "Cookie", "Pastry", "Macaron", "Souffle", "Doughnut", "Eclair", "Praline", "Beignet", "Brioche", "Mochi", "Pocky", "Smoothie", "Sundae", "Dango", "Parfait", "Waffle", "Bonbon", "Syrup", "Jam", "Custard", "Trifle", "Beignet", "Berliner", "Mellorine", "Popsicle", "Sorbet", "Milkshake", "Pastry", "Mooncake", "Pretzel", "Strudel", "Honey", "Dessert", "Donut", "Dumpling", "Sherbert", "Cream", "Mousse"];
var mewTaulu = rehut.concat(karkit);
var liikunta = ["swimming", "archery", "kendo", "karate", "horseback riding", "soccer", "american football", "basketball", "baseball", "golf", "lacrosse", "volleyball", "taking walks", "biking", "running", "jogging", "roller skating", "roller blading", "skating", "figure skating", "ballet", "flamenco", "yoga", "hiking", "orienteering", "paintball", "scuba diving", "skiing", "snowboarding", "surfing", "urban exploration", "badminton", "billiards", "bowling", "boxing", "cheerleading", "dancing", "fencing", "gymnastics", "ice hockey", "judo", "table tennis", "tennis"];
var harrastus = ["painting", "paper dolls", "figures", "drawing", "cooking", "baking", "sculpting", "writing", "poetry", "calligraphy", "photography", "fashion", "computers", "video games", "wasting time on the internet", "acting", "blogging", "board games", "role playing", "LARPing", "cosplay", "candle making", "various art & crafts", "woodwork", "needlework", "metalwork", "making stuffed animals", "embroidery", "flower arrangement", "jewellery making", "knitting", "lego building", "puzzles", "scrapbooking", "card games", "singing", "crosswords", "sudoku", "astronomy", "watching tv", "comics", "bird watching", "fishing", "gardening", "geocaching", "ghost hunting", "shopping", "chess", "shogi", "go", "train spotting", "aircraft spotting", "astrology", "tarot cards", "fortune telling", "people watching", "traveling", "stage magic", "choir", "playing a super hero", "drawing manga", "pressing flowers"];
var ker\u00E4ily = ["beautiful stones", "seashells", "bottle caps", "anime figures", "stamps", "match boxes", "rings", "jewellery", "socks", "rubber ducks", "hair ribbons", "action figures", "trading cards", "dice", "marbles", "cute things", "dolls", "stuffed animals", "Furbies", "stickers"];
var soitin = ["piano", "flute", "violin", "guitar", "cello", "drums", "accordion", "bagpipe", "clarinet", "oboe", "trumpet", "didgeridoo", "harmonica", "ocarina", "tuba", "saxophone", "harp", "banjo", "mandolin", "ukulele", "bass guitar", "koto", "lute", "lyre"];
var ker\u00E4ilyjuttu = ["cat", "dog", "squirrel", "hedgehog", "rabbit", "horse", "wolf", "sheep", "pig", "elephant", "tiger", "giraffe", "rhinoceros", "bear", "mouse", "bird", "owl", "penguin", "chicken", "cow", "fish", "octopus", "seahorse", "bug", "butterfly", "bee", "ladybug", "Furby", "panda", "lion", "fox", "polar bear", "eagle", "skunk", "lizard", "snake", "dinosaur", "hamster", "dolphin", "turtle", "tortoise", "duck", "monkey", "frog", "unicorn", "seal", "crocodile", "ferret", "spider", "deer", "goat", "reindeer", "gecko", "sloth", "camel", "red panda", "mammoth", "otter", "parrot", "mermaid"];
var sarjat = ["Pokemon", "Digimon", "anime", "Disney", "Sailor Moon", "Precure", "magical girl", "Disney Princess", "One Piece", "Ghibli", "Totoro", "Turtles", "Batman"];
var ker\u00E4ilyobjekti = ["items", "post cards", "figures", "stickers", "toys", "accessories"];
var lemmikki = ["cat", "dog", "parrot", "rabbit", "fish", "goldfish", "hamster", "guinea pig", "budgie", "alpaca", "rat", "gerbil", "chinchilla", "canary", "duck", "parakeet", "tortoise", "turtle", "snake", "lizard", "gecko", "iguana", "frog", "axolotl", "tarantula"];
var musiikkigenre = ["rock", "pop", "hip hop", "rap", "classic", "metal", "heavy metal", "J-pop", "K-pop", "J-rock", "anime music", "Disney songs", "blues", "R&B", "jazz", "reggae", "country", "electro", "electropop", "disco", "techno", "industrial", "folk", "soul", "punk", "hard rock"];
var animangagenre = ["action", "adventure", "comedy", "drama", "fantasy", "harem", "historical", "horror", "josei", "shoujo", "seinen", "shounen", "magic", "martial arts", "mecha", "sci-fi", "magical girl", "music", "mystery", "parody", "psychological", "romance", "samurai", "school", "slice of life", "space", "sports", "supernatural", "thriller"];
var kirjagenre = ["drama", "graphic novel", "poetry", "comedy", "non fiction", "romance", "tragedy", "detective", "crime", "fairy tale", "fan fiction", "fantasy", "historical fiction", "horror", "humor", "magical realism", "metafiction", "mythology", "mystery", "sci-fi", "suspense", "thriller", "high fantasy", "low fantasy", "urban fantasy", "cosmic horror", "gothic horror", "cyberpunk"];
var elukka = ["amur leopard", "black rhino", "cross river gorilla", "Javan rhino", "mountain gorilla", "South China tiger", "Sumatran elephant", "pangolin", "saola", "Sumatran orangutang", "Sumatran tiger", "Sumatran rhino", "African wild dog", "Amur tiger", "Asian elephant", "Bengal tiger", "black spider monkey", "black-footed ferret", "blue whale", "bonobo", "Bornean orangutang", "Galapagos penguin", "Ganges river dolphin", "giant panda", "green turtle", "Indian elephant", "snow leopard", "dugong", "giant tortoise", "marine iguana", "polar bear", "red panda", "whale shark", "jaguar", "monarch butterfly", "plains bison", "Arctic fox", "brown bear", "blue-throated macaw", "Asiatic cheetah", "axolotl", "Bactrian camel", "California condor", "Chinese alligator", "Chinese giant salamander", "Iberian lynx", "Leadbeater's Possum", "kakapo", "Mediterranean monk seal", "Northern hairy-nosed wombat", "Philippine eagle", "red wolf", "Siamese crocodile", "Malayan tiger", "Southern bluefin tuna", "hawksbill sea turtle", "African penguin", "Asiatic lion", "Ethiopian wolf", "hispid hare", "giant otter", "Goliath frog", "Grevy's zebra", "hyacinth macaw", "Japanese crane", "Malayan tapir", "Persian leopard", "pygmy hippopotamus", "Rotschild's giraffe", "South Andean deer", "Przewalski's horse", "Vietnamese pheasant", "volcano rabbit", "wild water buffalo", "fishing cat", "Catarina pupfish", "African lion", "clouded leopard", "cheetah", "Pere David's deer", "Scimitar oryx", "Socorro dove", "Wyoming toad", "fossa", "Galapagos tortoise", "golden hamster", "Humboldt penguin", "Komodo dragon", "mandrill", "maned sloth", "mountain zebra", "yak", "armadillo", "Amami rabbit", "New England cottontail rabbit", "grey myotis", "Javan thick-thumbed bat", "grey bat", "false serotine bat", "karner blue butterfly", "Ceylon rose", "palos verdes blue", "saturn butterfly", "banded peacock"];
var lemmikkinimi = ["Bubu", "Killer", "Destroyer", "Fifi", "Cleo", "Coco", "Yuki", "Momo", "Bacon", "Goomba", "Alpha", "Omega", "Nami", "Harry", "Harvey", "Harold", "Puff", "Honey", "Holy", "Lucky", "Nala", "Luigi", "Mario", "Peach", "Zelda", "Hazel", "Maroon", "Cupcake", "Dixie", "Pixie", "Popo", "John", "Mary", "Moomoo", "Ivan", "Duke", "The Duchess", "Princess", "Muffin", "Peanut", "Dumbledore", "Frodo", "Aragorn", "Hiro", "Toto", "Olaf", "Alma", "Spock", "Loony", "Moony", "Lord Helix", "Cinnamon Roll", "Chamomile", "Maroon", "Sky", "Rover", "Hamlet", "Buzz", "Kiki", "Elsa", "Masha", "Mocha", "Maru", "Pocky", "Peaches", "Manny", "Sid", "Diego", "Olive", "Doom", "Apple", "Flower", "Rose", "Lily", "Poppy", "Twilight", "Sparkles", "Rufus", "Belle", "Cindy", "Moro", "Paro", "Tyrannosaurus", "King", "Prince", "Clover", "Polly", "Molly", "Sebastian", "Saruman", "Voldemort", "Miki", "Mickey", "Minnie", "Mini", "Daisy", "Donald", "Aurora", "Handsome", "Gorgeus", "Carl", "Phil", "Bob", "Wally", "Zuko", "Zoro", "Zozo", "Barbie", "Ken", "Shelly", "Chou-Chou", "Yoko", "Momiji", "Charlotte", "Charlotta", "Cutie", "Hime", "Dia", "Pearl", "Goldie", "Ace", "Ai", "Al", "Alfonso", "Alice", "Antonio", "Antoinette", "Apollo", "Astrid", "Ingrid", "Frida", "Beau", "Bella", "Bianca", "Blanche", "Billy", "Bill", "Bob", "Boris", "Bubbles", "Carrie", "Caesar", "Chiko", "Chief", "Diana", "Diva", "Allen", "Michelle", "Dotty", "Ed", "Elvis", "Gaston", "Maleficent", "Ursula", "Gloriosa", "Grumpy", "Leonardo", "Donatello", "Raphael", "Michelangelo", "Gustav", "Lulu", "Mitzi", "Moe-Moe", "Murphy", "Muffy", "Nana", "Opal", "Ozzie", "Ozzy", "Jasmine", "Pietro", "Jane", "Poko", "Rio", "Robin", "Ally", "Ruby", "Stella", "Tank", "Tom", "Walt", "Wendy", "Torako", "Momochi", "Cutie Pie", "Mr Handsome", "Bubba", "Baron", "Jabba", "Jojo"];
var pos = ["accessible", "active", "adaptable", "adventurous", "ambitious", "amiable", "amusing", "appreciative", "artful", "ascetic", "athletic", "authoritarian", "balanced", "benevolent", "breezy", "brilliant", "calm", "capable", "captivating", "caring", "casual", "challenging", "charismatic", "charming", "cheerful", "chummy", "clean", "clear-headed", "clever", "colorful", "companionly", "compassionate", "competitive", "confident", "conservative", "considerate", "contemplative", "cooperative", "courageous", "courteous", "creative", "cultured", "curious", "daring", "dedicated", "deep", "determined", "disciplined", "dominating", "dreamy", "dramatic", "dutiful", "dynamic", "earnest", "earthy", "eccentric", "efficient", "elegant", "eloquent", "emotional", "empathetic", "energetic", "enigmatic", "enthusiastic", "exciting", "extraordinary", "fair", "faithful", "farsighted", "feminine", "firm", "flexible", "focused", "forgiving", "formal", "forthright", "freethinking", "friendly", "frugal", "fun-loving", "gallant", "generous", "gentle", "genuine", "glamorous", "good-natured", "gracious", "hardworking", "hearty", "helpful", "honest", "honorable", "hot headed", "humble", "humorous", "idealistic", "imaginative", "impersonal", "impressionable", "incorruptible", "independent", "individualistic", "innovative", "insightful", "intelligent", "intense", "intuitive", "kind", "leaderly", "leisurely", "liberal", "logical", "lovable", "loyal", "lyrical", "maternal", "mature", "mellow", "methodical", "moderate", "modest", "mystical", "neat", "nonauthoritarian", "noncompetitive", "obedient", "observant", "old-fashined", "open", "optimistic", "orderly", "ordinary", "organized", "outspoken", "passionate", "patient", "peaceful", "perceptive", "perfectionist", "persuasive", "planful", "playful", "popular", "practical", "precise", "predictable", "principled", "profound", "protective", "proud", "prudent", "punctual", "pure", "quiet", "rational", "realistic", "reflective", "relaxed", "reliable", "religious", "reserved", "resourceful", "respectful", "responsible", "responsive", "romantic", "rustic", "sarcastic", "scholarly", "selfless", "self-conscious", "self-critical", "self-defacing", "self-denying", "selfreliant", "self-sufficent", "sensitive", "sentimental", "serious", "sharing", "shrewd", "simple", "skeptical", "skillful", "solitary", "sociable", "sophisticated", "spontaneous", "sporting", "stable", "steadfast", "steady", "stern", "stoic", "strict", "strong", "studious", "stylish", "suave", "subtle", "surprising", "sweet", "sympathetic", "systematic", "tasteful", "teacherly", "thorough", "tidy", "tolerant", "tomboyish", "tough", "trusting", "unceremonious", "uncomplaining", "undemanding", "understanding", "undogmatic", "unfoolable", "unpredicatable", "unsentimental", "upright", "vivacious", "warm", "well-bred", "well-read", "well-rounded", "whimsical", "wise", "witty"];
var neg = ["abrasive", "abrupt", "absentminded", "aggressive", "agonizing", "aimless", "airy", "aloof", "amoral", "angry", "anxious", "apathetic", "argumentative", "arrogant", "artificial", "asocial", "assertive", "bizarre", "bland", "blunt", "brooding", "calculating", "callous", "careless", "cautious", "charmless", "childish", "clumsy", "coarse", "cold", "colorless", "complaintive", "conceited", "conformist", "confused", "cowardly", "crafty", "crass", "critical", "crude", "cynical", "deceitful", "deceptive", "delicate", "demanding", "dependent", "devious", "difficult", "dishonest", "disloyal", "disobedient", "disorganized", "disrespectful", "disruptive", "domineering", "dull", "easily discouraged", "egocentric", "envious", "erratic", "escapist", "excitable", "extravagant", "extreme", "fanatical", "fanciful", "fawning", "fearful", "fickle", "fiery", "fixed", "foolish", "forgetful", "frivolous", "gloomy", "graceless", "greedy", "grim", "gullible", "hateful", "haughty", "hedonistic", "hesitant", "hostile", "ignorant", "imitative", "impatient", "impractical", "impulsive", "inconsiderate", "indecisive", "indulgent", "insecure", "insensitive", "insincere", "insulting", "intolerant", "irrational", "irresponsible", "irritable", "lazy", "loner", "mean spirited", "mechanical", "meddlesome", "melancholic", "messy", "misguided", "moody", "naive", "narcissistic", "narrow-minded", "negativistic", "neglectful", "neurotic", "noncommittal", "obnoxious", "obsessive", "obvious", "odd", "one-dimensional", "one-sided", "opinionated", "opportunistic", "over-emotional", "overimaginative", "paranoid", "passive", "pedantic", "petty", "pompous", "possessive", "power-hungry", "prejudiced", "presumptuous", "pretentious", "procrastinating", "provocative", "quirky", "reactionary", "reactive", "regretful", "repentant", "repressed", "resentful", "ridiculous", "rigid", "rowdy", "sanctimonious", "scheming", "scornful", "secretive", "selfish", "selfindulgent", "shallow", "shortsighted", "shy", "silly", "single-minded", "sloppy", "slow", "sly", "snob", "softheaded", "stiff", "strongwilled", "stubborn", "submissive", "superficial", "superstitious", "suspicious", "tactless", "tasteless", "tense", "thoughtless", "timid", "treacherous", "trendy", "troublesome", "unambitious", "unappreciative", "uncaring", "uncharitable", "unconvincing", "uncooperative", "uncreative", "uncritical", "undisciplined", "unfriendly", "ungrateful", "unhealthy", "unimaginative", "unimpressive", "unlovable", "unprincipled", "unrealistic", "unreliable", "unrestrained", "unstable", "vindictive", "vulnerable", "weak", "weak-willed", "well-meaning", "wishful", "zany"];
var kielletty = ["accessible-aloof", "accessible-asocial", "accessible-cold", "accessible-enigmatic", "accessible-hostile", "accessible-rigid", "accessible-solitary", "accessible-stiff", "accessible-tense", "accessible-unfriendly", "active-apathetic", "active-calm", "active-lazy", "active-leisurely", "active-passive", "active-slow", "adaptable-uncooperative", "ambitious-aimless", "ambitious-easily discouraged", "ambitious-self-defacing", "ambitious-unambitious", "amiable-abrasive", "amiable-aloof", "amiable-arrogant", "amiable-asocial", "amiable-brooding", "amiable-callous", "amiable-coarse", "amiable-cold", "amiable-conceited", "amiable-gloomy", "amiable-grim", "amiable-hateful", "amiable-haughty", "amiable-hostile", "amiable-inconsiderate", "amiable-tactless", "amiable-uncaring", "amiable-unfriendly", "amusing-dull", "appreciative-greedy", "appreciative-ignorant", "appreciative-unappreciative", "artful-unimaginative", "ascetic-demanding", "ascetic-glamorous", "ascetic-greedy", "ascetic-hedonistic", "ascetic-narcissistic", "ascetic-selfindulgent", "ascetic-snob", "ascetic-unprincipled", "athletic-lazy", "authoritarian-nonauthoritarian", "balanced-fickle", "balanced-frivolous", "balanced-neurotic", "benevolent-amoral", "benevolent-crude", "benevolent-deceitful", "benevolent-deceptive", "benevolent-dishonest", "benevolent-disloyal", "benevolent-hateful", "benevolent-haughty", "benevolent-hostile", "benevolent-insulting", "benevolent-mean spirited", "benevolent-treacherous", "benevolent-uncaring", "benevolent-uncharitable", "benevolent-unfriendly", "breezy-formal", "breezy-rigid", "breezy-stiff", "breezy-tense", "brilliant-foolish", "calm-aggressive", "calm-dynamic", "calm-hot headed", "calm-impulsive", "calm-over-emotional", "calm-rowdy", "calm-unrestrained", "calm-unstable", "calm-vivacious", "capable-dependent", "captivating-bland", "captivating-charmless", "captivating-colorless", "captivating-dull", "caring-cold", "caring-hateful", "caring-haughty", "caring-hostile", "caring-insulting", "caring-mean spirited", "caring-uncaring", "caring-unfriendly", "casual-formal", "casual-glamorous", "casual-stiff", "casual-tense", "charismatic-bland", "charismatic-charmless", "charismatic-colorless", "charismatic-dull", "charismatic-unconvincing", "charismatic-unimpressive", "charming-bland", "charming-charmless", "charming-unlovable", "cheerful-anxious", "cheerful-brooding", "cheerful-gloomy", "cheerful-grim", "cheerful-melancholic", "cheerful-negativistic", "chummy-aloof", "chummy-asocial", "chummy-impersonal", "chummy-loner", "chummy-reserved", "chummy-unfriendly", "clean-messy", "clever-foolish", "colorful-bland", "colorful-colorless", "colorful-dull", "colorful-gloomy", "colorful-grim", "companionly-aloof", "companionly-asocial", "companionly-impersonal", "companionly-loner", "companionly-reserved", "companionly-unfriendly", "compassionate-amoral", "compassionate-haughty", "compassionate-hostile", "compassionate-ignorant", "compassionate-inconsiderate", "compassionate-mean spirited", "compassionate-uncaring", "competitive-noncompetitive", "confident-cowardly", "confident-easily discouraged", "confident-fearful", "confident-hesitant", "confident-indecisive", "confident-shy", "confident-timid", "confident-weak", "confident-weak-willed", "conservative-freethinking", "conservative-innovative", "conservative-liberal", "considerate-crude", "considerate-deceitful", "considerate-deceptive", "considerate-dishonest", "considerate-disloyal", "considerate-disrespectful", "considerate-disruptive", "considerate-egocentric", "considerate-hateful", "considerate-hostile", "considerate-ignorant", "considerate-inconsiderate", "considerate-insensitive", "considerate-selfish", "considerate-uncaring", "contemplative-impulsive", "contemplative-opportunistic", "contemplative-provocative", "contemplative-spontaneous", "cooperative-inconsiderate", "courageous-cowardly", "courteous-abrasive", "courteous-aloof", "courteous-callous", "courteous-crude", "courteous-inconsiderate", "courteous-tactless", "creative-uncreative", "cultured-crass", "daring-cautious", "daring-hesitant", "daring-shy", "daring-timid", "dedicated-aimless", "dedicated-airy", "dedicated-fickle", "dedicated-noncommittal", "deep-one-sided", "deep-shallow", "deep-superficial", "determined-easily discouraged", "determined-fickle", "determined-hesitant", "determined-indecisive", "determined-weak-willed", "disciplined-eccentric", "disciplined-frivolous", "disciplined-hedonistic", "disciplined-indulgent", "disciplined-nonauthoritarian", "disciplined-undisciplined", "dominating-submissive", "dramatic-apathetic", "dramatic-colorless", "dramatic-dull", "dramatic-moderate", "dramatic-modest", "dramatic-stoic", "dramatic-unceremonious", "dreamy-cynical", "dutiful-careless", "dutiful-irresponsible", "earnest-airy", "earnest-crazy", "earnest-excitable", "earnest-extravagant", "earnest-fanatical", "earnest-fanciful", "earnest-frivolous", "earnest-playful", "earnest-whimsical", "earnest-zany", "eccentric-conformist", "elegant-blunt", "elegant-clumsy", "elegant-coarse", "elegant-crass", "elegant-crude", "elegant-graceless", "eloquent-blunt", "eloquent-coarse", "eloquent-crass", "eloquent-crude", "emotional-stoic", "empathetic-hostile", "empathetic-insulting", "empathetic-mean spirited", "empathetic-narcissistic", "empathetic-selfindulgent", "empathetic-selfish", "energetic-gloomy", "energetic-mellow", "energetic-passive", "energetic-reactionary", "energetic-reactive", "enigmatic-one-dimensional", "enigmatic-one-sided", "enigmatic-simple", "enthusiastic-apathetic", "enthusiastic-brooding", "exciting-bland", "exciting-dull", "extraordinary-bland", "extraordinary-dull", "extraordinary-ordinary", "fair-amoral", "fair-deceitful", "fair-deceptive", "faithful-fickle", "farsighted-shortsighted", "feminine-tomboyish", "firm-fickle", "flexible-stiff", "flexible-strict", "flexible-stubborn", "flexible-uncooperative", "focused-airy", "focused-fickle", "focused-unstable", "forgiving-hateful", "forgiving-resentful", "forgiving-vindictive", "freethinking-imitative", "freethinking-reactionary", "freethinking-reactive", "freethinking-submissive", "friendly-aloof", "friendly-hostile", "friendly-ignorant", "friendly-unfriendly", "frugal-frivolous", "frugal-glamorous", "frugal-hedonistic", "frugal-indulgent", "fun-loving-apathetic", "fun-loving-brooding", "fun-loving-grim", "gallant-fearful", "gentle-abrasive", "gentle-aggressive", "gentle-aloof", "gentle-callous", "gentle-coarse", "gentle-cold", "gentle-crude", "gentle-hostile", "gentle-scornful", "genuine-artificial", "genuine-deceitful", "genuine-deceptive", "genuine-dishonest", "genuine-disloyal", "genuine-insincere", "genuine-pretentious", "genuine-treacherous", "glamorous-dull", "glamorous-rustic", "grateful-ungrateful", "hardworking-lazy", "honest-deceitful", "honest-deceptive", "honest-devious", "honest-dishonest", "honest-insincere", "honorable-deceitful", "honorable-deceptive", "honorable-dishonest", "hot headed-aloof", "hot headed-apathetic", "hot headed-cold", "hot headed-leisurely", "hot headed-mellow", "hot headed-moderate", "hot headed-passive", "hot headed-patient", "humble-arrogant", "humorous-dull", "humorous-gloomy", "humorous-grim", "humorous-serious", "idealistic-apathetic", "idealistic-cynical", "imaginative-cynical", "imaginative-dull", "imaginative-unimaginative", "independent-dependent", "individualistic-conformist", "innovative-dull", "innovative-old-fashioned", "innovative-unimaginative", "intense-bland", "intense-moderate", "intuitive-calculating", "kind-aloof", "kind-cold", "kind-crude", "kind-hostile", "kind-mean spirited", "kind-unfriendly", "leaderly-conformist", "leaderly-submissive", "liberal-intolerant", "lovable-unlovable", "loyal-disloyal", "mature-childish", "mature-immature", "mellow-harsh", "mellow-rough", "methodical-disorganized", "moderate-hedonistic", "moderate-indulgent", "modest-arrogant", "neat-disorganized", "nonauthoritarian-conformist", "nonauthoritarian-obedient", "nonauthoritarian-submissive", "noncompetitive-competitive", "old-fashioned-trendy", "optimistic-anxious", "optimistic-apathetic", "optimistic-brooding", "optimistic-cynical", "optimistic-gloomy", "optimistic-grim", "optimistic-melancholic", "optimistic-negativistic", "orderly-disorganized", "outspoken-devious", "outspoken-quiet", "outspoken-reserved", "outspoken-shy", "passionate-apathetic", "passionate-cold", "passionate-indifferent", "passionate-uncaring", "patient-fickle", "patient-impatient", "peaceful-aggresive", "peaceful-hateful", "perfectionist-sloppy", "planful-disorganized", "planful-spontaneous", "playful-aloof", "playful-cold", "playful-unfriendly", "popular-unlovable", "practical-impractical", "precise-sloppy", "principled-unprincipled", "quiet-rowdy", "quiet-vivacious", "rational-irrational", "realistic-unrealistic", "relaxed-anxious", "relaxed-rigid", "relaxed-stiff", "reliable-unreliable", "reserved-unrestained", "responsible-irresponsible", "responsive-unresponsive", "romantic-unromantic", "selfless-selfish", "self-defacing-arrogant", "self-denying-arrogant", "selfreliant-dependant", "self-sufficent-dependant", "sensitive-insensitive", "sentimental-unsentimental", "serious-careless", "serious-fawning", "serious-zany", "sharing-greedy", "sharing-selfish", "shrewd-soft-headed", "skeptical-gullible", "solitary-sociable", "stable-fickle", "stable-unstable", "stable-whimsical", "steadfast-fickle", "steadfast-unstable", "steady-fickle", "steady-unstable", "stoic-responsive", "strict-sloppy", "strong-weak", "studious-lazy", "stylish-sloppy", "suave-clumsy", "suave-unfriendly", "subtle-blunt", "subtle-harsh", "subtle-unsubtle", "surprising-dull", "surprising-unsurprising", "sweet-aloof", "sweet-coarse", "sweet-crass", "sweet-crude", "sympathetic", "sympathetic-unsympathetic", "systematic-unsystematic", "thorough-sloppy", "tidy-messy", "tidy-sloppy", "tolerant-intolerant", "tough-cowardly", "tough-weak", "trusting-suspicious", "uncomplaining-complaining", "undemanding-demanding", "undemanding-selfish", "undogmatic-dogmatic", "unfoolable-foolable", "unpredicatable-predictable", "upright-dishonest", "vivacious-dull", "warm-cold"];
var etunimet = ["Aemi", "Ai", "Aika", "Aiko", "Aimi", "Aina", "Aino", "Airi", "Akae", "Akaho", "Akana", "Akane", "Akari", "Akemi", "Aki", "Akie", "Akiha", "Akiho", "Akiko", "Akimi", "Akina", "Akino", "Akiyo", "Ako", "Ami", "Amika", "An", "Anna", "Anri", "Anzu", "Aoi", "Ari", "Arika", "Arina", "Arisa", "Asa", "Asae", "Asaka", "Asako", "Asami", "Asano", "Asayo", "Asuka", "Asumi", "Asuna", "Atsue", "Atsuko", "Atsumi", "Atsune", "Aya", "Ayae", "Ayaka", "Ayako", "Ayame", "Ayami", "Ayana", "Ayane", "Ayano", "Ayu", "Ayuka", "Ayuko", "Ayumi", "Azuna", "Azusa", "Benika", "Beniko", "Beniha", "Benio", "Chiaki", "Chie", "Chieka", "Chieko", "Chiemi", "Chieri", "Chifumi", "Chifuyu", "Chigusa", "Chiharu", "Chihiro", "Chiho", "Chihoko", "Chihori", "Chika", "Chikage", "Chikaho", "Chikako", "Chikayo", "Chikaze", "China", "Chinatsu", "Chinami", "Chino", "Chio", "Chisa", "Chisaki", "Chisako", "Chisami", "Chisano", "Chisato", "Chise", "Chisuzu", "Chitose", "Chiyako", "Chiyo", "Chiyoko", "Chiyoe", "Chiyori", "Chiyu", "Chiyuki", "Chiyuri", "Chizu", "Chizue", "Chizuka", "Chizuko", "Chizumi", "Chizuru", "Chouko", "Eho", "Ei", "Eika", "Eiko", "Eimi", "Eka", "Eko", "Ema", "Emi", "Emiho", "Emika", "Emiko", "Emina", "Emiri", "Ena", "Erena", "Eri", "Erika", "Eriko", "Erina", "Erisa", "Esumi", "Etsu", "Etsuko", "Etsumi", "Fuji", "Fujiko", "Fujie", "Fuki", "Fukiko", "Fukiyo", "Fukuko", "Fukuyo", "Fumi", "Fumie", "Fumiho", "Fumika", "Fumiko", "Fumina", "Fumino", "Fumiyo", "Fusa", "Fusae", "Fusako", "Fusami", "Fusayo", "Futaba", "Fuuka", "Fuuki", "Fuuko", "Fuyu", "Fuyuka", "Fuyuko", "Fuyumi", "Hagino", "Hako", "Hamako", "Hamano", "Hami", "Hana", "Hanae", "Hanaka", "Hanako", "Hanayo", "Harue", "Haruka", "Haruko", "Harumi", "Haruna", "Haruno", "Haruyo", "Hasumi", "Hatomi", "Hatsu", "Hatsue", "Hatsuho", "Hatsuko", "Hatsumi", "Hatsuna", "Hatsune", "Hatsuyo", "Hayaka", "Hazuki", "Hibari", "Hideka", "Hideko", "Hidemi", "Hideyo", "Hikari", "Hikaru", "Himeka", "Himeko", "Himiko", "Hina", "Hinako", "Hirari", "Hiro", "Hiroe", "Hiroha", "Hiroko", "Hiromi", "Hirona", "Hiroyo", "Hisa", "Hisae", "Hisako", "Hisami", "Hisano", "Hisayo", "Hitomi", "Hizuru", "Homi", "Homika", "Homina", "Homugi", "Homura", "Hona", "Honami", "Honoka", "Honomi", "Hoshika", "Hoshiko", "Hoshimi", "Hoshiyo", "Hosuzu", "Hotaru", "Hozumi", "Ichie", "Ichiha", "Ichiho", "Ichiko", "Ikue", "Ikuko", "Ikumi", "Ikuna", "Ikuyo", "Imari", "Ine", "Io", "Iria", "Isa", "Isae", "Isaki", "Isako", "Isano", "Isoko", "Isono", "Itsuka", "Itsuko", "Itsumi", "Itsuyo", "Iyo", "Iyona", "Izumi", "June", "Junko", "Junna", "Juri", "Juria", "Kae", "Kaede", "Kaho", "Kahoko", "Kahori", "Kahoru", "Kako", "Kami", "Kana", "Kanae", "Kanako", "Kanami", "Kanayo", "Kanna", "Kanon", "Kao", "Kaoru", "Kaoruko", "Kaori", "Karen", "Karin", "Karina", "Kasumi", "Katsu", "Katsue", "Katsuki", "Katsuko", "Katsumi", "Kaya", "Kayami", "Kayo", "Kayoko", "Kayu", "Kazu", "Kazue", "Kazuha", "Kazuho", "Kazuko", "Kazumi", "Kazuna", "Kazuno", "Kazuyo", "Kei", "Keiko", "Keina", "Kii", "Kie", "Kiho", "Kihomi", "Kiko", "Kiku", "Kikue", "Kikuka", "Kikuko", "Kikumi", "Kikuno", "Kikuyo", "Kimi", "Kimie", "Kimiho", "Kimika", "Kimiko", "Kimiyo", "Kina", "Kinu", "Kinue", "Kinuho", "Kinuka", "kinuko", "Kinumi", "Kino", "Kinoka", "Kirari", "Kiri", "Kirie", "Kirika", "Kisa", "Kiwa", "Kiyo", "Kiyoe", "Kiyoka", "Kiyoko", "Kiyomi", "Kiyone", "Kiyono", "Kiyori", "Kiyumi", "Kofuyu", "Koharu", "Koma", "Komaki", "Komi", "Konami", "Konatsu", "Konomi", "Koto", "Kotoe", "Kotoha", "Kotoka", "Kotomi", "Kotone", "Kotono", "Kotori", "Kotoyo", "Kouko", "Koume", "Kozue", "Kumi", "Kumiko", "Kunie", "Kunika", "Kuniko", "Kunimi", "Kurea", "Kurumi", "Kyouka", "Kyouko", "Kyoumi", "Nachi", "Nae", "Naeko", "Nagami", "Nagi", "Nagisa", "Nagomi", "Naho", "Nahoe", "Nahoko", "Naka", "Nakako", "Nako", "Nami", "Namie", "Namika", "Namiko", "Namiyo", "Nana", "Nanae", "Nanaho", "Nanaka", "Nanako", "Nanami", "Nanao", "Nanase", "Nao", "Naoko", "Naomi", "Nari", "Narimi", "Naru", "Narue", "Naruha", "Naruho", "Naruko", "Narumi", "Natsu", "Natsue", "Natsuho", "Natsuki", "Natsuko", "", "Natsumi", "Natsuyo", "Nayu", "Nayuko", "Nayumi", "Nene", "Nichie", "Niina", "Nijie", "Nijika", "Nijiko", "Nijimi", "Nijino", "Nijiyo", "Nina", "Noa", "Nobue", "Nobuko", "Nobumi", "Nodoka", "Noe", "Nogiku", "Noko", "Nono", "Nonoe", "Nonoko", "Nonomi", "Norie", "Norika", "Noriko", "Norimi", "Nozomi", "Nui", "Nuiko", "Nunoe", "Okimi", "Orie", "Orika", "Orimi", "Raina", "Rami", "Ramika", "Ran", "Rana", "Raraka", "Rarisa", "Rei", "Reia", "Reika", "Reiko", "Reimi", "Reina", "Reiri", "Remi", "Remika", "Remiyu", "Ren", "Rena", "Reona", "Ria", "Rie", "Rieka", "Rieko", "Riemi", "Riho", "Riina", "Rika", "Rikae", "Rikako", "Rikana", "Riko", "Rima", "Rimi", "Rin", "Rina", "Rino", "Rinoka", "Rio", "Rioko", "Rion", "Riona", "Rira", "Riri", "Ririka", "Ririko", "Ririsa", "Riruko", "Risa", "Risae", "Risako", "Risami", "Rise", "Ritsu", "Ritsuko", "Riya", "Riyo", "Riyoka", "Rizu", "Roka", "Romi", "Rona", "Rui", "Ruka", "Rumi", "Rumie", "Rumika", "Rumiko", "Runa", "Ruri", "Ruriko", "Ryouko", "Saaya", "Sachi", "Sachie", "Sachiho", "Sachiko", "Sachina", "Sachiyo", "Sadae", "Sadaka", "Sadako", "Sadami", "Sadayo", "Sae", "Saeka", "Saeko", "Saemi", "Saho", "Sahoko", "Sahori", "Sai", "Saika", "Saiko", "Sakae", "Saki", "Sakie", "Sakika", "Sakiko", "Sakimi", "Sakina", "Sakino", "Sakiyo", "Sakura", "Sakurako", "Sako", "Sana", "Sanae", "Sanako", "Sanami", "Saori", "Sara", "Sari", "Sarina", "Sasara", "Sato", "Satoe", "Satoko", "Satomi", "Satori", "Satoyo", "Satsuki", "Sawa", "Sawaka", "Sawako", "Saya", "Sayae", "Sayaka", "Sayako", "Sayami", "Sayana", "Sayano", "Sayo", "Sayoka", "Sayoko", "Sayu", "Sayuki", "Sayumi", "Sayuri", "Seika", "Seiko", "Seina", "Seira", "Seiya", "Sena", "Senami", "Serena", "Seria", "Serika", "Serina", "Serino", "Seshiru", "Setsuko", "Setsumi", "Shie", "Shiemi", "Shieri", "Shifumi", "Shigeko", "Shigemi", "Shigeri", "Shiho", "Shihoka", "Shihoko", "Shihomi", "Shihona", "Shihori", "Shima", "Shino", "Shinobu", "Shio", "Shiomi", "Shiori", "Shirabe", "Shiria", "Shiyoka", "Shiyomi", "Shizu", "Shizue", "Shizuha", "Shizuho", "Shizuka", "Shizuko", "Shizuna", "Shizuri", "Shizuru", "Shouko", "Shuuko", "Sonia", "Sonoe", "Sonoka", "Sonoko", "Sonomi", "Souko", "Sugako", "Sugina", "Sumi", "Sumie", "Sumiho", "Sumika", "Sumiko", "Sumina", "Sumire", "Sumiyo", "Suzu", "Suzuha", "Suzuka", "Suzumi", "Suzuna", "Suzune", "Tae", "Taemi", "Taeko", "Takae", "Takaho", "Takako", "Takami", "Takana", "Takane", "Takiko", "Tamae", "Tamaki", "Tamami", "Tamao", "Tamika", "Tatsumi", "Terue", "Teruha", "Teruho", "Teruko", "Terumi", "Teruna", "Tetsumi", "Tokie", "Tokiko", "Tokimi", "Tomie", "Tomo", "Tomoe", "Tomoha", "Tomoka", "Tomoko", "Tomomi", "Tomono", "Tomoyo", "Toshie", "Toshiko", "Toshimi", "Touko", "Toyoe", "Toyoha", "Tsubomi", "Tsuguho", "Tsuguka", "Tsugumi", "Tsukika", "Tsukiko", "Tsukimi", "Tsumugi", "Tsuneko", "Tsuyako", "Tsuyuha", "Tsuyuho", "Tsuzumi", "Tsuzune", "Ui", "Uiko", "Uki", "Umi", "Umeka", "Urara", "Uran", "Utae", "Utako", "Uzuki", "Waka", "Wakaba", "Wakako", "Wakana", "Waki", "Wakiko", "Wami", "Yae", "Yaeka", "Yaeko", "Yasue", "Yasuha", "Yasuho", "Yasuka", "Yasuko", "Yasumi", "Yasuna", "Yasuno", "Yasuyo", "Yatsumi", "Yayoi", "Yorie", "Yorika", "Yoriko", "Yorimi", "Yoshie", "Yoshika", "Yoshiko", "Yoshimi", "Yoshino", "You", "Youka", "Youko", "Yue", "Yufu", "Yuho", "Yui", "Yuiha", "Yuiho", "Yuika", "Yuiko", "Yuina", "Yuiri", "Yuka", "Yukaho", "Yukako", "Yukami", "Yukana", "Yukari", "Yuki", "Yukie", "Yukiho", "Yukika", "Yukiko", "Yukimi", "Yukina", "Yukino", "Yukiyo", "Yuma", "Yumako", "Yumi", "Yumia", "Yumie", "Yumika", "Yumiko", "Yumina", "Yumisa", "Yume", "Yumeji", "Yumeka", "Yumeko", "Yumemi", "Yumena", "Yumeno", "Yura", "Yuri", "Yuria", "Yurie", "Yurika", "Yuriko", "Yurimi", "Yurina", "Yurino", "Yurisa", "Yuuha", "Yuuhi", "Yuuho", "Yuuka", "Yuuki", "Yuuko", "Yuumi", "Yuuna", "Yuuri", "Yuzu", "Yuzuho", "Yuzuka", "Yuzuki", "Yuzuko", "Yuzuna", "Machi", "Machika", "Machiko", "Madoka", "Mae", "Maeka", "Mahiru", "Mafumi", "Maho", "Mahoko", "Mahomi", "Mai", "Maiha", "Maiho", "Maika", "Maiko", "Maimi", "Maina", "Maino", "Maki", "Makiko", "Mako", "Makoto", "Mami", "Mamie", "Mamika", "Mamiko", "Mamina", "Mamiyu", "Mana", "Manaka", "Manako", "Manami", "Mano", "Mao", "Maori", "Mai", "Maria", "Marie", "Marika", "Mariko", "Marina", "Marino", "Mariya", "Mariyo", "Maruko", "Marumi", "Masae", "Masako", "Masami", "Masana", "Masano", "Masayo", "Masuho", "Masumi", "Masuzu", "Matsuho", "Matsuko", "Matsuyo", "Maya", "Mayako", "Mayo", "Mayu", "Mayuha", "Mayuka", "Mayuki", "Mayuko", "Mayumi", "Mayuna", "Mei", "Megumi", "Michie", "Michiko", "Michiyo", "Midori", "Mie", "Mieko", "Miho", "Mihoko", "Mika", "Mikako", "Mikayo", "Miki", "Mikiko", "Miko", "Mimi", "Mina", "Minako", "Mine", "Mineko", "Mineyo", "Mio", "Mirai", "Misa", "Misae", "Misaki", "Misako", "Misayo", "Misora", "Misumi", "Mito", "Mitoki", "Mitsue", "Mitsuko", "Mitsuyo", "Miwa", "Miya", "Miyabi", "Miyako", "Miyo", "Miyoko", "Miyu", "Miyuki", "Moe", "Moeka", "Momo", "Momoe", "Momoka", "Motoe", "Motoko", "Motoyo", "Mutsuko"];
var sukunimet = ["Abe", "Aburami", "Adachi", "Agawa", "Aida", "Aikawa", "Aino", "Aizawa", "Akabori", "Akaboshi", "Akagi", "Akai", "Akao", "Akamatsu", "Akashi", "Akeda", "Akita", "Akiyama", "Amaki", "Amakusa", "Amano", "Anami", "Ando", "Anno", "Anzai", "Aoki", "Aoyama", "Asagiri", "Asakura", "Asahina", "Araki", "Arakaki", "Arai", "Aramaki", "Arata", "Arii", "Arioka", "Arita", "Asada", "Asano", "Ashida", "Ashikaga", "Ayukawa", "Azuma", "Azumano", "Baba", "Bai", "Bandai", "Beppu", "Bessho", "Chano", "Chiba", "Chikafuji", "Chikamoto", "Chikasue", "Dai", "Daibuku", "Daichi", "Daicho", "Daido", "Daidouji", "Daigo", "Daigoku", "Daigoho", "Daiho", "Daijo", "Daiku", "Dainichi", "Daitoku", "Daitokuji", "Daiwa", "Daiyo", "Dan", "Date", "Dazai", "Degawa", "Deguchi", "Den", "Deon", "Deshi", "Deshima", "Deshimaru", "Deura", "Deushi", "Dewa", "Deyama", "Dezaki", "Doi", "Doiuchi", "Dokite", "Domon", "Eda", "Edagawa", "Edogawa", "Eki", "Eku", "Endo", "Eniwa", "Ezura", "Enoshima", "Fuchizaki", "Fuchizawa", "Fujii", "Fujimori", "Fujimoto", "Fujisaki", "Fujinaka", "Fujioka", "Fujita", "Fujiwara", "Fujiyama", "Fukuda", "Fukumoto", "Fukuyama", "Fumi", "Fumimoto", "Furukawa", "Futamata", "Fujibayashi", "Ganbe", "Go", "Gobu", "Goda", "Godai", "Gorumba", "Goto", "Guionu", "Hagino", "Hagiwara", "Hakuta", "Hamamoto", "Hamanaka", "Hamasaki", "Han", "Hana", "Hanaori", "Haneda", "Hanawa", "Hara", "Harada", "Haruno", "Hasemi", "Hasegawa", "Haseyama", "Hashiguchi", "Hashimoto", "Hata", "Hatano", "Hatta", "Hattori", "Hayakawa", "Hayasaka", "Hayashi", "Hayashida", "Hazuki", "Hibino", "Hidaka", "Higashi", "Higuchi", "Hiiragi", "Hikari", "Hikono", "Hirai", "Haramatsu", "Hirano", "Hata", "Hirata", "Hirota", "Hirose", "Houjou", "Honda", "Honma", "Horie", "Horiguchi", "Horii", "Horikawa", "Horimoto", "Horio", "Horiuchi", "Hoshide", "Hoshi", "Hoshino", "Hoshiyama", "Hosoi", "Hosokawa", "Hosonuma", "Hyuuga", "Ichikawa", "Ichimura", "Ide", "Ifukube", "Iga", "Igarashi", "Igawa", "Iguchi", "Iida", "Iijima", "Iino", "Iinuma", "Ike", "Ikeda", "Ikegami", "Ikemizu", "Ikenami", "Imagawa", "Imai", "Imaizumi", "Imakake", "Imoto", "Inaba", "Inada", "Inamura", "Inou", "Inogashira", "Inoue", "Ioki", "Ishida", "Ishiguro", "Ishii", "Ishikawa", "Ishiki", "Ishimori", "Ishimoto", "Ishimura", "Ishiyama", "Ishizaki", "Isshiki", "Iso", "Isobe", "Isono", "Itada", "Itagaki", "Itou", "Iwai", "Iwaki", "Iwakura", "Iwamoto", "Iwasa", "Iwasaki", "Iwasawa", "Iwata", "Izumi", "Jakushi", "Jihara", "Jikihara", "Jinbou", "Jingu", "Jinguuji", "Jinmei", "Jinnai", "Jinnaka", "Jinnouchi", "Jojima", "Jonouchi", "Juu", "Joudai", "Jogo", "Joukou", "Jouuchi", "Juuge", "Juuji", "Ju", "Kadokawa", "Kagura", "Kaiba", "Kaito", "Kajiura", "Kakei", "Kaku", "Kamimura", "Kamiya", "Kan", "Kanada", "Kanai", "Kanan", "Kanashiro", "Kanayama", "Kaneda", "Kanegai", "Kanemoto", "Kaneyama", "Kaneshige", "Kanno", "Kanzaki", "Karasuma", "Kashima", "Kashino", "Kashiwada", "Kasuga", "Katayama", "Katono", "Kato", "Kawaguchi", "Kawai", "Kawamori", "Kawamoto", "Kawamura", "Kawasaki", "Kayano", "Kazama", "Ki", "Kichida", "Kido", "Kikuchi", "Kimizuka", "Kimoto", "Kimura", "Kinomoto", "Kinoshita", "Kiryuu", "Kishida", "Kishii", "Kishimoto", "Kishino", "Kitagawa", "Kitamura", "Kitani", "Kitano", "Kitaoka", "Kobayakawa", "Kobayashi", "Kobe", "Koda", "Kogo", "Koide", "Koike", "Koiwai", "Koizumi", "Kokubunji", "Kokaji", "Komatsu", "Komoda", "Komiya", "Kon", "Konami", "Kondo", "Konno", "Kosaka", "Koshiba", "Koshino", "Kotono", "Koyama", "Kubo", "Kubota", "Kumagai", "Kumakubo", "Kume", "Kumiko", "Kumon", "Kunimitsu", "Kunishige", "Kuramoto", "Kurata", "Kuraya", "Kuribayashi", "Kurita", "Kuroda", "Kuroki", "Kuroi", "Kurosaki", "Kurosawa", "Kurono", "Kusanagi", "Kuwabara", "Maaka", "Maebara", "Maeda", "Mamiya", "Manmitsu", "Masamoto", "Matsuda", "Matsueda", "Matsui", "Matsumoto", "Matsuoka", "Matsurino", "Matsusaka", "Matsushige", "Matsushima", "Matsushita", "Matsuura", "Matsuzaka", "Matsuzaki", "Mazakada", "Mazaki", "Michimoto", "Mihama", "Miki", "Minami", "Minamoto", "Mineto", "Miura", "Miyagi", "Miyahara", "Miyahira", "Miyamoto", "Miyasawa", "Miyazaki", "Miyazawa", "Mizuguchi", "Mizuhara", "Monden", "Mori", "Moriguchi", "Morihara", "Morimoto", "Morinaka", "Morioka", "Morita", "Moroboshi", "Murakami", "Muramaru", "Muramoto", "Muranaka", "Muraoka", "Murata", "Murayama", "Mutou", "Nagai", "Nagasaki", "Nagata", "Nagato", "Naito", "Naka", "Nakagawa", "Nakajima", "Nakamoto", "Nakamura", "Nakano", "Nakao", "Nakaoka", "Nakashima", "Nakata", "Nakatani", "Nakayama", "Nanba", "Nara", "Narita", "Narusawa", "Natsume", "Naya", "Nekotani", "Nekoya", "Nezu", "Niidome", "Niimi", "Nikaido", "Nimoto", "Ninomiya", "Nishi", "Nishibayashi", "Nishihori", "Nishijima", "Nishimoto", "Nishimura", "Nishino", "Nishioka", "Nishiyama", "Nishizaki", "Nishizawa", "Nitta", "Noda", "Nogami", "Noguchi", "Nomiya", "Nomura", "Nonaka", "Nozawa", "Obara", "Obata", "Ochi", "Ochiai", "Oda", "Ode", "Oe", "Ogasawara", "Ogata", "Ogawa", "Ogaya", "Oguri", "Oguro", "Ouhara", "Oide", "Oikawa", "Oishi", "Oka", "Okabayashi", "Okabe", "Okada", "Okajima", "Okamoto", "Okamura", "Okayama", "Okazaki", "Okimura", "Okimoto", "Okinaka", "Okubo", "Okuda", "Oukuma", "Okuyama", "Omi", "Omoto", "Omura", "Onishi", "Onizuka", "Ono", "Onogi", "Onouye", "Oumi", "Ouno", "Orido", "Oshii", "Oshima", "Oshiro", "Ousugi", "Ota", "Otake", "Otani", "Otsuka", "Ouye", "Oyama", "Ozikawa", "Sada", "Sagara", "Sage", "Sagawa", "Saito", "Sakai", "Sakaki", "Sakakibara", "Sakamaki", "Sakamoto", "Sakata", "Sakuma", "Sakuraba", "Sakurai", "Sakuragi", "Sannai", "Sano", "Sanuki", "Sanzenin", "Sasaki", "Sasahara", "Sato", "Satobayashi", "Satoshige", "Sawachika", "Sawada", "Sawamura", "Seino", "Sekimoto", "Senda", "Seriou", "Seta", "Seto", "Shiba", "Shibata", "Shida", "Shigezawa", "Shiina", "Shimabukuro", "Shimada", "Shimamoto", "Shimamura", "Shimatani", "Shimazaki", "Shimazu", "Shimizu", "Shizuki", "Shimodoi", "Shimura", "Shinjo", "Shinseki", "Shinohara", "Shinozuka", "Shintani", "Shirai", "Shiraishi", "Shiratori", "Shirayama", "Sho", "Shoji", "Shureno", "Soga", "Sogabe", "Sonoda", "Sonozaki", "Sotomura", "Sugawara", "Sugihara", "Sugimoto", "Sugiyama", "Sudo", "Sugo", "Suou", "Suwa", "Suzukawa", "Suzuki", "Tomada", "Tachibana", "Tachikawa", "Tagata", "Tagawa", "Tahara", "Taira", "Takada", "Takaeda", "Takahashi", "Takagi", "Takaki", "Takano", "Takamoto", "Takamura", "Takanashi", "Takanishi", "Takaoka", "Takara", "Takasu", "Takatsuka", "Takayama", "Takeda", "Takei", "Takemoto", "Takenaka", "Takeuchi", "Takino", "Tamiya", "Tamaribuchi", "Tamura", "Tanaka", "Tani", "Taniguchi", "Tanimoto", "Tanizaki", "Tanouye", "Tashiro", "Tebi", "Tendo", "Terada", "Terasawa", "Terashima", "Terashita", "Terauchi", "Tezuka", "Toudou", "Toguchi", "Toujou", "Tominaga", "Tominaka", "Tomita", "Tomooka", "Toriyama", "Toshima", "Toyoda", "Tsubasa", "Tsubata", "Tsuda", "Tsuchiya", "Tsugawa", "Tsuji", "Tsukamoto", "Tsumoto", "Tsunekawa", "Tsunemoto", "Tsuneyoshi", "Tsunoda", "Tsurumaki", "Tsurumaru", "Tsushiro", "Tsushima", "Tsutsui", "Tsutsuji", "Ubagai", "Ubai", "Ubaraki", "Uchibori", "Uchida", "Uchigasaki", "Uchiha", "Uchihara", "Uchino", "Uchiyama", "Uda", "Udagawa", "Ueda", "Uehara", "Uematsu", "Ueno", "Uenuma", "Ueo", "Ueshiba", "Uesugi", "Umemiya", "Umemori", "Umemoto", "Umeno", "Umetsu", "Umezuka", "Uno", "Uotani", "Ura", "Urase", "Urashima", "Uraya", "Urayama", "Urushihara", "Urushiyama", "Usuda", "Usui", "Utagawa", "Utsubo", "Utsunomiya", "Uyama", "Uzuhara", "Uzumaki", "Wada", "Wakabayashi", "Wakahisa", "Wakamiya", "Wakamoto", "Wakatsuki", "Wakayama", "Waki", "Washio", "Watabe", "Watai", "Watamura", "Watanabe", "Wauke", "Yabuki", "Yada", "Yagami", "Yagi", "Yajima", "Yakamoto", "Yamada", "Yamagata", "Yamagishi", "Yamagoe", "Yamaguchi", "Yamamiya", "Yamamoto", "Yamamura", "Yamanaka", "Yamane", "Yamaoka", "Yamasaki", "Yamashiro", "Yamashita", "Yamato", "Yamauchi", "Yamazaki", "Yamazawa", "Yanagi", "Yanase", "Yano", "Yasuda", "Yatabe", "Yazawa", "Yofu", "Yokomine", "Yokomoto", "Yokoyama", "Yomoda", "Yonai", "Yonamine", "Yoneda", "Yonemoto", "Yonemura", "Yoshida", "Yoshii", "Yoshikawa", "Yoshimoto", "Yoshimura", "Yoshinaga", "Yoshishige", "Yoshioka", "Yoshizaki", "Yoshizawa", "Yotsuya", "Yukimura", "Yukimoto", "Yutani", "Zenigata", "Zenitani", "Zeniya", "Zentani"];
function asetaLuvut() {
_root.kuka["x_paitaYl\u00E4"].gotoAndStop("max");
Set("maxPaitaYl\u00E4", _root.kuka["x_paitaYl\u00E4"]._currentFrame);
_root.kuka["x_paitaYl\u00E4"].gotoAndStop(1);
_root.kuka.x_paitaAla.gotoAndStop("max");
maxPaitaAla = _root.kuka.x_paitaAla._currentFrame;
_root.kuka.x_paitaAla.gotoAndStop(1);
_root.kuka.x_hame.gotoAndStop("max");
maxHame = _root.kuka.x_hame._currentFrame;
_root.kuka.x_hame.gotoAndStop(1);
_root.kuka.x_paitaTaka.gotoAndStop("max");
maxPaitaTaka = _root.kuka.x_paitaTaka._currentFrame;
_root.kuka.x_paitaTaka.gotoAndStop(1);
_root.kuka.ttukka.gotoAndStop("max");
maxTtukka = _root.kuka.ttukka._currentFrame;
_root.kuka.ttukka.gotoAndStop(1);
_root.kuka.etukka.gotoAndStop("max");
maxEtukka = _root.kuka.etukka._currentFrame;
_root.kuka.etukka.gotoAndStop(1);
_root.kuka.sivutukka.gotoAndStop("max");
maxSivutukka = _root.kuka.sivutukka._currentFrame;
_root.kuka.sivutukka.gotoAndStop(1);
_root.kuka.ponnarit.gotoAndStop("max");
maxPonnarit = _root.kuka.ponnarit._currentFrame;
_root.kuka.ponnarit.gotoAndStop(1);
_root.kuka["x_yl\u00E4rusetti"].gotoAndStop("max");
Set("maxYl\u00E4rusetti", _root.kuka["x_yl\u00E4rusetti"]._currentFrame);
_root.kuka["x_yl\u00E4rusetti"].gotoAndStop(1);
_root.kuka["x_p\u00E4\u00E4rusetti"].gotoAndStop("max");
Set("maxP\u00E4\u00E4rusetti", _root.kuka["x_p\u00E4\u00E4rusetti"]._currentFrame);
_root.kuka["x_p\u00E4\u00E4rusetti"].gotoAndStop(1);
_root.kuka["x_keng\u00E4t"].gotoAndStop("max");
Set("maxKeng\u00E4t", _root.kuka["x_keng\u00E4t"]._currentFrame);
_root.kuka["x_keng\u00E4t"].gotoAndStop(1);
asetaElukat();
nollaa(_root.kuka);
}
function randomUggo() {
if (_root.tukkagene) {
tukka();
}
if (_root.kasvogene) {
kasvot();
}
if (_root.asugene) {
asu();
}
if (_root["v\u00E4rigene"]) {
iho();
}
elain();
if (_root["v\u00E4rigene"]) {
v\u00E4rit();
}
merkki();
}
function kasvot() {
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.osi, Math.floor(Math.random() * maxSilm\u00E4t) + 1);
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.vsi, _root.kuka.naama.osi._currentFrame);
silm\u00E4tsekkaus();
_root.siirr\u00E4(_root.kuka.naama.osi.pupilli, Math.floor(Math.random() * maxPupillit) + 1);
_root.siirr\u00E4(_root.kuka.naama.vsi.pupilli, _root.kuka.naama.osi.pupilli._currentFrame);
_root.kuka.naama.vsi.pupilli._height = _root.kuka.naama.osi.pupilli._height;
setProperty(_root.kuka.naama.vsi.pupilli, _xscale , -100);
var _local2 = _root.kuka.naama.suu._totalframes;
_local2 = 7;
_root.siirr\u00E4(_root.kuka.naama.suu, Math.ceil(Math.random() * _local2));
_root.kuka.naama.suu.v._visible = false;
var _local4 = _root.kuka.naama["nen\u00E4"]._totalframes;
_root.siirr\u00E4(_root.kuka.naama["nen\u00E4"], Math.ceil(Math.random() * _local4));
_root.kuka.naama.posket._visible = false;
var _local3 = _root.kuka.naama.posket._totalframes - 3;
_root.siirr\u00E4(_root.kuka.naama.posket, Math.ceil(Math.random() * _local3));
if (Math.ceil(Math.random() * 100) > 70) {
_root.kuka.naama.posket._visible = true;
}
kulmat();
}
function silm\u00E4tsekkaus() {
var _local2 = _root.kuka.naama.osi._currentFrame;
if (((((_local2 == 17) || (_local2 == 18)) || (_local2 == 18)) || (_local2 == 24)) || (_local2 == 25)) {
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.osi, Math.floor(Math.random() * 5) + 1);
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.vsi, _root.kuka.naama.osi._currentFrame);
}
}
function kulmat() {
var _local2 = Math.ceil(Math.random() * 10);
if (((((_local2 == 5) || (_local2 == 6)) || (_local2 == 8)) || (_local2 == 9)) && (Math.ceil(Math.random() * 100) > 50)) {
_local2 = 1;
}
vnyt = _root.kuka.naama.vk._currentFrame % 10;
if (vnyt == 0) {
vnyt = 10;
}
onyt = _root.kuka.naama.ok._currentFrame % 10;
if (onyt == 0) {
onyt = 10;
}
_root.siirr\u00E4(_root.kuka.naama.vk, vnyt + ((_local2 - 1) * 10));
_root.siirr\u00E4(_root.kuka.naama.ok, onyt + ((_local2 - 1) * 10));
_local2 = Math.ceil(Math.random() * 10);
if ((((_local2 == 3) || (_local2 == 9)) || (_local2 == 10)) && (Math.ceil(Math.random() * 100) > 50)) {
_local2 = 1;
}
_root.siirr\u00E4(_root.kuka.naama.vk, _local2 + ((_root.kuka.naama.vk._currentFrame % 10) * 10));
_root.siirr\u00E4(_root.kuka.naama.ok, _local2 + ((_root.kuka.naama.ok._currentFrame % 10) * 10));
}
function iho() {
if (_root.ihogene) {
_root.kuka.vartalo.tint.gotoAndStop(1);
_root.kuka.vartalo.v.gotoAndStop(Math.ceil(Math.random() * _root.kuka.vartalo.v._totalFrames));
} else {
_root.kuka.vartalo.v.gotoAndStop(_root.ihonro);
}
}
function merkki() {
var _local2 = _root.kuka.x_merkki.merkki.keski._totalframes;
var _local4 = _root.kuka.x_merkki.merkki.sivu._totalframes;
_root.kuka.x_merkki._visible = true;
_root.siirr\u00E4(_root.kuka.x_merkki, Math.ceil(Math.random() * _root.kuka.x_merkki._totalframes));
_root.kuka.x_merkki.merkki.keski.gotoAndStop(Math.ceil(Math.random() * _local2));
_root.kuka.x_merkki.merkki["yl\u00E4"].gotoAndStop(Math.ceil(Math.random() * _local2));
_root.kuka.x_merkki.merkki.ala.gotoAndStop(Math.ceil(Math.random() * _local2));
_root.kuka.x_merkki.merkki.sivu.gotoAndStop(Math.ceil(Math.random() * _local4));
if (Math.ceil(Math.random() * 10) > 3) {
_root.kuka.x_merkki.merkki.sivu._visible = false;
_root.kuka.x_merkki.merkki["yl\u00E4"]._visible = true;
_root.kuka.x_merkki.merkki.ala._visible = true;
_root.kuka.x_merkki.merkki.keski._visible = true;
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 > 5) {
_root.kuka.x_merkki.merkki["yl\u00E4"]._visible = false;
_root.kuka.x_merkki.merkki.ala._visible = false;
} else if (_local3 > 2) {
_root.kuka.x_merkki.merkki["yl\u00E4"]._visible = false;
} else {
_root.kuka.x_merkki.merkki.ala._visible = false;
}
} else {
_root.kuka.x_merkki.merkki.sivu._visible = true;
_root.kuka.x_merkki.merkki["yl\u00E4"]._visible = false;
_root.kuka.x_merkki.merkki.ala._visible = false;
if (Math.ceil(Math.random() * 10) > 4) {
_root.kuka.x_merkki.merkki.keski._visible = false;
}
if (Math.ceil(Math.random() * 10) > 1) {
_root.kuka.x_merkki.merkki["yl\u00E4"]._visible = false;
}
if (Math.ceil(Math.random() * 10) > 1) {
_root.kuka.x_merkki.merkki.ala._visible = false;
}
}
if (Math.ceil(Math.random() * 20) > 2) {
_root.kuka.mewMerkki = merkkiPaikat[_root.kuka.x_merkki._currentFrame - 1];
} else {
_root.kuka.mewMerkki = merkkiPaikat2[Math.floor(Math.random() * merkkiPaikat2.length)];
_root.kuka.x_merkki._visible = false;
}
kloonaaMerkki();
}
function kloonaaMerkki() {
var _local2 = _root.genetaulu.merkki;
var _local3 = _root.kuka.x_merkki.merkki;
_local2["yl\u00E4"]._visible = _local3["yl\u00E4"]._visible;
_local2.ala._visible = _local3.ala._visible;
_local2.keski._visible = _local3.keski._visible;
_local2.sivu._visible = _local3.sivu._visible;
_local2.sivu.gotoAndStop(_local3.sivu._currentFrame);
_local2["yl\u00E4"].gotoAndStop(_local3["yl\u00E4"]._currentFrame);
_local2.ala.gotoAndStop(_local3.ala._currentFrame);
_local2.keski.gotoAndStop(_local3.keski._currentFrame);
}
function asu() {
_root.kuka.x_mekko._visible = false;
_root.kuka["x_cafekeng\u00E4t"]._visible = false;
_root.kuka.x_cafehattu._visible = false;
_root.kuka.x_lasit._visible = false;
_root.kuka.x_caspaita._visible = false;
_root.kuka.x_cashame._visible = false;
_root.kuka["x_caskeng\u00E4t"]._visible = false;
_root.kuka["x_paitaYl\u00E4"]._visible = true;
_root.kuka.x_paitaAla._visible = true;
_root.siirr\u00E4(_root.kuka["x_paitaYl\u00E4"], Math.floor(Math.random() * maxPaitaYl\u00E4) + 1);
_root.siirr\u00E4(_root.kuka.x_paitaAla, Math.floor(Math.random() * maxPaitaAla) + 1);
_root.kuka.x_hame._visible = !tauluContains(eiHametta, _root.kuka.x_paitaAla._currentFrame);
if (tauluContains(superlaiha, _root.kuka.x_paitaAla._currentFrame)) {
var _local2 = Math.floor(Math.random() * tiukatHousut.length);
_root.siirr\u00E4(_root.kuka.x_hame, tiukatHousut[_local2]);
} else if (tauluContains(eiPaksua, _root.kuka.x_paitaAla._currentFrame)) {
var _local2 = Math.floor(Math.random() * laihatHameet.length);
_root.siirr\u00E4(_root.kuka.x_hame, laihatHameet[_local2]);
} else {
_root.siirr\u00E4(_root.kuka.x_hame, Math.floor(Math.random() * maxHame) + 1);
_root.kuka.alusV._visible = true;
}
_root.kuka.alusV._visible = _root.kuka.x_hame._currentFrame != 4;
jalat();
p\u00F6rh\u00F6t();
pohjat();
rusetit();
hanskat();
}
function tukka() {
_root.siirr\u00E4(_root.kuka.ttukka, Math.floor(Math.random() * maxTtukka) + 1);
_root.siirr\u00E4(_root.kuka.ettukka, _root.kuka.ttukka._currentFrame);
_root.kuka.etukka._visible = true;
_root.kuka.ettukka._visible = tauluContains(ettukka, _root.kuka.ttukka._currentFrame) && (_root.kuka.etukka._currentFrame != 25);
_root.siirr\u00E4(_root.kuka.etukka, Math.floor(Math.random() * maxEtukka) + 1);
_root.siirr\u00E4(_root.kuka.eetukka, _root.kuka.etukka._currentFrame);
_root.kuka.eetukka._visible = tauluContains(eetukka, _root.kuka.etukka._currentFrame);
_root.siirr\u00E4(_root.kuka.sivutukka, Math.floor(Math.random() * maxSivutukka) + 1);
if ((Math.floor(Math.random() * 20) + 1) > 15) {
_root.kuka.sivutukka._visible = false;
} else if (tauluContains(eiSivutukkaa, _root.kuka.etukka._currentFrame)) {
_root.kuka.sivutukka._visible = false;
} else {
_root.kuka.sivutukka._visible = true;
}
if (_root.kuka.ettukka._visible) {
_root.kuka.sivutukka._visible = false;
}
ponnarit();
antenni();
}
function ponnarit() {
if (tauluContains(eiPonnareita, _root.kuka.ttukka._currentFrame)) {
_root.kuka.ponnarit._visible = false;
} else if ((Math.floor(Math.random() * 20) + 1) > 14) {
_root.kuka.ponnarit._visible = false;
} else {
_root.siirr\u00E4(_root.kuka.ponnarit, Math.floor(Math.random() * maxPonnarit) + 1);
_root.kuka.ponnarit._visible = true;
if ((Math.floor(Math.random() * 20) + 1) > 15) {
_root.siirr\u00E4(_root.kuka.ttukka, 1);
_root.siirr\u00E4(_root.kuka.ettukka, 1);
_root.kuka.ettukka._visible = false;
}
}
}
function antenni() {
_root.kuka.x_antenni._visible = false;
if (_root.kuka.eetukka._visible) {
return(undefined);
}
if (_root.kuka.alakorvaV._visible) {
return(undefined);
}
if (_root.kuka.x_sarvet._visible) {
return(undefined);
}
if ((Math.random() * 100) > 40) {
_root.kuka.x_antenni._visible = true;
var _local2 = Math.ceil(Math.random() * _root.kuka.x_antenni._totalFrames);
_root.siirr\u00E4(_root.kuka.x_antenni, _local2);
}
}
function p\u00F6rh\u00F6t() {
_root.napit["x_p\u00F6rh\u00F6"].kaikkiP\u00F6rh\u00F6tN\u00E4kyviin();
_root.napit["x_p\u00F6rh\u00F6"].p\u00F6rh\u00F6malli(Math.floor(Math.random() * 4) + 1);
if (tauluContains(eiK\u00E4sip\u00F6rh\u00F6\u00E4, _root.kuka["x_paitaYl\u00E4"]._currentFrame)) {
_root.kuka.x_kyop._visible = false;
_root.kuka.x_kyvp._visible = false;
}
if (tauluContains(eiJalkap\u00F6rh\u00F6\u00E4, _root.kuka.x_hame._currentFrame)) {
_root.kuka.x_jyop._visible = false;
_root.kuka.x_jyvp._visible = false;
}
if (tauluContains(eiJalkap\u00F6rh\u00F6\u00E4Paita, _root.kuka.x_paitaAla._currentFrame)) {
_root.kuka.x_jyop._visible = false;
_root.kuka.x_jyvp._visible = false;
}
if ((Math.floor(Math.random() * 10) + 1) > 5) {
_root.kuka.x_jyvp._visible = false;
} else if ((Math.floor(Math.random() * 10) + 1) > 5) {
_root.kuka.x_jyop._visible = false;
}
if (!tauluContains(saaOllaJalkap\u00F6rh\u00F6Keng\u00E4t, _root.kuka["x_keng\u00E4t"]._currentFrame)) {
_root.kuka.x_jaop._visible = false;
_root.kuka.x_javp._visible = false;
}
if (Math.floor(Math.random() * 30) > 25) {
_root.kuka.x_jaop._visible = false;
_root.kuka.x_javp._visible = false;
}
}
function hanskat() {
_root.kuka.x_hanskat._visible = false;
if (Math.floor(Math.random() * 10) > 5) {
_root.kuka.x_hanskat._visible = true;
_root.siirr\u00E4(_root.kuka.x_hanskat, Math.floor(Math.random() * maxHanskat) + 1);
if (tauluContains(eiAlaK\u00E4sip\u00F6rh\u00F6\u00E4, _root.kuka.x_hanskat._currentFrame)) {
_root.kuka.x_kaop._visible = false;
_root.kuka.x_kavp._visible = false;
} else if (Math.floor(Math.random() * 3) > 0) {
_root.kuka.x_kaop._visible = false;
_root.kuka.x_kavp._visible = false;
}
}
if (_root.kuka.x_hanskat._visible && (tauluContains(eiAlaK\u00E4sip\u00F6rh\u00F6\u00E4, _root.kuka.x_hanskat._currentFrame))) {
_root.kuka.x_kaop._visible = false;
_root.kuka.x_kavp._visible = false;
} else if ((_root.kuka.x_hanskat._visible && (Math.floor(Math.random() * 3) > 0)) || (Math.floor(Math.random() * 10) > 8)) {
_root.kuka.x_kaop._visible = false;
_root.kuka.x_kavp._visible = false;
}
}
function pohjat() {
_root.siirr\u00E4(_root.kuka.x_hamePohja, _root.kuka.x_hame._currentFrame);
_root.kuka.x_hamePohja._visible = tauluContains(hamePohja, _root.kuka.x_hame._currentFrame);
if (!_root.kuka.x_hame._visible) {
_root.kuka.x_hamePohja._visible = false;
}
_root.siirr\u00E4(_root.kuka.x_paitaPohja, _root.kuka.x_paitaAla._currentFrame);
_root.kuka.x_paitaPohja._visible = tauluContains(paitaPohja, _root.kuka.x_paitaAla._currentFrame);
if (tauluContains(paitaTakaSopii, _root.kuka.x_paitaAla._currentFrame) && ((Math.floor(Math.random() * 10) + 1) > 5)) {
_root.kuka.x_paitaTaka._visible = true;
_root.siirr\u00E4(_root.kuka.x_paitaTaka, Math.floor(Math.random() * maxPaitaTaka) + 1);
} else {
_root.kuka.x_paitaTaka._visible = false;
}
}
function rusetit() {
_root.kuka.x_eturusetti._visible = false;
_root.kuka["x_yl\u00E4rusetti"]._visible = false;
if (Math.floor(Math.random() * 40) > 30) {
_root.kuka.x_eturusetti._visible = !tauluContains(eiEturusettia, _root.kuka.x_paitaAla._currentFrame);
_root.siirr\u00E4(_root.kuka.x_eturusetti, Math.floor(Math.random() * maxEturusetti) + 1);
}
if ((Math.floor(Math.random() * 40) > 30) && (!_root.kuka.x_eturusetti._visible)) {
_root.kuka["x_yl\u00E4rusetti"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_yl\u00E4rusetti"], Math.floor(Math.random() * maxYl\u00E4rusetti) + 1);
}
p\u00E4\u00E4rusetti();
}
function p\u00E4\u00E4rusetti() {
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = false;
_root.kuka["x_p\u00E4\u00E4rusettiTaka"]._visible = false;
if (Math.floor(Math.random() * 20) > 10) {
_root.kuka["x_p\u00E4\u00E4rusettiTaka"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_p\u00E4\u00E4rusettiTaka"], Math.floor(Math.random() * maxP\u00E4\u00E4rusetti) + 1);
if (tauluContains(rusettiEteen, _root.kuka["x_p\u00E4\u00E4rusettiTaka"]._currentFrame) && (!_root.kuka.eetukka._visible)) {
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_p\u00E4\u00E4rusetti"], _root.kuka["x_p\u00E4\u00E4rusettiTaka"]._currentFrame);
}
if ((!tauluContains(yksiRusetti, _root.kuka["x_p\u00E4\u00E4rusettiTaka"]._currentFrame)) && (tauluContains(yksiPonnari, _root.kuka.ponnarit._currentFrame))) {
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = false;
_root.kuka["x_p\u00E4\u00E4rusettiTaka"]._visible = false;
}
if ((!tauluContains(yksiRusetti, _root.kuka["x_p\u00E4\u00E4rusettiTaka"]._currentFrame)) && (!_root.kuka.ponnarit._visible)) {
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = false;
_root.kuka["x_p\u00E4\u00E4rusettiTaka"]._visible = false;
}
if (_root.kuka.eetukka._visible) {
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = false;
}
}
}
function jalat() {
_root.kuka["x_keng\u00E4t"]._visible = true;
_root.kuka.x_sukat._visible = false;
_root.siirr\u00E4(_root.kuka["x_keng\u00E4t"], Math.floor(Math.random() * maxKeng\u00E4t) + 1);
_root.siirr\u00E4(_root.kuka["x_yl\u00E4keng\u00E4t"], _root.kuka["x_keng\u00E4t"]._currentFrame);
if (Math.floor(Math.random() * 20) > 10) {
_root.kuka.x_sukat._visible = true;
_root.siirr\u00E4(_root.kuka.x_sukat, Math.floor(Math.random() * maxSukat) + 1);
}
_root.kuka["x_yl\u00E4keng\u00E4t"]._visible = tauluContains(hameelleYl\u00E4keng\u00E4t, _root.kuka.x_hame._currentFrame);
}
function tauluContains(taulu, arvo) {
var _local1 = 0;
while (_local1 < taulu.length) {
if (taulu[_local1] == arvo) {
return(true);
}
_local1++;
}
return(false);
}
Set("maxPaitaYl\u00E4", 0);
maxPaitaAla = 0;
maxPaitaTaka = 0;
maxHame = 0;
maxTtukka = 0;
maxEtukka = 0;
maxSivutukka = 0;
maxPonnarit = 0;
maxEturusetti = _root.kuka.x_eturusetti._totalFrames;
Set("maxYl\u00E4rusetti", 0);
maxHanskat = _root.kuka.x_hanskat._totalFrames;
maxSukat = _root.kuka.x_sukat._totalFrames;
Set("maxKeng\u00E4t", 0);
Set("maxSilm\u00E4t", _root.kuka.naama.osi._totalFrames - 1);
maxPupillit = _root.kuka.naama.osi.pupilli._totalFrames - 9;
Set("maxP\u00E4\u00E4rusetti", 0);
asetaLuvut();
var eiHametta = new Array(7, 8, 12, 32, 38, 44, 45, 50, 51);
var superlaiha = new Array(11, 20, 39, 40, 41, 42, 43);
var tiukatHousut = new Array(2, 4, 11, 15, 19, 20, 21, 22, 23, 24, 25, 28, 29);
var eiPaksua = new Array(24, 25, 26, 27, 28, 29, 30, 34, 35);
var laihatHameet = new Array(2, 4, 9);
var eiK\u00E4sip\u00F6rh\u00F6\u00E4 = new Array(15, 16, 26, 27, 29, 32, 40, 41, 42, 43, 44, 47, 51);
var eiJalkap\u00F6rh\u00F6\u00E4 = new Array(3, 5, 7, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 28, 34, 36, 37, 41);
var eiJalkap\u00F6rh\u00F6\u00E4Paita = new Array(32);
var hamePohja = new Array(12, 13, 38, 39, 40);
var paitaPohja = new Array(25, 26, 29, 30, 39, 40, 41, 42, 48);
var paitaTakaSopii = new Array(5, 17, 18, 21, 23, 27, 28, 37, 39);
var eiEturusettia = new Array(9, 17, 24, 25, 26, 31, 33, 34, 35);
var eiAlaK\u00E4sip\u00F6rh\u00F6\u00E4 = new Array(4, 5, 6, 7, 8, 10, 13, 14, 15, 18, 20);
var saaOllaJalkap\u00F6rh\u00F6Keng\u00E4t = new Array(2, 8, 9, 26);
var hameelleYl\u00E4keng\u00E4t = new Array(20, 999999);
var ettukka = new Array(10, 19, 20, 21, 23, 24, 28, 29, 32, 38, 39, 40, 41, 45, 52, 53, 59, 63, 64, 65, 66, 72, 73, 100, 102, 105, 112, 113, 116, 117, 118, 122, 139, 140, 141, 144);
var eetukka = new Array(2, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, 20, 22, 25, 31, 34, 36, 40, 41, 46, 50, 56, 57, 58, 63, 66, 69, 72, 74, 77);
var eiPonnareita = new Array(2, 7, 8, 10, 11, 12, 13, 14, 17, 18, 21, 23, 24, 25, 27, 28, 29, 30, 31, 36, 37, 40, 44, 46, 47, 48, 49, 50, 51, 53, 54, 56, 57, 58, 59, 60, 61, 62, 63, 65, 68, 69);
var eiSivutukkaa = new Array(2, 6, 8, 12, 17, 21, 25, 27, 30, 38, 42);
var yksiPonnari = new Array(8, 10, 11, 14, 15, 17, 18, 20, 23, 24, 26, 27, 28, 29, 30, 31);
var yksiRusetti = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
var rusettiEteen = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9);
var merkkiPaikat = new Array("chest", "chest", "chest", "right shoulder", "right shoulder", "right arm", "right arm", "right arm", "right wrist", "right hand", "left shoulder", "left shoulder", "left arm", "left arm", "left arm", "left wrist", "left hand", "collarbone", "collarbone", "neck", "neck", "upper abdomen", "upper abdomen", "upper abdomen", "upper abdomen", "abdomen", "abdomen", "abdomen", "abdomen", "abdomen", "abdomen", "right thigh", "left thigh", "right thigh", "left thigh", "right thigh", "left thigh", "right knee", "left knee", "right knee", "left knee", "right calf", "left calf", "right calf", "left calf", "right calf", "left calf", "right calf", "left calf", "right ankle", "left ankle", "right foot", "left foot", "right cheek", "left cheek", "right temple", "left temple", "forehead", "forehead", "forehead");
var merkkiPaikat2 = new Array("rigth trapezius", "left trapezius", "back", "back of neck", "lower back", "right palm", "left palm");
function v\u00E4rit() {
var _local6 = Math.floor(Math.random() * 255);
var _local7 = Math.floor(Math.random() * 255);
var _local5 = Math.floor(Math.random() * 255);
var _local4 = annaV\u00E4rit(_local6, _local7, _local5);
var _local2 = _local4[0];
var _local3 = _local4[1];
var _local8 = _local4[2];
_root.kuka["ykk\u00F6sv\u00E4ri"] = _local2;
_root.kuka["kakkosv\u00E4ri"] = _local3;
vaihdaV\u00E4ri(_root.kuka["x_paitaYl\u00E4"].v, _local2);
vaihdaV\u00E4ri(_root.kuka.x_paitaAla.v, _local2);
vaihdaV\u00E4ri(_root.kuka.x_paitaPohja.v, _local2);
vaihdaV\u00E4ri(_root.kuka.x_paitaTaka.v, _local2);
vaihdaV\u00E4ri(_root.kuka.x_mekko.v, _local2);
vaihdaV\u00E4ri(_root.kuka.x_cafehattu.v, _local2);
vaihdaV\u00E4ri(_root.kuka.x_mekko.v2, _local3);
vaihdaV\u00E4ri(_root.kuka["x_cafekeng\u00E4t"].v, _local3);
hamev\u00E4ri(_local2, _local3, _local6, _local7, _local5);
p\u00F6rh\u00F6v\u00E4rit(_local2, _local3);
tukkav\u00E4ri(_local8);
rusettiv\u00E4ri(_local2, _local3);
hanskav\u00E4ri(_local2, _local3);
jalkav\u00E4ri(_local2, _local3);
silm\u00E4v\u00E4ri(_local2);
elukkav\u00E4rit(_local2, _local3);
vaihdaV\u00E4ri(_root.kuka["x_paitaYl\u00E4"].v2, _local3);
vaihdaV\u00E4ri(_root.kuka.x_paitaAla.v2, _local3);
vaihdaV\u00E4ri(_root.kuka.x_paitaPohja.v2, _local3);
vaihdaV\u00E4ri(_root.kuka.x_paitaTaka.v2, _local3);
}
function hamev\u00E4ri(_arg2, _arg4, r, g, b) {
var _local3 = Math.floor(Math.random() * 20) + 1;
if (_local3 > 10) {
vaihdaV\u00E4ri(_root.kuka.x_hame.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.x_hamePohja.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.x_hame.v2, _arg4);
} else {
vaihdaV\u00E4ri(_root.kuka.x_hame.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.x_hamePohja.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.x_hame.v2, muutaV\u00E4riksi(243, 243, 243));
}
}
function p\u00F6rh\u00F6v\u00E4rit(_arg6, _arg7) {
var _local3 = new Array(_root.kuka.x_jaop, _root.kuka.x_jyop, _root.kuka.x_javp, _root.kuka.x_jyvp, _root.kuka.x_kaop, _root.kuka.x_kyop, _root.kuka.x_kavp, _root.kuka.x_kyvp, _root.kuka.x_kaula);
var _local2 = 0;
var _local5 = _arg6;
var _local4 = _arg7;
if ((Math.floor(Math.random() * 10) + 1) > 7) {
_local5 = _arg7;
_local4 = _arg6;
}
while (_local2 < _local3.length) {
Set("munV\u00E4ri", new Color(_local3[_local2].v));
munV\u00E4ri.setRGB(_local5);
Set("munV\u00E4ri", new Color(_local3[_local2].v2));
munV\u00E4ri.setRGB(_local4);
_local2++;
}
}
function tukkav\u00E4ri(_arg2) {
var _local3 = _arg2;
var _local4 = Math.floor(Math.random() * 30) + 1;
if ((_local3 == 0) || (_local4 > 28)) {
_local3 = muutaV\u00E4riksi(Math.floor(Math.random() * 255), Math.floor(Math.random() * 255), Math.floor(Math.random() * 255));
}
vaihdaV\u00E4ri(_root.kuka.ttukka.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.ettukka.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.etukka.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.eetukka.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.sivutukka.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.ponnarit.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.x_antenni.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.naama.vk.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.naama.ok.v, _arg2);
}
function rusettiv\u00E4ri(_arg2, _arg3) {
var _local4 = Math.floor(Math.random() * 4) + 1;
if (_local4 == 1) {
vaihdaV\u00E4ri(_root.kuka.x_eturusetti.v, _arg2);
vaihdaV\u00E4ri(_root.kuka["x_yl\u00E4rusetti"].v, _arg2);
vaihdaV\u00E4ri(_root.kuka["x_p\u00E4\u00E4rusetti"].v, _arg2);
vaihdaV\u00E4ri(_root.kuka["x_p\u00E4\u00E4rusettiTaka"].v, _arg2);
} else {
vaihdaV\u00E4ri(_root.kuka.x_eturusetti.v, _arg3);
vaihdaV\u00E4ri(_root.kuka["x_yl\u00E4rusetti"].v, _arg3);
vaihdaV\u00E4ri(_root.kuka["x_p\u00E4\u00E4rusetti"].v, _arg3);
vaihdaV\u00E4ri(_root.kuka["x_p\u00E4\u00E4rusettiTaka"].v, _arg3);
}
}
function hanskav\u00E4ri(_arg3, _arg4) {
var _local2 = Math.floor(Math.random() * 3) + 1;
if (_local2 == 1) {
vaihdaV\u00E4ri(_root.kuka.x_hanskat.v, _arg3);
vaihdaV\u00E4ri(_root.kuka.x_hanskat.v2, _arg4);
} else {
vaihdaV\u00E4ri(_root.kuka.x_hanskat.v, _arg4);
vaihdaV\u00E4ri(_root.kuka.x_hanskat.v2, _arg3);
}
}
function jalkav\u00E4ri(_arg2, _arg3) {
var _local4 = Math.floor(Math.random() * 3) + 1;
if (_local4 == 1) {
vaihdaV\u00E4ri(_root.kuka.x_sukat.v, _arg2);
vaihdaV\u00E4ri(_root.kuka["x_keng\u00E4t"].v, _arg3);
vaihdaV\u00E4ri(_root.kuka["x_keng\u00E4t"].v2, _arg2);
vaihdaV\u00E4ri(_root.kuka["x_yl\u00E4keng\u00E4t"].v, _arg3);
vaihdaV\u00E4ri(_root.kuka["x_yl\u00E4keng\u00E4t"].v2, _arg2);
} else {
vaihdaV\u00E4ri(_root.kuka.x_sukat.v, _arg3);
vaihdaV\u00E4ri(_root.kuka["x_keng\u00E4t"].v, _arg2);
vaihdaV\u00E4ri(_root.kuka["x_keng\u00E4t"].v2, _arg3);
vaihdaV\u00E4ri(_root.kuka["x_yl\u00E4keng\u00E4t"].v, _arg2);
vaihdaV\u00E4ri(_root.kuka["x_yl\u00E4keng\u00E4t"].v2, _arg3);
}
}
function silm\u00E4v\u00E4ri(_arg2) {
vaihdaV\u00E4ri(_root.kuka.naama.vsi.pupilli.v, _arg2);
vaihdaV\u00E4ri(_root.kuka.naama.osi.pupilli.v, _arg2);
}
function genetauluv\u00E4rit() {
vaihdaV\u00E4ri(_root.genetaulu.v, _root.kuka["ykk\u00F6sv\u00E4ri"]);
if (_root.kuka["ykk\u00F6sv\u00E4ritumma"] == _root.kuka["kakkosv\u00E4ritumma"]) {
_root.kuka["kakkosv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + Math.floor(Math.random() * 255)) + ",") + Math.floor(Math.random() * 255)) + ",") + Math.floor(Math.random() * 255)) + ")", -0.6);
}
for (var _local2 in _root.genetaulu) {
if (_local2.indexOf("key") != -1) {
_root.genetaulu[_local2].textColor = _root.kuka["ykk\u00F6sv\u00E4ritumma"];
}
if (_local2.indexOf("value") != -1) {
_root.genetaulu[_local2].textColor = _root.kuka["kakkosv\u00E4ritumma"];
}
}
}
function elukkav\u00E4rit(_arg1, _arg2) {
laitaElukkaV\u00E4rit(_arg1, _arg2);
elukkaKorvav\u00E4rit();
elukkaH\u00E4nt\u00E4v\u00E4rit();
elukkaSiipiv\u00E4rit();
elukkaSarviv\u00E4rit();
}
function elukkaKorvav\u00E4rit() {
var _local3 = _root.kuka.elukkapr;
var _local2 = _root.kuka.elukkasc;
vaihdaV\u00E4ri(_root.kuka.x_alakorvaV.v, muutaV\u00E4riksi(_local3[0], _local3[1], _local3[2]));
vaihdaV\u00E4ri(_root.kuka.x_alakorvaO.v, muutaV\u00E4riksi(_local3[0], _local3[1], _local3[2]));
vaihdaV\u00E4ri(_root.kuka.x_korvaV.v, muutaV\u00E4riksi(_local3[0], _local3[1], _local3[2]));
vaihdaV\u00E4ri(_root.kuka.x_korvaO.v, muutaV\u00E4riksi(_local3[0], _local3[1], _local3[2]));
vaihdaV\u00E4ri(_root.kuka.x_alakorvaV.v2, muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]));
vaihdaV\u00E4ri(_root.kuka.x_alakorvaO.v2, muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]));
vaihdaV\u00E4ri(_root.kuka.x_korvaV.v2, muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]));
vaihdaV\u00E4ri(_root.kuka.x_korvaO.v2, muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]));
}
function elukkaH\u00E4nt\u00E4v\u00E4rit() {
var _local3 = h\u00E4nt\u00E41();
var _local2 = h\u00E4nt\u00E42();
vaihdaV\u00E4ri(_root.kuka["x_h\u00E4nt\u00E4"].v, muutaV\u00E4riksi(_local3[0], _local3[1], _local3[2]));
vaihdaV\u00E4ri(_root.kuka["x_h\u00E4nt\u00E4"].v2, muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]));
}
function elukkaSiipiv\u00E4rit() {
var _local3 = _root.kuka.elukkapr;
var _local2 = _root.kuka.elukkasc;
vaihdaV\u00E4ri(_root.kuka.x_siivet.v, muutaV\u00E4riksi(_local3[0], _local3[1], _local3[2]));
vaihdaV\u00E4ri(_root.kuka.x_siivet.v2, muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]));
}
function elukkaSarviv\u00E4rit() {
var _local2 = _root.kuka.elukkapr;
vaihdaV\u00E4ri(_root.kuka.x_sarvet.v, muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]));
}
function laitaElukkaV\u00E4rit(_param1, _param2) {
var _local3 = _root.kuka.omaElain.pr;
var _local4 = _local3.length;
var _local5 = Math.floor(Math.random() * _local4);
_local3 = _local3[_local5];
_local4 = _local3.length;
_local5 = Math.floor(Math.random() * _local4);
_local3 = _local3[_local5];
_root.kuka.elukkapr = _local3;
var _local2 = _root.kuka.omaElain.sc;
_local4 = _local2.length;
_local5 = Math.floor(Math.random() * _local4);
_local2 = _local2[_local5];
_local4 = _local2.length;
_local5 = Math.floor(Math.random() * _local4);
_local2 = _local2[_local5];
_root.kuka.elukkasc = _local2;
}
function h\u00E4nt\u00E41() {
if (!_root.kuka.omaElain["h\u00E4nt\u00E4pr"]) {
return(_root.kuka.elukkapr);
}
var _local2 = _root.kuka.omaElain["h\u00E4nt\u00E4pr"];
var _local3 = _local2.length;
var _local4 = Math.floor(Math.random() * _local3);
_local2 = _local2[_local4];
_local3 = _local2.length;
_local4 = Math.floor(Math.random() * _local3);
return(_local2[_local4]);
}
function h\u00E4nt\u00E42() {
if (!_root.kuka.omaElain["h\u00E4nt\u00E4sc"]) {
return(_root.kuka.elukkasc);
}
var _local2 = _root.kuka.omaElain["h\u00E4nt\u00E4sc"];
var _local3 = _local2.length;
var _local4 = Math.floor(Math.random() * _local3);
_local2 = _local2[_local4];
_local3 = _local2.length;
_local4 = Math.floor(Math.random() * _local3);
return(_local2[_local4]);
}
function annaV\u00E4rit(r, g, b) {
if (spesiaaliv\u00E4rit[_root.kuka.mew] != null) {
return(spesial(r, g, b));
}
if (valmiitV\u00E4rit[_root.kuka.mew] != null) {
return(v\u00E4riskaala(r, g, b));
}
_root.kuka["ykk\u00F6sv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + r) + ",") + g) + ",") + b) + ")", -0.5);
_root.kuka["kakkosv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + r) + ",") + g) + ",") + b) + ")", -0.5);
return(new Array(muutaV\u00E4riksi(r, g, b), annaKakkosv\u00E4ri(r, g, b), annaKakkosv\u00E4ri(r, g, b)));
}
function v\u00E4riskaala(r, g, b) {
var _local4 = valmiitV\u00E4rit[_root.kuka.mew].pr.length;
var _local3 = Math.floor(Math.random() * _local4);
var _local2 = valmiitV\u00E4rit[_root.kuka.mew].pr[_local3];
_local4 = _local2.length;
_root.kuka.pr = _local2;
_local3 = Math.floor(Math.random() * _local4);
var _local6 = _local2[_local3];
_local3 = Math.floor(Math.random() * _local4);
_local2 = _local2[_local3];
_local3 = Math.floor(Math.random() * 10);
if ((_local3 > 5) && (valmiitV\u00E4rit[_root.kuka.mew].sc.length > 0)) {
_local4 = valmiitV\u00E4rit[_root.kuka.mew].sc.length;
_local3 = Math.floor(Math.random() * _local4);
var _local5 = valmiitV\u00E4rit[_root.kuka.mew].sc[_local3];
_local4 = _local5.length;
_root.kuka.sc = _local5;
_local3 = Math.floor(Math.random() * _local4);
_local5 = _local5[_local3];
primary = muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]);
_root.kuka["ykk\u00F6sv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + _local2[0]) + ",") + _local2[1]) + ",") + _local2[2]) + ")", -0.5);
_root.kuka["kakkosv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + r) + ",") + g) + ",") + b) + ")", -0.5);
return(new Array(primary, muutaV\u00E4riksi(_local5[0], _local5[1], _local5[2]), annaKakkosv\u00E4ri(_local2[0], _local2[1], _local2[2])));
}
_root.kuka["ykk\u00F6sv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + r) + ",") + g) + ",") + b) + ")", -0.5);
_root.kuka["kakkosv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + r) + ",") + g) + ",") + b) + ")", -0.5);
if (Math.floor(Math.random() * 30) > 10) {
return(new Array(muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]), annaKakkosv\u00E4ri(_local2[0], _local2[1], _local2[2]), muutaV\u00E4riksi(_local6[0], _local6[1], _local6[2])));
}
return(new Array(muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]), annaKakkosv\u00E4ri(_local2[0], _local2[1], _local2[2]), annaKakkosv\u00E4ri(_local2[0], _local2[1], _local2[2])));
}
function annaKakkosv\u00E4ri(r, g, b) {
Set("v\u00E4ri", ((((("rgb(" + r) + ",") + g) + ",") + b) + ")");
var _local1 = Math.floor(Math.random() * 20) + 1;
if (_local1 > 7) {
prosentti = (Math.random() * 2) - 1;
if (prosentti < -0.7) {
prosentti = prosentti + 0.2;
}
return(shadeRGBColor(v\u00E4ri, prosentti));
}
var _local2 = Math.floor(Math.random() * 255);
var _local4 = Math.floor(Math.random() * 255);
var _local3 = Math.floor(Math.random() * 255);
Set("v\u00E4ri2", ((((("rgb(" + _local2) + ",") + _local4) + ",") + _local3) + ")");
prosentti = Math.random() * 1;
return(blendRGBColors(v\u00E4ri, v\u00E4ri2, prosentti));
}
function spesial(r, g, b) {
_root.kuka["ykk\u00F6sv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + r) + ",") + g) + ",") + b) + ")", -0.5);
_root.kuka["kakkosv\u00E4ritumma"] = shadeRGBColor(((((("rgb(" + r) + ",") + g) + ",") + b) + ")", -0.5);
var _local2 = spesiaaliv\u00E4rit[_root.kuka.mew].v[0];
var _local3 = spesiaaliv\u00E4rit[_root.kuka.mew].v[1];
if (Math.floor(Math.random() * 100) > 50) {
var _local4 = _local2;
_local2 = _local3;
_local3 = _local4;
}
_root.kuka.pr = _local2;
_root.kuka.sc = _local3;
var _local5 = _local2.length;
var _local6 = Math.floor(Math.random() * _local5);
_local2 = _local2[_local6];
_local5 = _local3.length;
_local6 = Math.floor(Math.random() * _local5);
_local3 = _local3[_local6];
if (_root.kuka.mew == "Neapolitan") {
return(neapolitan(_local2, _local3));
}
return(new Array(muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]), muutaV\u00E4riksi(_local3[0], _local3[1], _local3[2]), annaKakkosv\u00E4ri(_local2[0], _local2[1], _local2[2])));
}
function neapolitan(pr, sc) {
var _local3 = valkea.length;
var _local5 = Math.floor(Math.random() * _local3);
valk = valkea[_local5];
var _local2 = pr;
var _local1 = valk;
if (Math.floor(Math.random() * 50) < 25) {
_local1 = pr;
_local2 = valk;
}
return(new Array(muutaV\u00E4riksi(_local2[0], _local2[1], _local2[2]), muutaV\u00E4riksi(sc[0], sc[1], sc[2]), muutaV\u00E4riksi(_local1[0], _local1[1], _local1[2])));
}
function shadeRGBColor(color, percent) {
var _local3 = color.split(",");
var _local1 = ((percent < 0) ? 0 : 255);
var _local2 = ((percent < 0) ? (percent * -1) : (percent));
var _local5 = parseInt(_local3[0].slice(4));
var _local7 = parseInt(_local3[1]);
var _local4 = parseInt(_local3[2]);
return(muutaV\u00E4riksi(int(Math.round((_local1 - _local5) * _local2) + _local5), int(Math.round((_local1 - _local7) * _local2) + _local7), int(Math.round((_local1 - _local4) * _local2) + _local4)));
}
function blendRGBColors(c0, c1, p) {
var _local6 = c0.split(",");
var _local1 = c1.split(",");
var _local3 = parseInt(_local6[0].slice(4));
var _local5 = parseInt(_local6[1]);
var _local2 = parseInt(_local6[2]);
return(muutaV\u00E4riksi(int(Math.round((parseInt(_local1[0].slice(4)) - _local3) * p) + _local3), int(Math.round((parseInt(_local1[1]) - _local5) * p) + _local5), int(Math.round((parseInt(_local1[2]) - _local2) * p) + _local2)));
}
function vaihdaV\u00E4ri(kohde, _arg2) {
Set("munV\u00E4ri", new Color(kohde));
munV\u00E4ri.setRGB(_arg2);
}
function muutaV\u00E4riksi(red, green, blue) {
return(((red * 65536) + (green * 256)) + blue);
}
var punainen = new Array(new Array(226, 37, 37), new Array(238, 111, 160), new Array(208, 49, 45), new Array(84, 31, 27), new Array(145, 13, 9), new Array(145, 13, 9), new Array(66, 13, 9), new Array(103, 12, 7), new Array(153, 15, 2), new Array(96, 11, 4), new Array(76, 8, 5), new Array(113, 12, 4), new Array(188, 84, 73), new Array(226, 37, 43), new Array(184, 15, 10), new Array(126, 40, 17), new Array(94, 25, 20), new Array(210, 21, 2), new Array(96, 15, 11), new Array(144, 6, 3), new Array(169, 27, 13), new Array(121, 24, 18), new Array(156, 16, 3));
var vihre\u00E4 = new Array(new Array(65, 123, 52), new Array(81, 205, 54), new Array(179, 217, 117), new Array(59, 177, 67), new Array(174, 243, 90), new Array(116, 182, 46), new Array(35, 79, 30), new Array(89, 125, 53), new Array(176, 252, 56), new Array(92, 188, 99), new Array(70, 109, 30), new Array(3, 192, 73), new Array(178, 211, 194), new Array(58, 83, 17), new Array(152, 191, 100), new Array(3, 172, 19), new Array(152, 237, 195), new Array(50, 97, 45), new Array(114, 140, 105), new Array(2, 137, 16), new Array(59, 235, 150), new Array(53, 74, 33), new Array(96, 125, 59));
var sininen = new Array(new Array(117, 142, 217), new Array(25, 83, 167), new Array(58, 67, 186), new Array(40, 30, 93), new Array(1, 45, 54), new Array(44, 62, 76), new Array(21, 30, 61), new Array(117, 123, 135), new Array(19, 56, 189), new Array(22, 32, 166), new Array(89, 120, 141), new Array(6, 16, 148), new Array(98, 197, 218), new Array(72, 170, 173), new Array(4, 146, 194), new Array(30, 69, 110), new Array(82, 178, 192), new Array(11, 17, 113), new Array(1, 96, 100), new Array(39, 50, 194), new Array(36, 21, 112), new Array(130, 237, 253));
var keltainen = new Array(new Array(243, 234, 116), new Array(252, 202, 41), new Array(253, 230, 75), new Array(214, 183, 90), new Array(228, 205, 5), new Array(252, 226, 5), new Array(255, 195, 11), new Array(249, 200, 2), new Array(254, 226, 39), new Array(227, 177, 4), new Array(252, 244, 163), new Array(253, 235, 117), new Array(249, 166, 2), new Array(239, 253, 95), new Array(253, 206, 42), new Array(250, 289, 2), new Array(254, 226, 39), new Array(253, 238, 135), new Array(232, 184, 40), new Array(253, 165, 15), new Array(194, 146, 0), new Array(252, 209, 42));
var oranssi = new Array(new Array(252, 122, 41), new Array(255, 135, 21), new Array(237, 112, 20), new Array(178, 86, 13), new Array(236, 151, 6), new Array(209, 96, 2), new Array(249, 130, 40), new Array(188, 86, 2), new Array(252, 161, 144), new Array(237, 113, 23), new Array(137, 49, 1), new Array(255, 175, 23), new Array(252, 107, 2), new Array(237, 130, 14), new Array(201, 92, 10), new Array(214, 113, 41), new Array(181, 103, 39), new Array(221, 86, 28), new Array(127, 64, 11), new Array(122, 57, 3), new Array(204, 88, 1));
var pinkki = new Array(new Array(236, 147, 171), new Array(229, 88, 164), new Array(246, 154, 205), new Array(254, 197, 229), new Array(253, 171, 159), new Array(160, 66, 66), new Array(246, 154, 191), new Array(252, 148, 173), new Array(254, 127, 156), new Array(254, 125, 104), new Array(251, 187, 203), new Array(242, 184, 198), new Array(252, 70, 170), new Array(253, 164, 184), new Array(251, 148, 131), new Array(250, 134, 197), new Array(225, 21, 132), new Array(241, 82, 120), new Array(242, 107, 139), new Array(252, 76, 78), new Array(253, 92, 168), new Array(255, 22, 149));
var ruskea = new Array(new Array(138, 80, 53), new Array(145, 69, 11), new Array(35, 23, 9), new Array(54, 38, 15), new Array(67, 39, 17), new Array(44, 21, 3), new Array(58, 30, 8), new Array(75, 55, 28), new Array(55, 29, 16), new Array(101, 53, 15), new Array(154, 123, 79), new Array(99, 42, 13), new Array(60, 40, 13), new Array(63, 48, 29), new Array(93, 44, 4), new Array(53, 35, 21), new Array(82, 41, 21), new Array(121, 92, 52), new Array(74, 37, 18), new Array(71, 32, 1), new Array(126, 72, 28), new Array(74, 55, 40), new Array(199, 169, 81), new Array(189, 165, 93), new Array(227, 183, 120), new Array(214, 183, 90), new Array(248, 224, 118));
var violetti = new Array(new Array(173, 71, 171), new Array(144, 60, 154), new Array(163, 44, 196), new Array(227, 159, 246), new Array(102, 48, 71), new Array(102, 4, 45), new Array(41, 9, 22), new Array(122, 74, 136), new Array(96, 26, 54), new Array(189, 147, 211), new Array(152, 102, 197), new Array(175, 105, 238), new Array(113, 1, 147), new Array(161, 5, 89), new Array(77, 15, 40), new Array(155, 124, 184), new Array(76, 1, 32), new Array(98, 4, 54), new Array(182, 96, 205), new Array(49, 20, 50), new Array(164, 94, 229), new Array(44, 5, 26));
var turkoosi = new Array(new Array(60, 154, 146), new Array(47, 205, 173));
var harmaa = new Array(new Array(196, 196, 196), new Array(126, 126, 126), new Array(108, 98, 109), new Array(106, 104, 128), new Array(63, 61, 83), new Array(124, 110, 127), new Array(51, 51, 51), new Array(55, 55, 55), new Array(198, 198, 208), new Array(173, 173, 199), new Array(85, 76, 77), new Array(152, 151, 169), new Array(120, 114, 118));
var valkea = new Array(new Array(236, 236, 236), new Array(222, 222, 222), new Array(253, 246, 228), new Array(255, 250, 218), new Array(247, 239, 236), new Array(242, 234, 211), new Array(231, 223, 204), new Array(236, 252, 252), new Array(251, 245, 100), new Array(250, 245, 239));
var musta = new Array(new Array(23, 23, 23), new Array(58, 58, 58));
var valmiitV\u00E4rit = {};
valmiitV\u00E4rit.Strawberry = {pr:new Array(punainen, pinkki), sc:new Array(vihre\u00E4, pinkki)};
valmiitV\u00E4rit.Blueberry = {pr:new Array(sininen), sc:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Cherry = {pr:new Array(punainen, pinkki), sc:new Array(vihre\u00E4, pinkki)};
valmiitV\u00E4rit.Raspberry = {pr:new Array(punainen, pinkki), sc:new Array(vihre\u00E4, pinkki)};
valmiitV\u00E4rit.Cranberry = {pr:new Array(punainen, pinkki), sc:new Array(vihre\u00E4, pinkki)};
valmiitV\u00E4rit.Grapes = {pr:new Array(vihre\u00E4, violetti), sc:new Array(vihre\u00E4, violetti)};
valmiitV\u00E4rit.Orange = {pr:new Array(oranssi), sc:new Array(vihre\u00E4, keltainen, persikka, oranssi)};
valmiitV\u00E4rit.Lemon = {pr:new Array(keltainen), sc:new Array(vihre\u00E4, keltainen, persikka, oranssi)};
valmiitV\u00E4rit.Tangerine = {pr:new Array(oranssi), sc:new Array(vihre\u00E4, keltainen, persikka, oranssi)};
valmiitV\u00E4rit.Apple = {pr:new Array(punainen, vihre\u00E4), sc:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Banana = {pr:new Array(keltainen), sc:new Array(keltainen, oranssi, musta)};
valmiitV\u00E4rit.Grapefruit = {pr:new Array(oranssi), sc:new Array(keltainen, oranssi, punainen, vihre\u00E4)};
valmiitV\u00E4rit.Peach = {pr:new Array(pinkki, keltainen), sc:new Array(keltainen, pinkki, valkea)};
valmiitV\u00E4rit.Pineapple = {pr:new Array(keltainen, ruskea, vihre\u00E4), sc:new Array(keltainen, ruskea, vihre\u00E4)};
valmiitV\u00E4rit.Pear = {pr:new Array(vihre\u00E4, keltainen), sc:new Array(vihre\u00E4, keltainen)};
valmiitV\u00E4rit.Mango = {pr:new Array(keltainen, oranssi, punainen), sc:new Array(keltainen, oranssi, punainen, vihre\u00E4)};
valmiitV\u00E4rit.Apricot = {pr:new Array(keltainen, oranssi), sc:new Array(keltainen, oranssi, vihre\u00E4)};
valmiitV\u00E4rit.Lychee = {pr:new Array(punainen, pinkki), sc:new Array(punainen, pinkki, valkea)};
valmiitV\u00E4rit.Cantaloupe = {pr:new Array(valkea, keltainen, oranssi), sc:new Array(valkea, keltainen, oranssi, vihre\u00E4)};
valmiitV\u00E4rit.Coconut = {pr:new Array(ruskea), sc:new Array(valkea)};
valmiitV\u00E4rit.Pumpkin = {pr:new Array(oranssi), sc:new Array(oranssi, keltainen, vihre\u00E4)};
valmiitV\u00E4rit.Durian = {pr:new Array(keltainen, ruskea, vihre\u00E4), sc:new Array(keltainen, ruskea, vihre\u00E4)};
valmiitV\u00E4rit.Kiwi = {pr:new Array(vihre\u00E4), sc:new Array(ruskea, harmaa, musta)};
valmiitV\u00E4rit.Papaya = {pr:new Array(vihre\u00E4, oranssi, keltainen), sc:new Array(vihre\u00E4, oranssi, keltainen, musta)};
valmiitV\u00E4rit.Plum = {pr:new Array(violetti), sc:new Array(violetti, keltainen, punainen, oranssi, vihre\u00E4)};
valmiitV\u00E4rit.Pomelo = {pr:new Array(keltainen, vihre\u00E4), sc:new Array(keltainen, vihre\u00E4, punainen, valkea, oranssi)};
valmiitV\u00E4rit.Carambola = {pr:new Array(keltainen), sc:new Array(keltainen, vihre\u00E4)};
valmiitV\u00E4rit.Avocado = {pr:new Array(vihre\u00E4), sc:new Array(keltainen, ruskea)};
valmiitV\u00E4rit.Pomegranate = {pr:new Array(punainen)};
valmiitV\u00E4rit.Lime = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Citron = {pr:new Array(keltainen, oranssi), sc:new Array(vihre\u00E4, keltainen, oranssi, valkea)};
valmiitV\u00E4rit.Carrot = {pr:new Array(oranssi), sc:new Array(oranssi, vihre\u00E4)};
valmiitV\u00E4rit.Lettuce = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Cucumber = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Pea = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Bean = {pr:new Array(vihre\u00E4, ruskea, oranssi, valkea, keltainen), sc:new Array(vihre\u00E4, ruskea, oranssi, keltainen)};
valmiitV\u00E4rit.Tomato = {pr:new Array(punainen)};
valmiitV\u00E4rit.Chili = {pr:new Array(punainen, vihre\u00E4, keltainen)};
valmiitV\u00E4rit.Potato = {pr:new Array(ruskea), sc:new Array(keltainen, valkea)};
valmiitV\u00E4rit.Yam = {pr:new Array(ruskea), sc:new Array(keltainen, oranssi)};
valmiitV\u00E4rit.Pepper = {pr:new Array(punainen, keltainen, vihre\u00E4, oranssi)};
valmiitV\u00E4rit.Radish = {pr:new Array(punainen), sc:new Array(valkea, vihre\u00E4)};
valmiitV\u00E4rit.Onion = {pr:new Array(valkea), sc:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Salad = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Broccoli = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Celery = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Corn = {pr:new Array(keltainen), sc:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Asparagus = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Garlic = {pr:new Array(valkea)};
valmiitV\u00E4rit.Ichigo = {pr:new Array(pinkki, punainen), sc:new Array(pinkki, punainen, vihre\u00E4)};
valmiitV\u00E4rit.Momo = {pr:new Array(pinkki, keltainen), sc:new Array(pinkki, keltainen)};
valmiitV\u00E4rit.Ringo = {pr:new Array(punainen, vihre\u00E4), sc:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Sakuranbo = {pr:new Array(pinkki, punainen), sc:new Array(pinkki, punainen, vihre\u00E4)};
valmiitV\u00E4rit.Mikan = {pr:new Array(oranssi), sc:new Array(oranssi, keltainen, vihre\u00E4)};
valmiitV\u00E4rit.Ume = {pr:new Array(violetti), sc:new Array(violetti, keltainen, punainen, oranssi, vihre\u00E4)};
valmiitV\u00E4rit.Kaki = {pr:new Array(oranssi)};
valmiitV\u00E4rit.Zakuro = {pr:new Array(punainen, violetti)};
valmiitV\u00E4rit.Anzu = {pr:new Array(keltainen, oranssi)};
valmiitV\u00E4rit.Tamanegi = {pr:new Array(valkea), sc:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Daikon = {pr:new Array(valkea), sc:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Mint = {pr:new Array(sininen, vihre\u00E4, turkoosi)};
valmiitV\u00E4rit.Truffle = {pr:new Array(musta), sc:new Array(musta, harmaa, ruskea, valkea)};
valmiitV\u00E4rit.Peanut = {pr:new Array(ruskea), sc:new Array(ruskea, valkea, keltainen)};
valmiitV\u00E4rit.Acorn = {pr:new Array(ruskea), sc:new Array(ruskea, vihre\u00E4)};
valmiitV\u00E4rit.Chestnut = {pr:new Array(ruskea)};
valmiitV\u00E4rit.Hazelnut = {pr:new Array(ruskea)};
valmiitV\u00E4rit.Almond = {pr:new Array(ruskea)};
valmiitV\u00E4rit.Walnut = {pr:new Array(ruskea)};
valmiitV\u00E4rit.Pecan = {pr:new Array(ruskea)};
valmiitV\u00E4rit.Macadamia = {pr:new Array(ruskea), sc:new Array(ruskea, valkea)};
valmiitV\u00E4rit.Pistachio = {pr:new Array(valkea), sc:new Array(ruskea)};
valmiitV\u00E4rit.Persimmon = {pr:new Array(oranssi)};
valmiitV\u00E4rit.Cabbage = {pr:new Array(vihre\u00E4)};
valmiitV\u00E4rit.Chocolate = {pr:new Array(ruskea), sc:new Array(valkea)};
valmiitV\u00E4rit.Licorice = {pr:new Array(musta), sc:new Array(valkea)};
valmiitV\u00E4rit.Vanilla = {pr:new Array(valkea)};
valmiitV\u00E4rit.Toffee = {pr:new Array(ruskea)};
valmiitV\u00E4rit.Fudge = {pr:new Array(ruskea)};
valmiitV\u00E4rit.Sugar = {pr:new Array(valkea)};
valmiitV\u00E4rit.Nougat = {pr:new Array(valkea), sc:new Array(ruskea)};
valmiitV\u00E4rit["Cotton Candy"] = {pr:new Array(valkea, pinkki), sc:new Array(valkea, pinkki)};
valmiitV\u00E4rit.Tiramisu = {pr:new Array(ruskea), sc:new Array(valkea, keltainen)};
valmiitV\u00E4rit.Merengue = {pr:new Array(valkea)};
valmiitV\u00E4rit.Cheesecake = {pr:new Array(keltainen, valkea), sc:new Array(keltainen, valkea, ruskea)};
valmiitV\u00E4rit.Gingerbread = {pr:new Array(ruskea), sc:new Array(valkea, pinkki)};
valmiitV\u00E4rit.Syrup = {pr:new Array(oranssi), sc:new Array(oranssi, keltainen, ruskea)};
valmiitV\u00E4rit.Custard = {pr:new Array(keltainen, valkea)};
valmiitV\u00E4rit.Honey = {pr:new Array(keltainen, oranssi)};
valmiitV\u00E4rit.Cream = {pr:new Array(valkea)};
valmiitV\u00E4rit.Mousse = {pr:new Array(ruskea), sc:new Array(ruskea, valkea)};
valmiitV\u00E4rit. = {pr:new Array(), sc:new Array()};
var spesiaaliv\u00E4rit = {};
spesiaaliv\u00E4rit.Neapolitan = {v:new Array(pinkki, ruskea)};
spesiaaliv\u00E4rit.Cauliflower = {v:new Array(vihre\u00E4, valkea)};
spesiaaliv\u00E4rit.Watermelon = {v:new Array(vihre\u00E4, punainen)};
spesiaaliv\u00E4rit.Suika = {v:new Array(vihre\u00E4, punainen)};
spesiaaliv\u00E4rit.Shiitake = {v:new Array(ruskea, valkea)};
function asetaElukat() {
_root.kuka["x_paitaYl\u00E4"].gotoAndStop("max");
Set("maxPaitaYl\u00E4", _root.kuka["x_paitaYl\u00E4"]._currentFrame);
_root.kuka["x_paitaYl\u00E4"].gotoAndStop(1);
}
function elain() {
_root.kuka.omaElain = elukoi[_root.kuka.mewElukka];
korvafunktio(_root.kuka.omaElain);
h\u00E4nt\u00E4funktio(_root.kuka.omaElain);
siipifunktio(_root.kuka.omaElain);
sarvifunktio(_root.kuka.omaElain);
}
function korvafunktio(omaElain) {
_root.kuka.x_alakorvaV._visible = false;
_root.kuka.x_alakorvaO._visible = false;
_root.kuka.x_korvaV._visible = false;
_root.kuka.x_korvaO._visible = false;
if (omaElain.korvat) {
_root.kuka.x_korvaV._visible = true;
_root.kuka.x_korvaO._visible = true;
var _local2 = elukkaKorvat[elukoi[_root.kuka.mewElukka].korvat].f;
var _local3 = Math.floor(Math.random() * _local2.length);
_root.siirr\u00E4(_root.kuka.x_korvaO, _local2[_local3]);
_root.siirr\u00E4(_root.kuka.x_korvaV, _root.kuka.x_korvaO._currentFrame);
alaKorvat();
}
}
function alaKorvat() {
_root.kuka.x_alakorvaV._visible = true;
_root.kuka.x_alakorvaO._visible = true;
var _local2 = tauluContains(alakorvat, _root.kuka.x_korvaO._currentFrame);
_root.kuka.x_korvaV._visible = !_local2;
_root.kuka.x_korvaO._visible = !_local2;
_root.siirr\u00E4(_root.kuka.x_alakorvaO, _root.kuka.x_korvaO._currentFrame);
_root.siirr\u00E4(_root.kuka.x_alakorvaV, _root.kuka.x_korvaO._currentFrame);
}
function h\u00E4nt\u00E4funktio(omaElain) {
_root.kuka["x_h\u00E4nt\u00E4"]._visible = false;
if (omaElain["h\u00E4nt\u00E4"]) {
_root.kuka["x_h\u00E4nt\u00E4"]._visible = true;
var _local2 = elukkaH\u00E4nn\u00E4t[elukoi[_root.kuka.mewElukka]["h\u00E4nt\u00E4"]].f;
var _local3 = Math.floor(Math.random() * _local2.length);
_root.siirr\u00E4(_root.kuka["x_h\u00E4nt\u00E4"], _local2[_local3]);
}
}
function siipifunktio(omaElain) {
_root.kuka.x_siivet._visible = false;
if (omaElain.siivet) {
_root.kuka.x_siivet._visible = true;
var _local2 = elukkaSiivet[elukoi[_root.kuka.mewElukka].siivet].f;
var _local3 = Math.floor(Math.random() * _local2.length);
_root.siirr\u00E4(_root.kuka.x_siivet, _local2[_local3]);
}
if (omaElain.siivet == "perhonen") {
_root.kuka.x_siivet.v._alpha = 60;
_root.kuka.x_siivet.v2._alpha = 60;
} else {
_root.kuka.x_siivet.v._alpha = 100;
_root.kuka.x_siivet.v2._alpha = 100;
}
}
function sarvifunktio(omaElain) {
_root.kuka.x_sarvet._visible = false;
if (omaElain.sarvet) {
_root.kuka.x_sarvet._visible = true;
var _local2 = elukkaSarvet[elukoi[_root.kuka.mewElukka].sarvet].f;
var _local3 = Math.floor(Math.random() * _local2.length);
_root.siirr\u00E4(_root.kuka.x_sarvet, _local2[_local3]);
}
}
var alakorvat = new Array(5, 11, 18, 19, 24, 28, 29, 30, 51, 57, 58);
var elukoi = {};
elukoi["amur leopard"] = {korvat:"leopardi", pr:new Array(oranssi, keltainen), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"leopardi"};
elukoi["black rhino"] = {korvat:"sarvikuono", pr:new Array(harmaa), sc:new Array(harmaa), h\u00E4nt\u00E4:"sarvikuono", sarvet:"sarvikuono"};
elukoi["cross river gorilla"] = {korvat:"apina", pr:new Array(musta, harmaa), sc:new Array(musta, harmaa)};
elukoi["Javan rhino"] = {korvat:"sarvikuono", pr:new Array(harmaa), sc:new Array(harmaa), h\u00E4nt\u00E4:"sarvikuono", sarvet:"sarvikuono"};
elukoi["mountain gorilla"] = {korvat:"apina", pr:new Array(musta, harmaa), sc:new Array(musta, harmaa)};
elukoi["South China tiger"] = {korvat:"tiikeri", pr:new Array(oranssi, keltainen), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"tiikeri"};
elukoi["Sumatran elephant"] = {korvat:"norsu", pr:new Array(harmaa), sc:new Array(harmaa, pinkki), h\u00E4nt\u00E4:"sarvikuono"};
elukoi.pangolin = {pr:new Array(ruskea), sc:new Array(ruskea), h\u00E4nt\u00E4:"pangolin"};
elukoi.saola = {korvat:"saola", pr:new Array(ruskea), sc:new Array(ruskea, keltainen, oranssi), sarvet:"saola"};
elukoi["Sumatran orangutang"] = {korvat:"apina", pr:new Array(ruskea, oranssi), sc:new Array(ruskea, oranssi)};
elukoi["Sumatran tiger"] = {korvat:"tiikeri", pr:new Array(keltainen, oranssi), sc:new Array(musta, ruskea, harmaa), h\u00E4nt\u00E4:"tiikeri"};
elukoi["Sumatran rhino"] = {korvat:"sarvikuono", pr:new Array(harmaa), sc:new Array(harmaa), h\u00E4nt\u00E4:"sarvikuono", sarvet:"sarvikuono"};
elukoi["African wild dog"] = {korvat:"villikoira", pr:new Array(musta, ruskea, harmaa), sc:new Array(musta, ruskea, harmaa, keltainen, oranssi), h\u00E4nt\u00E4:"villikoira"};
elukoi["Amur tiger"] = {korvat:"tiikeri", pr:new Array(oranssi, keltainen), sc:new Array(musta, ruskea, harmaa), h\u00E4nt\u00E4:"tiikeri"};
elukoi["Asian elephant"] = {korvat:"norsu", pr:new Array(harmaa), sc:new Array(harmaa, pinkki), h\u00E4nt\u00E4:"sarvikuono"};
elukoi["Bengal tiger"] = {korvat:"tiikeri", pr:new Array(oranssi, keltainen), sc:new Array(musta, ruskea, harmaa), h\u00E4nt\u00E4:"tiikeri"};
elukoi["black spider monkey"] = {korvat:"apina", pr:new Array(musta), sc:new Array(musta, harmaa), h\u00E4nt\u00E4:"musta-apina"};
elukoi["black-footed ferret"] = {korvat:"fretti", pr:new Array(valkea), sc:new Array(musta, harmaa), h\u00E4nt\u00E4:"fretti"};
elukoi["blue whale"] = {};
elukoi.bonobo = {korvat:"apina", pr:new Array(musta, harmaa, ruskea), sc:new Array(musta, harmaa, ruskea)};
elukoi["Bornean orangutang"] = {korvat:"apina", pr:new Array(ruskea, oranssi), sc:new Array(ruskea, oranssi)};
elukoi["Galapagos penguin"] = {pr:new Array(musta, harmaa), sc:new Array(valkea)};
elukoi["Ganges river dolphin"] = {pr:new Array(musta, harmaa), sc:new Array(valkea)};
elukoi["giant panda"] = {korvat:"karhu", pr:new Array(musta), sc:new Array(pinkki, valkea)};
elukoi["green turtle"] = {};
elukoi["Indian elephant"] = {korvat:"norsu", pr:new Array(harmaa), sc:new Array(harmaa, pinkki), h\u00E4nt\u00E4:"sarvikuono"};
elukoi["snow leopard"] = {korvat:"leopardi", pr:new Array(valkea), sc:new Array(musta, harmaa), h\u00E4nt\u00E4:"leopardi"};
elukoi["Indian elephant"] = {korvat:"norsu", pr:new Array(harmaa), sc:new Array(pinkki), h\u00E4nt\u00E4:"sarvikuono"};
elukoi["snow leopard"] = {korvat:"leopardi", pr:new Array(oranssi, keltainen), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"leopardi"};
elukoi.dugong = {};
elukoi["giant tortoise"] = {};
elukoi["marine iguana"] = {};
elukoi["polar bear"] = {korvat:"karhu", pr:new Array(valkea), sc:new Array(valkea, pinkki, harmaa)};
elukoi["red panda"] = {korvat:"kultapanda", pr:new Array(keltainen, ruskea, oranssi), sc:new Array(ruskea, oranssi), h\u00E4nt\u00E4:"kultapanda", h\u00E4nt\u00E4pr:new Array(oranssi), h\u00E4nt\u00E4sc:new Array(ruskea)};
elukoi["whale shark"] = {};
elukoi.jaguar = {korvat:"leopardi", pr:new Array(oranssi, keltainen), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"leopardi"};
elukoi["monarch butterfly"] = {pr:new Array(oranssi), sc:new Array(musta), siivet:"perhonen", sarvet:"perhonen"};
elukoi["plains bison"] = {korvat:"biisoni", pr:new Array(ruskea), sc:new Array(ruskea), h\u00E4nt\u00E4:"sarvikuono", sarvet:"biisoni"};
elukoi["Arctic fox"] = {korvat:"kettu", pr:new Array(valkea), sc:new Array(valkea, pinkki, harmaa), h\u00E4nt\u00E4:"kettu"};
elukoi["brown bear"] = {korvat:"karhu", pr:new Array(ruskea), sc:new Array(ruskea, keltainen, oranssi, pinkki)};
elukoi["Asiatic cheetah"] = {korvat:"gepardi", pr:new Array(keltainen, oranssi), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"gepardi"};
elukoi.axolotl = {korvat:"axolotl", pr:new Array(pinkki), sc:new Array(pinkki, punainen), h\u00E4nt\u00E4:"axolotl"};
elukoi["Bactrian camel"] = {korvat:"kameli", pr:new Array(ruskea, oranssi), sc:new Array(ruskea, oranssi), h\u00E4nt\u00E4:"sarvikuono"};
elukoi["Iberian lynx"] = {korvat:"ilves", pr:new Array(oranssi, keltainen, harmaa, ruskea), sc:new Array(musta, ruskea, harmaa)};
elukoi["Leadbeater's Possum"] = {korvat:"opossumi", pr:new Array(harmaa, ruskea), sc:new Array(harmaa, ruskea), h\u00E4nt\u00E4:"musta-apina"};
elukoi["Northern hairy-nosed wombat"] = {korvat:"vompatti", pr:new Array(harmaa, ruskea), sc:new Array(harmaa)};
elukoi["red wolf"] = {korvat:"susi", pr:new Array(harmaa, ruskea, oranssi), sc:new Array(harmaa, ruskea, oranssi), h\u00E4nt\u00E4:"susi", h\u00E4nt\u00E4pr:new Array(harmaa, ruskea, oranssi), h\u00E4nt\u00E4sc:new Array(valkea)};
elukoi["Malayan tiger"] = {korvat:"tiikeri", pr:new Array(keltainen, oranssi), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"tiikeri"};
elukoi["Asiatic lion"] = {korvat:"leijona", pr:new Array(keltainen, ruskea, oranssi), sc:new Array(keltainen, ruskea, oranssi), h\u00E4nt\u00E4:"leijona"};
elukoi["Ethiopian wolf"] = {korvat:"susi", pr:new Array(harmaa, ruskea, oranssi), sc:new Array(harmaa, ruskea, oranssi), h\u00E4nt\u00E4:"susi", h\u00E4nt\u00E4pr:new Array(harmaa, ruskea, oranssi), h\u00E4nt\u00E4sc:new Array(valkea)};
elukoi["hispid hare"] = {korvat:"pupu", pr:new Array(ruskea, harmaa, valkea), sc:new Array(ruskea, harmaa, valkea, pinkki), h\u00E4nt\u00E4:"pupu"};
elukoi["Amami rabbit"] = {korvat:"pupu", pr:new Array(ruskea, harmaa, valkea), sc:new Array(ruskea, harmaa, valkea, pinkki), h\u00E4nt\u00E4:"pupu"};
elukoi["New England cottontail rabbit"] = {korvat:"pupu", pr:new Array(ruskea, harmaa, valkea), sc:new Array(ruskea, harmaa, valkea, pinkki), h\u00E4nt\u00E4:"pupu"};
elukoi["giant otter"] = {korvat:"saukko", pr:new Array(ruskea), sc:new Array(ruskea, ruskea), h\u00E4nt\u00E4:"saukko"};
elukoi["Grevy's zebra"] = {korvat:"seepra", pr:new Array(musta, valkea), sc:new Array(musta, valkea), h\u00E4nt\u00E4:"sarvikuono"};
elukoi["Malayan tapir"] = {korvat:"tapiiri", pr:new Array(musta, harmaa), sc:new Array(musta, harmaa, valkea)};
elukoi["Persian leopard"] = {korvat:"leopardi", pr:new Array(oranssi, keltainen), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"leopardi"};
elukoi["pygmy hippopotamus"] = {korvat:"saukko", pr:new Array(harmaa), sc:new Array(harmaa)};
elukoi["Rotschild's giraffe"] = {korvat:"kirahvi", pr:new Array(keltainen), sc:new Array(musta, keltainen), h\u00E4nt\u00E4:"sarvikuono"};
elukoi["South Andean deer"] = {korvat:"kirahvi", pr:new Array(ruskea), sc:new Array(ruskea), h\u00E4nt\u00E4:"fretti", sarvet:"peura"};
elukoi["Przewalski's horse"] = {korvat:"kirahvi", pr:new Array(ruskea), sc:new Array(ruskea), h\u00E4nt\u00E4:"heppa"};
elukoi["volcano rabbit"] = {korvat:"volkaanipupu", pr:new Array(harmaa), sc:new Array(harmaa, pinkki)};
elukoi["wild water buffalo"] = {korvat:"biisoni", pr:new Array(musta), sc:new Array(musta), h\u00E4nt\u00E4:"sarvikuono", sarvet:"biisoni"};
elukoi["fishing cat"] = {korvat:"kissa", pr:new Array(ruskea, harmaa), sc:new Array(ruskea, harmaa, musta, pinkki), h\u00E4nt\u00E4:"kissa"};
elukoi["African lion"] = {korvat:"leijona", pr:new Array(keltainen, ruskea, oranssi), sc:new Array(keltainen, ruskea, oranssi), h\u00E4nt\u00E4:"leijona"};
elukoi["clouded leopard"] = {korvat:"leopardi", pr:new Array(oranssi, keltainen), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"leopardi"};
elukoi.cheetah = {korvat:"gepardi", pr:new Array(keltainen), sc:new Array(musta, ruskea, oranssi), h\u00E4nt\u00E4:"gepardi"};
elukoi["Pere David's deer"] = {korvat:"kirahvi", pr:new Array(ruskea), sc:new Array(ruskea), h\u00E4nt\u00E4:"pere", sarvet:"peura"};
elukoi["Scimitar oryx"] = {korvat:"kirahvi", pr:new Array(valkea), sc:new Array(musta, harmaa, ruskea), h\u00E4nt\u00E4:"sarvikuono", sarvet:"oryx"};
elukoi.fossa = {korvat:"leijona", pr:new Array(ruskea), sc:new Array(ruskea), h\u00E4nt\u00E4:"leijona"};
elukoi["golden hamster"] = {korvat:"kultapanda", pr:new Array(oranssi, ruskea, keltainen), sc:new Array(oranssi, ruskea)};
elukoi.mandrill = {korvat:"apina", pr:new Array(musta, harmaa), sc:new Array(musta, harmaa)};
elukoi["mountain zebra"] = {korvat:"seepra", pr:new Array(musta, valkea), sc:new Array(musta, valkea), h\u00E4nt\u00E4:"sarvikuono"};
elukoi.yak = {korvat:"biisoni", pr:new Array(musta, ruskea), sc:new Array(musta, ruskea), h\u00E4nt\u00E4:"sarvikuono"};
elukoi["Vietnamese pheasant"] = {pr:new Array(sininen, vihre\u00E4, musta), sc:new Array(sininen, vihre\u00E4, valkea), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["blue-throated macaw"] = {pr:new Array(sininen), sc:new Array(keltainen), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["Humboldt penguin"] = {pr:new Array(musta, harmaa), sc:new Array(valkea)};
elukoi["African penguin"] = {pr:new Array(musta, harmaa), sc:new Array(valkea)};
elukoi.kakapo = {pr:new Array(vihre\u00E4), sc:new Array(vihre\u00E4, ruskea), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["hyacinth macaw"] = {pr:new Array(sininen), sc:new Array(sininen), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["California condor"] = {pr:new Array(musta), sc:new Array(harmaa, valkea, pinkki), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["Philippine eagle"] = {pr:new Array(ruskea), sc:new Array(valkea), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["Japanese crane"] = {pr:new Array(valkea), sc:new Array(musta), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["maned sloth"] = {pr:new Array(ruskea), sc:new Array(ruskea)};
elukoi["Socorro dove"] = {pr:new Array(ruskea, oranssi), sc:new Array(ruskea, oranssi, musta), h\u00E4nt\u00E4:"lintu", siivet:"lintu"};
elukoi["hawksbill sea turtle"] = {pr:new Array(ruskea, keltainen), sc:new Array(keltainen)};
elukoi["Goliath frog"] = {pr:new Array(vihre\u00E4, ruskea), sc:new Array(vihre\u00E4, ruskea)};
elukoi["Wyoming toad"] = {pr:new Array(ruskea), sc:new Array(ruskea)};
elukoi.armadillo = {pr:new Array(ruskea, harmaa), sc:new Array(ruskea, harmaa), korvat:"sarvikuono", h\u00E4nt\u00E4:"armadillo"};
elukoi["Catarina pupfish"] = {pr:new Array(keltainen, sininen, ruskea), sc:new Array(keltainen, sininen, ruskea)};
elukoi["Galapagos tortoise"] = {pr:new Array(vihre\u00E4, ruskea, harmaa), sc:new Array(vihre\u00E4, ruskea, harmaa)};
elukoi["Southern bluefin tuna"] = {pr:new Array(sininen), sc:new Array(sininen)};
elukoi["Komodo dragon"] = {pr:new Array(musta, harmaa), sc:new Array(musta, harmaa), h\u00E4nt\u00E4:"komodo"};
elukoi["Mediterranean monk seal"] = {pr:new Array(harmaa, sininen), sc:new Array(harmaa, sininen)};
elukoi["Chinese giant salamander"] = {pr:new Array(ruskea), sc:new Array(ruskea), h\u00E4nt\u00E4:"komodo"};
elukoi["Chinese alligator"] = {pr:new Array(harmaa, vihre\u00E4), sc:new Array(harmaa, vihre\u00E4), h\u00E4nt\u00E4:"komodo"};
elukoi["Siamese crocodile"] = {pr:new Array(harmaa, vihre\u00E4), sc:new Array(harmaa, vihre\u00E4), h\u00E4nt\u00E4:"komodo"};
elukoi["false serotine bat"] = {pr:new Array(ruskea, musta), sc:new Array(ruskea, musta), korvat:"lepakko", siivet:"lepakko"};
elukoi["grey bat"] = {pr:new Array(harmaa), sc:new Array(harmaa), korvat:"lepakko", siivet:"lepakko"};
elukoi["Javan thick-thumbed bat"] = {pr:new Array(ruskea), sc:new Array(harmaa, musta), korvat:"lepakko", siivet:"lepakko"};
elukoi["grey myotis"] = {pr:new Array(harmaa), sc:new Array(harmaa), korvat:"lepakko", siivet:"lepakko"};
elukoi["karner blue butterfly"] = {pr:new Array(sininen), sc:new Array(keltainen, musta), siivet:"perhonen", sarvet:"perhonen"};
elukoi["Ceylon rose"] = {pr:new Array(vihre\u00E4), sc:new Array(musta), siivet:"perhonen", sarvet:"perhonen"};
elukoi["palos verdes blue"] = {pr:new Array(sininen, harmaa), sc:new Array(sininen), siivet:"perhonen", sarvet:"perhonen"};
elukoi["saturn butterfly"] = {pr:new Array(ruskea), sc:new Array(ruskea, oranssi), siivet:"perhonen", sarvet:"perhonen"};
elukoi["banded peacock"] = {pr:new Array(vihre\u00E4), sc:new Array(vihre\u00E4), siivet:"perhonen", sarvet:"perhonen"};
elukoi. = {pr:new Array(), sc:new Array()};
var elukkaKorvat = {};
elukkaKorvat.kissa = {f:new Array(1, 2, 3, 4, 5, 6)};
elukkaKorvat.leopardi = {f:new Array(7, 8, 9, 10, 11, 12, 13, 14, 15)};
elukkaKorvat.sarvikuono = {f:new Array(16, 17)};
elukkaKorvat.apina = {f:new Array(18, 19)};
elukkaKorvat.tiikeri = {f:new Array(20, 21, 22, 23, 24, 25, 26, 27)};
elukkaKorvat.norsu = {f:new Array(28, 29, 30)};
elukkaKorvat.saola = {f:new Array(31, 32)};
elukkaKorvat.villikoira = {f:new Array(33, 34)};
elukkaKorvat.karhu = {f:new Array(35, 36, 37)};
elukkaKorvat.kultapanda = {f:new Array(38, 39, 40)};
elukkaKorvat.biisoni = {f:new Array(41, 41)};
elukkaKorvat.kettu = {f:new Array(42, 43, 44, 45, 46), pr:new Array()};
elukkaKorvat.gepardi = {f:new Array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56)};
elukkaKorvat.axolotl = {f:new Array(57, 58)};
elukkaKorvat.kameli = {f:new Array(59, 60, 61)};
elukkaKorvat.ilves = {f:new Array(62, 63, 64, 65)};
elukkaKorvat.opossumi = {f:new Array(66, 67)};
elukkaKorvat.vompatti = {f:new Array(68, 69)};
elukkaKorvat.susi = {f:new Array(70, 71, 72, 73, 74, 75, 76, 77)};
elukkaKorvat.leijona = {f:new Array(78, 79, 80, 81, 82, 83, 84, 85, 86, 87)};
elukkaKorvat.pupu = {f:new Array(88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98)};
elukkaKorvat.saukko = {f:new Array(99, 100)};
elukkaKorvat.seepra = {f:new Array(101, 102)};
elukkaKorvat.tapiiri = {f:new Array(103, 103)};
elukkaKorvat.kirahvi = {f:new Array(103, 104)};
elukkaKorvat.volkaanipupu = {f:new Array(105, 106)};
elukkaKorvat.fretti = {f:new Array(107, 108)};
elukkaKorvat.lepakko = {f:new Array(109, 110)};
elukkaKorvat. = {f:new Array()};
var elukkaH\u00E4nn\u00E4t = {};
elukkaH\u00E4nn\u00E4t.kissa = {f:new Array(1, 2, 3, 4, 5, 6, 7, 10, 12)};
elukkaH\u00E4nn\u00E4t.leopardi = {f:new Array(8, 9)};
elukkaH\u00E4nn\u00E4t.tiikeri = {f:new Array(2, 3, 5, 10)};
elukkaH\u00E4nn\u00E4t.leijona = {f:new Array(13, 14)};
elukkaH\u00E4nn\u00E4t.gepardi = {f:new Array(15, 16, 17)};
elukkaH\u00E4nn\u00E4t.sarvikuono = {f:new Array(18, 18)};
elukkaH\u00E4nn\u00E4t.pangolin = {f:new Array(19, 19)};
elukkaH\u00E4nn\u00E4t.saola = {f:new Array(20, 20)};
elukkaH\u00E4nn\u00E4t.kultapanda = {f:new Array(5, 21, 22)};
elukkaH\u00E4nn\u00E4t.pupu = {f:new Array(11, 11, 11, 11, 23)};
elukkaH\u00E4nn\u00E4t.villikoira = {f:new Array(24, 25)};
elukkaH\u00E4nn\u00E4t["black spider monkey"] = {f:new Array(26, 27)};
elukkaH\u00E4nn\u00E4t.fretti = {f:new Array(28, 28)};
elukkaH\u00E4nn\u00E4t.kettu = {f:new Array(29, 29)};
elukkaH\u00E4nn\u00E4t.axolotl = {f:new Array(30, 30)};
elukkaH\u00E4nn\u00E4t.susi = {f:new Array(31, 32)};
elukkaH\u00E4nn\u00E4t.saukko = {f:new Array(33, 33)};
elukkaH\u00E4nn\u00E4t.heppa = {f:new Array(34, 34)};
elukkaH\u00E4nn\u00E4t.pere = {f:new Array(35, 35)};
elukkaH\u00E4nn\u00E4t.lintu = {f:new Array(36, 37, 38, 39, 40)};
elukkaH\u00E4nn\u00E4t.armadillo = {f:new Array(41, 41)};
elukkaH\u00E4nn\u00E4t.komodo = {f:new Array(42, 42)};
elukkaH\u00E4nn\u00E4t. = {f:new Array()};
elukkaH\u00E4nn\u00E4t. = {f:new Array()};
var elukkaSiivet = {};
elukkaSiivet.lepakko = {f:new Array(1, 2, 3, 4)};
elukkaSiivet.lintu = {f:new Array(5, 6, 7, 8, 9, 10, 11, 12)};
elukkaSiivet.perhonen = {f:new Array(13, 14, 15, 16, 17)};
var elukkaSarvet = {};
elukkaSarvet.sarvikuono = {f:new Array(1, 2)};
elukkaSarvet.saola = {f:new Array(3, 4)};
elukkaSarvet.perhonen = {f:new Array(5, 6)};
elukkaSarvet.biisoni = {f:new Array(7, 8)};
elukkaSarvet.peura = {f:new Array(9, 10)};
elukkaSarvet.oryx = {f:new Array(11, 11)};
elukkaSarvet. = {f:new Array()};
function luo() {
annaTarina();
_root.value_story.text = _root.kuka.tarina;
}
function annaTarina() {
var _local2 = "";
var _local3 = alku;
_local2 = _local2 + _local3[Math.floor(Math.random() * _local3.length)];
while (_local2.indexOf("\u00D6") != -1) {
sana = etsiSana(_local2, _local2.indexOf("\u00D6"));
_local3 = _root[sana];
uusi = _local3[Math.floor(Math.random() * _local3.length)];
_local2 = _local2.replace(sana, uusi);
}
_local2 = _local2.replace("MEWNAME", _root.kuka.etunimi);
var _local4 = annaNimet(_root.kuka.mew);
_local2 = _local2.replace("OTHERMEW2", "Mew " + _local4[0]);
_local2 = _local2.replace("OTHERMEW3", "Mew " + _local4[1]);
_local2 = _local2.replace("OTHERMEW4", "Mew " + _local4[2]);
_local2 = _local2.replace("OTHERMEW", "Mew " + _local4[3]);
_root.kuka.tarina = _local2;
}
function annaNimet(omamew) {
var _local1 = new Array("", "", "", "");
_local1[0] = eiSamaMew(omamew, omamew, omamew, omamew);
_local1[1] = eiSamaMew(_local1[0], omamew, omamew, omamew);
_local1[2] = eiSamaMew(_local1[0], _local1[1], omamew, omamew);
_local1[3] = eiSamaMew(_local1[0], _local1[1], _local1[2], omamew);
return(_local1);
}
function eiSamaMew(mew1, mew2, mew3, mew4) {
var _local2 = 0;
while (_local2 < 20) {
var _local1 = annaRandom(mewTaulu, mewTaulu.length);
if ((((_local1 != mew1) && (_local1 != mew2)) && (_local1 != mew3)) && (_local1 != mew4)) {
return(annaRandom(mewTaulu, mewTaulu.length));
}
_local2++;
}
return(annaRandom(mewTaulu, mewTaulu.length));
}
function etsiSana(str, alku) {
var _local1 = alku;
var _local3 = "";
while (_local1 < str.length) {
_local3 = _local3 + str.charAt(_local1);
if (str.charAt(_local1) == "$") {
break;
}
_local1++;
}
return(_local3);
}
String.prototype.replace = function (searchStr, replaceStr) {
return(this.split(searchStr).join(replaceStr));
};
var alku = new Array("\u00D6_WHYMEW$ \n\n\u00D6_TEAMSTUFF$");
var \u00D6_TEAMSTUFF$ = new Array("\u00D6_TEAMNOW$", "\u00D6_TEAMPROBLEMS$", "\u00D6_ALONE$");
var \u00D6_WHYMEW$ = new Array("Many want to be a Mew because they wanted to protect the Earth. Not so for MEWNAME, who \u00D6_LAZYREASON$.", "MEWNAME didn't have noble reasons for wanting to be a Mew. Instead, she \u00D6_LAZYREASON$.", "MEWNAME has little interest in saving anything as a Mew and \u00D6_LAZYREASON$.", "MEWNAME wanted to be a Mew because \u00D6_REASON$.", "MEWNAME didn't even want to be a Mew in the first place, but \u00D6_FORCEDREASON$.", "MEWNAME had no interest in being a Mew because \u00D6_WHYNO$, but \u00D6_FORCEDREASON$.", "MEWNAME jumped at the first chance to be a mew, even though she \u00D6_LAZYREASON$.", "For MEWNAME working as a Mew is just a job and she wasn't too interested in becoming one anyway, but she had to because \u00D6_FORCEDREASON$.", "\u00D6_WHY2$");
var \u00D6_WHY2$ = new Array("MEWNAME had been looking for a purpose in life and being a Mew seemed like something where she could do something meaningful.", "MEWNAME's home and family were destroyed by a chimera attack and now she acts as a wandering magical girl, destroying chimeras wherever she goes.", "MEWNAME's home and family were destroyed by a chimera attack and now she acts as a wandering magical girl seeking for revence.", "After a long peaceful time MEWNAME thought she could retire from being a Mew, but now to her horror new alien attacks have started.", "\u00D6_WHYMEW$", "\u00D6_WHYMEW$", "\u00D6_WHYMEW$");
var \u00D6_LAZYREASON$ = new Array("merely wanted to become rich from superheroics", "just thought it'd be fun", "was just bored", "was just bored and wanted some action in her life", "only wanted to become famous and popular", "only wanted to work in the same field as her idol OTHERMEW3", "just saw the Tokyo Mew Mew team on TV and wanted to be cool like them", "just wants to work in the Cafe Mew Mew because of \u00D6_CAFEREASON$", "wants to blow off steam by fighting chimeras", "wants to blow off steam by fighting chimeras. Lately it has seemed like she's taken the violence too far..");
var \u00D6_REASON$ = new Array("she is very concerned about the state of the planet and environment", "earlier she was saved by the famous OTHERMEW, which impressed her so much that she wanted to be a Mew too", "she wants to be a cool hero", "she wants to bring back her \u00D6_anyAny$ who was kidnapped by the aliens");
var \u00D6_CAFEREASON$ = new Array("all the cakes she gets to eat for free", "the good pay", "the cute waitress outfit", "all the cute customers who give her flattering attention");
var \u00D6_FORCEDREASON$ = new Array("she didn't really have much of a choice since she was infected with animal DNA against her will", "after her \u00D6_anyFriend$, OTHERMEW, died in battle she felt she had no choice but to take her place", "since being a Mew was her sick \u00D6_anyFriend$'s dream she felt she needed to do that in her place", "after her \u00D6_anyFriend$, OTHERMEW, went missing in battle she thought she'd have to find her", "after her \u00D6_anyFriend$, OTHERMEW, was seriously injured in battle she felt she had no choice but to take her place", "after her \u00D6_anyFriend$ was taken a hostage by the aliens she didn't have much of a choice");
var \u00D6_WHYNO$ = new Array("school keeps her super busy", "she's just lazy", "the whole thing scares her", "she's already failing many of her classes and should focus on her studies", "she has low self-esteem and feels that the whole thing is too much for her");
var \u00D6_jr$ = new Array("younger sister", "underclassman");
var \u00D6_sr$ = new Array("older sister", "senpai");
var \u00D6_equal$ = new Array("sister", "adopted sister", "twin sister", "identical twin", "best friend", "classmate", "friend", "cousin");
var \u00D6_anyFriend$ = new Array();
Set("\u00D6_anyFriend$", \u00D6_equal$.concat(\u00D6_jr$));
Set("\u00D6_anyFriend$", \u00D6_anyFriend$.concat(\u00D6_jr$));
Set("\u00D6_anyFriend$", \u00D6_anyFriend$.concat(\u00D6_sr$));
var \u00D6_eqsr$ = new Array();
Set("\u00D6_eqsr$", \u00D6_eqsr$.concat(\u00D6_equal$));
Set("\u00D6_eqsr$", \u00D6_eqsr$.concat(\u00D6_sr$));
var \u00D6_eqjr$ = new Array();
Set("\u00D6_eqjr$", \u00D6_eqjr$.concat(\u00D6_equal$));
Set("\u00D6_eqjr$", \u00D6_eqjr$.concat(\u00D6_jr$));
var \u00D6_anyAny$ = new Array("older brother", "younger brother", "brother", "twin brother", "mother", "father", "crush");
Set("\u00D6_anyAny$", \u00D6_anyAny$.concat(\u00D6_anyFriend$));
var \u00D6_AMOUNT$ = new Array("3", "4", "5", "6");
var \u00D6_TEAMNOW$ = new Array("She is now quite lonely and looking for teammates.", "She is now sort of a sidekick to her \u00D6_eqsr$ OTHERMEW2.", "She is now a sidekick to her much more competent \u00D6_jr$ OTHERMEW2, which gives her quite an inferiority complex.", "She totally lucked out and managed to become a sidekick to her idol OTHERMEW3. \u00D6_ASASIDEKICK$", "Currently she's working as a sidekick to a more experienced OTHERMEW3. \u00D6_ASASIDEKICK$", "She didn't want to work alone so she sort of forced herself into an existing \u00D6_AMOUNT$ person team.");
var \u00D6_ASASIDEKICK$ = new Array("Unfortunately their teamwork doesn't work too well because MEWNAME is such a newbie and keeps messing things up.", "MEWNAME still has a lot to learn, but luckily OTHERMEW3 doesn't mind too much teaching her and fixing her mess ups.", "MEWNAME works hard not to disappoint her idol.", "MEWNAME does her best not to drag OTHERMEW3 down, and so far things have gone quite well!", "MEWNAME does her best to impress OTHERMEW3 but so far she's had little success.", "MEWNAME does her best to impress OTHERMEW3 and so far things have gone quite well!");
var \u00D6_ALONE$ = new Array("She works alone because \u00D6_ALONEREASON$.", "She doesn't work with a team because \u00D6_ALONEREASON$.");
var \u00D6_ALONEREASON$ = new Array("she thinks other Mews use their powers wrong", "she is afraid that her incompetence would endanger others", "her former teammates died and she doesn't want to go through that again", "she is trying to prove to herself that she can handle things alone", "she is trying to prove to OTHERMEW that she can handle things alone", "she is trying to make up for \u00D6_OLDFAILURE$ and she feels like she must do it alone", "her former team thinks she died and she doesn't want to tell the truth", "she is a seasoned veteran and thinks that others will just get in her way", "she knows her mother is working for the alien invaders and she feels like she doesn't have the right to work with fellow Mews", "due to misinformation she used to work for the alien invaders and now she wants to atone for it alone", "she used to be an adored idol but that was too pressuring for her, so she just wants to work in secret", "she used to be an adored idol, but after \u00D6_OLDFAILURE$ she just wants to disappear", "she used to be an adored idol, but after \u00D6_OLDFAILURE$ her popularity has plummeted and thus she wants to keep a low profile", "she has been framed for \u00D6_FRAMEDFOR$ and nobody wants to work with her", "she has a crush on one of the aliens and she doesn't know what to do about her affiliations", "she has been framed for \u00D6_FRAMEDFOR$ and even her former teammates have turned against her", "she was injured in a fight against a chimera but she doesn't want her former teammates to notice", "she feels like her powers are diminishing but she doesn't want her former teammates to notice", "the endless fighting against the chimera has made her feel like everything's become dull and meaningless", "she has actually turned against other Mews and is working for the aliens", "she has actually turned against other Mews and only wants to see the world burn");
var \u00D6_FRAMEDFOR$ = new Array("the massive amount of collateral damage caused by the aliens", "a serious injury to a former teammate", "the death of a former teammate", "a serious injury to a civilian", "the death of a civilian");
var \u00D6_OLDFAILURE$ = new Array("all the collatelar damage she's caused", "a serious injury to a former teammate she feels responsible for", "the death of a former teammate she feels responsible for", "a serious injury to a civilian she feels responsible for", "the death of a civilian she feels responsible for", "the death of an alien she regrets");
var \u00D6_TEAMPROBLEMS$ = new Array("She is now the leader of a \u00D6_AMOUNT$ person team. \u00D6_LEADERPROBLEMS$", "She is now quite an experienced Mew and thus she tries to teach newbie Mews. \u00D6_LEADERPROBLEMS$", "She has a terrible problem: \u00D6_LAMEPROBLEM$!", "\u00D6_DONTLIKE$, \u00D6_QUIT$.", "Her Mew team of \u00D6_AMOUNT$ is now facing a serious crisis due to one member, OTHERMEW4, having been taken a hostage by the aliens.", "Her Mew team of \u00D6_AMOUNT$ is now facing a serious crisis due to one member, OTHERMEW4, having disappeared.", "Her Mew \u00D6_AMOUNT$ member Mew team is in a crisis after one member, OTHERMEW4, died \u00D6_DEATH$.", "There is a lot of rivalry and jealousy in her \u00D6_AMOUNT$ member team which causes their teamwork to suffer.", "She's had to team up with OTHERMEW4, \u00D6_DIFFICULTTEAM$.", "\u00D6_FIGHT$", "\u00D6_FIGHT$");
var \u00D6_DEATH$ = new Array("from friendly fire", "in an accident", "from an illness", "in an alien attack", "in a chimera attack");
var \u00D6_DONTLIKE$ = new Array("Fighting aliens has turned out to be a lot more dangerous than she could ever imagine", "Fighting aliens has been seriously traumatising to her", "She thought fighting aliens would be a lot cooler than it is", "She thought she'd find a purpose in defending the Earth but she still feels lost", "She's noticed she has a crush on one of the aliens", "She constantly fails at everything and needs to be saved from the chimeras all the time", "She feel like she's only a burden to other Mews", "She's found that teamwork with other Mews is impossible due to clashing personalities");
var \u00D6_QUIT$ = new Array("and she's been pondering if she should just quit", "and she actually quit working as a Mew \u00D6_AMOUNT$ months ago, but every day she thinks if she made the right choice", "and she actually quit working as a Mew \u00D6_AMOUNT$ weeks ago, but every day she thinks if she made the right choice");
var \u00D6_LAMEPROBLEM$ = new Array("She hates her Mew outfit", "She hates the animal genes she got", "She has a crush on one of the aliens");
var \u00D6_LEADERPROBLEMS$ = new Array("Unfortunately she has serious problems maintaining her authority.", "Unfortunately she feels like some of her protegees are more competent than her...", "Things don't work out too well since there is so much bickering among her protegees.", "She thought she was a cool leader, but to her disappointment she notices that her protegees are starting to outshine her at every moment.");
var \u00D6_DIFFICULTTEAM$ = new Array("who used to bully her years ago, so teamwork is awkward", "who she used to bully years ago, so teamwork is awkward", "who she used to bully years ago, and who refuses to forgive her", "an unpopular girl she used to bully years ago, so their teamwork is awkward", "an unpopular girl who she finds an embarrassing teammate", "who used to bully her years ago and their relationship is still bitter", "an ex friend with who she hasn't spoken in years and their relationship is still bitter", "the popular girl in class who hates her, so their teamwork is awkward");
var \u00D6_FIGHT$ = new Array("There is constant infighting in the team, and MEWNAME desperately tries to smooth things out.", "She feels like another member of their team, OTHERMEW4, is dragging the team down, but she's not sure if she should talk about it.", "Her Mew team's teamwork has detoriated after MEWNAME voiced her concerns that another member of the team, OTHERMEW4, is dragging the team down.", "The teamwork of her Mew Team suffers because all the others think that MEWNAME is dragging them down.", "She returned to her Mew Team after the others thought she died, but to her horror she finds that she wasn't really needed any more.", "She returned to her Mew Team after the others thought she died, but to her horror she finds that the others don't even want her back.", "Unfortunately MEWNAME isn't too well liked in her team of \u00D6_AMOUNT$ because \u00D6_DISLIKEDREASON$.", "Often MEWNAME feels like she's the only competent fighter in her \u00D6_AMOUNT$ member team.");
var \u00D6_DISLIKEDREASON$ = new Array("the others find her too clumsy", "the others dislike her personality", "the others refuse to forget an old blunder of hers", "someone has spread baseless rumours that \u00D6_RUMOUR$", "an old bully of hers is in the team and she's managed to turn everyone else against her");
var \u00D6_RUMOUR$ = new Array("she's secretly working for the aliens", "she has a crush on one of the aliens");
function RGBtoHEX(r, g, b) {
return(((r << 16) | (g << 8)) | b);
}
Symbol 4 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 717 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 1
stop();
Symbol 768 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 1
stop();
Symbol 843 MovieClip Frame 1
stop();
Symbol 862 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 1
stop();
Symbol 903 MovieClip [merkki] Frame 1
stop();
Symbol 921 MovieClip Frame 1
stop();
Symbol 928 MovieClip Frame 1
stop();
Symbol 999 MovieClip Frame 1
stop();
Symbol 1046 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1276 MovieClip Frame 1
stop();
Symbol 1302 MovieClip Frame 1
stop();
Symbol 1321 MovieClip Frame 1
stop();
Symbol 1392 MovieClip Frame 1
stop();
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1459 MovieClip Frame 1
stop();
Symbol 1473 MovieClip Frame 1
stop();
Symbol 1486 MovieClip Frame 1
stop();
Symbol 1532 MovieClip Frame 1
stop();
Symbol 1646 MovieClip Frame 1
stop();
Symbol 1773 MovieClip Frame 1
stop();
Symbol 1898 MovieClip Frame 1
stop();
Symbol 1948 MovieClip Frame 1
stop();
Symbol 1975 MovieClip Frame 1
stop();
Symbol 1988 MovieClip Frame 1
stop();
Symbol 2002 MovieClip Frame 1
stop();
Symbol 2311 MovieClip Frame 1
elukka = "kissa";
stop();
Symbol 2311 MovieClip Frame 7
var elukka = "leopardi";
Symbol 2368 MovieClip Frame 1
stop();
Symbol 2443 MovieClip Frame 1
stop();
Symbol 2604 MovieClip Frame 1
stop();
Symbol 2672 MovieClip Frame 1
stop();
Symbol 2695 MovieClip Frame 1
stop();
Symbol 2705 MovieClip [ttukka3_sisä] Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.siirr\u00E4(_root.kuka.ttukka, this.nro);
_root.siirr\u00E4(_root.kuka.ettukka, this.nro);
_root.kuka.ettukka._visible = _root.tauluContains(_root.ettukka, _root.kuka.ttukka._currentFrame);
};
}
}
Symbol 2707 MovieClip [ponnarit2_sisä] Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.ponnarit._visible = true;
_root.siirr\u00E4(_root.kuka.ponnarit, this.nro);
};
}
}
Symbol 2709 MovieClip [ttukka2_sisä] Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.siirr\u00E4(_root.kuka.ttukka, this.nro);
_root.siirr\u00E4(_root.kuka.ettukka, this.nro);
_root.kuka.ettukka._visible = _root.tauluContains(_root.ettukka, _root.kuka.ttukka._currentFrame);
};
}
}
Symbol 2711 MovieClip [ttukka_sisä] Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.siirr\u00E4(_root.kuka.ttukka, this.nro);
_root.siirr\u00E4(_root.kuka.ettukka, this.nro);
_root.kuka.ettukka._visible = _root.tauluContains(_root.ettukka, _root.kuka.ttukka._currentFrame);
};
}
}
Symbol 2713 MovieClip [ponnarit_sisä] Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.ponnarit._visible = true;
_root.siirr\u00E4(_root.kuka.ponnarit, this.nro);
};
}
}
Symbol 2715 MovieClip [etukka_sisä] Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "n") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.etukka._visible = true;
_root.siirr\u00E4(_root.kuka.etukka, this.nro);
_root.siirr\u00E4(_root.kuka.eetukka, this.nro);
_root.kuka.eetukka._visible = _root.tauluContains(_root.eetukka, _root.kuka.etukka._currentFrame);
};
}
}
Symbol 2724 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 2726 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 2729 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 2731 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 2734 MovieClip [Defaults] Frame 1
#initclip 34
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 2735 MovieClip [UIObjectExtensions] Frame 1
#initclip 35
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 2736 MovieClip [UIObject] Frame 1
#initclip 36
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 2739 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 2740 MovieClip Frame 1
#initclip 37
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 2741 MovieClip [FocusRect] Frame 1
#initclip 38
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 2742 MovieClip [FocusManager] Frame 1
#initclip 39
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 2743 MovieClip [UIComponentExtensions] Frame 1
#initclip 40
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 2744 MovieClip [UIComponent] Frame 1
#initclip 41
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 2745 MovieClip [SimpleButton] Frame 1
#initclip 42
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 2746 MovieClip [Border] Frame 1
#initclip 43
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 2747 MovieClip [RectBorder] Frame 1
#initclip 44
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 2748 MovieClip [ButtonSkin] Frame 1
#initclip 45
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 2749 MovieClip [Button] Frame 1
#initclip 46
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 2745 MovieClip [SimpleButton] in Symbol 2749 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 2750 MovieClip [CustomBorder] Frame 1
#initclip 47
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 2762 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 2764 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 2775 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 2777 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 2784 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 2805 MovieClip [BtnDownArrow] Frame 1
#initclip 48
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 2806 MovieClip [BtnUpArrow] Frame 1
#initclip 49
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 2808 MovieClip [HScrollBar] Frame 1
#initclip 50
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 2749 MovieClip [Button] in Symbol 2808 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 2745 MovieClip [SimpleButton] in Symbol 2808 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 2809 MovieClip [VScrollBar] Frame 1
#initclip 51
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 2749 MovieClip [Button] in Symbol 2809 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 2745 MovieClip [SimpleButton] in Symbol 2809 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 2810 MovieClip [View] Frame 1
#initclip 52
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 2811 MovieClip [ScrollView] Frame 1
#initclip 53
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 2808 MovieClip [HScrollBar] in Symbol 2811 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 2809 MovieClip [VScrollBar] in Symbol 2811 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 2812 MovieClip [ScrollPane] Frame 1
#initclip 54
Object.registerClass("ScrollPane", mx.containers.ScrollPane);
#endinitclip
stop();
Symbol 2871 MovieClip Frame 1
stop();
Symbol 2929 MovieClip Frame 1
stop();
Symbol 2930 MovieClip Frame 1
taustagradient.gotoAndStop(2);
taustakuvio._visible = false;
taustakuvio.v._alpha = 30;
taustakuvio.v2._alpha = 40;
taustakuvio.v3._alpha = 50;
Symbol 2946 MovieClip Frame 11
stop();
Symbol 2947 MovieClip Frame 1
stop();
Symbol 2951 Button
on (release) {
_root.nextFrame();
}
Symbol 2954 MovieClip Frame 1
_root.stop();
totalBytes = Math.round(_root.getBytesTotal() / 100);
loadedBytes = Math.round(_root.getBytesLoaded() / 100);
totalKB = Math.round(_root.getBytesTotal() / 1000);
loadKB = Math.round(_root.getBytesLoaded() / 1000);
percentDone = int((loadedBytes / totalBytes) * 100);
bar.gotoAndStop(percentDone);
if (percentDone == 100) {
gotoAndStop (3);
}
Symbol 2954 MovieClip Frame 2
if (percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 2716 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 2717 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 2718 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.127";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 2719 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.127";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 2720 MovieClip [__Packages.mx.containers.ScrollPane] Frame 0
class mx.containers.ScrollPane extends mx.core.ScrollView
{
var _total, _loaded, destroyChildAt, createChild, __scrollContent, spContentHolder, hScroller, vScroller, __get__hScrollPolicy, __vScrollPolicy, __get__vScrollPolicy, tabEnabled, keyDown, mask_mc, hPosition, __get__maxHPosition, vPosition, __get__maxVPosition, __hPosition, __vPosition, invalidate;
function ScrollPane () {
super();
}
function getBytesTotal() {
return(_total);
}
function getBytesLoaded() {
return(_loaded);
}
function set contentPath(scrollableContent) {
if (!initializing) {
if (scrollableContent == undefined) {
destroyChildAt(0);
} else {
if (this[mx.core.View.childNameBase + 0] != undefined) {
destroyChildAt(0);
}
createChild(scrollableContent, "spContentHolder");
}
}
__scrollContent = scrollableContent;
//return(contentPath);
}
function get contentPath() {
return(__scrollContent);
}
function get content() {
return(spContentHolder);
}
function setHPosition(position) {
if ((position <= hScroller.maxPos) && (position >= hScroller.minPos)) {
super.setHPosition(position);
spContentHolder._x = -position;
}
}
function setVPosition(position) {
if ((position <= vScroller.maxPos) && (position >= vScroller.minPos)) {
super.setVPosition(position);
spContentHolder._y = -position;
}
}
function get vLineScrollSize() {
return(__vLineScrollSize);
}
function set vLineScrollSize(vLineSize) {
__vLineScrollSize = vLineSize;
vScroller.__set__lineScrollSize(vLineSize);
//return(vLineScrollSize);
}
function get hLineScrollSize() {
return(__hLineScrollSize);
}
function set hLineScrollSize(hLineSize) {
__hLineScrollSize = hLineSize;
hScroller.__set__lineScrollSize(hLineSize);
//return(hLineScrollSize);
}
function get vPageScrollSize() {
return(__vPageScrollSize);
}
function set vPageScrollSize(vPageSize) {
__vPageScrollSize = vPageSize;
vScroller.__set__pageScrollSize(vPageSize);
//return(vPageScrollSize);
}
function get hPageScrollSize() {
return(__hPageScrollSize);
}
function set hPageScrollSize(hPageSize) {
__hPageScrollSize = hPageSize;
hScroller.__set__pageScrollSize(hPageSize);
//return(hPageScrollSize);
}
function set hScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__hScrollPolicy());
}
function set vScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__vScrollPolicy());
}
function get scrollDrag() {
return(__scrollDrag);
}
function set scrollDrag(s) {
__scrollDrag = s;
if (__scrollDrag) {
spContentHolder.useHandCursor = true;
spContentHolder.onPress = function () {
this._parent.startDragLoop();
};
spContentHolder.tabEnabled = false;
spContentHolder.onRelease = (spContentHolder.onReleaseOutside = function () {
delete this.onMouseMove;
});
__scrollDrag = true;
} else {
delete spContentHolder.onPress;
spContentHolder.tabEnabled = false;
spContentHolder.tabChildren = true;
spContentHolder.useHandCursor = false;
__scrollDrag = false;
}
//return(scrollDrag);
}
function init(Void) {
super.init();
tabEnabled = true;
keyDown = _onKeyDown;
}
function createChildren(Void) {
super.createChildren();
mask_mc._visible = false;
initializing = false;
if ((__scrollContent != undefined) && (__scrollContent != "")) {
contentPath = (__scrollContent);
}
}
function size(Void) {
super.size();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = Math.min(hPosition, __get__maxHPosition());
vPosition = Math.min(vPosition, __get__maxVPosition());
}
function setScrollProperties(columnCount, columnWidth, rowCount, rowHeight) {
super.setScrollProperties(columnCount, columnWidth, rowCount, rowHeight);
hScroller.__set__lineScrollSize(__hLineScrollSize);
hScroller.__set__pageScrollSize(__hPageScrollSize);
vScroller.__set__lineScrollSize(__vLineScrollSize);
vScroller.__set__pageScrollSize(__vPageScrollSize);
}
function onScroll(scrollEvent) {
spContentHolder._x = -__hPosition;
spContentHolder._y = -__vPosition;
super.onScroll(scrollEvent);
}
function childLoaded(obj) {
super.childLoaded(obj);
onComplete();
}
function onComplete(Void) {
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = 0;
vPosition = 0;
scrollDrag = (__scrollDrag);
invalidate();
}
function startDragLoop(Void) {
spContentHolder.lastX = spContentHolder._xmouse;
spContentHolder.lastY = spContentHolder._ymouse;
spContentHolder.onMouseMove = function () {
var _local5 = this.lastX - this._xmouse;
var _local4 = this.lastY - this._ymouse;
_local5 = _local5 + this._parent.hPosition;
_local4 = _local4 + this._parent.vPosition;
var _local3 = this._parent.getViewMetrics();
var _local7 = (this._parent.__height - _local3.top) - _local3.bottom;
var _local6 = (this._parent.__width - _local3.left) - _local3.right;
this._parent.__hPosition = Math.max(0, Math.min(_local5, this._width - _local6));
this._parent.__vPosition = Math.max(0, Math.min(_local4, this._height - _local7));
this._parent.hScroller.scrollPosition = this._parent.__hPosition;
this._x = -this._parent.hPosition;
this._parent.vScroller.scrollPosition = this._parent.__vPosition;
this._y = -this._parent.vPosition;
super.dispatchEvent({type:"scroll"});
};
}
function dispatchEvent(o) {
o.target = this;
_total = o.total;
_loaded = o.current;
super.dispatchEvent(o);
}
function refreshPane(Void) {
contentPath = (__scrollContent);
}
function _onKeyDown(e) {
if (((hScroller != undefined) && (__hPosition <= hScroller.maxPos)) && (__hPosition >= hScroller.minPos)) {
if (e.code == 37) {
hPosition = hPosition - hLineScrollSize;
} else if (e.code == 39) {
hPosition = hPosition + hLineScrollSize;
}
}
if (((vScroller != undefined) && (__vPosition <= vScroller.maxPos)) && (__vPosition >= vScroller.minPos)) {
if (e.code == 33) {
vPosition = vPosition - vPageScrollSize;
} else if (e.code == 34) {
vPosition = vPosition + vPageScrollSize;
}
if (e.code == 40) {
vPosition = vPosition + vLineScrollSize;
} else if (e.code == 38) {
vPosition = vPosition - vLineScrollSize;
}
}
if (e.code == 36) {
vPosition = vScroller.minPos;
} else if (e.code == 35) {
vPosition = vScroller.maxPos;
}
}
static var symbolName = "ScrollPane";
static var symbolOwner = mx.containers.ScrollPane;
var className = "ScrollPane";
static var version = "2.0.2.127";
var __hScrollPolicy = "auto";
var __scrollDrag = false;
var __vLineScrollSize = 5;
var __hLineScrollSize = 5;
var __vPageScrollSize = 20;
var __hPageScrollSize = 20;
var clipParameters = {contentPath:1, scrollDrag:1, hScrollPolicy:1, vScrollPolicy:1, vLineScrollSize:1, hLineScrollSize:1, vPageScrollSize:1, hPageScrollSize:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.ScrollPane.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var initializing = true;
}
Symbol 2813 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 2814 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 2815 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 2816 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 2817 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 2818 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 2819 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 2820 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 2821 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 2822 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 2823 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.127";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 2824 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 2825 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.127";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 2826 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 2827 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 2828 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 2829 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 2830 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 2831 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 2832 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 2833 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.127";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 2834 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 2835 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 2836 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 2837 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 2838 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.127";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 2839 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 2840 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 2984 MovieClip Frame 1
stop();
Symbol 2984 MovieClip Frame 19
stop();
stop();
Symbol 2984 MovieClip Frame 22
stop();
Symbol 2986 Button
on (release) {
_root.napit.x_uggo.ihoadvanced._visible = true;
}
Symbol 2989 Button
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.napit["v\u00E4rit"]._visible = true;
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = new Array(_root.kuka.naama.ok.v, _root.kuka.naama.vk.v);
_root.napit["v\u00E4rit"].teksti.text = "Eyebrow colour";
var apuColor = new Color(_root.kuka.naama.ok.v);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 2990 Button
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.napit["v\u00E4rit"]._visible = true;
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = new Array(_root.kuka.naama.osi.pupilli.v, _root.kuka.naama.vsi.pupilli.v);
_root.napit["v\u00E4rit"].teksti.text = "Eye colour";
var apuColor = new Color(_root.kuka.naama.osi.pupilli.v);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3000 MovieClip Frame 1
b.onRelease = function () {
};
for (var i in this) {
if (i.charAt(0) == "d") {
this[i].nro = i.substring(1, i.length);
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
_root.kuka.vartalo.tint.gotoAndStop(this.nro);
};
}
if (i.charAt(0) == "v") {
this[i].nro = i.substring(1, i.length);
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
_root.kuka.vartalo.v.gotoAndStop(this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3000 MovieClip Frame 1
on (release) {
_root.napit.x_uggo.ihoadvanced._visible = false;
}
Symbol 3003 Button
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.naama.suu.v._visible = true;
}
Symbol 3004 Button
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.napit["v\u00E4rit"]._visible = true;
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = new Array(_root.kuka.naama.suu.v);
_root.napit["v\u00E4rit"].teksti.text = "Lipstick colour";
var apuColor = new Color(_root.kuka.naama.suu.v);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3005 Button
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.napit["v\u00E4rit"]._visible = true;
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = new Array(_root.kuka.x_lasit.v);
_root.napit["v\u00E4rit"].teksti.text = "Glasses colour";
var apuColor = new Color(_root.kuka.naama.osi.pupilli.v);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3006 MovieClip Frame 1
stop();
apu2 = this;
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].kuka = i.substring(1, i.length);
this[i].gotoAndStop(this[i].kuka);
this[i].onRelease = function () {
apu2.gotoAndStop(this.kuka);
_root.napit["v\u00E4rit"]._visible = false;
};
}
}
ihoadvanced._visible = false;
for (var i in this) {
if (i.charAt(0) == "v") {
this[i].nro = i.substring(1, i.length);
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
_root.kuka.vartalo.v.gotoAndStop(this.nro);
};
}
}
for (var i in this) {
this[i].nro = int(i.substring(1, i.length));
if (i.charAt(0) == "v") {
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.vartalo.v.gotoAndStop(this.nro);
};
} else if (i.charAt(0) == "s") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.osi, this.nro);
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.vsi, this.nro);
setProperty(_root.kuka.naama.vsi.pupilli, _xscale , -100);
_root.kuka.naama.vsi.pupilli._height = _root.kuka.naama.osi.pupilli._height;
_root.kuka.naama.vsi.pupilli._width = _root.kuka.naama.osi.pupilli._width;
_root.kuka.naama.vsi.pupilli._x = _root.kuka.naama.osi.pupilli._x;
_root.kuka.naama.vsi.pupilli._y = _root.kuka.naama.osi.pupilli._y;
setProperty(_root.kuka.naama.vsi.pupilli, _xscale , -100);
_root.kuka.naama.vsi.pupilli._height = _root.f[this.nro][0];
_root.kuka.naama.vsi.pupilli._width = _root.f[this.nro][1];
_root.kuka.naama.osi.pupilli._height = _root.f[this.nro][0];
_root.kuka.naama.osi.pupilli._width = _root.f[this.nro][1];
_root.katse(_root.kuka);
_root.kuka.naama.vsi.pupilli._y = _root.f[this.nro][2];
_root.kuka.naama.osi.pupilli._y = _root.f[this.nro][2];
setProperty(_root.kuka.naama.vsi.pupilli, _xscale , -100);
};
} else if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.siirr\u00E4(_root.kuka.naama.osi.pupilli, this.nro);
_root.siirr\u00E4(_root.kuka.naama.vsi.pupilli, this.nro);
};
} else if (i.charAt(0) == "e") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.naama["nen\u00E4"].gotoAndStop(this.nro);
};
this[i].onRollOver = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndPlay(2);
};
this[i].onRollOut = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndStop(1);
};
} else if (i.charAt(0) == "k") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
if (kulmakarvat == 1) {
vk = _root.kuka.naama.vk;
ok = _root.kuka.naama.ok;
} else if (kulmakarvat == 2) {
vk = _root.kuka.naama.vk;
ok = _root.kuka.naama.vk;
} else {
vk = _root.kuka.naama.ok;
ok = _root.kuka.naama.ok;
}
_root.siirr\u00E4(vk, this.nro + ((_root.kuka.kulmakarvat - 1) * 10));
_root.siirr\u00E4(ok, this.nro + ((_root.kuka.kulmakarvat - 1) * 10));
};
} else if (i.charAt(0) == "r") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.kulmakarvat = this.nro;
vnyt = _root.kuka.naama.vk._currentFrame % 10;
if (vnyt == 0) {
vnyt = 10;
}
onyt = _root.kuka.naama.ok._currentFrame % 10;
if (onyt == 0) {
onyt = 10;
}
_root.siirr\u00E4(_root.kuka.naama.vk, vnyt + ((this.nro - 1) * 10));
_root.siirr\u00E4(_root.kuka.naama.ok, onyt + ((this.nro - 1) * 10));
};
this[i].onRollOver = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndPlay(2);
};
this[i].onRollOut = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndStop(1);
};
} else if (i.charAt(0) == "u") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.naama.suu.gotoAndStop(this.nro);
};
this[i].onRollOver = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndPlay(2);
};
this[i].onRollOut = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndStop(1);
};
}
}
kulmakarvat = 1;
Symbol 3006 MovieClip Frame 2
for (var i in this) {
this[i].nro = int(i.substring(1, i.length));
if (i.charAt(0) == "v") {
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.vartalo.v.gotoAndStop(this.nro);
};
} else if (i.charAt(0) == "s") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.osi, this.nro);
_root.siirr\u00E4Silm\u00E4t(_root.kuka.naama.vsi, this.nro);
_root.kuka.naama.vsi.pupilli._height = _root.kuka.naama.osi.pupilli._height;
setProperty(_root.kuka.naama.vsi.pupilli, _xscale , -100);
};
this[i].onRollOver = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndPlay(2);
};
this[i].onRollOut = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndStop(1);
};
} else if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.siirr\u00E4(_root.kuka.naama.osi.pupilli, this.nro);
_root.siirr\u00E4(_root.kuka.naama.vsi.pupilli, this.nro);
};
this[i].onRollOver = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndPlay(2);
};
this[i].onRollOut = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
this.gotoAndStop(1);
};
} else if (i.charAt(0) == "e") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.naama["nen\u00E4"].gotoAndStop(this.nro);
};
} else if (i.charAt(0) == "k") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
if (kulmakarvat == 1) {
vk = _root.kuka.naama.vk;
ok = _root.kuka.naama.ok;
} else if (kulmakarvat == 2) {
vk = _root.kuka.naama.vk;
ok = _root.kuka.naama.vk;
} else {
vk = _root.kuka.naama.ok;
ok = _root.kuka.naama.ok;
}
_root.siirr\u00E4(vk, this.nro + ((_root.kuka.kulmakarvat - 1) * 10));
_root.siirr\u00E4(ok, this.nro + ((_root.kuka.kulmakarvat - 1) * 10));
};
} else if (i.charAt(0) == "u") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
var _local3 = _root.kuka.naama.suu.v._visible;
_root.siirr\u00E4(_root.kuka.naama.suu, this.nro);
_root.kuka.naama.suu.v._visible = _local3;
};
} else if (i.charAt(0) == "r") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.naama.posket._visible = true;
_root.kuka.naama.posket.gotoAndStop(this.nro + 1);
};
} else if (i.charAt(0) == "c") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_lasit._visible = true;
_root.siirr\u00E4(_root.kuka.x_lasit, this.nro);
};
}
}
kulmakarvat = 1;
Instance of Symbol 2996 MovieClip in Symbol 3006 MovieClip Frame 2
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.naama.suu.v._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3006 MovieClip Frame 2
on (release) {
_root.kuka.naama.posket.gotoAndStop(1);
}
Instance of Symbol 2996 MovieClip in Symbol 3006 MovieClip Frame 2
on (release) {
_root.kuka.x_lasit._visible = false;
}
Symbol 3008 Button
on (release) {
_root.kuka.x_mekko._visible = true;
}
Symbol 3009 Button
on (release) {
_root.kuka["x_cafekeng\u00E4t"]._visible = true;
}
Symbol 3010 Button
on (release) {
_root.kuka.x_cafehattu._visible = true;
}
Symbol 3012 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_mekko.v2, _root.kuka["x_cafekeng\u00E4t"].v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Cafe uniform colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3013 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_mekko.v, _root.kuka.x_cafehattu.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Cafe uniform colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Instance of Symbol 2996 MovieClip in Symbol 3014 MovieClip Frame 1
on (release) {
_root.kuka.x_mekko._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3014 MovieClip Frame 1
on (release) {
_root.kuka["x_cafekeng\u00E4t"]._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3014 MovieClip Frame 1
on (release) {
_root.kuka.x_cafehattu._visible = false;
}
Symbol 3016 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.etukka.v, _root.kuka.eetukka.v, _root.kuka.ttukka.v, _root.kuka.ettukka.v, _root.kuka.ponnarit.v, _root.kuka.sivutukka.v, _root.kuka.x_antenni.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Hair colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3019 MovieClip Frame 1
stop();
apu2 = this;
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].kuka = i.substring(1, i.length);
this[i].gotoAndStop(this[i].kuka);
this[i].onRelease = function () {
apu2.gotoAndStop(this.kuka);
};
}
}
pois.unloadMovie();
Instance of Symbol 2812 MovieClip [ScrollPane] "skrollaaja" in Symbol 3019 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
contentPath = "etukka_sis\u00E4";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 2996 MovieClip in Symbol 3019 MovieClip Frame 1
on (release) {
_root.kuka.etukka._visible = false;
_root.kuka.eetukka._visible = false;
}
Symbol 3019 MovieClip Frame 2
pois.unloadMovie();
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.sivutukka._visible = true;
_root.siirr\u00E4(_root.kuka.sivutukka, this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3019 MovieClip Frame 2
on (release) {
_root.kuka.sivutukka._visible = false;
}
Symbol 3019 MovieClip Frame 3
pois.unloadMovie();
Instance of Symbol 2812 MovieClip [ScrollPane] "skrollaaja2" in Symbol 3019 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
contentPath = "ponnarit_sis\u00E4";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 2996 MovieClip in Symbol 3019 MovieClip Frame 3
on (release) {
_root.kuka.ponnarit._visible = false;
}
Symbol 3019 MovieClip Frame 4
pois.unloadMovie();
Instance of Symbol 2812 MovieClip [ScrollPane] "skrollaaja2" in Symbol 3019 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
contentPath = "ttukka_sis\u00E4";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 3019 MovieClip Frame 5
pois.unloadMovie();
Instance of Symbol 2812 MovieClip [ScrollPane] "skrollaaja2" in Symbol 3019 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
contentPath = "ttukka2_sis\u00E4";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 3019 MovieClip Frame 6
pois.unloadMovie();
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_antenni._visible = true;
_root.siirr\u00E4(_root.kuka.x_antenni, this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3019 MovieClip Frame 6
on (release) {
_root.kuka.x_antenni._visible = false;
}
Symbol 3019 MovieClip Frame 7
pois.unloadMovie();
Instance of Symbol 2812 MovieClip [ScrollPane] "skrollaaja3" in Symbol 3019 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
contentPath = "ponnarit2_sis\u00E4";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 2996 MovieClip in Symbol 3019 MovieClip Frame 7
on (release) {
_root.kuka.ponnarit._visible = false;
}
Symbol 3019 MovieClip Frame 8
pois.unloadMovie();
Instance of Symbol 2812 MovieClip [ScrollPane] "skrollaaja4" in Symbol 3019 MovieClip Frame 8
//component parameters
onClipEvent (construct) {
contentPath = "ttukka3_sis\u00E4";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 3021 MovieClip Frame 1
for (var i in this) {
if (i.charAt(0) == "g") {
this[i].nro = i.substring(1, i.length);
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.tausta.taustagradient._visible = true;
_root.tausta.taustagradient.gotoAndStop(this.nro);
};
}
}
Symbol 3046 MovieClip Frame 1
stop();
Symbol 3047 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.tausta.v, _root.napit.x_bg.gr.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Background colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3048 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.tausta.taustakuvio.v, _root.tausta.taustakuvio.v2, _root.tausta.taustakuvio.v3);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Background symbol colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3050 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.genetaulu.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Mew Card colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3053 Button
on (release) {
_root.genetaulu._visible = !_root.genetaulu._visible;
_root.generateGenetaulu();
if (!_root.genetaulu._visible) {
_root.napit.x_generate.genenapit.gotoAndStop(1);
_root.mewcardnappi.gotoAndStop(1);
} else {
_root.mewcardnappi.gotoAndStop(2);
}
}
Symbol 3054 MovieClip Frame 1
for (var i in this) {
if (i.charAt(0) == "w") {
this[i].nro = i.substring(1, i.length);
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.tausta.taustakuvio._visible = true;
_root.siirr\u00E4(_root.tausta.taustakuvio, this.nro);
_root.tausta.taustakuvio.v._alpha = 30;
_root.tausta.taustakuvio.v2._alpha = 38;
_root.tausta.taustakuvio.v3._alpha = 49;
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3054 MovieClip Frame 1
on (release) {
_root.tausta.taustagradient._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3054 MovieClip Frame 1
on (release) {
_root.tausta.taustakuvio._visible = false;
}
Symbol 3056 Button
on (release) {
getURL ("http://hapuriainen.deviantart.com/", "_blank");
}
Symbol 3066 MovieClip Frame 1
stop();
Symbol 3073 Button
on (release) {
_root.generateMew();
_root.napit.x_generate.genenapit.gotoAndStop(2);
}
Symbol 3080 MovieClip Frame 1
stop();
Instance of Symbol 3066 MovieClip in Symbol 3080 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root.asugene = !_root.asugene;
}
Instance of Symbol 3066 MovieClip in Symbol 3080 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root.tukkagene = !_root.tukkagene;
}
Instance of Symbol 3066 MovieClip in Symbol 3080 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root.kasvogene = !_root.kasvogene;
}
Instance of Symbol 3066 MovieClip in Symbol 3080 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root["v\u00E4rigene"] = !_root["v\u00E4rigene"];
}
Instance of Symbol 3066 MovieClip in Symbol 3080 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root.datagene = !_root.datagene;
}
Symbol 3084 MovieClip Frame 1
stop();
Symbol 3085 MovieClip Frame 1
function ihopy\u00F6ryl\u00E4nro(nro) {
var _local1 = 1;
if (nro == 6) {
_local1 = 2;
} else if (nro == 7) {
_local1 = 3;
} else if (nro == 17) {
_local1 = 4;
} else if (nro == 21) {
_local1 = 5;
} else if (nro == 22) {
_local1 = 6;
} else if (nro == 24) {
_local1 = 7;
} else if (nro == 27) {
_local1 = 8;
} else if (nro == 29) {
_local1 = 9;
} else if (nro == 33) {
_local1 = 10;
} else if (nro == 35) {
_local1 = 11;
} else if (nro == 38) {
_local1 = 12;
} else if (nro == 42) {
_local1 = 13;
} else if (nro == 45) {
_local1 = 14;
} else if (nro == 49) {
_local1 = 15;
} else if (nro == 53) {
_local1 = 16;
} else if (nro == 55) {
_local1 = 17;
} else if (nro == 58) {
_local1 = 18;
} else if (nro == 60) {
_local1 = 19;
} else if (nro == 62) {
_local1 = 20;
}
ihopy\u00F6ryl\u00E4.gotoAndStop(_local1 + 1);
}
for (var i in this) {
if (i.charAt(0) == "v") {
this[i].nro = i.substring(1, i.length);
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
ihopy\u00F6ryl\u00E4nro(int(this.nro));
_root.ihogene = false;
_root.ihonro = this.nro;
};
}
}
Instance of Symbol 843 MovieClip in Symbol 3085 MovieClip Frame 1
on (release) {
}
Instance of Symbol 3062 MovieClip in Symbol 3085 MovieClip Frame 1
on (release) {
_root.ihogene = true;
_root.napit.x_generate["ihopy\u00F6ryl\u00E4"].gotoAndStop(1);
}
Symbol 3088 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_paitaAla.v, _root.kuka.x_paitaPohja.v, _root.kuka.x_paitaTaka.v, _root.kuka["x_paitaYl\u00E4"].v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Shirt colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3089 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_paitaAla.v2, _root.kuka.x_paitaPohja.v2, _root.kuka.x_paitaTaka.v2, _root.kuka["x_paitaYl\u00E4"].v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Shirt colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3091 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_paitaAla.v, _root.kuka.x_paitaPohja.v, _root.kuka.x_paitaTaka.v, _root.kuka["x_paitaYl\u00E4"].v, _root.kuka.x_hame.v, _root.kuka.x_hamePohja.v, _root.kuka.x_jaop.v, _root.kuka.x_jyop.v, _root.kuka.x_javp.v, _root.kuka.x_jyvp.v, _root.kuka.x_kaop.v, _root.kuka.x_kyop.v, _root.kuka.x_kavp.v, _root.kuka.x_kyvp.v, _root.kuka.x_kaula.v, _root.kuka.x_sukat.v, _root.kuka.x_hanskat.v, _root.kuka.x_eturusetti.v, _root.kuka["x_yl\u00E4rusetti"].v, _root.kuka["x_p\u00E4\u00E4rusettiTaka"].v, _root.kuka["x_p\u00E4\u00E4rusetti"].v, _root.kuka["x_keng\u00E4t"].v, _root.kuka["x_yl\u00E4keng\u00E4t"].v, _root.kuka.x_mekko.v, _root.kuka["x_cafekeng\u00E4t"].v, _root.kuka.x_cafehattu.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Whole outfit colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3092 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_paitaAla.v2, _root.kuka.x_paitaPohja.v2, _root.kuka.x_paitaTaka.v2, _root.kuka["x_paitaYl\u00E4"].v2, _root.kuka.x_hame.v2, _root.kuka.x_hamePohja.v2, _root.kuka.x_jaop.v2, _root.kuka.x_jyop.v2, _root.kuka.x_javp.v2, _root.kuka.x_jyvp.v2, _root.kuka.x_kaop.v2, _root.kuka.x_kyop.v2, _root.kuka.x_kavp.v2, _root.kuka.x_kyvp.v2, _root.kuka.x_kaula.v2, _root.kuka.x_hanskat.v2, _root.kuka["x_keng\u00E4t"].v2, _root.kuka["x_yl\u00E4keng\u00E4t"].v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Whole outfit colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3095 Button
on (release) {
var r = Math.floor(Math.random() * 255);
var g = Math.floor(Math.random() * 255);
var b = Math.floor(Math.random() * 255);
var v\u00E4rit = _root.annaV\u00E4rit(r, g, b);
var ykk\u00F6sv\u00E4ri = v\u00E4rit[0];
var kakkosv\u00E4ri = v\u00E4rit[1];
var kolmosv\u00E4ri = v\u00E4rit[2];
_root.kuka["ykk\u00F6sv\u00E4ri"] = ykk\u00F6sv\u00E4ri;
_root.kuka["kakkosv\u00E4ri"] = kakkosv\u00E4ri;
_root.vaihdaV\u00E4ri(_root.kuka["x_paitaYl\u00E4"].v, ykk\u00F6sv\u00E4ri);
_root.vaihdaV\u00E4ri(_root.kuka.x_paitaAla.v, ykk\u00F6sv\u00E4ri);
_root.vaihdaV\u00E4ri(_root.kuka.x_paitaPohja.v, ykk\u00F6sv\u00E4ri);
_root.vaihdaV\u00E4ri(_root.kuka.x_paitaTaka.v, ykk\u00F6sv\u00E4ri);
_root.hamev\u00E4ri(ykk\u00F6sv\u00E4ri, kakkosv\u00E4ri, r, g, b);
_root.p\u00F6rh\u00F6v\u00E4rit(ykk\u00F6sv\u00E4ri, kakkosv\u00E4ri);
_root.rusettiv\u00E4ri(ykk\u00F6sv\u00E4ri, kakkosv\u00E4ri);
_root.hanskav\u00E4ri(ykk\u00F6sv\u00E4ri, kakkosv\u00E4ri);
_root.jalkav\u00E4ri(ykk\u00F6sv\u00E4ri, kakkosv\u00E4ri);
_root.vaihdaV\u00E4ri(_root.kuka["x_paitaYl\u00E4"].v2, kakkosv\u00E4ri);
_root.vaihdaV\u00E4ri(_root.kuka.x_paitaAla.v2, kakkosv\u00E4ri);
_root.vaihdaV\u00E4ri(_root.kuka.x_paitaPohja.v2, kakkosv\u00E4ri);
_root.vaihdaV\u00E4ri(_root.kuka.x_paitaTaka.v2, kakkosv\u00E4ri);
}
Symbol 3100 MovieClip Frame 1
stop();
apu2 = this;
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].kuka = i.substring(1, i.length);
this[i].gotoAndStop(this[i].kuka);
this[i].onRelease = function () {
apu2.gotoAndStop(this.kuka);
_root.napit["v\u00E4rit"]._visible = false;
};
}
}
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_paitaYl\u00E4"]._visible = true;
_root.kuka.x_paitaAla._visible = true;
_root.siirr\u00E4(_root.kuka["x_paitaYl\u00E4"], this.nro);
_root.kuka.x_paitaPohja._visible = _root.tauluContains(_root.paitaPohja, _root.kuka.x_paitaAla._currentFrame);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3100 MovieClip Frame 1
on (release) {
_root.kuka.x_paitaAla._visible = false;
_root.kuka.x_paitaPohja._visible = false;
_root.kuka.x_paitaTaka._visible = false;
_root.kuka["x_paitaYl\u00E4"]._visible = false;
}
Symbol 3100 MovieClip Frame 2
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_paitaYl\u00E4"]._visible = true;
_root.kuka.x_paitaAla._visible = true;
_root.siirr\u00E4(_root.kuka.x_paitaAla, this.nro);
_root.siirr\u00E4(_root.kuka.x_paitaPohja, this.nro);
_root.kuka.x_paitaPohja._visible = _root.tauluContains(_root.paitaPohja, _root.kuka.x_paitaAla._currentFrame);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3100 MovieClip Frame 2
on (release) {
_root.kuka.x_paitaAla._visible = false;
_root.kuka.x_paitaPohja._visible = false;
_root.kuka.x_paitaTaka._visible = false;
_root.kuka["x_paitaYl\u00E4"]._visible = false;
}
Symbol 3100 MovieClip Frame 3
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_paitaYl\u00E4"]._visible = true;
_root.kuka.x_paitaAla._visible = true;
_root.siirr\u00E4(_root.kuka.x_paitaAla, this.nro);
_root.siirr\u00E4(_root.kuka.x_paitaPohja, this.nro);
_root.kuka.x_paitaPohja._visible = _root.tauluContains(_root.paitaPohja, _root.kuka.x_paitaAla._currentFrame);
};
}
}
Symbol 3100 MovieClip Frame 4
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_paitaYl\u00E4"]._visible = true;
_root.kuka.x_paitaAla._visible = true;
_root.kuka.x_paitaTaka._visible = true;
_root.siirr\u00E4(_root.kuka.x_paitaTaka, this.nro);
_root.kuka.x_paitaPohja._visible = _root.tauluContains(_root.paitaPohja, _root.kuka.x_paitaAla._currentFrame);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3100 MovieClip Frame 4
on (release) {
_root.kuka.x_paitaTaka._visible = false;
}
Symbol 3103 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_alakorvaV.v, _root.kuka.x_alakorvaO.v, _root.kuka.x_korvaV.v, _root.kuka.x_korvaO.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Ears colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3104 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_alakorvaV.v2, _root.kuka.x_alakorvaO.v2, _root.kuka.x_korvaV.v2, _root.kuka.x_korvaO.v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Ears colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3108 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_siivet.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Wings colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3109 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_siivet.v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Wings colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3111 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_sarvet.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Horns colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3113 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka["x_h\u00E4nt\u00E4"].v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Tail colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3114 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka["x_h\u00E4nt\u00E4"].v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Tail colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3115 MovieClip Frame 1
stop();
apu2 = this;
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].kuka = i.substring(1, i.length);
this[i].gotoAndStop(this[i].kuka);
this[i].onRelease = function () {
apu2.gotoAndStop(this.kuka);
_root.napit["v\u00E4rit"]._visible = false;
};
}
}
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
var _local4 = _root.kuka.x_alakorvaV;
_root.siirr\u00E4(_local4, this.nro);
_root.siirr\u00E4(_root.kuka.x_alakorvaO, _root.kuka.x_alakorvaV._currentFrame);
_root.kuka.x_alakorvaV._visible = true;
_root.kuka.x_alakorvaO._visible = true;
var _local3 = _root.tauluContains(_root.alakorvat, _root.kuka.x_alakorvaO._currentFrame);
_root.kuka.x_korvaV._visible = !_local3;
_root.kuka.x_korvaO._visible = !_local3;
_root.siirr\u00E4(_root.kuka.x_korvaO, _root.kuka.x_alakorvaV._currentFrame);
_root.siirr\u00E4(_root.kuka.x_korvaV, _root.kuka.x_alakorvaV._currentFrame);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3115 MovieClip Frame 1
on (release) {
_root.kuka.x_alakorvaV._visible = false;
_root.kuka.x_alakorvaO._visible = false;
_root.kuka.x_korvaV._visible = false;
_root.kuka.x_korvaO._visible = false;
}
Symbol 3115 MovieClip Frame 2
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_siivet._visible = true;
_root.siirr\u00E4(_root.kuka.x_siivet, this.nro);
if (this.nro > 12) {
_root.kuka.x_siivet.v._alpha = 60;
_root.kuka.x_siivet.v2._alpha = 60;
} else {
_root.kuka.x_siivet.v._alpha = 100;
_root.kuka.x_siivet.v2._alpha = 100;
}
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3115 MovieClip Frame 2
on (release) {
_root.kuka.x_siivet._visible = false;
}
Symbol 3115 MovieClip Frame 3
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_sarvet._visible = true;
_root.siirr\u00E4(_root.kuka.x_sarvet, this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3115 MovieClip Frame 3
on (release) {
_root.kuka.x_sarvet._visible = false;
}
Symbol 3115 MovieClip Frame 4
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_h\u00E4nt\u00E4"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_h\u00E4nt\u00E4"], this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3115 MovieClip Frame 4
on (release) {
_root.kuka["x_h\u00E4nt\u00E4"]._visible = false;
}
Symbol 3117 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_hame.v, _root.kuka.x_hamePohja.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Skirt/pants colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3118 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_hame.v2, _root.kuka.x_hamePohja.v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Skirt/pants colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3121 MovieClip Frame 1
stop();
apu2 = this;
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].kuka = i.substring(1, i.length);
this[i].gotoAndStop(this[i].kuka);
this[i].onRelease = function () {
apu2.gotoAndStop(this.kuka);
_root.napit["v\u00E4rit"]._visible = false;
};
}
}
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_hame._visible = true;
_root.siirr\u00E4(_root.kuka.x_hame, this.nro);
_root.siirr\u00E4(_root.kuka.x_hamePohja, this.nro);
_root.kuka.x_hamePohja._visible = _root.tauluContains(_root.hamePohja, _root.kuka.x_hame._currentFrame);
_root.kuka.alusV._visible = _root.kuka.x_hame._currentFrame != 4;
_root.kuka["x_yl\u00E4keng\u00E4t"]._visible = _root.tauluContains(_root["hameelleYl\u00E4keng\u00E4t"], _root.kuka.x_hame._currentFrame);
if (!_root.kuka["x_keng\u00E4t"]._visible) {
_root.kuka["x_yl\u00E4keng\u00E4t"]._visible = false;
}
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3121 MovieClip Frame 1
on (release) {
_root.kuka.x_hame._visible = false;
_root.kuka.x_hamePohja._visible = false;
_root.kuka.alusV._visible = true;
}
Symbol 3121 MovieClip Frame 2
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_hame._visible = true;
_root.siirr\u00E4(_root.kuka.x_hame, this.nro);
_root.siirr\u00E4(_root.kuka.x_hamePohja, this.nro);
_root.kuka.x_hamePohja._visible = _root.tauluContains(_root.hamePohja, _root.kuka.x_hame._currentFrame);
_root.kuka.alusV._visible = _root.kuka.x_hame._currentFrame != 4;
_root.kuka["x_yl\u00E4keng\u00E4t"]._visible = _root.tauluContains(_root["hameelleYl\u00E4keng\u00E4t"], _root.kuka.x_hame._currentFrame);
if (!_root.kuka["x_keng\u00E4t"]._visible) {
_root.kuka["x_yl\u00E4keng\u00E4t"]._visible = false;
}
};
}
}
Symbol 3124 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_jaop.v, _root.kuka.x_jyop.v, _root.kuka.x_javp.v, _root.kuka.x_jyvp.v, _root.kuka.x_kaop.v, _root.kuka.x_kyop.v, _root.kuka.x_kavp.v, _root.kuka.x_kyvp.v, _root.kuka.x_kaula.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Garter colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3125 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_jaop.v2, _root.kuka.x_jyop.v2, _root.kuka.x_javp.v2, _root.kuka.x_jyvp.v2, _root.kuka.x_kaop.v2, _root.kuka.x_kyop.v2, _root.kuka.x_kavp.v2, _root.kuka.x_kyvp.v2, _root.kuka.x_kaula.v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Garter colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3126 MovieClip Frame 1
function p\u00F6rh\u00F6malli(nro) {
_root.siirr\u00E4(_root.kuka.x_jaop, nro);
_root.siirr\u00E4(_root.kuka.x_jyop, nro);
_root.siirr\u00E4(_root.kuka.x_javp, nro);
_root.siirr\u00E4(_root.kuka.x_jyvp, nro);
_root.siirr\u00E4(_root.kuka.x_kaop, nro);
_root.siirr\u00E4(_root.kuka.x_kyop, nro);
_root.siirr\u00E4(_root.kuka.x_kavp, nro);
_root.siirr\u00E4(_root.kuka.x_kyvp, nro);
_root.siirr\u00E4(_root.kuka.x_kaula, nro);
}
function kaikkiP\u00F6rh\u00F6tN\u00E4kyviin() {
_root.kuka.x_jaop._visible = true;
_root.kuka.x_jyop._visible = true;
_root.kuka.x_javp._visible = true;
_root.kuka.x_jyvp._visible = true;
_root.kuka.x_kaop._visible = true;
_root.kuka.x_kyop._visible = true;
_root.kuka.x_kavp._visible = true;
_root.kuka.x_kyvp._visible = true;
_root.kuka.x_kaula._visible = true;
}
for (var i in this) {
if (i.charAt(0) == "p") {
this[i].nro = i.substring(1, i.length);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
p\u00F6rh\u00F6malli(this.nro);
};
} else if (i.charAt(0) == "z") {
this[i].kohde = i.substring(1, i.length);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka[this.kohde]._visible = !_root.kuka[this.kohde]._visible;
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3126 MovieClip Frame 1
on (release) {
_root.kuka.x_jaop._visible = false;
_root.kuka.x_jyop._visible = false;
_root.kuka.x_javp._visible = false;
_root.kuka.x_jyvp._visible = false;
_root.kuka.x_kaop._visible = false;
_root.kuka.x_kyop._visible = false;
_root.kuka.x_kavp._visible = false;
_root.kuka.x_kyvp._visible = false;
_root.kuka.x_kaula._visible = false;
}
Symbol 3128 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_sukat.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Socks colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3129 MovieClip Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_sukat._visible = true;
_root.siirr\u00E4(_root.kuka.x_sukat, this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3129 MovieClip Frame 1
on (release) {
_root.kuka.x_sukat._visible = false;
}
Symbol 3131 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka["x_keng\u00E4t"].v, _root.kuka["x_yl\u00E4keng\u00E4t"].v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Shoes colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3132 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka["x_keng\u00E4t"].v2, _root.kuka["x_yl\u00E4keng\u00E4t"].v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Shoes colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3133 MovieClip Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_keng\u00E4t"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_keng\u00E4t"], this.nro);
_root.siirr\u00E4(_root.kuka["x_yl\u00E4keng\u00E4t"], this.nro);
_root.kuka["x_yl\u00E4keng\u00E4t"]._visible = _root.tauluContains(_root["hameelleYl\u00E4keng\u00E4t"], _root.kuka.x_hame._currentFrame);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3133 MovieClip Frame 1
on (release) {
_root.kuka["x_keng\u00E4t"]._visible = false;
_root.kuka["x_yl\u00E4keng\u00E4t"]._visible = false;
}
Symbol 3135 MovieClip Frame 1
function initMerkkinapit() {
var _local6 = _root.kuka.x_merkki._totalFrames;
var _local3 = 1;
while (_local3 <= _local6) {
uusi = attachMovie("merkki", "merkki" + _local3, t\u00E4ss\u00E4.getNextHighestDepth(), {_x:nappiX, _y:nappiY});
uusi.nro = _local3;
uusi.merkki["yl\u00E4"]._visible = false;
uusi.merkki.ala._visible = false;
uusi.merkki.keski._visible = false;
uusi.merkki.sivu._visible = false;
uusi.gotoAndStop(_local3);
uusi.onPress = function () {
_root.kuka.x_merkki._visible = true;
_root.siirr\u00E4(_root.kuka.x_merkki, this.nro);
nollaaMerkkinapit(this);
};
_local3++;
}
}
function nollaaMerkkinapit(_arg2) {
for (var _local1 in t\u00E4ss\u00E4) {
if (_local1.indexOf("merkki") != -1) {
t\u00E4ss\u00E4[_local1].merkki.merkkinappi.gotoAndStop(1);
}
}
_arg2.merkki.merkkinappi.gotoAndStop(2);
}
nappiX = pois._x;
nappiY = pois._y;
Set("t\u00E4ss\u00E4", _root.napit.x_merkki);
initMerkkinapit();
pois.unloadMovie();
for (var i in this) {
if (i.charAt(0) == "z") {
this[i].nro = i.substring(1, i.length);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_merkki._visible = true;
_root.kuka.x_merkki.merkki["yl\u00E4"]._visible = true;
_root.napit.x_merkki["yl\u00E4"]._visible = true;
_root.siirr\u00E4(_root.kuka.x_merkki.merkki["yl\u00E4"], this.nro);
_root.napit.x_merkki["yl\u00E4"].gotoAndStop(this.nro);
};
}
}
for (var i in this) {
if (i.charAt(0) == "f") {
this[i].nro = i.substring(1, i.length);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_merkki._visible = true;
_root.kuka.x_merkki.merkki.keski._visible = true;
_root.napit.x_merkki.keski._visible = true;
_root.siirr\u00E4(_root.kuka.x_merkki.merkki.keski, this.nro);
_root.napit.x_merkki.keski.gotoAndStop(this.nro);
};
}
}
for (var i in this) {
if (i.charAt(0) == "q") {
this[i].nro = i.substring(1, i.length);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_merkki._visible = true;
_root.kuka.x_merkki.merkki.ala._visible = true;
_root.napit.x_merkki.ala._visible = true;
_root.siirr\u00E4(_root.kuka.x_merkki.merkki.ala, this.nro);
_root.napit.x_merkki.ala.gotoAndStop(this.nro);
};
}
}
for (var i in this) {
if (i.charAt(0) == "x") {
this[i].nro = i.substring(1, i.length);
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_merkki._visible = true;
_root.kuka.x_merkki.merkki.sivu._visible = true;
_root.napit.x_merkki.sivu._visible = true;
_root.siirr\u00E4(_root.kuka.x_merkki.merkki.sivu, this.nro);
_root.napit.x_merkki.sivu.gotoAndStop(this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3135 MovieClip Frame 1
on (release) {
_root.kuka.x_merkki._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3135 MovieClip Frame 1
on (release) {
_root.kuka.x_merkki.merkki.sivu._visible = false;
_root.napit.x_merkki.sivu._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3135 MovieClip Frame 1
on (release) {
_root.kuka.x_merkki.merkki["yl\u00E4"]._visible = false;
_root.napit.x_merkki["yl\u00E4"]._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3135 MovieClip Frame 1
on (release) {
_root.kuka.x_merkki.merkki.keski._visible = false;
_root.napit.x_merkki.keski._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3135 MovieClip Frame 1
on (release) {
_root.kuka.x_merkki.merkki.ala._visible = false;
_root.napit.x_merkki.ala._visible = false;
}
Symbol 3137 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_eturusetti.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Bottom ribbon colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3142 Button
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka["x_yl\u00E4rusetti"].v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Top ribbon colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3144 Button
on (release) {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka["x_p\u00E4\u00E4rusettiTaka"].v, _root.kuka["x_p\u00E4\u00E4rusetti"].v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Head ribbon colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3145 MovieClip Frame 1
stop();
apu2 = this;
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].kuka = i.substring(1, i.length);
this[i].gotoAndStop(this[i].kuka);
this[i].onRelease = function () {
apu2.gotoAndStop(this.kuka);
_root.napit["v\u00E4rit"]._visible = false;
};
}
}
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_eturusetti._visible = true;
_root.siirr\u00E4(_root.kuka.x_eturusetti, this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3145 MovieClip Frame 1
on (release) {
_root.kuka.x_eturusetti._visible = false;
}
Symbol 3145 MovieClip Frame 2
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_yl\u00E4rusetti"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_yl\u00E4rusetti"], this.nro);
};
}
}
Instance of Symbol 3062 MovieClip in Symbol 3145 MovieClip Frame 2
on (release) {
Set("mik\u00E4", _root.kuka.x_hanskat);
uusiFrame = mik\u00E4._currentFrame - 1;
if (mik\u00E4._currentFrame == 1) {
uusiFrame = _root.maxHanskat;
}
mik\u00E4._visible = true;
_root.siirr\u00E4(mik\u00E4, uusiFrame);
}
Instance of Symbol 3062 MovieClip in Symbol 3145 MovieClip Frame 2
on (release) {
Set("mik\u00E4", _root.kuka.x_hanskat);
uusiFrame = mik\u00E4._currentFrame + 1;
if (mik\u00E4._currentFrame == _root.MaxHanskat) {
uusiFrame = 1;
}
mik\u00E4._visible = true;
_root.siirr\u00E4(mik\u00E4, uusiFrame);
}
Instance of Symbol 2996 MovieClip in Symbol 3145 MovieClip Frame 2
on (release) {
_root.kuka.x_hanskat._visible = false;
}
Instance of Symbol 3062 MovieClip in Symbol 3145 MovieClip Frame 2
on (release) {
Set("mik\u00E4", _root.kuka["x_p\u00E4\u00E4rusettiTaka"]);
uusiFrame = mik\u00E4._currentFrame - 1;
if (mik\u00E4._currentFrame == 1) {
uusiFrame = _root["maxP\u00E4\u00E4rusetti"];
}
mik\u00E4._visible = true;
_root.siirr\u00E4(mik\u00E4, uusiFrame);
_root.siirr\u00E4(_root.kuka["x_p\u00E4\u00E4rusetti"], uusiFrame);
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = _root.tauluContains(_root.rusettiEteen, _root.kuka["x_p\u00E4\u00E4rusettiTaka"]._currentFrame);
}
Instance of Symbol 3062 MovieClip in Symbol 3145 MovieClip Frame 2
on (release) {
Set("mik\u00E4", _root.kuka["x_p\u00E4\u00E4rusettiTaka"]);
uusiFrame = mik\u00E4._currentFrame + 1;
if (mik\u00E4._currentFrame == _root["MaxP\u00E4\u00E4rusetti"]) {
uusiFrame = 1;
}
mik\u00E4._visible = true;
_root.siirr\u00E4(mik\u00E4, uusiFrame);
_root.siirr\u00E4(_root.kuka["x_p\u00E4\u00E4rusetti"], uusiFrame);
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = _root.tauluContains(_root.rusettiEteen, _root.kuka["x_p\u00E4\u00E4rusettiTaka"]._currentFrame);
}
Instance of Symbol 2996 MovieClip in Symbol 3145 MovieClip Frame 2
on (release) {
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = false;
_root.kuka["x_p\u00E4\u00E4rusettiTaka"]._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3145 MovieClip Frame 2
on (release) {
_root.kuka["x_yl\u00E4rusetti"]._visible = false;
}
Symbol 3145 MovieClip Frame 3
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_p\u00E4\u00E4rusettiTaka"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_p\u00E4\u00E4rusettiTaka"], this.nro);
_root.siirr\u00E4(_root.kuka["x_p\u00E4\u00E4rusetti"], this.nro);
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = _root.tauluContains(_root.rusettiEteen, _root.kuka["x_p\u00E4\u00E4rusettiTaka"]._currentFrame);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3145 MovieClip Frame 3
on (release) {
_root.kuka["x_p\u00E4\u00E4rusetti"]._visible = false;
_root.kuka["x_p\u00E4\u00E4rusettiTaka"]._visible = false;
}
Symbol 3148 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_hanskat.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Gloves colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3149 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_hanskat.v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Gloves colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3150 MovieClip Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_hanskat._visible = true;
_root.siirr\u00E4(_root.kuka.x_hanskat, this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3150 MovieClip Frame 1
on (release) {
_root.kuka.x_hanskat._visible = false;
}
Symbol 3152 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_caspaita.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Top colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3153 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_caspaita.v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Top colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3154 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_cashame.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Bottom colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3155 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka.x_cashame.v2);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Bottom colour 2";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3156 Button
on (release) {
_root.napit["v\u00E4rit"]._visible = true;
var ar = new Array(_root.kuka["x_caskeng\u00E4t"].v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].taulu = ar;
_root.napit["v\u00E4rit"].teksti.text = "Shoes colour";
var apuColor = new Color(ar[0]);
_root.napit["v\u00E4rit"]["hexv\u00E4ri"].text = apuColor.getRGB().toString(16);
}
Symbol 3157 MovieClip Frame 1
for (var i in this) {
this[i].nro = i.substring(1, i.length);
if (i.charAt(0) == "p") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_caspaita._visible = true;
_root.siirr\u00E4(_root.kuka.x_caspaita, this.nro);
};
} else if (i.charAt(0) == "h") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka.x_cashame._visible = true;
_root.siirr\u00E4(_root.kuka.x_cashame, this.nro);
};
}
if (i.charAt(0) == "k") {
this[i].onRelease = function () {
if (_root.napit["v\u00E4rit"]._visible) {
return(undefined);
}
_root.kuka["x_caskeng\u00E4t"]._visible = true;
_root.siirr\u00E4(_root.kuka["x_caskeng\u00E4t"], this.nro);
};
}
}
Instance of Symbol 2996 MovieClip in Symbol 3157 MovieClip Frame 1
on (release) {
_root.kuka.x_caspaita._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3157 MovieClip Frame 1
on (release) {
_root.kuka.x_cashame._visible = false;
}
Instance of Symbol 2996 MovieClip in Symbol 3157 MovieClip Frame 1
on (release) {
_root.kuka["x_caskeng\u00E4t"]._visible = false;
}
Symbol 3162 MovieClip Frame 1
stop();
Symbol 3166 MovieClip Frame 1
stop();
Symbol 3180 MovieClip Frame 1
stop();
Symbol 3180 MovieClip Frame 10
gotoAndPlay (2);
Symbol 3191 MovieClip Frame 1
stop();
Symbol 3197 MovieClip Frame 1
stop();
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].nro = int(i.substring(1, i.length));
this[i].gotoAndStop(this[i].nro);
this[i].onRelease = function () {
this._parent.gotoAndStop(this.nro);
this._parent._parent.init();
};
}
}
Symbol 3198 MovieClip Frame 1
function init() {
bmp = new flash.display.BitmapData(this._width, this._height, false);
bmp.draw(this);
}
function vaihdaV\u00E4ri(c) {
if (_root["kaikkiN\u00E4kyvyys"]) {
return(undefined);
}
var _local3 = 0;
while (_local3 < taulu.length) {
myColor = new Color(taulu[_local3]);
myColor.setRGB("0x" + c);
_local3++;
}
_parent["hexv\u00E4ri"].text = c;
aktivoiNuoli(null);
}
function initButtonV\u00E4rit() {
for (var _local2 in this) {
if (_local2.charAt(0) == "q") {
myColor = new Color(this[_local2].v);
myColor.setRGB("0x" + annaInitButtonV\u00E4ri());
}
}
myColor = new Color(viim.v);
myColor.setRGB("0xFFFFFF");
}
function shortCutV\u00E4ri(colour) {
myColor = new Color(shortCut.v);
myColor.setRGB("0x" + colour);
shortCut = null;
aktivoiNuoli(null);
}
function aktivoiNuoli(kuka) {
for (var _local2 in this) {
if (_local2.indexOf("nuoli") != -1) {
this[_local2].gotoAndStop(1);
}
}
kuka.gotoAndPlay(2);
}
function annaInitButtonV\u00E4ri() {
ibI++;
return(ibTaulu[ibI]);
}
function pituus(_arg1) {
while (_arg1.length < 6) {
_arg1 = "0" + _arg1;
}
return(_arg1);
}
function rajaTsekkaus() {
if ((((_xmouse < 0) || (_ymouse < 0)) || (_xmouse > 400)) || (_ymouse > 300)) {
return(true);
}
return(false);
}
var bmp;
ibTaulu = new Array("677eff", "ff9523", "0866d0", "cb1a83", "e1cfe5", "ffd144", "7cb7ff", "fb8dde", "9d96c8", "ffdb5b", "bedbff", "ee3ba0");
ibI = -1;
init();
initButtonV\u00E4rit();
this.onMouseDown = function () {
if (_root.napit["v\u00E4rit"]._visible == false) {
return(undefined);
}
if (_root.napit["v\u00E4rit"].simple._visible == true) {
return(undefined);
}
if (rajaTsekkaus()) {
return(undefined);
}
var _local3 = bmp.getPixel(_xmouse, _ymouse);
var _local2 = _local3.toString(16).toUpperCase();
while (_local2.length < 6) {
_local2 = "0" + _local2;
}
var _local5 = Number("0x" + _local2.substr(0, 2));
var _local7 = Number("0x" + _local2.substr(2, 2));
var _local4 = Number("0x" + _local2.substr(4, 2));
if (shortCut != null) {
shortCutV\u00E4ri(_local2);
myColor = new Color(viim.v);
myColor.setRGB("0x" + _local2);
} else {
vaihdaV\u00E4ri(_local2);
myColor = new Color(viim.v);
myColor.setRGB("0x" + _local2);
}
var _local6 = new Color(viim.v);
};
for (var i in this) {
if (i.charAt(0) == "q") {
this[i].onPress = function () {
var _local2 = new Color(this.v);
vaihdaV\u00E4ri(_local2.getRGB().toString(16));
};
} else if (i.indexOf("nuoli") != -1) {
this[i].nro = i.substring(5, i.length);
this[i].onPress = function () {
if (shortCut != null) {
shortCut = null;
this.gotoAndStop(1);
return(undefined);
}
kohde = this._parent["q" + this.nro];
this._parent.shortCut = kohde;
aktivoiNuoli(this);
};
}
}
shortCut = null;
viim.onPress = function () {
var _local2 = new Color(this.v);
if (shortCut != null) {
Set("munv\u00E4ri", _local2.getRGB().toString(16));
shortCutV\u00E4ri(pituus(munv\u00E4ri));
} else {
vaihdaV\u00E4ri(_local2.getRGB().toString(16));
}
};
onMouseMove = function () {
if (!this._parent._visible) {
return(undefined);
}
if (rajaTsekkaus()) {
return(undefined);
}
var _local3 = bmp.getPixel(_xmouse, _ymouse);
var _local2 = _local3.toString(16).toUpperCase();
while (_local2.length < 6) {
_local2 = "0" + _local2;
}
var _local5 = Number("0x" + _local2.substr(0, 2));
var _local6 = Number("0x" + _local2.substr(2, 2));
var _local4 = Number("0x" + _local2.substr(4, 2));
myColor = new Color(curr.v);
myColor.setRGB("0x" + _local2);
};
Symbol 3210 MovieClip Frame 1
stop();
Symbol 3210 MovieClip Frame 7
stop();
Symbol 3212 MovieClip Frame 1
function initButtonV\u00E4rit() {
for (var _local2 in this) {
if (_local2.charAt(0) == "q") {
nro = int(_local2.substring(1, _local2.length)) - 1;
myColor = new Color(this[_local2].v);
myColor.setRGB("0x" + ibTaulu[nro]);
}
}
myColor = new Color(viim.v);
myColor.setRGB("0xFFFFFF");
}
for (var i in this) {
if (i.charAt(0) == "q") {
this[i].onPress = function () {
var _local3 = new Color(this.v);
_root.napit["v\u00E4rit"]["v\u00E4rikartta"].vaihdaV\u00E4ri(_local3.getRGB().toString(16));
};
}
}
ibTaulu = new Array("3FBD18", "78956F", "255417", "5CDB67", "00FF6A", "ABE9B1", "448C66", "26AF7E", "3DD06A", "A1B8A8", "ABD4B8", "00953E", "67AA83", "AAE27E", "63AA2D", "387409", "4B5840", "A8C26A", "BAFF15", "26FF15", "3EB469", "64FF9C", "B5FACE", "48FFBD", "154A37", "0D9F99", "00FFF5", "C4F3F1", "8DCCE9", "3DACE0", "78919C", "245E79", "04374F", "04274F", "053A77", "0561CB", "3593FF", "A3BBD7", "9CBAFF", "3D69D0", "3481B8", "3F596B", "47BCD2", "85EBFF", "54DBCF", "5292AF", "82C6E5", "1C58E0", "2B4379", "383D4A", "C1CBE0", "1027C6", "0C1A7B", "220B8A", "3411D4", "6948FF", "9B88F3", "A199C9", "B69DDE", "A474EE", "743ACD", "54159F", "755A95", "B362F3", "EDD7FF", "7E3FDE", "4A03B6", "6803B6", "8400D4", "A728F5", "C16CF5", "DBA1FF", "7A6785", "C449D2", "D760E5", "EE9AF7", "F8BFFF", "D06CCE", "FF00FB", "7E467D", "541353", "541348", "8C0773", "C60EA4", "FF33D9", "FF74E5", "482C43", "662642", "851445", "B61258", "DE1E70", "FF4D99", "F385B4", "E2ACC3", "C4ADB7", "CDA8AD", "E07B88", "C43B4D", "851322", "A10015", "D9001C", "FF0021", "CD2929", "D45B5B", "83222F", "D77CBD", "F3A9DE", "FAE3F3", "BB2614", "E2321D", "E57062", "98483E", "EEC3BE", "F0AFA8", "E2977C", "CD5D34", "A8360D", "772103", "482316", "463731", "705850", "93604E", "936C4E", "A6622D", "AA4A00", "FF8A00", "F7AF28", "DB6D16", "D27E3D", "FCB781", "FCCB81", "E0A243", "C67D0E", "936012", "69512E", "695E2E", "A18B2C", "D7BA3B", "F0D042", "FFCF00", "EEDE97", "F3ECCD", "E0CD52", "FFDD00", "CBC90B", "918F1E", "BFC914", "ACC914", "CBE737", "D9E982", "BFEE41", "BCFF77", "89D937", "FFF19C", "D2CDAF", "A6A392", "FFFFFF", "E2E2E2", "D0D0D0", "C2C2C2", "B4B4B4", "A4A4A4", "919191", "888888", "5E5E5E", "444444", "313131", "171717", "000000", "677eff", "ff9523", "0866d0", "cb1a83", "e1cfe5", "ffd144", "7cb7ff", "fb8dde", "9d96c8", "ffdb5b", "bedbff", "ee3ba0");
initButtonV\u00E4rit();
bg.onRelease = function () {
};
Symbol 3216 MovieClip Frame 1
stop();
Symbol 3223 MovieClip Frame 1
hexv\u00E4ri.maxChars = 7;
teksti.selectable = false;
z.gotoAndStop(2);
Instance of Symbol 3210 MovieClip in Symbol 3223 MovieClip Frame 1
on (release) {
this._parent["v\u00E4rikartta"].vaihdaV\u00E4ri(this._parent["hexv\u00E4ri"].text.substr(0, 6));
_root.napit["v\u00E4rit"].shortCut = null;
}
Instance of Symbol 3216 MovieClip "basic" in Symbol 3223 MovieClip Frame 1
on (release) {
this._parent.simple._visible = true;
this.gotoAndStop(1);
this._parent.advanced.gotoAndStop(2);
}
Instance of Symbol 3216 MovieClip "advanced" in Symbol 3223 MovieClip Frame 1
on (release) {
this._parent.simple._visible = false;
this.gotoAndStop(1);
this._parent.basic.gotoAndStop(2);
}
Instance of Symbol 3220 MovieClip "pois" in Symbol 3223 MovieClip Frame 1
on (release) {
_root.napit["v\u00E4rit"]._visible = false;
_root.napit["v\u00E4rit"].shortCut = null;
}
Symbol 3224 MovieClip Frame 1
function nollaaNapit(chosen) {
for (var _local3 in this) {
if (_local3.charAt(0) == "x") {
this[_local3]._visible = false;
}
}
chosen._visible = true;
_root.napit["v\u00E4rit"]._visible = false;
}
apu = this;
nollaaNapit(x_uggo);
for (var i in this) {
if (i.charAt(0) == "n") {
this[i].kuka = i.substring(1, i.length);
this[i].gotoAndStop(this[i].kuka);
this[i].onRelease = function () {
nollaaNapit(apu["x" + this.kuka]);
if (this.kuka == "_generate") {
_root.napit.x_generate.genenapit.gotoAndStop(1);
}
};
}
}
Symbol 3228 MovieClip Frame 1
stop();
Symbol 3230 MovieClip Frame 1
function n\u00E4kyvyys(arvo) {
for (var _local3 in _root) {
if (_local3.indexOf("uggo") != -1) {
_root[_local3]._visible = arvo;
}
}
}
function viewAllNappi() {
_root.napit["v\u00E4rit"]._visible = false;
_root["kaikkiN\u00E4kyvyys"] = !_root["kaikkiN\u00E4kyvyys"];
_root.napit._visible = !_root["kaikkiN\u00E4kyvyys"];
if (_root["kaikkiN\u00E4kyvyys"]) {
n_viewAll.gotoAndStop(2);
} else {
n_viewAll.gotoAndStop(1);
}
for (var _local2 in _root) {
if (_local2.indexOf("uggo") != -1) {
_root[_local2]._visible = _root["kaikkiN\u00E4kyvyys"];
}
}
if (!_root["kaikkiN\u00E4kyvyys"]) {
_root.kuka._x = _root.uggoX;
_root.kuka._y = _root.uggoY;
_root.kuka._visible = true;
}
}
function annaUusiKuka() {
var _local2 = _root.i;
while (_local2 >= 0) {
if ((_root["uggo" + _local2] != null) && (_root["uggo" + _local2] != _root.kuka)) {
return(_root["uggo" + _local2]);
}
_local2--;
}
return(false);
}
n_viewAll.onRelease = function () {
viewAllNappi();
_root.napit["v\u00E4rit"]._visible = false;
_root.genetaulu._visible = false;
_root.mewcardnappi.gotoAndStop(1);
};
n_remove.onRelease = function () {
apu = annaUusiKuka();
if (apu == false) {
_root.nollaa(_root.kuka);
return(undefined);
}
_root.napit["v\u00E4rit"]._visible = false;
_root.kuka.removeMovieClip();
_root.kuka = apu;
_root.kuka.swapDepths(_root.getNextHighestDepth());
_root["yl\u00E4napit"].swapDepths(_root.getNextHighestDepth());
_root.genetaulu._visible = false;
_root.mewcardnappi.gotoAndStop(1);
};
n_addNew.onRelease = function () {
_root.luoUkko();
_root.napit["v\u00E4rit"]._visible = false;
if (_root["kaikkiN\u00E4kyvyys"]) {
viewAllNappi();
}
_root.genetaulu._visible = false;
_root.mewcardnappi.gotoAndStop(1);
};
n_remove.onRollOver = function () {
if (annaUusiKuka == false) {
return(undefined);
}
n\u00E4kyvyys(false);
_root.kuka._visible = true;
_root.napit.p\u00E4ivit\u00E4V\u00E4rijuttu();
};
n_remove.onRollOut = function () {
if (!_root["kaikkiN\u00E4kyvyys"]) {
return(undefined);
}
n\u00E4kyvyys(true);
};
n_viewAll.onRollOver = function () {
if (!_root["kaikkiN\u00E4kyvyys"]) {
return(undefined);
}
n\u00E4kyvyys(false);
_root.kuka._visible = true;
};
n_viewAll.onRollOut = function () {
if (!_root["kaikkiN\u00E4kyvyys"]) {
return(undefined);
}
n\u00E4kyvyys(true);
};
Symbol 3247 MovieClip Frame 1
merkki.merkkinappi._visible = false;
Symbol 3251 MovieClip Frame 1
stop();