Frame 595
function set_gun_variables() {
guns_cooldown = [6, 4, 12, 30, 5, 20, 45, 30, 30, 80, 30];
guns_damage = [5, 3, 15, 10, 10, 40, 50, 30, 25, 100, 35];
guns_bullet_id = [1, 1, 1, 5, 1, 2, 1, 3, 4, 0, 6];
guns_bullet_speed = [10, 10, 10, 10, 10, 6.5, 10, 7, 5, 0, 10];
guns_ammo = [300, 200, 10, 10, 0, 0, 0, 0, 0, 0, 100];
guns_take = [300, 100, 20, 15, 50, 10, 10, 20, 12, 20];
score = [];
team1_score = 0;
team2_score = 0;
}
smiley_eyes = 1;
smiley_hat = 1;
health = 100;
wi = 1;
Volume = 25;
MusicVolume = 100;
map_spawnpoints = [];
map_links = [];
map_waypoints = [];
map_prices = [100, 200, 300, 500, 1000, 3000, 4000, 4000, 5000, 50000000];
hats_prices = [100, 200, 300, 400, 500, 700, 1000, 1200, 1300, 1500, 2000, 2000, 2200, 2300, 2300, 2500, 3000, 50000000];
maps_paths = [];
unlocked_hats = 0;
unlocked_maps = 0;
score = [];
sound_id = 0;
cash = 0;
overall_cash = 0;
savefile1 = SharedObject.getLocal("smileys_war_file1");
savefile2 = SharedObject.getLocal("smileys_war_file2");
savefile3 = SharedObject.getLocal("smileys_war_file3");
challenge_id = 0;
names = ["Stan", "Bob", "Moose", "Homer", "John", "Bacon", "Joe", "Larry", "Strat", "Lucien", "Carl", "Louis", "M\u00E9lanie", "Harry", "Private", "Marcus", "Haymen", "Devin", "Lucaus", "Vardin", "Haust", "Frost", "Sader", "Jade"];
maps_info = [["Flying island"], ["Rocky lands"], ["Amazing Cave"], ["King of the hill"], ["Cheese cave"], ["Cheese land"], ["Castle in the sky"], ["Polar fun"], ["Egypt"], ["Jungle rock"], ["Pillars"], ["Hell"]];
map1 = "BG|0x9fb092#S|1311|428|10#S|1573|353|9#S|1077|455|8#S|1237|234|7#S|542|217|6#S|787|243|5#S|962|92|4#S|635|472|3#S|420|469|2#S|122|432|1#S|91|142|0#L|w36|w26|1|#L|w33|w36|1|#L|w33|w34|2|up#L|w35|w34|1|#L|w32|w34|1|#L|w30|w32|1|#L|w12|w19|1|#L|w30|w17|1|#L|w15|w30|1|#L|w27|w28|1|#L|w26|w27|2|both#L|w18|w19|1|#L|w17|w18|2|up#L|w14|w15|1|#L|w8|w14|1|#L|w7|w8|1|#L|w6|w7|1|#L|w5|w6|1|#L|w3|w4|1|#L|w5|w3|1|#L|w9|w4|2|up#L|w10|w9|1|#L|w11|w10|1|#L|w12|w13|1|#L|w11|w12|1|#L|w2|w13|2|up#L|w1|w2|1|#L|w0|w1|1|#P|1050|430|910|380|960|330|1|p53|29#P|960|330|1050|400|1050|430|1|p52|29#P|670|350|660|330|660|320|1|p51|31#P|660|320|680|330|670|350|1|p50|31#P|660|340|650|370|650|330|1|p49|31#P|630|330|660|320|660|340|1|p48|31#P|610|330|630|330|620|370|1|p47|31#P|590|320|600|340|610|330|1|p46|31#P|570|320|580|350|590|320|1|p45|31#P|550|320|570|320|560|360|1|p44|31#P|540|320|550|380|550|320|1|p43|31#P|880|200|880|170|1050|170|1|p42|29#P|1050|170|1050|200|880|200|1|p41|29#P|1170|260|1170|300|1470|380|1|p40|29#P|1470|380|1470|350|1170|260|1|p39|29#P|1690|540|1640|540|1640|440|1|p38|29#P|1690|150|1640|120|1640|150|1|p37|29#P|1690|540|1640|150|1690|150|1|p36|29#P|1640|150|1640|440|1690|540|1|p35|29#P|1640|120|1510|120|1470|150|1|p34|29#P|1470|150|1640|150|1640|120|1|p33|29#P|1160|-70|1510|120|1160|-20|1|p32|29#P|1160|-20|1470|150|1510|120|1|p31|29#P|1640|540|1510|540|1510|490|1|p30|29#P|1510|490|1640|490|1640|540|1|p29|29#P|1640|490|1510|490|1510|440|1|p28|29#P|1510|440|1640|440|1640|490|1|p27|29#P|1160|-70|640|10|640|60|1|p26|29#P|640|60|1160|-20|1160|-70|1|p25|29#P|1240|490|1510|490|1240|540|1|p24|29#P|1510|490|1510|540|1240|540|1|p23|29#P|1240|490|1510|440|1510|490|1|p22|29#P|910|380|670|330|670|290|1|p21|29#P|670|290|960|330|910|380|1|p20|29#P|450|230|200|200|200|160|1|p19|29#P|200|160|450|200|450|230|1|p18|29#P|200|200|70|200|70|160|1|p17|29#P|70|160|200|160|200|200|1|p16|29#P|670|330|540|330|540|290|1|p15|29#P|540|290|670|290|670|330|1|p14|29#P|540|290|540|330|250|380|1|p13|29#P|240|350|250|380|540|290|1|p12|29#P|70|450|70|490|170|490|1|p11|29#P|170|490|70|450|170|450|1|p10|29#P|280|490|170|450|170|490|1|p9|29#P|720|490|1240|490|1240|540|1|p8|29#P|720|540|1240|540|720|490|1|p7|29#P|720|490|70|490|70|540|1|p6|29#P|70|540|720|540|720|490|1|p5|29#P|10|60|70|60|70|540|1|p4|29#P|10|60|10|540|70|540|1|p3|29#P|10|60|640|60|640|10|1|p2|29#P|10|10|640|10|10|60|1|p1|29#W|1327|284|w36|36#W|1625|426|w35|35#W|1517|424|w34|34#W|1450|327|w33|33#W|1312|460|w32|32#W|1158|478|w30|30#W|895|154|w28|28#W|1034|154|w27|27#W|1188|250|w26|26#W|905|304|w19|19#W|1037|370|w18|18#W|1132|471|w17|17#W|1085|476|w15|15#W|914|477|w14|14#W|538|273|w13|13#W|627|277|w12|12#W|505|283|w11|11#W|406|302|w10|10#W|253|331|w9|9#W|691|477|w8|8#W|476|477|w7|7#W|284|478|w6|6#W|165|437|w5|5#W|133|440|w4|4#W|87|436|w3|3#W|438|185|w2|2#W|264|158|w1|1#W|85|147|w0|0#WEP|161|158|0|4|wep_4#WEP|395|488|0|3|wep_3#WEP|1582|437|0|2|wep_2#WEP|812|307|8|1|wep_1#WEP|965|166|0|0|wep_0#";
map2 = "BG|0x54848a#S|162|-374|7#S|788|-353|6#S|700|-308|5#S|509|-298|4#S|264|-303|3#S|102|-378|2#S|539|-455|1#S|335|-474|0#L|w7|w15|2|up#L|w5|w14|2|up#L|w9|w8|2|up#L|w2|w4|2|up#L|w7|w8|1|#L|w6|w7|1|#L|w5|w6|1|#L|w4|w5|1|#L|w2|w3|1|#L|w9|w10|1|#L|w11|w9|1|#L|w12|w11|1|#L|w13|w12|1|#L|w0|w13|1|#L|w1|w0|1|#L|w2|w1|1|#P|620|-340|490|-360|410|-350|1|p54|22#P|410|-350|480|-330|620|-340|1|p53|22#P|580|-400|640|-390|490|-360|1|p52|22#P|520|-410|580|-400|490|-360|1|p51|22#P|490|-360|520|-410|480|-400|1|p50|22#P|680|-360|640|-390|490|-360|1|p49|22#P|490|-360|670|-330|680|-350|1|p48|22#P|680|-360|680|-350|490|-360|1|p47|22#P|850|-310|850|-270|840|-220|1|p46|22#P|790|-310|850|-310|840|-220|1|p45|22#P|730|-280|790|-310|840|-220|1|p44|22#P|740|-120|840|-220|730|-280|1|p43|22#P|680|-190|730|-280|740|-120|1|p42|22#P|600|-80|740|-120|680|-190|1|p41|22#P|600|-80|550|-60|420|-60|1|p40|22#P|670|-250|730|-280|680|-190|1|p39|22#P|360|-310|490|-360|370|-340|1|p36|22#P|320|-340|360|-310|370|-340|1|p35|22#P|230|-370|320|-340|370|-340|1|p34|22#P|380|-420|250|-400|370|-340|1|p33|22#P|370|-340|230|-390|250|-400|1|p32|22#P|480|-400|380|-420|370|-340|1|p31|22#P|370|-340|490|-360|480|-400|1|p30|22#P|230|-390|230|-370|370|-340|1|p29|22#P|420|-60|600|-80|540|-210|1|p28|22#P|680|-190|600|-80|540|-210|1|p27|22#P|540|-210|540|-240|680|-190|1|p26|22#P|680|-190|620|-240|540|-240|1|p25|22#P|620|-240|670|-250|680|-190|1|p24|22#P|540|-240|620|-240|520|-260|1|p23|22#P|490|-260|520|-260|540|-240|1|p22|22#P|410|-210|420|-60|540|-210|1|p21|22#P|540|-210|440|-240|410|-210|1|p20|22#P|540|-240|440|-240|540|-210|1|p19|22#P|440|-240|490|-260|540|-240|1|p18|22#P|410|-210|330|-210|330|-230|1|p17|22#P|330|-230|440|-240|410|-210|1|p16|22#P|210|-260|330|-230|330|-210|1|p15|22#P|260|-50|380|-40|420|-60|1|p14|22#P|120|-120|140|-90|260|-50|1|p13|22#P|20|-220|60|-160|120|-120|1|p12|22#P|420|-60|260|-50|330|-210|1|p11|22#P|330|-210|410|-210|420|-60|1|p10|22#P|210|-260|330|-210|260|-50|1|p9|22#P|120|-120|260|-50|210|-260|1|p8|22#P|130|-320|210|-260|120|-120|1|p7|22#P|20|-220|120|-120|130|-320|1|p6|22#P|130|-320|20|-220|10|-270|1|p5|22#P|20|-320|10|-270|130|-320|1|p4|22#P|130|-320|100|-330|60|-330|1|p3|22#P|20|-320|60|-330|130|-320|1|p2|22#W|603|-484|w15|15#W|382|-507|w14|14#W|462|-269|w13|13#W|565|-275|w12|12#W|664|-266|w11|11#W|822|-322|w10|10#W|747|-308|w9|9#W|670|-385|w8|8#W|598|-412|w7|7#W|476|-416|w6|6#W|382|-435|w5|5#W|258|-416|w4|4#W|78|-343|w3|3#W|133|-336|w2|2#W|214|-270|w1|1#W|332|-244|w0|0#WEP|595|-400|10|2|wep_2#WEP|394|-238|-5|0|wep_0#";
map3 = "BG|0x915f3b#S|75|216|11#S|707|212|10#S|699|437|9#S|82|435|8#S|228|489|7#S|539|498|6#S|491|392|5#S|290|387|4#S|566|272|3#S|207|265|2#S|491|146|1#S|295|146|0#L|w6|w4|1|#L|w5|w6|1|#L|w9|w5|2|up#L|w11|w9|1|#L|w10|w11|1|#L|w20|w19|1|#L|w18|w20|1|#L|w14|w18|2|up#L|w15|w19|2|up#L|w15|w16|1|#L|w13|w15|1|#L|w11|w13|2|up#L|w14|w17|1|#L|w12|w14|1|#L|w10|w12|2|up#L|w8|w10|1|#L|w0|w8|2|up#L|w7|w0|1|#L|w1|w7|1|#L|w3|w4|1|#L|w2|w3|1|#L|w2|w1|1|#P|200|520|160|520|100|480|1|p70|14#P|100|480|140|480|200|520|1|p69|14#P|550|525|530|525|470|555|1|p68|14#P|655|490|595|495|550|525|1|p67|14#P|440|560|505|560|435|550|1|p66|14#P|390|560|435|550|440|560|1|p65|14#P|340|550|440|565|365|575|1|p64|14#P|340|545|365|575|260|545|1|p63|14#P|260|545|295|540|340|545|1|p62|14#P|145|510|210|520|260|545|1|p61|14#P|170|520|140|510|95|475|1|p60|14#P|95|475|130|490|170|520|1|p59|14#P|40|480|95|475|140|510|1|p58|14#P|560|200|400|180|400|175|1|p57|34#P|400|175|560|195|560|200|1|p56|34#P|400|180|375|180|375|175|1|p55|34#P|375|175|400|175|400|180|1|p54|34#P|375|175|375|180|220|200|1|p53|34#P|220|200|220|195|375|175|1|p52|34#P|740|260|680|260|680|255|1|p51|34#P|680|255|740|255|740|260|1|p50|34#P|680|255|680|260|500|320|1|p49|34#P|500|320|500|315|680|255|1|p48|34#P|40|260|100|260|100|255|1|p47|34#P|100|255|40|255|40|260|1|p46|34#P|280|320|100|260|100|255|1|p45|34#P|280|320|280|315|100|255|1|p44|34#P|220|420|220|415|380|395|1|p43|34#P|380|400|380|395|220|420|1|p42|34#P|400|395|400|400|380|400|1|p41|34#P|380|400|380|395|400|395|1|p40|34#P|400|395|400|400|560|420|1|p39|34#P|560|420|560|415|400|395|1|p38|34#P|700|100|740|200|740|40|1|p37|14#P|740|40|680|80|700|100|1|p36|14#P|540|40|680|80|740|40|1|p35|14#P|40|40|240|40|100|80|1|p34|14#P|80|100|40|200|40|40|1|p33|14#P|40|40|80|100|100|80|1|p32|14#P|560|200|400|180|380|180|1|p31|14#P|220|200|380|180|560|200|1|p30|14#P|560|220|440|240|340|240|1|p29|14#P|220|220|340|240|560|220|1|p28|14#P|560|200|560|220|220|220|1|p27|14#P|220|220|220|200|560|200|1|p26|14#P|740|320|740|260|680|260|1|p25|14#P|500|320|680|260|740|320|1|p24|14#P|740|320|740|340|500|340|1|p23|14#P|500|340|500|320|740|320|1|p22|14#P|40|320|40|260|100|260|1|p21|14#P|280|320|100|260|40|320|1|p20|14#P|40|320|40|340|280|340|1|p19|14#P|280|340|280|320|40|320|1|p18|14#P|420|480|560|440|560|420|1|p17|14#P|400|400|560|420|420|480|1|p16|14#P|220|420|380|400|360|480|1|p15|14#P|360|480|220|440|220|420|1|p14|14#P|420|480|400|400|380|400|1|p13|14#P|360|480|380|400|420|480|1|p12|14#P|460|560|740|560|740|480|1|p11|14#P|460|560|660|480|740|480|1|p10|14#P|320|560|40|560|40|480|1|p9|14#P|740|600|0|600|0|560|1|p8|14#P|0|560|740|560|740|600|1|p7|14#P|780|600|780|40|740|40|1|p6|14#P|740|40|740|600|780|600|1|p5|14#P|780|40|40|40|40|0|1|p4|14#P|40|0|780|0|780|40|1|p3|14#P|40|560|0|560|0|0|1|p2|14#P|0|0|40|0|40|560|1|p1|14#W|388|164|w20|20#W|551|186|w19|19#W|228|184|w18|18#W|52|244|w17|17#W|729|244|w16|16#W|623|260|w15|15#W|153|257|w14|14#W|506|300|w13|13#W|268|296|w12|12#W|426|389|w11|11#W|355|386|w10|10#W|550|403|w9|9#W|234|402|w8|8#W|57|464|w7|7#W|730|466|w6|6#W|669|464|w5|5#W|651|465|w4|4#W|450|543|w3|3#W|322|541|w2|2#W|138|464|w1|1#W|114|464|w0|0#WEP|392|393|0|2|wep_2#WEP|387|173|0|1|wep_1#WEP|392|553|0|0|wep_0#";
map4 = "BG|0x73a9a1#S|673|-1029|12#S|285|-980|11#S|228|-980|10#S|1025|-942|9#S|971|-941|8#S|1107|-1047|7#S|1030|-1045|6#S|978|-1047|5#S|906|-1045|4#S|336|-1054|3#S|276|-1053|2#S|221|-1054|1#S|168|-1054|0#L|w0|w1|1|#L|w1|w2|2|up#L|w2|w3|2|up#L|w3|w4|2|up#L|w4|w5|2|up#L|w5|w6|2|up#L|w6|w7|2|up#L|w8|w7|2|up#L|w8|w15|2|up#L|w15|w17|2|up#L|w16|w17|2|up#L|w9|w16|2|up#L|w10|w9|2|up#L|w11|w10|2|up#L|w11|w12|2|up#L|w13|w12|2|up#L|w14|w13|2|up#L|w18|w14|2|up#L|w19|w18|2|up#L|w20|w19|1|#P|700|-940|700|-840|640|-840|1|p40|15#P|640|-840|640|-940|700|-940|1|p39|15#P|720|-840|720|-740|620|-740|1|p38|15#P|620|-740|620|-840|720|-840|1|p37|15#P|740|-740|740|-640|600|-640|1|p36|15#P|600|-640|600|-740|740|-740|1|p35|15#P|560|-640|560|-540|760|-540|1|p34|15#P|760|-540|760|-640|560|-640|1|p33|15#P|800|-540|800|-440|540|-440|1|p30|15#P|540|-440|540|-540|800|-540|1|p29|15#P|840|-440|840|-340|500|-340|1|p28|15#P|500|-340|500|-440|840|-440|1|p27|15#P|860|-340|860|-260|480|-260|1|p26|15#P|480|-260|480|-340|860|-340|1|p25|15#P|900|-260|900|-160|440|-160|1|p24|15#P|440|-160|440|-260|900|-260|1|p23|15#P|940|-160|940|-80|400|-80|1|p22|15#P|400|-80|400|-160|940|-160|1|p21|15#P|940|-40|400|-40|400|-80|1|p20|15#P|400|-80|940|-80|940|-40|1|p19|15#P|1080|-40|940|-80|940|-40|1|p18|15#P|240|-40|400|-80|400|-40|1|p17|15#P|1280|-1080|1280|-900|1200|-900|1|p16|22#P|1200|-900|1200|-1080|1280|-1080|1|p15|22#P|1280|-900|1280|-520|1200|-520|1|p14|22#P|1200|-520|1200|-900|1280|-900|1|p13|22#P|1280|-520|1280|0|1200|0|1|p12|22#P|1200|0|1200|-520|1280|-520|1|p11|22#P|1200|0|680|0|680|-40|1|p10|32#P|680|-40|1200|-40|1200|0|1|p9|32#P|680|-40|680|0|80|0|1|p8|32#P|80|0|80|-40|680|-40|1|p7|32#P|80|-1100|80|-800|0|-800|1|p6|22#P|0|-800|0|-1100|80|-1100|1|p5|22#P|0|-800|0|-440|80|-440|1|p4|22#P|80|-440|80|-800|0|-800|1|p3|22#P|0|0|80|0|0|-440|1|p2|22#P|0|-440|80|-440|80|0|1|p1|22#W|1186|-51|w20|20#W|954|-88|w19|19#W|909|-171|w18|18#W|672|-950|w17|17#W|710|-848|w16|16#W|632|-850|w15|15#W|867|-269|w14|14#W|849|-348|w13|13#W|803|-453|w12|12#W|767|-549|w11|11#W|748|-650|w10|10#W|727|-750|w9|9#W|614|-750|w8|8#W|591|-649|w7|7#W|558|-548|w6|6#W|533|-449|w5|5#W|492|-353|w4|4#W|470|-274|w3|3#W|426|-172|w2|2#W|382|-90|w1|1#W|99|-54|w0|0#WEP|671|-941|0|4|wep_4#WEP|698|-939|27|3|wep_3#WEP|647|-940|-21|2|wep_2#WEP|1128|-44|0|1|wep_1#WEP|180|-42|0|0|wep_0#";
mapS1 = "BG|0x342020#S|101|-484|10#S|-74|-215|9#S|69|-281|8#S|222|-299|7#S|265|-167|6#S|422|-547|5#S|607|-457|4#S|301|-372|3#S|437|-191|2#S|602|-245|1#S|721|-297|0#L|w19|w17|2|up#L|w13|w15|2|up#L|w10|w11|2|up#L|w10|w12|2|up#L|w1|w8|2|up#L|w16|w15|1|#L|w17|w16|1|#L|w11|w19|1|#L|w5|w6|2|up#L|w7|w5|1|#L|w4|w7|1|#L|w13|w14|1|#L|w12|w13|1|#L|w9|w10|1|#L|w8|w9|1|#L|w3|w4|1|#L|w2|w3|1|#L|w1|w2|1|#L|w0|w1|1|#P|830|-500|840|-500|840|-490|1|p124|18#P|840|-490|830|-500|760|-460|1|p123|18#P|840|-490|800|-490|760|-460|1|p122|18#P|760|-460|780|-480|840|-490|1|p121|18#P|60|-90|140|-90|60|-80|1|p120|18#P|60|-80|60|-90|30|-110|1|p119|18#P|0|-120|30|-110|60|-80|1|p118|18#P|-20|-130|0|-120|-40|-120|1|p116|18#P|-60|-140|-20|-130|-40|-120|1|p115|18#P|-40|-120|-140|-120|-90|-130|1|p114|18#P|-90|-130|-60|-140|-40|-120|1|p113|18#P|-110|-140|-90|-130|-140|-120|1|p112|18#P|-140|-150|-110|-140|-140|-120|1|p111|18#P|540|-90|460|-100|540|-80|1|p110|18#P|600|-130|540|-90|660|-90|1|p109|18#P|660|-90|540|-80|540|-90|1|p108|18#P|660|-90|700|-170|730|-80|1|p107|18#P|700|-170|600|-130|660|-90|1|p106|18#P|770|-110|730|-80|700|-170|1|p105|18#P|770|-200|700|-170|770|-110|1|p104|18#P|780|-250|770|-250|770|-210|1|p103|25#P|730|0|840|-110|730|-80|1|p102|25#P|840|-110|980|0|730|0|1|p101|25#P|980|-30|980|0|840|-110|1|p100|25#P|980|-230|980|-30|840|-110|1|p99|25#P|840|-110|980|-230|830|-250|1|p98|25#P|830|-250|840|-110|770|-210|1|p97|25#P|840|-110|730|-80|770|-110|1|p96|25#P|770|-210|770|-110|840|-110|1|p95|25#P|830|-250|780|-250|770|-210|1|p94|25#P|980|-420|980|-230|830|-250|1|p93|25#P|830|-390|830|-250|980|-420|1|p92|25#P|830|-390|980|-420|840|-490|1|p91|25#P|760|-430|830|-390|840|-490|1|p90|25#P|840|-490|760|-460|760|-430|1|p89|25#P|980|-630|980|-420|840|-490|1|p88|25#P|840|-620|840|-490|980|-630|1|p87|25#P|890|-760|980|-630|840|-620|1|p86|25#P|740|-710|840|-620|890|-760|1|p85|25#P|740|-870|890|-760|740|-710|1|p84|25#P|480|-820|740|-710|740|-870|1|p82|25#P|520|-940|740|-870|480|-820|1|p81|25#P|480|-820|520|-940|330|-940|1|p80|25#P|490|-450|510|-450|510|-480|1|p79|25#P|490|-480|510|-480|490|-450|1|p78|25#P|490|-450|410|-460|410|-500|1|p77|25#P|410|-500|490|-480|490|-450|1|p76|25#P|330|-470|410|-460|410|-500|1|p74|25#P|330|-500|410|-500|330|-470|1|p73|25#P|290|-490|330|-500|330|-470|1|p72|25#P|270|-450|330|-470|290|-490|1|p71|25#P|290|-490|270|-450|230|-460|1|p69|25#P|230|-480|230|-460|290|-490|1|p68|25#P|600|-400|630|-400|630|-380|1|p67|25#P|520|-350|560|-340|630|-380|1|p66|25#P|630|-380|520|-350|520|-380|1|p65|25#P|520|-380|600|-400|630|-380|1|p64|25#P|500|-330|560|-340|520|-350|1|p63|25#P|460|-340|500|-330|520|-350|1|p62|25#P|460|-340|520|-350|520|-380|1|p61|25#P|460|-370|460|-340|520|-380|1|p60|25#P|10|-410|70|-410|50|-450|1|p59|25#P|50|-450|10|-450|10|-410|1|p58|25#P|80|-410|90|-380|100|-410|1|p57|25#P|70|-410|110|-400|100|-430|1|p56|25#P|100|-430|50|-450|70|-410|1|p55|25#P|110|-400|150|-370|160|-390|1|p54|25#P|160|-390|100|-430|110|-400|1|p53|25#P|160|-390|150|-370|200|-340|1|p52|25#P|250|-340|200|-340|160|-390|1|p51|25#P|250|-340|250|-370|160|-390|1|p50|25#P|180|-210|200|-200|230|-220|1|p49|25#P|340|-220|310|-200|230|-220|1|p48|25#P|340|-250|230|-220|340|-220|1|p47|25#P|350|-240|340|-220|340|-250|1|p46|25#P|360|-260|350|-240|340|-250|1|p45|25#P|330|-260|340|-250|230|-220|1|p44|25#P|360|-260|340|-250|330|-260|1|p43|25#P|330|-260|360|-260|360|-290|1|p42|25#P|330|-290|360|-290|330|-260|1|p41|25#P|230|-220|330|-260|230|-250|1|p40|25#P|230|-250|330|-290|330|-260|1|p39|25#P|230|-250|230|-220|110|-200|1|p38|25#P|110|-200|110|-230|230|-250|1|p37|25#P|140|-190|230|-220|110|-200|1|p36|25#P|50|-180|140|-190|110|-200|1|p35|25#P|0|-200|50|-180|110|-200|1|p34|25#P|110|-230|110|-200|0|-200|1|p33|25#P|0|-200|0|-230|110|-230|1|p32|25#P|200|-800|480|-820|330|-940|1|p29|25#P|0|-890|330|-940|200|-800|1|p28|25#P|0|-890|0|-730|-170|-790|1|p27|25#P|0|-730|200|-800|0|-890|1|p26|25#P|-70|-620|-170|-790|-220|-670|1|p25|25#P|-70|-620|0|-730|-170|-790|1|p23|25#P|-140|-430|-270|-430|-220|-670|1|p22|25#P|-70|-620|-220|-670|-140|-430|1|p21|25#P|-140|-430|-80|-500|-70|-620|1|p20|25#P|-140|-120|-140|0|-270|-430|1|p19|25#P|-270|-430|-140|-430|-140|-120|1|p18|25#P|-140|0|-270|0|-270|-430|1|p17|25#P|-140|0|-140|-120|0|-80|1|p16|25#P|0|-80|0|0|-140|0|1|p15|25#P|0|-120|-140|-120|0|-80|1|p14|25#P|60|-80|60|0|0|-80|1|p13|25#P|0|-80|0|0|60|0|1|p12|25#P|60|-80|0|-120|0|-80|1|p11|25#P|640|0|730|0|730|-80|1|p10|25#P|60|-80|60|0|320|0|1|p9|25#P|320|0|360|-80|60|-80|1|p8|25#P|320|0|360|-80|540|-80|1|p6|25#P|540|-80|640|0|320|0|1|p5|25#P|730|-80|640|0|540|-80|1|p4|25#P|540|-80|660|-90|730|-80|1|p3|25#P|360|-80|460|-100|540|-80|1|p2|25#P|60|-80|220|-100|360|-80|1|p1|25#W|588|-410|w19|19#W|499|-497|w17|17#W|375|-523|w16|16#W|248|-497|w15|15#W|28|-466|w14|14#W|140|-425|w13|13#W|240|-390|w12|12#W|475|-388|w11|11#W|346|-306|w10|10#W|136|-249|w9|9#W|23|-246|w8|8#W|626|-155|w7|7#W|819|-264|w6|6#W|749|-207|w5|5#W|461|-113|w4|4#W|220|-114|w3|3#W|73|-101|w2|2#W|-73|-155|w1|1#W|-119|-165|w0|0#WEP|372|-503|0|3|wep_3#WEP|504|-97|8|2|wep_2#WEP|217|-252|-8|1|wep_1#WEP|30|-117|21|0|wep_0#";
mapS2 = "BG|0x2c3a54#S|798|-219|8#S|1022|-331|7#S|338|-237|6#S|443|-187|5#S|746|-316|4#S|617|-251|3#S|467|-320|2#S|363|-352|1#S|253|-318|0#L|w11|w12|1|#L|w10|w11|2|up#L|w9|w10|1|#L|w8|w9|1|#L|w5|w8|1|#L|w5|w4|2|up#L|w6|w5|2|up#L|w7|w6|1|#L|w2|w7|2|up#L|w4|w12|1|#L|w3|w4|1|#L|w2|w3|1|#L|w0|w2|1|#P|1170|-470|1060|-760|970|-630|1|p37|25#P|970|-630|1060|-470|1170|-470|1|p36|25#P|1060|-760|840|-890|800|-750|1|p35|25#P|800|-750|970|-630|1060|-760|1|p34|25#P|510|-850|840|-890|800|-750|1|p33|25#P|340|-690|280|-820|130|-720|1|p32|25#P|510|-850|340|-690|280|-820|1|p31|25#P|340|-690|800|-750|510|-850|1|p30|25#P|130|-450|150|-450|130|-720|1|p29|25#P|130|-720|0|-480|130|-450|1|p28|25#P|150|-450|340|-690|130|-720|1|p27|25#P|650|-220|580|-220|650|-200|1|p26|18#P|850|-330|650|-220|650|-200|1|p25|18#P|960|-280|850|-310|850|-330|1|p24|18#P|850|-330|960|-300|960|-280|1|p23|18#P|650|-200|850|-310|850|-330|1|p22|18#P|580|-220|580|-200|650|-200|1|p21|18#P|470|-260|510|-260|510|-280|1|p20|18#P|470|-280|510|-280|470|-260|1|p19|18#P|470|-260|470|-280|300|-320|1|p18|18#P|300|-300|300|-320|470|-260|1|p17|18#P|1170|-470|1190|0|1060|-270|1|p16|18#P|1060|-270|1060|-470|1170|-470|1|p15|18#P|820|0|1190|0|1060|-270|1|p14|18#P|810|-150|1060|-270|820|0|1|p13|18#P|450|0|820|0|810|-150|1|p12|18#P|450|-150|810|-150|450|0|1|p11|18#P|450|0|180|0|150|-120|1|p10|18#P|150|-120|450|-150|450|0|1|p9|18#P|150|-120|180|0|0|-110|1|p8|18#P|0|-110|0|0|180|0|1|p7|18#P|340|-190|450|-150|150|-120|1|p6|18#P|150|-120|340|-190|260|-230|1|p5|18#P|150|-230|260|-230|150|-120|1|p4|18#P|130|-450|150|-450|150|-120|1|p3|18#P|0|-110|150|-120|130|-450|1|p2|18#P|0|-480|130|-450|0|-110|1|p1|18#W|812|-162|w12|12#W|1043|-283|w11|11#W|949|-319|w10|10#W|830|-335|w9|9#W|679|-253|w8|8#W|323|-332|w7|7#W|489|-296|w6|6#W|601|-234|w5|5#W|527|-164|w4|4#W|461|-164|w3|3#W|239|-250|w2|2#W|168|-250|w0|0#WEP|951|-220|-26|2|wep_2#WEP|639|-154|0|1|wep_1#WEP|198|-230|0|0|wep_0#";
mapS4 = "BG|0x3e5159#S|1070|-492|10#S|979|-448|9#S|810|-335|8#S|857|-465|7#S|725|-430|6#S|516|-402|5#S|626|-254|4#S|491|-220|3#S|309|-256|2#S|224|-431|1#S|113|-322|0#L|w14|w22|1|#L|w15|w21|1|#L|w16|w19|1|#L|w17|w20|1|#L|w1|w18|2|up#L|w17|w18|1|#L|w16|w17|2|both#L|w15|w16|1|#L|w14|w15|2|both#L|w11|w14|1|#L|w10|w11|1|#L|w7|w10|2|up#L|w8|w10|2|up#L|w8|w9|1|#L|w7|w8|2|up#L|w6|w7|1|#L|w5|w6|1|#L|w4|w5|1|#L|w3|w4|1|#L|w2|w3|1|#L|w1|w2|1|#L|w0|w1|1|#P|820|-400|780|-400|740|-360|1|p60|35#P|900|-420|880|-420|820|-400|1|p59|35#P|900|-400|860|-380|820|-380|1|p58|35#P|900|-400|820|-380|820|-400|1|p57|35#P|820|-400|900|-420|900|-400|1|p56|35#P|820|-380|800|-360|720|-320|1|p55|35#P|680|-320|720|-320|820|-380|1|p54|35#P|820|-380|820|-400|680|-340|1|p53|35#P|680|-340|680|-320|820|-380|1|p52|35#P|940|-860|900|-840|920|-800|1|p51|8#P|1040|-760|920|-800|940|-860|1|p50|8#P|1080|-820|940|-860|1040|-760|1|p49|8#P|1040|-760|1120|-680|1180|-680|1|p48|8#P|1180|-680|1080|-820|1040|-760|1|p47|8#P|180|-720|240|-720|240|-660|1|p46|8#P|60|-600|0|-480|80|-480|1|p45|8#P|180|-720|60|-600|140|-600|1|p44|8#P|140|-600|240|-660|180|-720|1|p43|8#P|80|-480|140|-600|60|-600|1|p42|8#P|580|-300|540|-280|460|-300|1|p41|35#P|420|-320|460|-300|580|-300|1|p40|35#P|580|-300|580|-320|440|-340|1|p39|35#P|440|-340|420|-320|580|-300|1|p38|35#P|320|-340|300|-320|220|-300|1|p37|35#P|180|-320|220|-300|320|-340|1|p36|35#P|320|-360|320|-340|180|-320|1|p35|35#P|180|-320|180|-340|320|-360|1|p34|35#P|340|-180|280|-180|320|-160|1|p33|8#P|320|-160|340|-180|380|-160|1|p32|8#P|400|-140|380|-160|320|-160|1|p31|8#P|1100|-420|1080|-400|1100|-400|1|p30|8#P|1100|-480|1120|-500|1120|-480|1|p29|8#P|1040|-340|960|-340|980|-380|1|p28|8#P|1040|-400|980|-380|1040|-340|1|p27|8#P|1120|-340|1040|-340|1040|-400|1|p26|8#P|1100|-400|1040|-400|1120|-340|1|p25|8#P|1100|-480|1100|-400|1120|-340|1|p24|8#P|1120|-480|1100|-480|1120|-340|1|p23|8#P|1180|-680|1180|-340|1120|-340|1|p22|8#P|1120|-340|1120|-680|1180|-680|1|p21|8#P|1180|-340|1120|-340|1120|0|1|p20|8#P|1120|0|1180|0|1180|-340|1|p19|8#P|1040|-340|1120|-340|1120|0|1|p18|8#P|780|0|1120|0|1040|-340|1|p17|8#P|960|-340|1040|-340|780|0|1|p16|8#P|780|0|960|-340|860|-320|1|p15|8#P|780|-280|860|-320|780|0|1|p14|8#P|700|-220|780|-280|780|0|1|p13|8#P|700|-220|780|0|520|0|1|p12|8#P|520|0|700|-220|600|-160|1|p11|8#P|500|-140|600|-160|520|0|1|p10|8#P|400|-140|500|-140|520|0|1|p9|8#P|300|0|520|0|400|-140|1|p8|8#P|320|-160|400|-140|300|0|1|p7|8#P|300|0|220|-220|320|-160|1|p6|8#P|80|0|300|0|220|-220|1|p5|8#P|160|-260|220|-220|80|0|1|p4|8#P|80|0|80|-280|160|-260|1|p3|8#P|0|0|80|0|0|-480|1|p2|8#P|0|-480|80|-480|80|0|1|p1|8#W|644|-301|w22|22#W|620|-296|w21|21#W|350|-314|w20|20#W|376|-305|w19|19#W|197|-356|w18|18#W|301|-370|w17|17#W|461|-347|w16|16#W|565|-333|w15|15#W|699|-362|w14|14#W|779|-413|w11|11#W|889|-436|w10|10#W|1086|-424|w9|9#W|992|-398|w8|8#W|949|-356|w7|7#W|859|-332|w6|6#W|730|-266|w5|5#W|591|-177|w4|4#W|410|-157|w3|3#W|290|-197|w2|2#W|133|-283|w1|1#W|98|-292|w0|0#WEP|508|-329|14|3|wep_3#WEP|1061|-403|0|2|wep_2#WEP|595|-164|-18|1|wep_1#WEP|289|-183|14|0|wep_0#";
mapS3 = "BG|0x9ae1de#S|-162|-586|12#S|52|-706|11#S|-289|-169|10#S|-421|-163|9#S|-215|-384|8#S|-96|-380|7#S|-417|-496|6#S|-622|-445|5#S|-485|-269|4#S|-538|-254|3#S|528|-161|2#S|419|-161|1#S|325|-162|0#L|w2|w0|1|#L|w4|w2|1|#L|w23|w24|1|#L|w22|w23|2|up#L|w12|w15|1|#L|w11|w12|2|up#L|w25|w22|1|#L|w19|w25|1|#L|w17|w19|2|up#L|w17|w18|1|#L|w13|w17|1|#L|w11|w13|2|up#L|w8|w11|1|#L|w7|w8|2|up#L|w26|w4|1|#L|w9|w26|1|#L|w7|w9|1|#P|-225|-515|-225|-495|-315|-475|1|p115|1#P|-315|-475|-305|-465|-225|-495|1|p113|1#P|-205|-525|-205|-520|-325|-470|1|p112|20#P|-325|-470|-330|-475|-205|-525|1|p111|20#P|-220|-460|-225|-495|-80|-560|1|p108|28#P|-80|-560|-80|-520|-220|-460|1|p107|28#P|-225|-515|-225|-495|-80|-560|1|p105|28#P|-440|-400|-440|-440|-305|-465|1|p104|28#P|-305|-465|-305|-430|-440|-400|1|p103|28#P|-440|-440|-315|-475|-305|-465|1|p102|28#P|170|-645|170|-640|35|-640|1|p101|20#P|35|-640|35|-645|170|-645|1|p100|20#P|-560|-420|-480|-440|-480|-400|1|p99|28#P|-480|-400|-560|-400|-560|-420|1|p98|28#P|240|0|240|-80|-40|-80|1|p97|28#P|-40|-80|-40|0|240|0|1|p96|28#P|-20|60|240|100|-40|0|1|p95|35#P|-180|100|-20|60|-40|0|1|p94|35#P|-320|0|-40|0|-180|100|1|p93|35#P|-340|140|-180|100|-320|0|1|p92|35#P|-480|260|-400|260|-340|140|1|p91|35#P|-560|140|-580|0|-320|0|1|p90|35#P|-340|140|-320|0|-560|140|1|p89|35#P|-560|140|-480|260|-340|140|1|p88|35#P|-580|0|-760|0|-660|80|1|p87|35#P|-660|80|-560|140|-580|0|1|p86|35#P|-840|40|-660|80|-760|0|1|p85|35#P|-900|0|-840|40|-760|0|1|p84|35#P|-40|0|240|100|240|0|1|p78|35#P|240|100|240|0|440|-20|1|p77|35#P|440|-20|380|100|240|100|1|p76|35#P|660|-40|240|0|240|-80|1|p75|37#P|240|-80|660|-80|660|-40|1|p74|37#P|-760|-140|-680|-120|-580|-80|1|p71|34#P|-40|-300|-40|-260|-320|-260|1|p70|28#P|-320|-300|-320|-260|-40|-300|1|p69|28#P|-480|-180|-480|-220|-400|-260|1|p68|28#P|-400|-260|-400|-220|-480|-180|1|p67|28#P|-480|-220|-420|-260|-400|-260|1|p66|28#P|-580|-300|-520|-300|-520|-320|1|p65|28#P|-740|-320|-580|-300|-520|-320|1|p64|28#P|-740|-360|-740|-320|-520|-320|1|p63|28#P|-520|-320|-720|-380|-740|-360|1|p62|28#P|-600|-160|-480|-180|-480|-220|1|p59|28#P|-620|-180|-620|-200|-480|-220|1|p58|28#P|-620|-180|-600|-160|-480|-220|1|p57|28#P|-480|-400|-440|-400|-440|-440|1|p53|28#P|-440|-440|-480|-440|-480|-400|1|p52|28#P|-80|-520|-80|-560|-40|-560|1|p49|28#P|-40|-560|-40|-520|-80|-520|1|p48|28#P|-800|-520|-860|-520|-860|-560|1|p47|28#P|-860|-560|-800|-560|-800|-520|1|p46|28#P|-880|-560|-880|-520|-920|-520|1|p45|28#P|-740|-560|-740|-520|-780|-520|1|p43|28#P|-780|-520|-780|-560|-740|-560|1|p42|28#P|-920|-520|-920|-560|-880|-560|1|p40|28#P|-920|-520|-920|-480|-740|-480|1|p39|28#P|-740|-480|-740|-520|-920|-520|1|p38|28#P|-920|-480|-900|-460|-760|-460|1|p37|28#P|-760|-460|-740|-480|-920|-480|1|p36|28#P|-760|-140|-760|0|-900|-140|1|p30|28#P|-900|-140|-900|0|-760|0|1|p29|28#P|-900|-460|-900|-140|-760|-140|1|p28|28#P|-760|-140|-760|-460|-900|-460|1|p27|28#P|-580|0|-580|-80|-760|-80|1|p26|37#P|-760|-80|-760|0|-580|0|1|p25|37#P|-580|-80|-760|-140|-760|-80|1|p24|34#P|-580|0|-40|0|-40|-80|1|p23|37#P|-40|-80|-580|-80|-580|0|1|p22|37#P|160|-600|120|-600|120|-640|1|p21|1#P|120|-640|160|-640|160|-600|1|p20|1#P|40|-640|40|-600|80|-600|1|p19|1#P|40|-640|80|-600|80|-640|1|p18|1#P|240|-80|-40|-80|20|-120|1|p17|28#P|20|-120|180|-120|240|-80|1|p16|28#P|180|-220|180|-540|20|-540|1|p15|28#P|20|-540|20|-220|180|-220|1|p14|28#P|180|-540|200|-560|0|-560|1|p13|28#P|0|-560|20|-540|180|-540|1|p12|28#P|200|-560|0|-560|0|-600|1|p11|28#P|0|-600|200|-600|200|-560|1|p10|28#P|200|-600|200|-640|160|-640|1|p9|28#P|160|-640|160|-600|200|-600|1|p8|28#P|120|-600|120|-640|80|-640|1|p7|28#P|80|-640|80|-600|120|-600|1|p6|28#P|40|-600|0|-600|0|-640|1|p2|28#P|0|-640|40|-640|40|-600|1|p1|28#W|-304|-100|w26|26#W|-292|-506|w25|25#W|188|-658|w24|24#W|23|-656|w23|23#W|-95|-569|w22|22#W|-539|-438|w19|19#W|-705|-391|w18|18#W|-627|-368|w17|17#W|-59|-321|w15|15#W|-534|-340|w13|13#W|-296|-315|w12|12#W|-427|-269|w11|11#W|-573|-95|w9|9#W|-607|-213|w8|8#W|-715|-144|w7|7#W|-72|-95|w4|4#W|256|-98|w2|2#W|619|-98|w0|0#WEP|613|-82|0|5|wep_5#WEP|101|-647|0|4|wep_4#WEP|-416|-449|-19|3|wep_3#WEP|-234|-305|0|2|wep_2#WEP|-683|-126|9|1|wep_1#WEP|-146|-86|0|0|wep_0#";
mapS5 = "BG|0xc3c1b5#S|1246|-95|8#S|1062|-41|7#S|924|34|6#S|804|-57|5#S|716|84|4#S|526|80|3#S|354|16|2#S|250|-233|1#S|478|-94|0#L|w8|w9|1|#L|w7|w8|2|up#L|w5|w4|1|#L|w6|w5|2|both#L|w7|w6|1|#L|w10|w7|2|up#L|w0|w10|1|#L|w1|w0|1|#L|w1|w2|1|#L|w3|w2|1|#L|w3|w4|2|up#L|w11|w3|1|#L|w12|w11|1|#P|370|-20|370|-10|580|0|1|p235|1#P|630|170|770|180|630|180|1|p234|34#P|340|-110|270|-110|290|-140|1|p233|1#P|290|-140|230|-50|230|-160|1|p232|1#P|180|-90|180|-180|170|-180|1|p231|15#P|170|-180|170|-90|180|-90|1|p230|15#P|150|-190|150|-180|140|-180|1|p229|1#P|140|-350|140|-180|150|-190|1|p228|1#P|150|-190|150|-370|140|-350|1|p227|1#P|150|-180|190|-180|190|-190|1|p226|15#P|190|-190|150|-190|150|-180|1|p225|15#P|280|-140|230|-60|230|-50|1|p219|15#P|230|-50|290|-140|280|-140|1|p218|15#P|190|-190|190|-180|340|-110|1|p217|15#P|340|-110|340|-120|190|-190|1|p216|15#P|580|-20|580|0|370|-20|1|p214|1#P|370|-20|370|-30|580|-30|1|p213|15#P|580|-30|580|-20|370|-20|1|p212|15#P|210|-470|200|-460|190|-490|1|p209|6#P|190|-490|210|-480|210|-470|1|p208|6#P|180|-470|200|-460|190|-490|1|p207|6#P|190|-490|180|-480|180|-470|1|p206|6#P|210|-480|200|-490|190|-490|1|p205|6#P|1160|-50|1380|-30|1370|120|1|p204|1#P|1220|110|1220|-50|1230|-50|1|p203|15#P|1230|-50|1230|110|1220|110|1|p202|15#P|1200|100|1320|120|1220|40|1|p201|17#P|1150|-20|1220|40|1200|100|1|p200|17#P|1150|-20|970|130|1090|100|1|p199|17#P|1150|-20|1090|100|1200|100|1|p198|17#P|260|-10|260|0|230|0|1|p197|6#P|230|0|230|-10|260|-10|1|p196|6#P|140|-470|150|-470|150|-460|1|p195|6#P|150|-460|140|-460|140|-470|1|p194|6#P|150|-480|160|-470|150|-460|1|p193|18#P|150|-480|150|-470|40|-470|1|p192|6#P|40|-470|40|-480|150|-480|1|p191|6#P|40|-470|40|-420|50|-420|1|p190|6#P|50|-420|50|-470|40|-470|1|p189|6#P|40|-420|40|-70|50|-70|1|p188|6#P|50|-70|50|-420|40|-420|1|p187|6#P|50|-70|50|-80|230|-80|1|p186|6#P|230|-80|230|-70|50|-70|1|p185|6#P|160|-430|160|-420|150|-440|1|p184|6#P|1640|70|1450|-80|1450|-90|1|p182|15#P|1450|-90|1650|60|1640|70|1|p181|15#P|900|140|1000|70|790|130|1|p180|1#P|890|150|880|180|780|180|1|p179|1#P|780|140|780|180|890|150|1|p178|1#P|630|180|770|140|770|180|1|p177|1#P|260|10|370|120|260|120|1|p176|1#P|890|20|690|0|690|-10|1|p175|1#P|690|-10|890|10|890|20|1|p174|1#P|690|-10|890|10|890|0|1|p173|15#P|890|0|690|-20|690|-10|1|p172|15#P|630|180|630|170|470|140|1|p171|34#P|630|170|740|140|740|150|1|p170|15#P|740|150|630|180|630|170|1|p169|15#P|890|150|780|140|780|130|1|p168|15#P|780|130|900|140|890|150|1|p167|15#P|780|180|780|130|770|140|1|p166|15#P|770|140|770|180|780|180|1|p165|15#P|740|150|740|140|1000|60|1|p164|15#P|1000|60|1000|70|740|150|1|p163|15#P|1370|120|1400|120|1380|-30|1|p162|1#P|1360|-150|1360|-40|1380|-40|1|p160|1#P|1320|90|1230|30|1230|20|1|p157|15#P|1230|20|1320|80|1320|90|1|p156|15#P|1230|10|1320|-40|1310|-40|1|p155|15#P|1320|-40|1230|20|1230|10|1|p154|15#P|1320|20|1240|-50|1230|-50|1|p153|15#P|1230|-50|1320|30|1320|20|1|p152|15#P|1380|-30|1160|-50|1150|-60|1|p149|15#P|1150|-60|1380|-30|1380|-40|1|p147|15#P|1330|-40|1330|120|1320|120|1|p146|15#P|1320|120|1320|-40|1330|-40|1|p145|15#P|1630|330|1740|330|1750|60|1|p142|34#P|1650|60|1750|60|1630|330|1|p141|34#P|1360|-150|1450|-160|1460|-90|1|p140|25#P|1360|-150|1370|-80|1460|-90|1|p139|25#P|1430|-270|1430|-310|1330|-300|1|p138|25#P|1430|-270|1340|-260|1330|-300|1|p137|25#P|1420|-290|1350|-280|1400|120|1|p135|20#P|1400|120|1480|110|1420|-290|1|p134|20#P|1500|100|1650|60|1630|330|1|p128|34#P|1390|360|1630|330|1500|100|1|p127|34#P|1320|120|1500|100|1390|360|1|p126|34#P|1070|350|1390|360|1320|120|1|p125|34#P|1200|100|1320|120|1070|350|1|p124|34#P|1070|350|1200|100|1090|100|1|p123|34#P|970|130|1090|100|1070|350|1|p122|34#P|810|390|1070|350|970|130|1|p121|34#P|860|170|970|130|810|390|1|p120|34#P|750|180|860|170|810|390|1|p119|34#P|590|420|810|390|750|180|1|p118|34#P|630|180|750|180|590|420|1|p117|34#P|590|420|630|180|470|140|1|p116|34#P|470|140|390|360|590|420|1|p115|34#P|390|120|470|140|390|360|1|p113|34#P|390|360|200|360|340|120|1|p112|34#P|340|120|390|120|390|360|1|p111|34#P|260|140|340|120|200|360|1|p110|34#P|180|150|260|140|200|360|1|p109|34#P|-20|360|200|360|180|150|1|p108|34#P|100|130|180|150|-20|360|1|p107|34#P|-20|360|100|130|-10|80|1|p106|34#P|-20|360|-250|350|-10|80|1|p105|34#P|-250|350|-10|80|-130|20|1|p103|34#P|-230|-10|-130|20|-250|350|1|p102|34#P|-380|0|-230|-10|-250|350|1|p101|34#P|840|190|1150|-60|1470|200|1|p100|18#P|360|120|370|250|0|120|1|p99|18#P|0|120|0|250|370|250|1|p98|1#P|0|120|-330|0|0|0|1|p97|18#P|0|0|230|0|240|120|1|p96|18#P|240|120|0|120|0|0|1|p95|18#P|360|120|240|120|230|0|1|p94|18#P|230|0|260|20|360|120|1|p93|18#P|350|110|360|110|360|120|1|p92|18#P|340|100|350|100|350|110|1|p91|18#P|330|90|340|90|340|100|1|p90|18#P|320|80|330|80|330|90|1|p89|18#P|310|70|320|70|320|80|1|p88|18#P|300|60|310|60|310|70|1|p87|18#P|290|50|300|50|300|60|1|p86|18#P|280|40|290|40|290|50|1|p85|18#P|270|30|280|30|280|40|1|p84|18#P|260|20|270|20|270|30|1|p83|18#P|230|0|260|0|260|20|1|p82|18#P|220|-140|210|-90|220|-90|1|p81|1#P|230|-80|220|-90|220|-140|1|p80|1#P|220|-140|220|-170|230|-80|1|p79|1#P|220|-170|210|-160|220|-140|1|p78|1#P|230|-80|230|-170|220|-170|1|p77|1#P|190|-160|210|-160|210|-90|1|p73|6#P|190|-90|210|-90|190|-160|1|p72|6#P|190|-160|180|-140|190|-90|1|p71|6#P|180|-170|190|-160|210|-160|1|p70|6#P|210|-160|220|-170|180|-170|1|p69|6#P|210|-90|220|-140|210|-160|1|p68|6#P|0|0|0|-90|-330|-90|1|p67|18#P|-330|-90|-330|0|0|0|1|p66|18#P|0|-90|-330|-90|0|-590|1|p65|18#P|140|-190|130|-220|130|-150|1|p63|33#P|100|-130|90|-110|130|-110|1|p62|33#P|130|-110|100|-170|100|-130|1|p61|33#P|90|-220|100|-170|130|-110|1|p60|33#P|130|-110|130|-220|90|-220|1|p59|33#P|90|-90|170|-90|170|-100|1|p58|33#P|150|-110|170|-100|90|-90|1|p57|33#P|90|-90|90|-110|150|-110|1|p56|33#P|100|-260|90|-220|130|-260|1|p54|33#P|130|-260|130|-220|90|-220|1|p53|33#P|90|-270|90|-220|100|-260|1|p52|33#P|100|-260|80|-280|130|-260|1|p51|33#P|80|-320|80|-280|130|-260|1|p50|33#P|130|-260|140|-280|80|-320|1|p49|33#P|140|-280|80|-320|130|-330|1|p48|33#P|130|-330|140|-310|140|-280|1|p47|33#P|80|-320|90|-340|130|-330|1|p46|33#P|130|-360|130|-330|90|-340|1|p45|33#P|100|-370|90|-340|130|-360|1|p44|33#P|100|-410|90|-450|150|-440|1|p43|33#P|80|-420|80|-390|100|-410|1|p42|33#P|100|-410|90|-450|80|-420|1|p41|33#P|100|-370|80|-390|100|-410|1|p40|33#P|150|-400|100|-410|100|-370|1|p39|33#P|100|-370|150|-370|150|-400|1|p38|33#P|150|-370|140|-350|100|-370|1|p37|33#P|160|-380|150|-370|150|-380|1|p36|33#P|150|-400|160|-380|150|-380|1|p35|33#P|160|-420|150|-400|100|-410|1|p34|33#P|150|-440|160|-420|100|-410|1|p33|33#P|90|-450|120|-450|150|-440|1|p32|33#P|190|-560|180|-570|180|-580|1|p28|10#P|190|-560|200|-570|190|-580|1|p27|10#P|180|-580|190|-580|190|-560|1|p26|10#P|220|-490|200|-500|210|-480|1|p25|3#P|220|-460|220|-490|210|-480|1|p24|3#P|210|-470|210|-480|220|-460|1|p23|3#P|190|-450|220|-460|200|-460|1|p22|3#P|200|-460|210|-470|220|-460|1|p20|3#P|190|-450|170|-470|180|-470|1|p19|3#P|180|-470|200|-460|190|-450|1|p18|3#P|170|-470|160|-500|170|-500|1|p17|3#P|170|-500|180|-470|170|-470|1|p16|3#P|160|-500|160|-530|170|-530|1|p15|3#P|170|-530|170|-500|160|-500|1|p14|3#P|170|-570|180|-580|170|-530|1|p13|3#P|170|-570|160|-530|170|-530|1|p12|3#P|150|-590|0|-590|0|-460|1|p10|18#P|70|-460|0|-460|150|-590|1|p9|18#P|150|-590|160|-470|70|-460|1|p8|18#P|160|-470|160|-580|150|-590|1|p7|18#P|70|-460|150|-460|160|-470|1|p6|18#P|0|-460|0|-90|70|-90|1|p5|18#P|70|-90|70|-460|0|-460|1|p4|18#P|0|0|0|-90|230|-80|1|p3|18#P|230|-80|230|0|0|0|1|p2|18#P|0|-90|220|-90|230|-80|1|p1|18#W|1345|-61|w12|12#W|1149|-78|w11|11#W|285|10|w10|10#W|174|-205|w9|9#W|323|-147|w8|8#W|402|-43|w7|7#W|575|-45|w6|6#W|710|-36|w5|5#W|881|-19|w4|4#W|990|47|w3|3#W|837|94|w2|2#W|631|150|w1|1#W|389|103|w0|0#WEP|790|-13|8|4|wep_4#WEP|466|-32|2|3|wep_3#WEP|228|-175|31|2|wep_2#WEP|1276|-51|7|1|wep_1#WEP|485|140|13|0|wep_0#";
mapS6 = "BG|0x9ec4c1#S|498|-446|10#S|-133|-445|9#S|122|-395|8#S|275|-541|7#S|40|-570|6#S|-41|-564|5#S|321|-531|4#S|415|-411|3#S|237|-359|2#S|24|-418|1#S|-249|-433|0#L|w7|w6|1|#L|w6|w5|1|#L|w8|w6|2|up#L|w9|w8|1|#L|w10|w13|1|#L|w9|w14|1|#L|w11|w1|2|up#L|w10|w9|2|both#L|w12|w10|1|#L|w11|w12|1|#L|w4|w5|1|#L|w3|w4|1|#L|w2|w3|1|#L|w1|w2|1|#L|w0|w1|1|#P|550|20|550|90|530|90|1|p175|1#P|550|20|530|-20|540|-40|1|p174|1#P|540|-100|540|-40|550|20|1|p173|1#P|550|-100|550|20|540|-100|1|p172|1#P|540|-180|540|-220|520|-210|1|p171|1#P|540|-220|540|-180|550|-170|1|p170|1#P|550|-170|550|-260|540|-220|1|p169|1#P|550|-170|550|-100|540|-100|1|p168|1#P|550|-170|540|-100|540|-150|1|p167|1#P|540|-150|540|-180|550|-170|1|p166|1#P|540|-100|530|-110|540|-150|1|p165|1#P|550|-350|550|-260|530|-300|1|p163|1#P|520|0|530|-20|550|20|1|p162|32#P|260|-230|410|-290|390|-350|1|p161|1#P|390|-350|250|-290|260|-230|1|p160|1#P|110|-510|110|-480|100|-510|1|p159|32#P|90|-520|110|-510|90|-510|1|p158|32#P|90|-510|0|-520|0|-530|1|p157|32#P|0|-530|90|-520|90|-510|1|p156|32#P|0|-520|-60|-510|-60|-520|1|p155|32#P|-60|-520|0|-530|0|-520|1|p154|32#P|70|-460|100|-470|110|-480|1|p153|21#P|100|-510|110|-480|70|-460|1|p152|21#P|100|-510|90|-510|70|-460|1|p151|21#P|-10|-460|70|-460|90|-510|1|p150|21#P|0|-520|90|-510|-10|-460|1|p149|21#P|-60|-510|0|-520|-10|-460|1|p148|21#P|-100|-470|-10|-460|-60|-510|1|p147|21#P|-100|-470|-60|-510|-130|-480|1|p146|21#P|-130|-480|-130|-470|-100|-470|1|p145|21#P|-140|-480|-130|-490|-130|-480|1|p144|32#P|-130|-480|-130|-460|-140|-480|1|p143|32#P|-60|-520|-60|-510|-130|-480|1|p142|32#P|-130|-480|-130|-490|-60|-520|1|p141|32#P|-60|-320|-60|-220|-70|-320|1|p140|32#P|30|-290|20|-260|20|-290|1|p139|32#P|20|-290|30|-290|20|-300|1|p138|32#P|-60|-320|-70|-320|-60|-330|1|p137|32#P|-60|-330|-60|-320|-20|-310|1|p136|32#P|20|-300|20|-290|-20|-310|1|p135|32#P|-20|-320|20|-300|-20|-310|1|p134|32#P|-60|-330|-20|-320|-20|-310|1|p133|32#P|10|90|10|-180|-170|10|1|p132|21#P|-170|10|-190|90|10|90|1|p131|21#P|10|-380|-50|-400|-190|-250|1|p130|21#P|-190|-250|10|-180|10|-380|1|p129|21#P|10|-180|-190|-250|-190|-60|1|p128|21#P|-190|-60|-170|10|10|-180|1|p127|21#P|-240|-130|-190|-60|-190|-250|1|p126|21#P|-270|-200|-240|-130|-190|-250|1|p125|21#P|-240|-300|-120|-400|-190|-250|1|p124|21#P|-270|-200|-190|-250|-240|-300|1|p123|21#P|-270|-270|-240|-300|-270|-200|1|p122|21#P|-240|-300|-280|-330|-270|-270|1|p121|21#P|-120|-400|-50|-400|-190|-250|1|p120|21#P|-240|-300|-120|-400|-210|-390|1|p119|21#P|-260|-390|-210|-390|-240|-300|1|p118|21#P|-260|-390|-240|-300|-300|-380|1|p117|21#P|-300|-380|-300|-340|-240|-300|1|p116|21#P|-300|-380|-300|-290|-310|-380|1|p115|32#P|-300|-390|-310|-380|-300|-380|1|p114|32#P|-260|-390|-300|-380|-300|-390|1|p113|32#P|-260|-400|-300|-390|-260|-390|1|p112|32#P|-260|-390|-210|-390|-210|-400|1|p111|32#P|-210|-400|-260|-400|-260|-390|1|p110|32#P|-120|-400|-210|-390|-210|-400|1|p109|32#P|-120|-410|-210|-400|-120|-400|1|p108|32#P|-120|-400|-50|-400|-50|-410|1|p107|32#P|-50|-410|-120|-410|-120|-400|1|p106|32#P|10|-380|-50|-400|-50|-410|1|p105|32#P|10|-390|-50|-410|10|-380|1|p104|32#P|10|0|10|90|200|80|1|p103|21#P|200|80|200|0|10|0|1|p102|21#P|200|80|420|90|410|0|1|p101|21#P|410|0|200|0|200|80|1|p100|21#P|520|0|530|90|410|0|1|p99|21#P|530|90|420|90|410|0|1|p98|21#P|520|0|550|20|530|90|1|p97|21#P|400|-460|390|-430|390|-460|1|p96|32#P|330|-490|330|-480|390|-460|1|p95|32#P|400|-460|390|-460|330|-490|1|p94|32#P|330|-490|390|-470|400|-460|1|p93|32#P|330|-480|300|-500|300|-510|1|p92|32#P|300|-510|330|-490|330|-480|1|p91|32#P|300|-500|250|-500|250|-510|1|p90|32#P|250|-510|300|-510|300|-500|1|p89|32#P|250|-500|220|-480|210|-490|1|p88|32#P|210|-490|250|-510|250|-500|1|p87|32#P|220|-420|220|-480|210|-490|1|p86|32#P|220|-480|220|-450|240|-430|1|p85|21#P|240|-430|250|-430|220|-480|1|p84|21#P|250|-500|220|-480|250|-430|1|p83|21#P|300|-500|250|-500|250|-430|1|p82|21#P|330|-480|300|-500|250|-430|1|p81|21#P|300|-410|250|-430|330|-480|1|p80|21#P|330|-480|300|-410|340|-430|1|p79|21#P|390|-440|340|-430|330|-480|1|p78|21#P|330|-480|390|-460|390|-440|1|p77|21#P|540|-380|550|-350|550|-380|1|p76|32#P|540|-390|550|-380|540|-380|1|p75|32#P|540|-380|470|-390|470|-400|1|p74|32#P|470|-400|540|-390|540|-380|1|p73|32#P|470|-390|470|-400|400|-370|1|p72|32#P|390|-320|410|-310|390|-310|1|p71|32#P|370|-340|390|-320|390|-310|1|p70|32#P|280|-300|290|-280|290|-300|1|p69|32#P|300|-310|300|-280|310|-310|1|p68|32#P|360|-330|350|-250|350|-330|1|p67|32#P|300|-310|360|-340|300|-300|1|p66|32#P|300|-300|360|-330|360|-340|1|p65|32#P|300|-300|250|-290|250|-300|1|p64|32#P|250|-300|300|-310|300|-300|1|p63|32#P|390|-350|360|-330|360|-340|1|p62|32#P|400|-370|360|-340|390|-350|1|p61|32#P|410|0|200|0|210|-10|1|p60|32#P|210|-10|410|-10|410|0|1|p59|32#P|190|-30|210|-10|200|0|1|p58|32#P|190|-100|200|-120|190|-30|1|p57|32#P|210|-140|190|-100|200|-60|1|p56|32#P|230|-180|230|-130|220|-170|1|p55|32#P|220|-170|230|-180|200|-200|1|p54|32#P|200|-190|200|-200|220|-170|1|p53|21#P|210|-140|220|-170|200|-190|1|p52|21#P|240|-230|230|-190|230|-230|1|p51|32#P|260|-250|240|-230|210|-220|1|p50|32#P|270|-280|260|-200|260|-280|1|p49|32#P|250|-300|250|-290|260|-280|1|p48|32#P|250|-300|270|-280|260|-280|1|p47|32#P|250|-290|180|-290|180|-300|1|p46|32#P|180|-300|250|-300|250|-290|1|p45|32#P|180|-290|130|-320|130|-330|1|p44|32#P|130|-330|180|-300|180|-290|1|p43|32#P|130|-320|50|-350|50|-360|1|p42|32#P|50|-360|130|-330|130|-320|1|p41|32#P|50|-360|50|-350|10|-380|1|p40|32#P|10|-380|10|-390|50|-360|1|p39|32#P|190|-30|200|0|10|0|1|p38|21#P|10|-180|10|0|190|-30|1|p37|21#P|190|-100|190|-30|10|-180|1|p36|21#P|10|-180|190|-100|210|-140|1|p35|21#P|200|-190|210|-140|10|-180|1|p34|21#P|10|-180|200|-190|210|-220|1|p33|21#P|260|-250|210|-220|10|-180|1|p32|21#P|10|-180|260|-250|260|-280|1|p31|21#P|250|-290|260|-280|10|-180|1|p30|21#P|180|-290|250|-290|10|-180|1|p29|21#P|130|-320|180|-290|10|-180|1|p28|21#P|10|-180|130|-320|50|-350|1|p27|21#P|10|-380|50|-350|10|-180|1|p26|21#P|420|-180|400|-260|520|-210|1|p25|21#P|400|-260|460|-260|520|-210|1|p24|21#P|470|-390|550|-350|400|-350|1|p23|21#P|400|-350|390|-350|470|-390|1|p22|21#P|390|-350|410|-300|400|-350|1|p21|21#P|470|-390|400|-370|390|-350|1|p20|32#P|550|-350|540|-380|470|-390|1|p19|21#P|420|-90|420|-180|520|-210|1|p18|21#P|530|-110|520|-210|420|-90|1|p17|21#P|410|0|520|0|530|-110|1|p16|21#P|530|-110|420|-90|410|0|1|p15|21#P|540|-40|520|0|530|-110|1|p14|21#P|530|-110|540|-100|540|-40|1|p13|21#P|540|-150|530|-110|520|-210|1|p12|21#P|520|-210|540|-180|540|-150|1|p11|21#P|540|-220|520|-210|460|-260|1|p10|21#P|550|-260|540|-220|460|-260|1|p9|21#P|460|-260|550|-260|530|-300|1|p8|21#P|550|-350|530|-300|460|-260|1|p7|21#P|410|-300|460|-260|550|-350|1|p6|21#P|410|-300|400|-350|550|-350|1|p5|21#P|400|-260|410|-300|460|-260|1|p4|21#P|420|-180|400|-240|400|-260|1|p3|21#P|420|-90|410|-140|420|-180|1|p2|21#P|410|0|400|-50|420|-90|1|p1|21#W|169|-448|w14|14#W|146|-416|w13|13#W|3|-543|w12|12#W|-96|-519|w11|11#W|98|-535|w10|10#W|227|-513|w9|9#W|386|-486|w8|8#W|554|-397|w7|7#W|460|-409|w6|6#W|353|-354|w5|5#W|219|-319|w4|4#W|75|-374|w3|3#W|-38|-422|w2|2#W|-208|-415|w1|1#W|-302|-402|w0|0#WEP|-7|-533|-6|3|wep_3#WEP|506|-399|8|2|wep_2#WEP|111|-344|17|1|wep_1#WEP|-186|-408|-6|0|wep_0#";
mapS7 = "BG|0x7690ae#S|641|-260|5#S|488|-262|4#S|357|-258|3#S|247|-262|2#S|126|-263|1#S|-19|-263|0#L|w9|w3|2|up#L|w8|w4|2|up#L|w1|w0|1|#L|w2|w1|2|both#L|w3|w2|2|both#L|w4|w3|2|both#L|w5|w4|2|both#L|w6|w5|2|both#L|w7|w6|1|#P|690|-145|720|-230|710|-240|1|p133|9#P|710|-240|690|-240|690|-145|1|p132|9#P|720|-240|720|-230|710|-240|1|p131|10#P|720|-240|690|-240|690|-250|1|p130|10#P|690|-250|720|-245|720|-240|1|p129|10#P|585|-140|590|-120|590|-140|1|p128|9#P|590|-240|590|-140|585|-140|1|p127|9#P|575|-215|585|-140|590|-240|1|p126|9#P|565|-240|575|-215|590|-240|1|p123|9#P|565|-240|575|-240|575|-250|1|p122|10#P|575|-250|565|-245|565|-240|1|p121|10#P|575|-240|590|-240|590|-250|1|p120|10#P|590|-250|575|-250|575|-240|1|p119|10#P|505|-185|500|-155|500|-240|1|p118|9#P|510|-230|505|-185|500|-240|1|p117|9#P|520|-240|510|-230|500|-240|1|p116|9#P|520|-240|500|-240|500|-250|1|p115|10#P|500|-250|520|-245|520|-240|1|p114|10#P|465|-240|470|-210|470|-240|1|p113|9#P|460|-240|470|-240|470|-250|1|p112|10#P|470|-250|460|-250|460|-240|1|p111|10#P|335|-240|330|-240|340|-230|1|p110|9#P|335|-240|340|-240|340|-195|1|p109|9#P|370|-240|370|-170|375|-220|1|p108|9#P|385|-240|375|-220|370|-240|1|p107|9#P|385|-240|370|-240|370|-250|1|p106|10#P|370|-250|385|-250|385|-240|1|p105|10#P|325|-240|340|-240|340|-250|1|p104|10#P|340|-250|325|-250|325|-240|1|p103|10#P|230|-240|230|-210|215|-235|1|p102|9#P|275|-235|260|-210|260|-240|1|p101|9#P|275|-250|275|-235|260|-240|1|p100|10#P|215|-250|215|-235|230|-240|1|p99|10#P|260|-250|275|-250|260|-240|1|p98|10#P|230|-250|215|-250|230|-240|1|p97|10#P|155|-250|155|-245|150|-245|1|p96|10#P|150|-250|155|-250|150|-245|1|p95|10#P|140|-250|140|-240|150|-245|1|p94|10#P|150|-245|150|-250|140|-250|1|p93|10#P|150|-245|140|-230|140|-240|1|p92|9#P|100|-240|110|-230|110|-240|1|p91|9#P|95|-240|110|-240|110|-250|1|p88|10#P|95|-240|90|-240|95|-250|1|p87|10#P|110|-250|95|-250|95|-240|1|p86|10#P|-70|-110|-105|-190|-90|-240|1|p85|9#P|-90|-240|-70|-240|-70|-110|1|p84|9#P|-110|-240|-105|-190|-90|-240|1|p83|9#P|-95|-250|-110|-240|-95|-240|1|p82|10#P|-95|-240|-70|-240|-70|-250|1|p81|10#P|-70|-250|-95|-250|-95|-240|1|p80|10#P|40|-105|30|-90|30|-105|1|p79|9#P|30|-230|30|-105|40|-105|1|p78|9#P|50|-145|40|-105|30|-230|1|p77|9#P|30|-230|50|-230|50|-145|1|p76|9#P|30|-230|45|-230|45|-240|1|p75|9#P|45|-240|30|-240|30|-230|1|p74|9#P|45|-240|45|-230|50|-230|1|p73|9#P|50|-230|50|-235|45|-240|1|p72|9#P|55|-230|50|-230|50|-205|1|p71|10#P|55|-230|50|-230|50|-235|1|p70|10#P|55|-240|55|-230|45|-240|1|p69|10#P|30|-240|55|-240|55|-245|1|p68|10#P|50|-250|55|-245|30|-240|1|p67|10#P|30|-250|50|-250|30|-240|1|p66|10#P|690|-250|690|-240|590|-240|1|p24|10#P|590|-240|590|-250|690|-250|1|p23|10#P|500|-250|500|-240|470|-240|1|p22|10#P|470|-240|470|-250|500|-250|1|p21|10#P|370|-250|370|-240|340|-240|1|p20|10#P|340|-240|340|-250|370|-250|1|p19|10#P|260|-250|260|-240|230|-240|1|p18|10#P|230|-240|230|-250|260|-250|1|p17|10#P|140|-250|140|-240|110|-240|1|p16|10#P|110|-240|110|-250|140|-250|1|p15|10#P|-70|-250|-70|-240|30|-240|1|p14|10#P|30|-240|30|-250|-70|-250|1|p13|10#P|690|0|690|-240|590|-240|1|p12|9#P|590|-240|590|0|690|0|1|p11|9#P|30|-240|30|0|-70|0|1|p10|9#P|30|-240|-70|-240|-70|0|1|p9|9#P|500|0|500|-240|470|-240|1|p8|9#P|470|-240|470|0|500|0|1|p7|9#P|110|0|110|-240|140|-240|1|p6|9#P|140|-240|140|0|110|0|1|p5|9#P|230|0|230|-240|260|-240|1|p4|9#P|260|-240|260|0|230|0|1|p3|9#P|370|0|340|0|340|-240|1|p2|9#P|340|-240|370|-240|370|0|1|p1|9#W|356|-360|w9|9#W|247|-360|w8|8#W|-66|-262|w7|7#W|29|-262|w6|6#W|126|-262|w5|5#W|245|-261|w4|4#W|355|-261|w3|3#W|486|-262|w2|2#W|593|-260|w1|1#W|683|-263|w0|0#WEP|246|-251|0|3|wep_6#WEP|355|-251|0|2|wep_5#WEP|637|-250|0|1|wep_2#WEP|-18|-249|0|0|wep_0#";
mapS8 = "BG|0x5c1515#S|697|22|10#S|543|-42|9#S|545|-203|8#S|324|-36|7#S|277|-136|6#S|17|-44|5#S|-223|-90|4#S|-537|-140|3#S|-271|85|2#S|-435|122|1#S|-626|58|0#L|w8|w9|1|#L|w7|w8|1|#L|w12|w13|1|#L|w10|w12|2|both#L|w10|w11|1|#L|w7|w10|2|up#L|w7|w6|1|#L|w5|w6|1|#L|w5|w11|2|up#L|w4|w5|1|#L|w16|w15|2|both#L|w16|w17|1|#L|w14|w15|1|#L|w4|w14|2|up#L|w3|w4|1|#L|w2|w3|1|#L|w1|w2|1|#L|w0|w1|1|#P|-660|95|-660|380|-740|380|1|p223|5#P|-540|320|-540|380|-580|360|1|p221|6#P|-540|380|-280|380|-280|330|1|p218|6#P|-280|330|-540|320|-540|380|1|p217|6#P|-280|330|-280|380|-110|380|1|p216|6#P|50|430|80|380|-70|250|1|p215|6#P|-70|250|-280|330|50|430|1|p214|6#P|80|150|-70|250|80|160|1|p213|6#P|90|160|80|150|80|160|1|p212|6#P|80|160|90|160|80|210|1|p211|6#P|80|160|-70|250|80|380|1|p210|6#P|80|380|50|430|220|420|1|p209|6#P|220|420|180|480|50|430|1|p208|6#P|290|450|340|470|320|430|1|p207|6#P|220|420|180|480|250|470|1|p206|6#P|320|440|300|400|220|420|1|p205|6#P|220|420|250|470|320|440|1|p204|6#P|300|400|360|540|320|380|1|p203|6#P|320|380|360|540|660|560|1|p202|6#P|680|380|660|560|320|380|1|p201|6#P|710|270|680|380|320|380|1|p200|6#P|490|180|710|270|320|380|1|p199|6#P|320|160|490|180|320|380|1|p198|6#P|-585|-45|-585|-50|-590|-45|1|p197|5#P|-590|-20|-585|-45|-590|-45|1|p196|5#P|-585|-50|-575|-55|-600|-60|1|p195|5#P|-590|-45|-585|-50|-600|-60|1|p194|5#P|-600|-60|-590|-20|-590|-45|1|p193|5#P|-185|-55|-290|-50|-310|-45|1|p192|6#P|-310|-45|-170|-50|-185|-55|1|p191|6#P|-505|-90|-500|-90|-500|-95|1|p190|6#P|-500|-95|-425|-85|-500|-90|1|p189|6#P|-505|-90|-555|-85|-555|-90|1|p188|6#P|-555|-90|-500|-95|-505|-90|1|p187|6#P|-595|-85|-555|-90|-555|-85|1|p186|6#P|580|-190|600|-180|580|-185|1|p185|6#P|580|-185|540|-180|540|-185|1|p184|6#P|540|-185|580|-190|580|-185|1|p183|6#P|540|-180|515|-180|515|-185|1|p182|6#P|515|-185|540|-185|540|-180|1|p181|6#P|460|-160|515|-185|515|-180|1|p180|6#P|280|-115|240|-105|280|-105|1|p179|6#P|280|-115|360|-100|280|-105|1|p178|6#P|180|-100|280|-110|280|-105|1|p177|6#P|760|55|820|40|760|60|1|p176|6#P|685|45|675|50|710|60|1|p175|6#P|760|60|710|60|685|45|1|p174|6#P|685|45|760|55|760|60|1|p173|6#P|675|50|540|0|540|-5|1|p172|6#P|540|-5|685|45|675|50|1|p171|6#P|515|-15|540|-5|510|-5|1|p170|6#P|510|-5|540|0|540|-5|1|p169|6#P|510|-5|455|-5|455|-10|1|p168|6#P|455|-10|515|-15|510|-5|1|p167|6#P|320|-5|455|-10|455|-5|1|p166|6#P|80|-10|190|0|80|0|1|p165|6#P|80|0|0|-5|0|-15|1|p164|6#P|0|-15|80|-10|80|0|1|p163|6#P|0|-5|-50|5|-55|-5|1|p162|6#P|-55|-5|0|-15|0|-5|1|p161|6#P|-50|5|-105|30|-115|25|1|p160|6#P|-115|25|-55|-5|-50|5|1|p159|6#P|-115|25|-260|140|-265|130|1|p158|6#P|-260|140|-105|30|-115|25|1|p157|6#P|-260|140|-375|190|-380|180|1|p156|6#P|-380|180|-265|130|-260|140|1|p155|6#P|-375|190|-460|185|-460|175|1|p154|6#P|-460|175|-380|180|-375|190|1|p153|6#P|-460|185|-545|165|-540|155|1|p152|6#P|-540|155|-460|175|-460|185|1|p151|6#P|-545|165|-605|135|-600|125|1|p150|6#P|-600|125|-540|155|-545|165|1|p149|6#P|-600|125|-640|95|-645|100|1|p148|6#P|-645|100|-605|135|-600|125|1|p147|6#P|-645|100|-715|75|-710|70|1|p144|6#P|-710|70|-640|95|-645|100|1|p143|6#P|-740|-15|-710|70|-715|75|1|p142|6#P|430|0|330|-5|505|-5|1|p140|5#P|540|0|505|-5|430|0|1|p139|5#P|835|80|815|225|785|270|1|p138|5#P|840|50|845|70|835|80|1|p137|5#P|840|60|840|50|830|40|1|p136|5#P|820|40|830|40|840|60|1|p135|5#P|705|55|745|60|725|60|1|p134|5#P|665|45|605|30|695|60|1|p133|5#P|665|45|725|60|695|60|1|p132|5#P|-515|-40|-525|-60|-515|-60|1|p131|5#P|-500|-50|-515|-40|-515|-60|1|p130|5#P|-435|-50|-500|-50|-520|-60|1|p129|5#P|-600|-60|-560|-50|-420|-60|1|p128|5#P|-420|-60|-435|-50|-600|-60|1|p127|5#P|-560|-85|-500|-90|-425|-85|1|p126|5#P|-595|-85|-600|-80|-420|-80|1|p125|5#P|-420|-80|-425|-85|-595|-85|1|p124|5#P|-250|-10|-255|5|-260|-10|1|p123|5#P|-260|-10|-270|-15|-255|-15|1|p122|5#P|-250|-10|-255|-15|-260|-10|1|p121|5#P|-250|-10|-255|-15|-240|-15|1|p120|5#P|-320|-20|-305|-15|-280|-20|1|p119|5#P|-270|-15|-285|-20|-255|-20|1|p118|5#P|-240|-15|-270|-15|-255|-20|1|p116|5#P|-225|-20|-240|-15|-255|-20|1|p115|5#P|-160|-20|-190|-15|-225|-20|1|p114|5#P|-160|-40|-170|-50|-310|-45|1|p113|5#P|-320|-40|-310|-45|-160|-40|1|p112|5#P|460|-140|475|-135|480|-140|1|p111|5#P|480|-140|540|-160|540|-150|1|p110|5#P|540|-150|515|-130|480|-140|1|p109|5#P|540|-150|540|-160|600|-160|1|p108|5#P|600|-160|565|-150|540|-150|1|p107|5#P|600|-180|605|-175|600|-160|1|p106|5#P|540|-180|580|-185|600|-180|1|p105|5#P|460|-160|515|-180|540|-180|1|p104|5#P|460|-160|455|-150|460|-140|1|p103|5#P|180|-100|175|-95|180|-80|1|p102|5#P|360|-100|290|-105|180|-100|1|p101|5#P|360|-80|365|-95|360|-100|1|p100|5#P|275|-80|320|-75|360|-80|1|p99|5#P|180|-80|210|-70|270|-80|1|p98|5#P|320|120|315|140|320|160|1|p97|5#P|80|85|85|115|80|230|1|p96|5#P|190|20|250|20|215|30|1|p95|5#P|200|35|215|30|190|20|1|p94|5#P|200|35|190|20|185|35|1|p93|5#P|185|35|195|75|200|35|1|p92|5#P|170|25|185|35|190|20|1|p91|5#P|150|20|170|25|190|20|1|p90|5#P|320|20|320|115|315|60|1|p89|5#P|305|40|315|60|320|20|1|p88|5#P|320|20|295|30|305|40|1|p87|5#P|260|20|295|30|320|20|1|p86|5#P|80|20|195|20|120|30|1|p85|5#P|95|40|120|30|80|20|1|p84|5#P|80|20|85|45|80|80|1|p83|5#P|80|60|95|40|80|20|1|p82|5#P|235|0|330|-5|430|0|1|p81|5#P|0|-5|80|0|0|0|1|p80|5#P|-470|185|-370|190|-400|205|1|p79|5#P|0|0|-45|20|-50|5|1|p78|5#P|-50|5|0|-5|0|0|1|p77|5#P|-45|20|-100|40|-105|30|1|p76|5#P|-105|30|-50|5|-45|20|1|p75|5#P|-175|80|-260|140|-170|85|1|p74|5#P|-175|80|-170|85|-100|40|1|p73|5#P|-100|40|-105|30|-175|80|1|p72|5#P|-400|200|-350|175|-260|140|1|p71|5#P|-545|165|-400|200|-540|180|1|p70|5#P|-630|120|-545|165|-540|180|1|p69|5#P|-715|75|-645|100|-605|135|1|p68|5#P|-740|60|-740|-20|-715|75|1|p67|5#P|-740|-140|-735|-40|-740|60|1|p66|5#P|300|400|320|380|140|400|1|p65|27#P|140|400|220|420|300|400|1|p64|27#P|140|400|320|380|80|380|1|p63|27#P|320|600|740|600|320|380|1|p62|5#P|320|380|760|380|740|600|1|p61|5#P|300|400|320|380|320|600|1|p60|5#P|220|420|300|400|320|600|1|p59|5#P|140|600|320|600|220|420|1|p58|5#P|140|400|220|420|140|600|1|p57|5#P|-200|600|-200|380|140|400|1|p56|5#P|140|400|140|600|-200|600|1|p55|5#P|-200|380|80|380|140|400|1|p54|5#P|-200|600|-820|600|-840|380|1|p53|5#P|-840|380|-200|380|-200|600|1|p52|5#P|320|380|80|380|80|160|1|p51|27#P|80|160|320|160|320|380|1|p50|27#P|180|-80|180|-100|360|-100|1|p49|5#P|360|-100|360|-80|180|-80|1|p48|5#P|460|-160|460|-140|480|-140|1|p46|5#P|480|-140|540|-160|540|-180|1|p45|5#P|540|-180|460|-160|480|-140|1|p44|5#P|600|-160|540|-160|540|-180|1|p43|5#P|540|-180|600|-180|600|-160|1|p42|5#P|840|60|760|380|760|60|1|p39|5#P|760|60|820|40|840|60|1|p38|5#P|520|380|760|380|760|60|1|p37|5#P|700|60|760|60|520|380|1|p36|5#P|520|380|700|60|600|20|1|p35|5#P|540|0|600|20|520|380|1|p34|5#P|320|0|540|0|520|380|1|p33|5#P|320|0|320|380|520|380|1|p32|5#P|320|20|80|20|80|0|1|p31|5#P|80|0|320|0|320|20|1|p30|5#P|-820|-500|-820|-480|-560|-480|1|p29|5#P|-560|-480|-540|-500|-820|-500|1|p28|5#P|-820|-480|-820|-400|-700|-400|1|p27|5#P|-700|-400|-560|-480|-820|-480|1|p26|5#P|-740|-320|-700|-400|-740|-400|1|p25|5#P|-600|-80|-600|-60|-420|-60|1|p24|5#P|-420|-60|-420|-80|-600|-80|1|p23|5#P|-320|-40|-320|-20|-160|-20|1|p22|5#P|-160|-20|-160|-40|-320|-40|1|p21|5#P|-820|-400|-820|-140|-740|-140|1|p20|5#P|-740|-140|-740|-400|-820|-400|1|p19|5#P|-840|380|-820|60|-740|60|1|p18|5#P|-740|60|-740|380|-840|380|1|p17|5#P|-820|-140|-820|60|-740|60|1|p16|5#P|-740|60|-740|-140|-820|-140|1|p15|5#P|-660|100|-740|60|-740|380|1|p13|5#P|-660|380|-460|380|-540|180|1|p12|5#P|-540|180|-660|100|-660|380|1|p11|5#P|-460|380|-340|380|-400|200|1|p10|5#P|-400|200|-540|180|-460|380|1|p9|5#P|-260|140|-400|200|-340|380|1|p8|5#P|-80|380|-340|380|-260|140|1|p7|5#P|-100|40|-260|140|-80|380|1|p6|5#P|0|380|-80|380|-100|40|1|p4|5#P|0|0|-100|40|0|380|1|p3|5#P|80|380|0|380|0|0|1|p2|5#P|0|0|80|0|80|380|1|p1|5#W|-584|-101|w17|17#W|-434|-104|w16|16#W|-305|-62|w15|15#W|-179|-69|w14|14#W|593|-200|w13|13#W|471|-181|w12|12#W|192|-115|w11|11#W|353|-119|w10|10#W|812|28|w9|9#W|581|-11|w8|8#W|439|-24|w7|7#W|282|-19|w6|6#W|90|-28|w5|5#W|-77|-12|w4|4#W|-219|76|w3|3#W|-351|150|w2|2#W|-535|133|w1|1#W|-697|58|w0|0#WEP|279|-111|0|5|wep_5#WEP|760|55|0|4|wep_4#WEP|433|-7|0|3|wep_3#WEP|-234|-54|0|2|wep_2#WEP|-511|-93|0|1|wep_1#WEP|-397|178|0|0|wep_0#";
maps = [map2, map3, map1, map4, mapS1, mapS2, mapS3, mapS4, mapS5, mapS6, mapS7, mapS8];
p_set1 = [["Miner", 28, 9, 0]];
p_set2 = [["Miner", 28, 1, 1], ["Mickey", 29, 9, 2], ["Stuwart", 29, 9, 2]];
p_set3 = [["Jack", 2, 10, 0], ["Vego", 7, 13, 0], ["Sarho", 8, 2, 0], ["D22", 9, 1, 0]];
p_set4 = [["Popsicle", 30, 16, 2], ["SnowBall", 31, 16, 2]];
p_set5 = [["Rah", 34, 6, 0], ["Rhamses", 33, 6, 0], ["Osiris", 32, 6, 0]];
p_set6 = [["Rah", 34, 6, 2], ["Rhamses", 33, 6, 2], ["Osiris", 32, 6, 2], ["Orus", 35, 2, 1]];
p_set7 = [["Mucha", 18, 12, 0], ["Gladius", 19, 4, 0], ["Jaques Cartier", 20, 6, 0], ["Sarge", 2, 12, 0]];
p_set8 = [["Agucha", 15, 1, 0], ["Irtuk", 15, 9, 0], ["Kasram", 6, 10, 0], ["Obalk", 6, 1, 0]];
p_set9 = [["Sin", 8, 10, 0]];
p_set10 = [["Devil", 36, 10, 2], ["Devil", 36, 10, 2], ["Devil", 36, 10, 2], ["Devil", 36, 10, 2]];
maps_story_info = [["Caveman", 2, 1, 500, "The miner is always ready for a fight against a rookie. Pay him a visit.", p_set1, 0], ["Cheese?", 4, 3, 1500, "Welcome to the cheese land. Watch out for Mickey and Stuwart, they have been defending this place pretty well. The miner will help you in this match.", p_set2, 0], ["Flying castle", 5, 1, 2000, "The flying castle is the perfect place for a tournament! Get ready for some action!", p_set3, 0], ["Flying castle #2", 5, 2, 3000, "Congratulations, you passed the previous level... but it was only a warmup for the Rambo match you will have to win. Try to stay Rambo the longest time you can. To do so, kill Rambo and then, avoid getting killed. This is gonna be hard, because everyone is against Rambo.", p_set3, 5], ["Esquimo brothers", 3, 3, 5000, "The esquimo brothers think you are not so cool! Give them a lesson. This is your first 1 vs 2 game. Try to take the lead by usign a good weapon.", p_set4, 4], ["Egypt", 4, 1, 4000, "Now its getting hot. Welcome to egypt deathmatch.", p_set5, 5], ["Egypt #2", 5, 3, 6000, "Orus has joined you to fight against the mummy team. ", p_set6, 2], ["Welcome to the jungle", 5, 2, 4000, "These rocks in the jungle are the perfect place for a nice rambo game.", p_set7, 5], ["Tribal Madness", 5, 1, 5000, "The rock you where fighting on is sacred. The Obu's are usign it to choose who should be the king of the tribe. It looks like you challenged them.", p_set8, 6], ["Pillar fight", 2, 1, 4000, "Try to maintain your balance in this map. One step aside, and you fall!", p_set9, 5], ["Hell", 4, 3, 6666, "Welcome to hell. This is the last challenge.", p_set10, 6]];
maps_story = [mapS1, mapS2, mapS3, mapS3, mapS4, mapS5, mapS5, mapS6, mapS6, mapS7, mapS8];
function sound(x, y, id) {
_root.sound_id++;
sound_clip = _root.sounds.createEmptyMovieClip("sound" + _root.sound_id, _root.sound_id);
vol = _root.Volume;
if (vol > 0) {
_root["soundObj" + _root.sound_id] = new Sound(sound_clip);
_root["soundObj" + _root.sound_id].attachSound(id);
_root["soundObj" + _root.sound_id].setVolume(vol);
_root["soundObj" + _root.sound_id].start(0, 0);
_root["soundObj" + _root.sound_id].cliptoremove = sound_clip._name;
_root["soundObj" + _root.sound_id].onSoundComplete = function () {
_root.sounds[this.cliptoremove].removeMovieClip();
};
}
}
function start_music(id) {
if (id == "game_music") {
id = id + ("" + random(3));
}
_root.music = new Sound(_root);
_root.music.attachSound(id);
_root.music.setVolume(_root.MusicVolume);
_root.music.start(0, 99);
}
function stop_music() {
_root.music.stop();
}
function create_bullet(x, y, rot, vit, team, dam, id, host) {
if (id == 5) {
var _local2 = 5;
while (_local2 > 0) {
bul = _root.game.bullets.attachMovie("bullet" + id, "bullet" + bi, bi);
bul._x = x;
bul._y = y;
bul.id = host;
bul.rot = rot;
bul.vitesse = vit;
bul.team = team;
bul.dam = dam;
_root.bi++;
_local2--;
}
} else {
bul = _root.game.bullets.attachMovie("bullet" + id, "bullet" + bi, bi);
bul._x = x;
bul._y = y;
bul.rot = rot;
bul.id = host;
bul.vitesse = vit;
bul.team = team;
bul.dam = dam;
_root.bi++;
}
}
function create_explo(x, y, dam, host) {
bul = _root.game.sfx.attachMovie("explo", "explo" + _root.ei, _root.ei);
bul.id = host;
bul.dam = dam;
bul._x = x;
bul._y = y;
_root.ei++;
}
function create_smiley_boom(x, y) {
bul = _root.game.sfx.attachMovie("smiley_gibs", "gibs" + _root.ei, _root.ei);
bul._x = x;
bul._y = y;
_root.ei++;
}
function divide_map() {
_root.attachMovie("screen", "screen", 11);
_root.screen._visible = false;
_root.game.createEmptyMovieClip("map_pieces", 3);
var _local6 = 600;
var _local7 = 400;
var _local10 = Math.floor(_root.game.map._width / _local6) + 2;
var _local11 = Math.floor(_root.game.map._height / _local7) + 2;
var _local12 = _root.game.map.getBounds(this);
var _local9 = _local12.xMin;
var _local8 = _local12.yMin;
_local9 = Math.floor(_local9 / _local6) * _local6;
_local8 = Math.floor(_local8 / _local7) * _local7;
i = 1;
var _local4 = _local11;
while (_local4 > 0) {
var _local3 = _local10;
while (_local3 > 0) {
i++;
var _local5 = new flash.geom.Matrix();
_local5.translate(-(_local9 + ((_local3 - 1) * _local6)), -(_local8 + ((_local4 - 1) * _local7)));
_root.game.map_pieces.createEmptyMovieClip("piece" + i, i);
_root.game.map_pieces["piece" + i]._x = _local9 + ((_local3 - 1) * _local6);
_root.game.map_pieces["piece" + i]._y = _local8 + ((_local4 - 1) * _local7);
_root["bitmap" + i] = new flash.display.BitmapData(_local6, _local7, true, 0);
_root["bitmap" + i].draw(_root.game.map, _local5);
_root.game.map_pieces["piece" + i].attachBitmap(_root["bitmap" + i], 1);
_root.game.map_pieces["piece" + i].onEnterFrame = function () {
if (_root.screen.hitTest(this)) {
this._visible = true;
} else {
this._visible = false;
}
};
_local3--;
}
_local4--;
}
_root.game.map.removeMovieClip();
_root.game.ground._visible = false;
}
function start_deathmatch(map_id, nbplayers, mod, path_id, goal, cash, challenge) {
if (goal < 4) {
_root.gamevar_goal_type = 0;
if (goal == 0) {
_root.gamevar_goal = 10;
}
if (goal == 1) {
_root.gamevar_goal = 20;
}
if (goal == 2) {
_root.gamevar_goal = 30;
}
if (goal == 3) {
_root.gamevar_goal = 40;
}
} else {
_root.gamevar_goal_type = 1;
if (goal == 4) {
_root.gamevar_goal = 60;
}
if (goal == 5) {
_root.gamevar_goal = 120;
}
if (goal == 6) {
_root.gamevar_goal = 180;
}
if (goal == 7) {
_root.gamevar_goal = 240;
}
}
_root.set_gun_variables();
_root.ii = 0;
_root.ei = 0;
_root.score = [];
_root.game_mod = mod;
trace("#### ---- Creating a game ---- ####");
trace("//// ---- Game mode: " + mod);
trace("//// ---- Map id: " + map_id);
trace("//// ---- Number of players: " + nbplayers);
trace("//// ---- Path id: " + path_id);
trace("//// ---- Goal: " + goal);
_root.gamevar_challenge = challenge;
_root.gamevar_cash = cash;
_root.gamevar_path_id = Number(path_id);
_root.gamevar_map_id = map_id;
_root.gamevar_nbplayers = nbplayers;
_root.gamevar_mod = mod;
_root.cash_won = 0;
map_spawnpoints = [];
_root.bi = 0;
map_links = [];
map_waypoints = [];
map_weapons = [];
map_paths = [];
_root.attachMovie("loading_info", "loading_info", 10000);
_root.loading_info.gotoAndStop(1);
_root.gotoAndPlay("create_map");
}
function create_polygon(x1, y1, x2, y2, x3, y3, color) {
poly = _root.game.map.createEmptyMovieClip("p" + _root.pi, _root.pi);
var _local4 = flash.display.BitmapData.loadBitmap("text" + (color - 1));
poly.beginBitmapFill(_local4);
poly.moveTo(x1, y1);
poly.lineTo(x2, y2);
poly.lineTo(x3, y3);
poly.lineTo(x1, y1);
poly.endFill();
_root.game.ground.beginFill(0, 100);
_root.game.ground.moveTo(x1, y1);
_root.game.ground.lineTo(x2, y2);
_root.game.ground.lineTo(x3, y3);
_root.game.ground.lineTo(x1, y1);
_root.game.ground.endFill();
_root.pi++;
return(poly);
}
function create_weapon(x, y, angle, depth, Name) {
trace("creating weapon");
wep_tt = _root.game.weapons.attachMovie("weapon_taker", Name, depth);
wep_tt._x = x;
wep_tt._y = y;
wep_tt._rotation = angle;
}
function create_map(map_id) {
_root.pi = 0;
_root.wi = 0;
_root.si = 0;
if (_root.gamevar_challenge == false) {
code = _root.maps[map_id];
} else {
code = _root.maps_story[map_id];
}
map_spawnpoints = [];
map_links = [];
map_waypoints = [];
if ((code != "") and (code != undefined)) {
_root.createEmptyMovieClip("game", 2);
_root.createEmptyMovieClip("sounds", 100);
_root.game.createEmptyMovieClip("ground", 10000);
_root.game.createEmptyMovieClip("weapons", 1);
_root.game.createEmptyMovieClip("map", 2);
_root.game.createEmptyMovieClip("players", 10);
_root.game.createEmptyMovieClip("waypoints", 4);
_root.game.createEmptyMovieClip("bullets", 11);
_root.game.createEmptyMovieClip("sfx", 12);
_root.attachMovie("cursor", "cursor", 30);
_root.array1 = code.split("#");
c = array1.length - 1;
while (c >= 0) {
array2 = array1[c].split("|");
if (array2[0] == "P") {
_root.create_polygon(array2[1], array2[2], array2[3], array2[4], array2[5], array2[6], Number(array2[9]));
} else if (array2[0] == "S") {
_root.map_spawnpoints.push(Array(array2[1], array2[2]));
} else if (array2[0] == "BG") {
_root.create_background(array2[1]);
}
c--;
}
}
}
function create_waypoints() {
c = array1.length - 1;
while (c >= 0) {
array2 = array1[c].split("|");
if (array2[0] == "W") {
_root.map_waypoints.push(Array(array2[1], array2[2], array2[3], array2[4]));
}
c--;
}
}
function create_weapons() {
c = array1.length - 1;
while (c >= 0) {
array2 = array1[c].split("|");
if (array2[0] == "WEP") {
_root.map_weapons.push(Array(array2[1], array2[2], array2[3], array2[4], array2[5]));
_root.create_weapon(array2[1], array2[2], array2[3], array2[4], array2[5]);
}
c--;
}
}
function calculate_paths() {
_root.paths_to_calculate = new Array();
c = array1.length - 1;
while (c >= 0) {
array2 = array1[c].split("|");
if (array2[0] == "L") {
_root.map_links.push(Array(array2[1], array2[2], array2[3], array2[4]));
}
c--;
}
p1 = _root.map_waypoints.length - 1;
while (p1 >= 0) {
p2 = _root.map_waypoints.length - 1;
while (p2 >= 0) {
if (p1 != p2) {
_root.paths_to_calculate.push(Array(_root.map_waypoints[p1][2], _root.map_waypoints[p2][2]));
}
p2--;
}
p1--;
}
_root.attachMovie("calculator", "calculator", 20000);
}
function copy_array(array) {
var _local3 = [];
var _local1 = array.length - 1;
while (_local1 >= 0) {
_local3[_local1] = array[_local1];
_local1--;
}
return(_local3);
}
function get_distance(x1, y1, x2, y2) {
var _local1 = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
return(_local1);
}
function get_shortest_path(ptas) {
shortest_path = copy_array(ptas[0]);
return(shortest_path);
}
function calculate_path(w1, w2) {
var _local12 = [[w1]];
var _local15 = [];
var _local7 = copy_array(_root.map_links);
if ((w1 != undefined) and (w2 != undefined)) {
var _local14 = false;
} else {
var _local14 = true;
}
while (!_local14) {
var _local10 = _local12.length - 1;
while (_local10 >= 0) {
var _local3 = copy_array(_local12[_local10]);
var _local13 = _local3[_local3.length - 1];
var _local6 = [];
var _local2 = _local7.length - 1;
while (_local2 >= 0) {
if (_local7[_local2][0] == _local13) {
_local6.push(_local7[_local2][1]);
}
if (_local7[_local2][1] == _local13) {
_local6.push(_local7[_local2][0]);
}
_local2--;
}
var _local8 = _local6.length - 1;
while (_local8 >= 0) {
var _local5 = _local6[_local8];
var _local9 = false;
var _local4 = _local3.length - 1;
while (_local4 >= 0) {
if (_local5 == _local3[_local4]) {
_local9 = true;
}
_local4--;
}
if (!_local9) {
if (_local5 == w2) {
var _local11 = copy_array(_local3);
_local11.push(_local5);
_local15.push(_local11);
var _local14 = true;
} else {
var _local11 = copy_array(_local3);
_local11.push(_local5);
_local12.push(_local11);
}
}
_local8--;
}
_local12.splice(_local10, 1);
_local10--;
}
if (_local12.length <= 0) {
var _local14 = true;
}
}
arr = _local15[0];
return(arr);
}
function create_background(color) {
_root.attachMovie("background", "Background", 1);
bg_color = new Color(Background);
bg_color.setRGB(color);
}
function end_game() {
_root.game.removeMovieClip();
_root.Background.removeMovieClip();
_root.hud.removeMovieClip();
_root.cursor.removeMovieClip();
Mouse.show();
_root.stop_music();
_root.start_music("menu_music");
_root.gotoAndStop("menu_main");
}
function terminated(Name, type, win) {
_root.gamevar_winner = Name;
_root.gamevar_winning = win;
_root.game.removeMovieClip();
_root.Background.removeMovieClip();
_root.hud.removeMovieClip();
_root.cursor.removeMovieClip();
if ((win == true) and _root.gamevar_challenge) {
_root.cash_won = _root.gamevar_cash;
_root.cash = _root.cash + cash_won;
_root.overall_cash = _root.overall_cash + cash_won;
_root.challenge_id++;
}
Mouse.show();
_root.stop_music();
_root.start_music("menu_music");
_root.gotoAndStop("end_" + type);
}
total_price = 0;
ab = _root.map_prices.length - 2;
while (ab >= 0) {
total_price = total_price + _root.map_prices[ab];
ab--;
}
ab = _root.hats_prices.length - 2;
while (ab >= 0) {
total_price = total_price + _root.hats_prices[ab];
ab--;
}
total_reward = 0;
ab = _root.maps_story_info.length - 1;
while (ab >= 0) {
total_reward = total_reward + _root.maps_story_info[ab][3];
ab--;
}
trace("total price: " + total_price);
trace("total reward: " + total_reward);
Frame 596
_root.fade.gotoAndPlay(1);
stop();
_root.start_music("menu_music");
Frame 597
stop();
Instance of Symbol 794 MovieClip in Frame 598
onClipEvent (load) {
_root.cash_str = ((_root.cash + " / ") + _root.overall_cash) + " Xp";
}
onClipEvent (enterFrame) {
sel = _root.maps_list.selectedIndex;
_root.map_str = _root.maps_info[sel][0];
if (_root.c_mod.selectedIndex == 0) {
_root.players_str = ("This is a " + _root.c_nb.selectedLabel) + " players Deathmatch game. No teams, no mercy.";
} else if (_root.c_mod.selectedIndex == 1) {
if (_root.c_goal.selectedIndex < 4) {
_root.c_goal.selectedIndex = 4;
}
_root.players_str = ("This is a " + _root.c_nb.selectedLabel) + " players Rambo game. One of the players start as Rambo. Rambo can only use the Rambo bow. When a player kills Rambo, he becomes Rambo himself. Only Rambo can score.";
} else if (_root.c_mod.selectedIndex == 2) {
_root.players_str = ("This is a " + _root.c_nb.selectedLabel) + " players Team Deathmatch game. Red team vs. Blue team. You can only hurt the other team.";
}
}
Frame 599
ml = 0;
while (ml < (3 + _root.unlocked_maps)) {
_root.maps_list.addItem(_root.maps_info[ml][0], ml, ml);
ml++;
}
maps_left = (9 - _root.unlocked_maps) + " maps left to unlock!";
Instance of Symbol 794 MovieClip in Frame 599
onClipEvent (load) {
_root.maps_list.selectedIndex = 0;
}
onClipEvent (enterFrame) {
sel = _root.maps_list.selectedIndex;
_root.map_str = _root.maps_info[sel][0];
if (_root.c_mod.selectedIndex == 0) {
_root.players_str = ("This is a " + _root.c_nb.selectedLabel) + " players Deathmatch game. No teams, no mercy.";
} else if (_root.c_mod.selectedIndex == 1) {
if (_root.c_goal.selectedIndex < 4) {
_root.c_goal.selectedIndex = 4;
}
_root.players_str = ("This is a " + _root.c_nb.selectedLabel) + " players Rambo game. One of the players start as Rambo. Rambo can only use the Rambo bow. When a player kills Rambo, he becomes Rambo himself. Only Rambo can score.";
} else if (_root.c_mod.selectedIndex == 2) {
_root.players_str = ("This is a " + _root.c_nb.selectedLabel) + " players Team Deathmatch game. Red team vs. Blue team. You can only hurt the other team.";
}
}
Instance of Symbol 572 MovieClip [List] "maps_list" in Frame 599
//component parameters
onClipEvent (construct) {
multipleSelection = false;
rowHeight = 20;
}
Instance of Symbol 584 MovieClip [ComboBox] "c_mod" in Frame 599
//component parameters
onClipEvent (construct) {
data = [];
data[0] = 1;
data[1] = 2;
data[2] = 3;
editable = false;
labels = [];
labels[0] = "Deathmatch";
labels[1] = "Rambo";
labels[2] = "Team Deathmatch";
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 584 MovieClip [ComboBox] "c_nb" in Frame 599
//component parameters
onClipEvent (construct) {
data = [];
data[0] = 2;
data[1] = 3;
data[2] = 4;
data[3] = 5;
data[4] = 6;
editable = false;
labels = [];
labels[0] = 2;
labels[1] = 3;
labels[2] = 4;
labels[3] = 5;
labels[4] = 6;
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 584 MovieClip [ComboBox] "c_goal" in Frame 599
//component parameters
onClipEvent (construct) {
data = [];
data[0] = 1;
data[1] = 2;
data[2] = 3;
data[3] = 4;
data[4] = 5;
data[5] = 6;
data[6] = 7;
data[7] = 8;
editable = false;
labels = [];
labels[0] = "10 kills";
labels[1] = "20 kills";
labels[2] = "30 kills";
labels[3] = "40 kills";
labels[4] = "60 seconds";
labels[5] = "120 seconds";
labels[6] = "180 seconds";
labels[7] = "240 seconds";
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 600
in_mapcode.text = "Enter your map code here.";
Instance of Symbol 532 MovieClip [UIScrollBar] in Frame 600
//component parameters
onClipEvent (construct) {
_targetInstanceName = "in_mapcode";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 73 MovieClip "c_eyes" in Frame 601
onClipEvent (enterFrame) {
this.gotoAndStop(_root.smiley_eyes);
}
Instance of Symbol 109 MovieClip "c_hats" in Frame 601
onClipEvent (enterFrame) {
this.gotoAndStop(_root.smiley_hat);
}
Instance of Symbol 870 MovieClip in Frame 602
onClipEvent (enterFrame) {
if (_root.savefile1.data.username != undefined) {
_root.savefile1w = true;
} else {
_root.savefile1w = false;
}
if (_root.savefile2.data.username != undefined) {
_root.savefile2w = true;
} else {
_root.savefile2w = false;
}
if (_root.savefile3.data.username != undefined) {
_root.savefile3w = true;
} else {
_root.savefile3w = false;
}
if (_root.savefile1w == true) {
_root.saved_username1 = _root.savefile1.data.username;
_root.saved_hat1 = _root.savefile1.data.hat;
_root.saved_eyes1 = _root.savefile1.data.eyes;
_root.saved_challenge1 = _root.savefile1.data.challenge;
_root.saved_xp1 = _root.savefile1.data.xp;
_root.saved_oxp1 = _root.savefile1.data.oxp;
_root.saved_uhats1 = _root.savefile1.data.uhats;
_root.saved_umaps1 = _root.savefile1.data.umaps;
_root.fn1.text = _root.saved_username1;
_root.xp1.text = (_root.saved_xp1 + "/") + _root.saved_oxp1;
_root.sm1._visible = true;
_root.sm1.hats.gotoAndStop(_root.saved_hat1);
_root.sm1.eyes.gotoAndStop(_root.saved_eyes1);
} else {
_root.fn1.text = "No data";
_root.sm1._visible = false;
_root.saved_challenge1 = "";
_root.saved_xp1 = "";
_root.saved_oxp1 = "";
_root.saved_uhats1 = "";
_root.saved_umaps1 = "";
_root.xp1.text = "";
}
if (_root.savefile2w == true) {
_root.saved_username2 = _root.savefile2.data.username;
_root.saved_hat2 = _root.savefile2.data.hat;
_root.saved_eyes2 = _root.savefile2.data.eyes;
_root.saved_challenge2 = _root.savefile2.data.challenge;
_root.saved_xp2 = _root.savefile2.data.xp;
_root.saved_oxp2 = _root.savefile2.data.oxp;
_root.saved_uhats2 = _root.savefile2.data.uhats;
_root.saved_umaps2 = _root.savefile2.data.umaps;
_root.fn2.text = _root.saved_username2;
_root.xp2.text = (_root.saved_xp2 + "/") + _root.saved_oxp2;
_root.sm2._visible = true;
_root.sm2.hats.gotoAndStop(_root.saved_hat2);
_root.sm2.eyes.gotoAndStop(_root.saved_eyes2);
} else {
_root.fn2.text = "No data";
_root.sm2._visible = false;
_root.saved_challenge2 = "";
_root.saved_xp2 = "";
_root.saved_oxp2 = "";
_root.saved_uhats2 = "";
_root.saved_umaps2 = "";
_root.xp2.text = "";
}
if (_root.savefile3w == true) {
_root.saved_username3 = _root.savefile3.data.username;
_root.saved_hat3 = _root.savefile3.data.hat;
_root.saved_eyes3 = _root.savefile3.data.eyes;
_root.saved_challenge3 = _root.savefile3.data.challenge;
_root.saved_xp3 = _root.savefile3.data.xp;
_root.saved_oxp3 = _root.savefile3.data.oxp;
_root.saved_uhats3 = _root.savefile3.data.uhats;
_root.saved_umaps3 = _root.savefile3.data.umaps;
_root.xp3.text = (_root.saved_xp3 + "/") + _root.saved_oxp3;
_root.fn3.text = _root.saved_username3;
_root.sm3._visible = true;
_root.sm3.hats.gotoAndStop(_root.saved_hat3);
_root.sm3.eyes.gotoAndStop(_root.saved_eyes3);
} else {
_root.fn3.text = "No data";
_root.sm3._visible = false;
_root.saved_challenge3 = "";
_root.saved_xp3 = "";
_root.saved_oxp3 = "";
_root.saved_uhats3 = "";
_root.saved_umaps3 = "";
_root.xp3.text = "";
}
}
Frame 604
ml = 0;
while (ml < _root.maps_info.length) {
_root.maps_list.addItem(((_root.maps_info[ml][0] + " (") + _root.maps_info[ml][1]) + ")", ml, ml);
ml++;
}
Instance of Symbol 794 MovieClip in Frame 604
onClipEvent (enterFrame) {
id = _root.challenge_id;
_root.challenge_str = ((id + 1) + ". ") + _root.maps_story_info[id][0];
_root.challenge_desc = _root.maps_story_info[id][4];
_root.reward_str = _root.maps_story_info[id][3] + " Xp";
_root.a_map_id = id;
_root.a_nbplayers = _root.maps_story_info[id][1];
_root.a_mod = _root.maps_story_info[id][2];
_root.a_cash = _root.maps_story_info[id][3];
_root.a_challenge = true;
_root.a_goal = _root.maps_story_info[id][6];
_root.a_path_id = 0;
_root.goal_str = "";
goal = _root.a_goal;
if (goal < 4) {
_root.goal_str = _root.goal_str + "First to reach ";
if (goal == 0) {
_root.goal_str = _root.goal_str + "10 kills";
}
if (goal == 1) {
_root.goal_str = _root.goal_str + "20 kills";
}
if (goal == 2) {
_root.goal_str = _root.goal_str + "30 kills";
}
if (goal == 3) {
_root.goal_str = _root.goal_str + "40 kills";
}
} else {
_root.goal_str = _root.goal_str + "Best score after ";
if (goal == 4) {
_root.goal_str = _root.goal_str + "1 minute";
}
if (goal == 5) {
_root.goal_str = _root.goal_str + "2 minutes";
}
if (goal == 6) {
_root.goal_str = _root.goal_str + "3 minutes";
}
if (goal == 7) {
_root.goal_str = _root.goal_str + "4 minutes";
}
}
}
Frame 605
_root.fade.gotoAndPlay(1);
Instance of Symbol 887 MovieClip in Frame 605
onClipEvent (load) {
if (_root.gamevar_winning == true) {
_visible = false;
}
}
Instance of Symbol 889 MovieClip in Frame 605
onClipEvent (load) {
if (_root.gamevar_winning == false) {
_visible = false;
}
}
Instance of Symbol 893 MovieClip in Frame 605
onClipEvent (load) {
if (_root.cash_won > 0) {
_visible = true;
this.reward = _root.cash_won + " Xp";
} else {
this._visible = false;
}
}
Frame 606
_root.fade.gotoAndPlay(1);
Frame 607
_root.fade.gotoAndPlay(1);
Instance of Symbol 913 MovieClip "slider1" in Frame 608
onClipEvent (load) {
this.but._x = _root.Volume;
}
onClipEvent (enterFrame) {
_root.Volume = this.Value;
}
Instance of Symbol 913 MovieClip "slider2" in Frame 608
onClipEvent (load) {
this.but._x = _root.MusicVolume;
}
onClipEvent (enterFrame) {
_root.MusicVolume = this.Value;
_root.music.setVolume(_root.MusicVolume);
}
Instance of Symbol 794 MovieClip in Frame 609
onClipEvent (enterFrame) {
_root.cash_str = ((_root.cash + " / ") + _root.overall_cash) + " Xp";
_root.map_price_d = _root.map_prices[_root.unlocked_maps] + "Xp";
_root.hat_price_d = _root.hats_prices[_root.unlocked_hats] + "Xp";
}
Frame 611
_root.PAUSE = true;
_root.create_map(_root.gamevar_map_id);
_root.divide_map();
_root.loading_info.gotoAndStop(2);
Frame 612
_root.create_waypoints();
_root.loading_info.gotoAndStop(3);
Frame 613
_root.calculate_paths();
stop();
Frame 614
if (_root.gamevar_mod == 2) {
rambo_id = random(_root.gamevar_nbplayers);
trace("rambo is gonna be player " + rambo_id);
}
_root.map_players = [];
hero = _root.game.players.attachMovie("smiley", "smiley0", _root.ii);
_root.map_players.push("smiley0");
if ((_root.gamevar_mod == 2) and (rambo_id == 0)) {
hero.is_rambo = true;
} else {
hero.is_rambo = false;
}
if (_root.gamevar_mod == 3) {
team = 1;
hero.team = team;
}
spwnNb = random(map_spawnpoints.length);
hero._x = map_spawnpoints[spwnNb][0];
hero._y = map_spawnpoints[spwnNb][1];
hero.tag = 0;
_root.ii++;
var nbp = _root.gamevar_nbplayers;
while ((nbp - 1) > 0) {
comp = _root.game.players.attachMovie("smiley_comp", "smiley" + _root.ii, _root.ii);
comp.tag = _root.ii;
if ((_root.gamevar_mod == 2) and (rambo_id == _root.ii)) {
comp.is_rambo = true;
} else {
comp.is_rambo = false;
}
if (_root.gamevar_mod == 3) {
if (_root.gamevar_challenge == false) {
if (team == 1) {
team = 2;
} else if (team == 2) {
team = 1;
}
comp.team = team;
} else {
comp.team = _root.maps_story_info[_root.gamevar_map_id][5][_root.ii - 1][3];
}
}
trace("created: " + comp._name);
_root.map_players.push(comp._name);
spwnNb = random(map_spawnpoints.length);
comp._x = map_spawnpoints[spwnNb][0];
comp._y = map_spawnpoints[spwnNb][1];
if (_root.gamevar_challenge == true) {
comp.Name = _root.maps_story_info[_root.gamevar_map_id][5][_root.ii - 1][0];
comp.hat = _root.maps_story_info[_root.gamevar_map_id][5][_root.ii - 1][1];
comp.eye = _root.maps_story_info[_root.gamevar_map_id][5][_root.ii - 1][2];
}
_root.ii++;
nbp--;
}
_root.create_weapons();
_root.loading_info.removeMovieClip();
Frame 615
_root.attachMovie("count", "countdown", 200000);
_root.getFPS = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
numcount = 0;
cumule = 0;
_root.createEmptyMovieClip("fps", 1230053);
fps.onEnterFrame = function () {
_root.numcount++;
currfps = getFPS();
fpps = "FPS. " + currfps;
_root.cumule = _root.cumule + currfps;
fppsavg = "avg. " + (Math.round((_root.cumule / _root.numcount) * 10) / 10);
};
_root.stop_music();
_root.start_music("game_music");
_root.attachMovie("hud", "hud", 500);
_root.gotoAndStop("playing");
Symbol 10 MovieClip [score_entry] Frame 1
team = _root.teams[id];
if (team == 0) {
clr.gotoAndStop(1);
} else {
clr.gotoAndStop(team);
}
mod = _root.gamevar_mod;
count = 5;
this.onEnterFrame = function () {
count--;
if (count < 0) {
if ((mod == 1) or (mod == 3)) {
p = _root.score[id][0];
k = _root.score[id][1];
d = _root.score[id][2];
} else if (mod == 2) {
p = _root.score[id][0];
k = _root.score[id][1];
d = "";
}
count = 5;
}
};
Symbol 20 MovieClip Frame 1
stop();
gotoAndStop(random(8));
Symbol 21 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 23 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 25 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 27 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 29 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 31 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 33 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 35 MovieClip Frame 1
g = ((-Math.random()) * 10) + 2;
xf = (Math.random() * 20) - 10;
rot = (Math.random() * 20) - 10;
t = 100;
this.onEnterFrame = function () {
t--;
g = g + 0.2;
xf = xf / 1.01;
_rotation = (_rotation + rot);
_x = (_x + xf);
_y = (_y + g);
if (t < 1) {
_parent.removeMovieClip();
}
};
Symbol 36 MovieClip [smiley_gibs] Frame 1
_root.sound(_x, _y, "death" + (random(4) + 1));
Symbol 54 MovieClip [explo] Frame 1
_root.sound(_x, _y, "explosion");
mod = _root.gamevar_mod;
team = _root.game.players["smiley" + id].team;
var nb = _root.gamevar_nbplayers;
while (nb >= 0) {
if (_root.game.players["smiley" + nb].hitzone.hitTest(this)) {
if (_root.game.players["smiley" + nb].dead == false) {
if (mod == 1) {
_root.game.players["smiley" + nb].health = _root.game.players["smiley" + nb].health - dam;
_root.game.players["smiley" + nb].hm.hpbar._xscale = _root.game.players["smiley" + nb].health;
_root.game.players["smiley" + nb].hm._alpha = 100;
_root.game.players["smiley" + nb].last_hit = id;
} else if (_root.game.players["smiley" + nb].is_rambo) {
_root.game.players["smiley" + nb].health = _root.game.players["smiley" + nb].health - dam;
_root.game.players["smiley" + nb].hm.hpbar._xscale = _root.game.players["smiley" + nb].health;
_root.game.players["smiley" + nb].hm._alpha = 100;
_root.game.players["smiley" + nb].last_hit = id;
} else if ((mod == 3) and (team != _root.game.players["smiley" + nb].team)) {
_root.game.players["smiley" + nb].health = _root.game.players["smiley" + nb].health - dam;
_root.game.players["smiley" + nb].hm.hpbar._xscale = _root.game.players["smiley" + nb].health;
_root.game.players["smiley" + nb].hm._alpha = 100;
_root.game.players["smiley" + nb].last_hit = id;
}
}
}
nb--;
}
Symbol 54 MovieClip [explo] Frame 26
this.removeMovieClip();
Symbol 114 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 115 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 116 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 3
stop();
Symbol 117 MovieClip Frame 4
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
gotoAndStop(random(10) + 1);
Symbol 134 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun1_fire");
Symbol 134 MovieClip Frame 10
_parent.gotoAndStop("idle");
Symbol 135 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun2_fire");
Symbol 142 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 143 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun3_fire");
Symbol 148 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 149 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun4_fire");
Symbol 163 MovieClip Frame 34
_parent.gotoAndStop(1);
Symbol 164 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun5_fire");
Symbol 170 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 171 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun6_fire");
Symbol 182 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun7_fire");
Symbol 206 MovieClip Frame 55
_parent.gotoAndStop(1);
Symbol 207 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun8_fire");
Symbol 227 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 250 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun9_fire");
Symbol 250 MovieClip Frame 33
_parent.gotoAndStop(1);
Symbol 251 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 1
_root.sound(_parent._parent._parent._x, _parent._parent._parent._y, "gun9_fire");
Symbol 266 MovieClip Frame 33
_parent.gotoAndStop(1);
Symbol 267 MovieClip Frame 1
stop();
Symbol 307 MovieClip [smiley_comp] Frame 1
function get_target(Name) {
var _local7 = 10000000 /* 0x989680 */;
var _local16 = "";
if ((_root.gamevar_mod == 2) and (!is_rambo)) {
var _local3 = _root.map_players.length - 1;
while (_local3 >= 0) {
if (_root.game.players[_root.map_players[_local3]].is_rambo) {
var _local11 = false;
var _local4 = 100;
var _local10 = _root.game.players[_root.map_players[_local3]]._x;
var _local9 = _root.game.players[_root.map_players[_local3]]._y;
var _local14 = Math.atan2(_local9 - _y, _local10 - _x) / (Math.PI/180);
var _local12 = Math.sin(_local14 * (Math.PI/180)) * 10;
var _local13 = Math.cos(_local14 * (Math.PI/180)) * 10;
var _local6 = _x;
var _local5 = _y;
while (_local4 > 0) {
_local4--;
_local6 = _local6 + _local13;
_local5 = _local5 + _local12;
if (_root.game.players[_root.map_players[_local3]]._name != Name) {
if (_root.game.players[_root.map_players[_local3]].hitTest(_local6 + _parent._parent._x, _local5 + _parent._parent._y, false)) {
_local11 = true;
_local4 = 0;
}
if (_root.game.ground.hitTest(_local6 + _parent._parent._x, _local5 + _parent._parent._y, true)) {
_local4 = 0;
}
}
}
if (_local11 == true) {
var _local15 = Math.sqrt(((_local10 - _x) * (_local10 - _x)) + ((_local9 - _y) * (_local9 - _y)));
if (_local15 < _local7) {
_local7 = _local15;
_local16 = _root.game.players[_root.map_players[_local3]]._name;
}
}
}
_local3--;
}
} else if (mod == 3) {
var _local3 = _root.map_players.length - 1;
while (_local3 >= 0) {
if (_root.game.players[_root.map_players[_local3]].team != team) {
var _local11 = false;
var _local4 = 100;
var _local10 = _root.game.players[_root.map_players[_local3]]._x;
var _local9 = _root.game.players[_root.map_players[_local3]]._y;
var _local14 = Math.atan2(_local9 - _y, _local10 - _x) / (Math.PI/180);
var _local12 = Math.sin(_local14 * (Math.PI/180)) * 10;
var _local13 = Math.cos(_local14 * (Math.PI/180)) * 10;
var _local6 = _x;
var _local5 = _y;
while (_local4 > 0) {
_local4--;
_local6 = _local6 + _local13;
_local5 = _local5 + _local12;
if (_root.game.players[_root.map_players[_local3]]._name != Name) {
if (_root.game.players[_root.map_players[_local3]].hitTest(_local6 + _parent._parent._x, _local5 + _parent._parent._y, false)) {
_local11 = true;
_local4 = 0;
}
if (_root.game.ground.hitTest(_local6 + _parent._parent._x, _local5 + _parent._parent._y, true)) {
_local4 = 0;
}
}
}
if (_local11 == true) {
var _local15 = Math.sqrt(((_local10 - _x) * (_local10 - _x)) + ((_local9 - _y) * (_local9 - _y)));
if (_local15 < _local7) {
_local7 = _local15;
_local16 = _root.game.players[_root.map_players[_local3]]._name;
}
}
}
_local3--;
}
} else {
var _local3 = _root.map_players.length - 1;
while (_local3 >= 0) {
var _local11 = false;
var _local4 = 100;
var _local10 = _root.game.players[_root.map_players[_local3]]._x;
var _local9 = _root.game.players[_root.map_players[_local3]]._y;
var _local14 = Math.atan2(_local9 - _y, _local10 - _x) / (Math.PI/180);
var _local12 = Math.sin(_local14 * (Math.PI/180)) * 10;
var _local13 = Math.cos(_local14 * (Math.PI/180)) * 10;
var _local6 = _x;
var _local5 = _y;
while (_local4 > 0) {
_local4--;
_local6 = _local6 + _local13;
_local5 = _local5 + _local12;
if (_root.game.players[_root.map_players[_local3]]._name != Name) {
if (_root.game.players[_root.map_players[_local3]].hitTest(_local6 + _parent._parent._x, _local5 + _parent._parent._y, false)) {
_local11 = true;
_local4 = 0;
}
if (_root.game.ground.hitTest(_local6 + _parent._parent._x, _local5 + _parent._parent._y, true)) {
_local4 = 0;
}
}
}
if (_local11 == true) {
var _local15 = Math.sqrt(((_local10 - _x) * (_local10 - _x)) + ((_local9 - _y) * (_local9 - _y)));
if (_local15 < _local7) {
_local7 = _local15;
_local16 = _root.game.players[_root.map_players[_local3]]._name;
}
}
_local3--;
}
}
return(_local16);
}
function colliding_wp(x, y) {
var _local2 = _root.map_waypoints.length - 1;
while (_local2 >= 0) {
xdif = _root.map_waypoints[_local2][0] - x;
ydif = _root.map_waypoints[_local2][1] - y;
if ((((xdif < 20) and (xdif > -20)) and (ydif < 20)) and (ydif > -20)) {
return(_root.map_waypoints[_local2][2]);
}
_local2--;
}
}
stop();
rar._visible = false;
var mod = _root.gamevar_mod;
var weapon = (random(9) + 1);
var weapon_mem = weapon;
if (_root.gamevar_challenge == false) {
var eye = (random(10) + 1);
var hat = (random(19) + 1);
var Name = _root.names[random(_root.names.length)];
}
var health = 100;
var g = 0.7;
var f = 0.9;
var xv = 0;
var yv = 0;
var ls = 0;
var rs = 0;
var s = 0.4;
var sl = 7;
var gm = 12;
var gr = 0;
var inct = 0;
var inct2 = 0;
var shooting = false;
var j = 13;
var rambo_count = 0;
dead = false;
death = 0;
_root.score[tag] = Array(Name, 0, 0);
var guns_cooldown = _root.guns_cooldown;
var guns_damage = _root.guns_damage;
var guns_bullet_id = _root.guns_bullet_id;
var guns_bullet_speed = _root.guns_bullet_speed;
var guns_ammo = _root.copy_array(_root.guns_ammo);
cooldown = 0;
guns_auto = [false, true, false, false, true];
tg = false;
jumped = false;
xcam = _x;
ycam = _y;
md = false;
ad = false;
jumping = 0;
target = "";
LK = false;
RK = false;
UK = false;
next_wp = "";
current_wp = "";
path = [];
path_id = 0;
if (random(2) == 1) {
LK = true;
} else {
RK = true;
}
fuckit = 0;
chk_counter = random(5);
tg_c = random(60);
this.onEnterFrame = function () {
if (!dead) {
if (health <= 0) {
_root.create_smiley_boom(_x, _y);
if (mod == 1) {
if (last_hit != tag) {
_root.score[tag][2]++;
_root.score[last_hit][1]++;
} else {
_root.score[tag][2]++;
_root.score[tag][1]--;
}
} else if (mod == 3) {
_root.score[tag][2]++;
_root.score[last_hit][1]++;
if (team == 1) {
_root.team2_score++;
} else {
_root.team1_score++;
}
}
dead = true;
}
if (hm._alpha > 0) {
hm._alpha = hm._alpha - 5;
}
difx = _x - wx;
dify = _y - wy;
if (difx < -1) {
RK = true;
LK = false;
} else if (difx > 1) {
RK = false;
LK = true;
}
tg_c--;
if (tg_c < 0) {
target = get_target(_name);
tg_c = 20;
}
chk_counter--;
fuckit++;
if (chk_counter < 0) {
tway = 0;
tway = colliding_wp(_x, _y);
if (fuckit > 120) {
next_wp = "";
end_wp = "";
path = [];
path_id = 0;
fuckit = 0;
wx = 0;
wy = 0;
difx = 0;
dify = 0;
current_wp = "";
if (random(2) == 1) {
LK = true;
} else {
RK = true;
}
}
if (((tway != 0) and (tway != undefined)) and (tway != current_wp)) {
fuckit = 0;
current_wp = tway;
if (current_wp == end_wp) {
done = false;
done2 = false;
while ((!done) or (!done2)) {
id = random(_root.map_waypoints.length);
if (_root.map_waypoints[id][2] != current_wp) {
done = true;
}
path = _root.calculate_path(current_wp, _root.map_waypoints[id][2]);
if (path.length > 2) {
done2 = true;
}
}
path_id = 1;
next_wp = path[path_id];
end_wp = path[path.length - 1];
}
if (current_wp == next_wp) {
path_id++;
next_wp = path[path_id];
if (random(5) == 0) {
dest = _root.game.players[target].current_wp;
working_paths_ids = new Array();
if ((((target != "") and (dest != "")) and (dest != undefined)) and (dest != current_wp)) {
path = _root.calculate_path(current_wp, dest);
path_id = 1;
next_wp = path[path_id];
end_wp = path[path.length - 1];
}
} else if (random(5) < 2) {
done = false;
done2 = false;
while ((!done) or (!done2)) {
id = random(_root.map_waypoints.length);
if (_root.map_waypoints[id][2] != current_wp) {
done = true;
}
path = _root.calculate_path(current_wp, _root.map_waypoints[id][2]);
if (path.length > 2) {
done2 = true;
}
}
path_id = 1;
next_wp = path[path_id];
end_wp = path[path.length - 1];
}
} else if ((next_wp == "") or (next_wp == undefined)) {
dest = _root.game.players[target].current_wp;
working_paths_ids = new Array();
if ((((target != "") and (dest != "")) and (dest != undefined)) and (dest != current_wp)) {
path = _root.calculate_path(current_wp, dest);
path_id = 1;
next_wp = path[path_id];
end_wp = path[path.length - 1];
} else {
done = false;
done2 = false;
while ((!done) or (!done2)) {
id = random(_root.map_waypoints.length);
if (_root.map_waypoints[id][2] != current_wp) {
done = true;
}
path = _root.calculate_path(current_wp, _root.map_waypoints[id][2]);
if (path.length > 2) {
done2 = true;
}
}
path_id = 1;
next_wp = path[path_id];
end_wp = path[path.length - 1];
}
}
var _local5 = _root.map_waypoints.length - 1;
while (_local5 >= 0) {
if (_root.map_waypoints[_local5][2] == next_wp) {
wx = _root.map_waypoints[_local5][0];
wy = _root.map_waypoints[_local5][1];
}
_local5--;
}
link_id = 0;
var _local4 = _root.map_links.length - 1;
while (_local4 >= 0) {
if (_root.map_links[_local4][0] == current_wp) {
if (_root.map_links[_local4][1] == next_wp) {
link_id = _local4;
}
} else if (_root.map_links[_local4][1] == current_wp) {
if (_root.map_links[_local4][0] == next_wp) {
link_id = _local4;
}
}
_local4--;
}
link_type = _root.map_links[link_id][2];
link_side = _root.map_links[link_id][3];
}
if (link_type == 2) {
if (link_side == "both") {
UK = true;
} else if ((dify > 0) and (link_side == "up")) {
UK = true;
} else if ((dify < 0) and (link_side == "down")) {
UK = true;
} else {
UK = false;
}
} else {
UK = false;
}
chk_counter = 3;
}
if (_root.game.ground.hitTest((_x + _parent._parent._x) - 7, (_y + _parent._parent._y) + 8, true) or _root.game.ground.hitTest((_x + _parent._parent._x) + 7, (_y + _parent._parent._y) + 8, true)) {
tg = true;
} else {
tg = false;
}
if (_root.PAUSE == false) {
if (LK) {
if (ls < sl) {
ls = ls + s;
} else {
ls = sl;
}
} else if (ls > 0) {
ls = ls - (s * 2);
} else {
ls = 0;
}
if (RK) {
if (rs < sl) {
rs = rs + s;
} else {
rs = sl;
}
} else if (rs > 0) {
rs = rs - (s * 2);
} else {
rs = 0;
}
if (tg) {
if (UK) {
jumped = true;
gr = -j;
tg = false;
UK = false;
}
}
if (!tg) {
if (gr < gm) {
gr = gr + g;
} else {
gr = gm;
}
} else {
gr = 1;
}
if ((mod == 2) and is_rambo) {
rambo_count++;
if (rambo_count > 30) {
_root.score[tag][1]++;
rambo_count = 0;
}
}
}
if (rs > ls) {
if (_root.game.ground.hitTest((((_x + _parent._parent._x) + 10) + rs) - ls, (_y + _parent._parent._y) - 2, true)) {
rs = 0;
}
} else if (_root.game.ground.hitTest((((_x + _parent._parent._x) - 10) + rs) - ls, (_y + _parent._parent._y) - 2, true)) {
ls = 0;
}
if (gr < 0) {
if (_root.game.ground.hitTest((_x + _parent._parent._x) - 7, (_y + _parent._parent._y) - 7, true)) {
gr = gr * -0.5;
} else if (_root.game.ground.hitTest((_x + _parent._parent._x) + 7, (_y + _parent._parent._y) - 7, true)) {
gr = gr * -0.5;
}
}
_y = (_y + gr);
_x = (_x + (rs - ls));
while (_root.game.ground.hitTest((_x + _parent._parent._x) - 7, (_y + _parent._parent._y) + 7, true)) {
_y = (_y - 0.2);
}
while (_root.game.ground.hitTest((_x + _parent._parent._x) + 7, (_y + _parent._parent._y) + 7, true)) {
_y = (_y - 0.2);
}
if (mod == 3) {
team_badge._visible = true;
team_badge.gotoAndStop(team);
} else {
team_badge._visible = false;
}
if (_root.PAUSE == false) {
if (jumped) {
anims.gotoAndStop(2);
jumped = false;
jumping = 0;
} else if (tg) {
if (jumping > 30) {
anims.gotoAndStop(3);
} else if (jumping > 10) {
anims.gotoAndStop(4);
}
jumping = 0;
} else {
jumping++;
}
spawn_e._visible = false;
anims._visible = true;
weps._visible = true;
} else {
anims._visible = false;
weps._visible = false;
spawn_e._visible = true;
}
weps.gotoAndStop(weapon);
anims.anim.base.hats.gotoAndStop(hat);
anims.anim.base.eyes.gotoAndStop(eye);
if (is_rambo) {
weapon = 11;
rar._visible = true;
anims.anim.base.hats._visible = false;
anims.anim.base.rambo_hat._visible = true;
} else if (weapon == 11) {
weapon = 1;
}
if (!is_rambo) {
rar._visible = false;
anims.anim.base.rambo_hat._visible = false;
anims.anim.base.hats._visible = true;
if (guns_ammo[weapon - 1] <= 0) {
if (weapon < 9) {
weapon++;
} else {
weapon = 1;
}
}
}
if (!_root.PAUSE) {
cooldown--;
if ((target != "") and (target != undefined)) {
sfact = Math.random();
if (sfact > 0.7) {
shooting = true;
} else {
shooting = false;
}
} else {
shooting = false;
}
if (!guns_auto[weapon - 1]) {
if (shooting) {
if (cooldown <= 0) {
if (guns_ammo[weapon - 1] > 0) {
weps.wep.gotoAndStop("idle");
weps.wep.gotoAndStop("shoot");
_root.create_bullet(_x, _y, weps._rotation, guns_bullet_speed[weapon - 1], 1, guns_damage[weapon - 1], guns_bullet_id[weapon - 1], tag);
ad = true;
cooldown = guns_cooldown[weapon - 1];
guns_ammo[weapon - 1]--;
}
}
}
} else if (shooting) {
if (cooldown <= 0) {
if (guns_ammo[weapon - 1] > 0) {
weps.wep.gotoAndStop("idle");
weps.wep.gotoAndStop("shoot");
_root.create_bullet(_x, _y, weps._rotation, guns_bullet_speed[weapon - 1], 1, guns_damage[weapon - 1], guns_bullet_id[weapon - 1], tag);
cooldown = guns_cooldown[weapon - 1];
guns_ammo[weapon - 1]--;
}
}
}
}
tax = _root.game.players[target]._x;
tay = _root.game.players[target]._y;
if (weapon != 7) {
inct = inct + (Math.random() / 2);
var _local6 = Math.sin(inct) * 20;
inct2 = inct2 + (Math.random() / 2);
var _local7 = Math.sin(inct2) * 20;
tax = tax + _local7;
tay = tay + _local6;
dot._x = tax - _x;
dot._y = tay - _y;
}
if (weapon == 6) {
tay = tay - 50;
} else if (weapon == 8) {
tay = tay - 30;
} else if (weapon == 9) {
tay = tay - 5;
}
if (target != "") {
if (tax >= _x) {
weps._yscale = 100;
anims._yscale = 100;
weps._rotation = (Math.atan2(tay - _y, tax - _x) / (Math.PI/180)) + 360;
anims._rotation = (Math.atan2(tay - _y, tax - _x) / (Math.PI/180)) / 2;
}
if (tax < _x) {
weps._yscale = -100;
anims._yscale = -100;
weps._rotation = (Math.atan2(tay - _y, tax - _x) / (Math.PI/180)) + 360;
anims._rotation = ((Math.atan2(_y - tay, _x - tax) / (Math.PI/180)) / 2) + 180;
}
}
if (jumping > 200) {
this.dead = true;
death = 0;
}
} else if (dead == true) {
if (death == 0) {
if (is_rambo) {
_root.game.players["smiley" + last_hit].is_rambo = true;
_root.game.players["smiley" + last_hit].health = 100;
is_rambo = false;
}
hm._alpha = 0;
spwnNb = random(_root.map_spawnpoints.length);
_x = _root.map_spawnpoints[spwnNb][0];
_y = _root.map_spawnpoints[spwnNb][1];
weps._visible = false;
anims._visible = false;
spawn_e._visible = true;
rar._visible = false;
arrows_d = arrows.getNextHighestDepth();
while (arrows_d >= 0) {
this.arrows["arrow" + arrows_d].removeMovieClip();
arrows_d--;
}
}
death++;
if (death > 60) {
rs = 0;
ls = 0;
jumping = 0;
gr = 0;
health = 100;
weapon = random(9) + 1;
dead = false;
death = 0;
}
}
};
Symbol 308 MovieClip [arrow_rambo] Frame 156
this.removeMovieClip();
Symbol 348 MovieClip Frame 1
ac = false;
team = 1;
if (_parent._name == "hud") {
_root.teams = [];
}
this.onEnterFrame = function () {
if ((_root.score.length == _root.gamevar_nbplayers) and (!ac)) {
if (_root.gamevar_mod == 1) {
a = _root.score.length;
while (a > 0) {
id = a - 1;
bob = attachMovie("score_entry", id, id);
bob.id = id;
bob._x = 25;
bob._y = 65 + (id * 20);
_root.teams[id] = 0;
a--;
}
} else if (_root.gamevar_mod == 2) {
a = _root.score.length;
while (a > 0) {
id = a - 1;
bob = attachMovie("score_entry", id, id);
bob.id = id;
bob._x = 25;
bob._y = 65 + (id * 20);
_root.teams[id] = 3;
a--;
}
} else if (_root.gamevar_mod == 3) {
a = 1;
while (a <= _root.score.length) {
id = a - 1;
bob = attachMovie("score_entry", id, id);
bob.id = id;
bob._x = 25;
bob._y = 65 + (id * 20);
if (_parent._name == "hud") {
_root.teams[id] = _root.game.players["smiley" + id].team;
}
a++;
}
}
ac = true;
}
};
Symbol 360 MovieClip [hud] Frame 1
scoreb._visible = false;
goal_type = _root.gamevar_goal_type;
goal = _root.gamevar_goal;
if (_root.gamevar_mod != 3) {
teams._visible = false;
}
timer._visible = false;
if (goal_type == 1) {
timeleft = _root.gamevar_goal;
timer._visible = true;
}
fr = 0;
update = 5;
this.onEnterFrame = function () {
update--;
if (goal_type == 1) {
fr++;
if (fr >= 40) {
timeleft--;
fr = 0;
}
timer.timer.text = timeleft;
if (timeleft == 0) {
sc = 0;
win = false;
winner = "";
if (_root.gamevar_mod != 3) {
a = _root.score.length - 1;
while (a >= 0) {
if (_root.score[a][1] > sc) {
winner = _root.score[a][0];
sc = _root.score[a][1];
}
a--;
}
if (winner == _root.Acc_n) {
win = true;
}
} else if (_root.gamevar_mod == 3) {
if (_root.team1_score > _root.team2_score) {
winner = "Team Red";
win = true;
} else {
winner = "Team Blue";
}
}
type = _root.gamevar_mod;
_root.terminated(winner, type, win);
}
}
if (update <= 0) {
if (goal_type == 0) {
sc = 0;
win = false;
winner = "";
if (_root.gamevar_mod != 3) {
a = _root.score.length - 1;
while (a >= 0) {
if (_root.score[a][1] > sc) {
winner = _root.score[a][0];
sc = _root.score[a][1];
}
a--;
}
if (sc >= goal) {
if (winner == _root.Acc_n) {
win = true;
}
type = _root.gamevar_mod;
_root.terminated(winner, type, win);
}
} else if (_root.team1_score >= goal) {
winner = "Team Red";
win = true;
type = _root.gamevar_mod;
_root.terminated(winner, type, win);
} else if (_root.team2_score >= goal) {
winner = "Team Blue";
win = false;
type = _root.gamevar_mod;
_root.terminated(winner, type, win);
}
}
health_bar._xscale = _root.game.players.smiley0.health;
display_ammo = _root.game.players.smiley0.display_ammo;
wep = _root.game.players.smiley0.weapon;
wind.w1 = _root.game.players.smiley0.guns_ammo[0];
wind.w2 = _root.game.players.smiley0.guns_ammo[1];
wind.w3 = _root.game.players.smiley0.guns_ammo[2];
wind.w4 = _root.game.players.smiley0.guns_ammo[3];
wind.w5 = _root.game.players.smiley0.guns_ammo[4];
wind.w6 = _root.game.players.smiley0.guns_ammo[5];
wind.w7 = _root.game.players.smiley0.guns_ammo[6];
wind.w8 = _root.game.players.smiley0.guns_ammo[7];
wind.w9 = _root.game.players.smiley0.guns_ammo[8];
update = 10;
}
cooldown = _root.game.players.smiley0.display_cooldown;
cd._alpha = cooldown;
if (Key.isDown(69)) {
scoreb._visible = true;
} else {
scoreb._visible = false;
}
};
stop();
Symbol 364 MovieClip [waypoint] Frame 1
display = ((("(" + _x) + " , ") + _y) + ")";
Symbol 389 MovieClip Frame 118
_root.PAUSE = false;
this._parent.removeMovieClip();
Symbol 393 MovieClip [calculator] Frame 1
count = _root.paths_to_calculate.length - 1;
o = count;
if (_root.maps_paths[_root.gamevar_path_id].length != undefined) {
Calc = false;
} else {
Calc = true;
}
this.onEnterFrame = function () {
_root.loading_info.gotoAndStop(4);
_root.play();
this.removeMovieClip();
};
Symbol 394 MovieClip [bullet2] Frame 1
var dy = (Math.sin(rot * (Math.PI/180)) * vitesse);
var dx = (Math.cos(rot * (Math.PI/180)) * vitesse);
_x = (_x + (dx * 1));
_y = (_y + (dy * 1));
timer = 60;
bounce = 0;
_rotation = rot;
rota = (Math.random() * 40) - 20;
this.onEnterFrame = function () {
var _local4 = 2;
while (_local4 > 0) {
_rotation = (_rotation + rota);
dx = dx / 1.005;
dy = dy + 0.2;
timer--;
_x = (_x + dx);
_y = (_y + dy);
if ((timer < 0) or (bounce < 0)) {
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
}
var _local6 = _x + _parent._parent._x;
var _local5 = _y + _parent._parent._y;
if (_root.game.ground.hitTest(_local6, _local5, true)) {
dy = dy / -1.5;
_y = (_y + dy);
bounce--;
rota = (Math.random() * 40) - 20;
}
_local4--;
}
};
Symbol 396 MovieClip [bullet3] Frame 1
var dy = (Math.sin(rot * (Math.PI/180)) * vitesse);
var dx = (Math.cos(rot * (Math.PI/180)) * vitesse);
_x = (_x + (dx * 4));
_y = (_y + (dy * 4));
timer = 120;
_rotation = rot;
mod = _root.gamevar_mod;
bounce = 6;
rota = (Math.random() * 40) - 20;
team = _root.game.players["smiley" + id].team;
this.onEnterFrame = function () {
b = 2;
while (b > 0) {
_rotation = (_rotation + rota);
dx = dx / 1.005;
dy = dy + 0.15;
timer--;
_x = (_x + dx);
_y = (_y + dy);
if ((timer < 0) or (bounce < 0)) {
_root.create_explo(_x, _y, id);
removeMovieClip(this);
}
var _local6 = _x + _parent._parent._x;
var _local5 = _y + _parent._parent._y;
if (_root.game.ground.hitTest(_local6, _local5 + 6, true) and (dy > 0)) {
dy = dy / -1.5;
_y = (_y + dy);
bounce--;
rota = (Math.random() * 80) - 40;
_root.sound(_x, _y, "grenade_bounce");
} else if (_root.game.ground.hitTest(_local6, _local5 - 6, true) and (dy < 0)) {
dy = dy / -1.5;
_y = (_y + dy);
bounce--;
rota = (Math.random() * 80) - 40;
_root.sound(_x, _y, "grenade_bounce");
} else if (_root.game.ground.hitTest(_local6 + 6, _local5, true) and (dx > 0)) {
dx = dx / -1.5;
_x = (_x + dx);
bounce--;
rota = (Math.random() * 80) - 40;
_root.sound(_x, _y, "grenade_bounce");
} else if (_root.game.ground.hitTest(_local6 - 6, _local5, true) and (dx < 0)) {
dx = dx / -1.5;
_x = (_x + dx);
bounce--;
rota = (Math.random() * 80) - 40;
_root.sound(_x, _y, "grenade_bounce");
}
if (_visible) {
var _local4 = _root.gamevar_nbplayers;
while (_local4 >= 0) {
if (_root.game.players["smiley" + _local4].hitzone.hitTest(_local6, _local5, false)) {
if (_root.game.players["smiley" + _local4].dead == false) {
if (mod == 1) {
b = 0;
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
} else if (_root.game.players["smiley" + _local4].is_rambo) {
b = 0;
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
} else if ((mod == 3) and (_root.game.players["smiley" + _local4].team != team)) {
b = 0;
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
}
}
}
_local4--;
}
}
b--;
}
};
Symbol 397 MovieClip [bullet6] Frame 1
var dy = (Math.sin(rot * (Math.PI/180)) * vitesse);
var dx = (Math.cos(rot * (Math.PI/180)) * vitesse);
js = 1;
_visible = false;
var timer = 100;
var dead = false;
_rotation = rot;
Add = (Math.random() * 10) - 5;
this.onEnterFrame = function () {
js++;
if (!dead) {
b = 5;
while (b > 0) {
if ((js == 3) and (b == 5)) {
_visible = true;
_rotation = (_rotation + Add);
rot = _rotation;
dy = Math.sin(rot * (Math.PI/180)) * vitesse;
dx = Math.cos(rot * (Math.PI/180)) * vitesse;
}
timer--;
_x = (_x + dx);
_y = (_y + dy);
if (timer < 0) {
removeMovieClip(this);
}
if (_root.game.ground.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
b = 0;
this.dead = true;
this.play();
}
if (_visible) {
var _local4 = _root.gamevar_nbplayers;
while (_local4 >= 0) {
if (_root.game.players["smiley" + _local4].hitzone.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, false)) {
if (_root.game.players["smiley" + _local4].dead == false) {
_root.game.players["smiley" + _local4].health = _root.game.players["smiley" + _local4].health - dam;
_root.game.players["smiley" + _local4].hm.hpbar._xscale = _root.game.players["smiley" + _local4].health;
_root.game.players["smiley" + _local4].hm._alpha = 100;
_root.game.players["smiley" + _local4].last_hit = id;
i = _root.game.players["smiley" + _local4].arrows.getNextHighestDepth();
arr = _root.game.players["smiley" + _local4].arrows.attachMovie("arrow_rambo", "arrow" + i, i);
arr._rotation = _rotation;
b = 0;
dead = true;
this.removeMovieClip();
}
}
_local4--;
}
}
b--;
}
}
};
stop();
Symbol 397 MovieClip [bullet6] Frame 30
removeMovieClip(this);
Symbol 399 MovieClip [bullet4] Frame 1
var dy = (Math.sin(rot * (Math.PI/180)) * vitesse);
var dx = (Math.cos(rot * (Math.PI/180)) * vitesse);
js = 1;
_visible = false;
var timer = 100;
var dead = false;
mod = _root.gamevar_mod;
_rotation = rot;
Add = (Math.random() * 10) - 5;
team = _root.game.players["smiley" + id].team;
this.onEnterFrame = function () {
js++;
if (!dead) {
b = 5;
while (b > 0) {
if ((js == 3) and (b == 5)) {
_visible = true;
_rotation = (_rotation + Add);
rot = _rotation;
dy = Math.sin(rot * (Math.PI/180)) * vitesse;
dx = Math.cos(rot * (Math.PI/180)) * vitesse;
}
timer--;
_x = (_x + dx);
_y = (_y + dy);
if (timer < 0) {
removeMovieClip(this);
}
if (_root.game.ground.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
b = 0;
this.dead = true;
this.play();
}
if (_visible) {
var _local4 = _root.gamevar_nbplayers;
while (_local4 >= 0) {
if (_root.game.players["smiley" + _local4].hitzone.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, false)) {
if (_root.game.players["smiley" + _local4].dead == false) {
if (mod == 1) {
b = 0;
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
} else if (_root.game.players["smiley" + _local4].is_rambo) {
b = 0;
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
} else if ((mod == 3) and (_root.game.players["smiley" + _local4].team != team)) {
b = 0;
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
}
}
}
_local4--;
}
}
b--;
}
}
};
stop();
Symbol 399 MovieClip [bullet4] Frame 30
_root.create_explo(_x, _y, dam, id);
removeMovieClip(this);
Symbol 405 MovieClip [bullet5] Frame 1
var dy = (Math.sin(rot * (Math.PI/180)) * vitesse);
var dx = (Math.cos(rot * (Math.PI/180)) * vitesse);
js = 1;
_visible = false;
var timer = 100;
var dead = false;
mod = _root.gamevar_mod;
_rotation = rot;
Add = (Math.random() * 40) - 20;
team = _root.game.players["smiley" + id].team;
this.onEnterFrame = function () {
js++;
if (!dead) {
b = 5;
while (b > 0) {
if ((js == 3) and (b == 5)) {
_visible = true;
_rotation = (_rotation + Add);
rot = _rotation;
dy = Math.sin(rot * (Math.PI/180)) * vitesse;
dx = Math.cos(rot * (Math.PI/180)) * vitesse;
}
timer--;
_x = (_x + dx);
_y = (_y + dy);
if (timer < 0) {
removeMovieClip(this);
}
if (_root.game.ground.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
b = 0;
dead = true;
this.play();
}
if (_visible) {
var _local4 = _root.gamevar_nbplayers;
while (_local4 >= 0) {
if (_root.game.players["smiley" + _local4].hitzone.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, false)) {
if (_root.game.players["smiley" + _local4].dead == false) {
if ((mod == 3) and (_root.game.players["smiley" + _local4].team != team)) {
_root.game.players["smiley" + _local4].health = _root.game.players["smiley" + _local4].health - dam;
_root.game.players["smiley" + _local4].hm.hpbar._xscale = _root.game.players["smiley" + _local4].health;
_root.game.players["smiley" + _local4].hm._alpha = 100;
_root.game.players["smiley" + _local4].last_hit = id;
b = 0;
dead = true;
this.play();
} else if ((_root.game.players["smiley" + _local4].is_rambo == true) and (mod == 2)) {
_root.game.players["smiley" + _local4].health = _root.game.players["smiley" + _local4].health - dam;
_root.game.players["smiley" + _local4].hm.hpbar._xscale = _root.game.players["smiley" + _local4].health;
_root.game.players["smiley" + _local4].hm._alpha = 100;
_root.game.players["smiley" + _local4].last_hit = id;
b = 0;
dead = true;
this.play();
} else if (mod == 1) {
_root.game.players["smiley" + _local4].health = _root.game.players["smiley" + _local4].health - dam;
_root.game.players["smiley" + _local4].hm.hpbar._xscale = _root.game.players["smiley" + _local4].health;
_root.game.players["smiley" + _local4].hm._alpha = 100;
_root.game.players["smiley" + _local4].last_hit = id;
b = 0;
dead = true;
this.play();
}
}
}
_local4--;
}
}
b--;
}
}
};
stop();
Symbol 405 MovieClip [bullet5] Frame 2
_root.sound(_x, _y, "ric" + (random(7) + 1));
Symbol 405 MovieClip [bullet5] Frame 6
this.removeMovieClip();
Symbol 407 MovieClip [bullet1] Frame 1
var dy = (Math.sin(rot * (Math.PI/180)) * vitesse);
var dx = (Math.cos(rot * (Math.PI/180)) * vitesse);
js = 1;
mod = _root.gamevar_mod;
_visible = false;
var timer = 100;
var dead = false;
_rotation = rot;
team = _root.game.players["smiley" + id].team;
this.onEnterFrame = function () {
js++;
if (!dead) {
b = 5;
while (b > 0) {
if ((js == 3) and (b == 5)) {
_visible = true;
}
timer--;
_x = (_x + dx);
_y = (_y + dy);
if (timer < 0) {
removeMovieClip(this);
}
if (_root.game.ground.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
b = 0;
dead = true;
this.play();
}
if (_visible) {
var _local4 = _root.gamevar_nbplayers;
while (_local4 >= 0) {
if (_root.game.players["smiley" + _local4].hitzone.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, false)) {
if (_root.game.players["smiley" + _local4].dead == false) {
if ((mod == 3) and (_root.game.players["smiley" + _local4].team != team)) {
_root.game.players["smiley" + _local4].health = _root.game.players["smiley" + _local4].health - dam;
_root.game.players["smiley" + _local4].hm.hpbar._xscale = _root.game.players["smiley" + _local4].health;
_root.game.players["smiley" + _local4].hm._alpha = 100;
_root.game.players["smiley" + _local4].last_hit = id;
b = 0;
dead = true;
this.play();
} else if ((_root.game.players["smiley" + _local4].is_rambo == true) and (mod == 2)) {
_root.game.players["smiley" + _local4].health = _root.game.players["smiley" + _local4].health - dam;
_root.game.players["smiley" + _local4].hm.hpbar._xscale = _root.game.players["smiley" + _local4].health;
_root.game.players["smiley" + _local4].hm._alpha = 100;
_root.game.players["smiley" + _local4].last_hit = id;
b = 0;
dead = true;
this.play();
} else if (mod == 1) {
_root.game.players["smiley" + _local4].health = _root.game.players["smiley" + _local4].health - dam;
_root.game.players["smiley" + _local4].hm.hpbar._xscale = _root.game.players["smiley" + _local4].health;
_root.game.players["smiley" + _local4].hm._alpha = 100;
_root.game.players["smiley" + _local4].last_hit = id;
b = 0;
dead = true;
this.play();
}
}
}
_local4--;
}
}
b--;
}
}
};
stop();
Symbol 407 MovieClip [bullet1] Frame 2
_root.sound(_x, _y, "ric" + (random(7) + 1));
Symbol 407 MovieClip [bullet1] Frame 6
this.removeMovieClip();
Symbol 434 MovieClip [weapon_taker] Frame 1
timer = random(300);
havegun = false;
wep._visible = false;
stand.glow._visible = false;
altern = 0;
this.onEnterFrame = function () {
altern++;
if (havegun) {
if (altern > 6) {
var _local2 = _root.gamevar_nbplayers;
while (_local2 >= 0) {
if (_root.game.players["smiley" + _local2].hitzone.hitTest(hitzone)) {
if (_root.game.players["smiley" + _local2].dead == false) {
_root.game.players["smiley" + _local2].guns_ammo[weapon - 1] = _root.game.players["smiley" + _local2].guns_ammo[weapon - 1] + _root.guns_take[weapon - 1];
if (_local2 != 0) {
_root.game.players["smiley" + _local2].weapon = weapon;
}
_root.sound(x, y, "pickupgun");
timer = 100 + random(200);
wep._visible = false;
stand.glow._visible = false;
havegun = false;
}
}
_local2--;
}
altern = 0;
}
} else {
timer--;
if (timer < 0) {
weapon = random(9) + 1;
wep.wep.gotoAndStop(weapon);
wep._visible = true;
stand.glow._visible = true;
havegun = true;
}
}
};
Symbol 436 MovieClip [cursor] Frame 1
this.onEnterFrame = function () {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
};
Symbol 438 MovieClip [checker] Frame 1
this.onEnterFrame = function () {
arg.text = _root.maps_paths[_root.gamevar_map_id].length;
};
Symbol 446 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 448 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 451 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 453 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 456 MovieClip [Defaults] Frame 1
#initclip 44
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 457 MovieClip [UIObjectExtensions] Frame 1
#initclip 45
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 458 MovieClip [UIObject] Frame 1
#initclip 46
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 461 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 462 MovieClip Frame 1
#initclip 47
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 463 MovieClip [FocusRect] Frame 1
#initclip 48
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 464 MovieClip [FocusManager] Frame 1
#initclip 49
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 465 MovieClip [UIComponentExtensions] Frame 1
#initclip 50
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 466 MovieClip [UIComponent] Frame 1
#initclip 51
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 467 MovieClip [SimpleButton] Frame 1
#initclip 52
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 468 MovieClip [Border] Frame 1
#initclip 53
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 469 MovieClip [RectBorder] Frame 1
#initclip 54
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 470 MovieClip [ButtonSkin] Frame 1
#initclip 55
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 471 MovieClip [Button] Frame 1
#initclip 56
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 467 MovieClip [SimpleButton] in Symbol 471 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 472 MovieClip [CustomBorder] Frame 1
#initclip 57
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 484 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 486 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 497 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 499 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 506 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 527 MovieClip [BtnDownArrow] Frame 1
#initclip 58
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 528 MovieClip [BtnUpArrow] Frame 1
#initclip 59
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 530 MovieClip [VScrollBar] Frame 1
#initclip 60
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 471 MovieClip [Button] in Symbol 530 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 467 MovieClip [SimpleButton] in Symbol 530 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 531 MovieClip [HScrollBar] Frame 1
#initclip 61
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 471 MovieClip [Button] in Symbol 531 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 467 MovieClip [SimpleButton] in Symbol 531 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 532 MovieClip [UIScrollBar] Frame 1
#initclip 62
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 530 MovieClip [VScrollBar] in Symbol 532 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 531 MovieClip [HScrollBar] in Symbol 532 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 564 MovieClip [TextInput] Frame 1
#initclip 63
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 565 MovieClip [ComboBase] Frame 1
#initclip 64
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 467 MovieClip [SimpleButton] in Symbol 565 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 564 MovieClip [TextInput] in Symbol 565 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 566 MovieClip [DataProvider] Frame 1
#initclip 65
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 567 MovieClip [DataSelector] Frame 1
#initclip 66
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 568 MovieClip [SelectableRow] Frame 1
#initclip 67
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 569 MovieClip [View] Frame 1
#initclip 68
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 570 MovieClip [ScrollView] Frame 1
#initclip 69
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 531 MovieClip [HScrollBar] in Symbol 570 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 530 MovieClip [VScrollBar] in Symbol 570 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 571 MovieClip [ScrollSelectList] Frame 1
#initclip 70
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 572 MovieClip [List] Frame 1
#initclip 71
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 578 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 72
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 580 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 583 MovieClip [ComboAssets] Frame 1
#initclip 73
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.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, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 584 MovieClip [ComboBox] Frame 1
#initclip 74
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 572 MovieClip [List] in Symbol 584 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 602 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 612 Button
on (release) {
_root.play();
}
Symbol 614 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 614 MovieClip Frame 2
gotoAndPlay (1);
Symbol 439 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 440 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 441 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 442 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent;
function UIScrollBar () {
super();
}
function init(Void) {
super.init();
textField.owner = this;
horizontal = (wasHorizontal);
if (horizontal) {
((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height)));
} else {
((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height)));
}
if (horizontal) {
var _local3 = __width;
__height = __width;
width = _local3;
__width = 16;
}
textField.onScroller = function () {
this.hPosition = this.hscroll;
this.vPosition = this.scroll - 1;
};
if (_targetInstanceName != undefined) {
setScrollTarget(_targetInstanceName);
_targetInstanceName.addListener(this);
}
}
function get _targetInstanceName() {
return(textField);
}
function get height() {
if (wasHorizontal) {
return(__width);
}
return(__height);
}
function get width() {
if (wasHorizontal) {
return(__height);
}
return(__width);
}
function size(Void) {
super.size();
onTextChanged();
}
function draw() {
super.draw();
}
function set _targetInstanceName(t) {
if (t == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
var _local3 = _parent[t];
textField = _parent[t];
onTextChanged();
//return(_targetInstanceName);
}
function setSize(w, h) {
if (horizontal) {
super.setSize(h, w);
} else {
super.setSize(w, h);
}
}
function onTextChanged(Void) {
if (textField == undefined) {
return(undefined);
}
clearInterval(synchScroll);
if (horizontal) {
var _local2 = textField.hscroll;
setScrollProperties(textField._width, 0, textField.maxhscroll);
__set__scrollPosition(Math.min(_local2, textField.maxhscroll));
} else {
var _local2 = textField.scroll;
var _local3 = textField.bottomScroll - textField.scroll;
setScrollProperties(_local3, 1, textField.maxscroll);
__set__scrollPosition(Math.min(_local2, textField.maxscroll));
}
}
function get horizontal() {
return(wasHorizontal);
}
function set horizontal(v) {
wasHorizontal = v;
if (v and initializing) {
if (_rotation == 90) {
return;
}
_xscale = -100;
_rotation = -90;
}
if (!initializing) {
if (v) {
if (_rotation == 0) {
_rotation = -90;
_xscale = -100;
}
} else if (_rotation == -90) {
_rotation = 0;
_xscale = 100;
}
}
//return(horizontal);
}
function callback(prop, oldval, newval) {
clearInterval(hScroller.synchScroll);
clearInterval(vScroller.synchScroll);
hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50);
vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50);
return(newval);
}
function setScrollTarget(tF) {
if (tF == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
textField = tF;
if (horizontal) {
textField.hScroller = this;
textField.hScroller.lineScrollSize = 5;
} else {
textField.vScroller = this;
textField.vScroller.lineScrollSize = 1;
}
onTextChanged();
onChanged = function (Void) {
this.onTextChanged();
};
onScroller = function (Void) {
if (!this.isScrolling) {
if (!this.horizontal) {
this.scrollPosition = this.textField.scroll;
} else {
this.scrollPosition = this.textField.hscroll;
}
}
};
textField.addListener(this);
textField.watch("text", callback);
textField.watch("htmlText", callback);
}
function scrollHandler(Void) {
if (horizontal) {
var _local2 = textField.background;
textField.hscroll = scrollPosition;
textField.background = _local2;
} else {
textField.scroll = scrollPosition;
}
}
function setEnabled(enable) {
super.setEnabled(enable);
if (enable) {
textField.addListener(this);
} else {
textField.removeListener();
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll"});
}
static var symbolName = "UIScrollBar";
static var symbolOwner = mx.controls.UIScrollBar;
var className = "UIScrollBar";
var clipParameters = {_targetInstanceName:1, horizontal:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters);
static var version = "2.0.2.127";
}
Symbol 533 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 534 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 535 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 536 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 537 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 538 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 539 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 540 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 541 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 542 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 543 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 544 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 545 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 546 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 547 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 548 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 549 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 550 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 551 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 552 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 553 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 554 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 555 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 556 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 557 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 558 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 559 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 560 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.2.127";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 561 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
__initialSelectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
if (__initialSelectedIndexOnDropdown != selectedIndex) {
dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex);
}
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.2.127";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 585 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.127";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 586 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.2.127";
static var mixins = undefined;
}
Symbol 587 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 588 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 589 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 590 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 591 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 592 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(mask_mc);
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(mask_mc);
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.127";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 593 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 594 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Instance of Symbol 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.weapon == 7) {
_x = _parent._parent.v1x;
_y = _parent._parent.v1y;
}
}
Instance of Symbol 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.weapon == 7) {
_x = _parent._parent.v2x;
_y = _parent._parent.v2y;
}
}
Instance of Symbol 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.weapon == 7) {
_x = _parent._parent.v3x;
_y = _parent._parent.v3y;
}
}
Instance of Symbol 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.weapon == 7) {
_x = _parent._parent.v4x;
_y = _parent._parent.v4y;
}
}
Instance of Symbol 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.weapon == 7) {
_x = _parent._parent.v5x;
_y = _parent._parent.v5y;
}
}
Instance of Symbol 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.weapon == 7) {
_x = _parent._parent.v6x;
_y = _parent._parent.v6y;
}
}
Symbol 690 MovieClip [smiley] Frame 1
function colliding_wp(x, y) {
var _local2 = _root.map_waypoints.length - 1;
while (_local2 >= 0) {
xdif = _root.map_waypoints[_local2][0] - x;
ydif = _root.map_waypoints[_local2][1] - y;
if ((((xdif < 30) and (xdif > -30)) and (ydif < 30)) and (ydif > -30)) {
return(_root.map_waypoints[_local2][2]);
}
_local2--;
}
}
weapon = 1;
mod = _root.gamevar_mod;
eye = _root.smiley_eyes;
hat = _root.smiley_hat;
g = 0.7;
f = 0.9;
xv = 0;
yv = 0;
ls = 0;
rs = 0;
s = 0.4;
sl = 7;
gm = 12;
gr = 0;
j = 13;
rambo_count = 0;
health = 100;
rambo = false;
dead = false;
death = 0;
_root.score[tag] = Array(_root.Acc_n, 0, 0);
guns_cooldown = _root.guns_cooldown;
guns_damage = _root.guns_damage;
guns_bullet_id = _root.guns_bullet_id;
guns_bullet_speed = _root.guns_bullet_speed;
guns_ammo = _root.guns_ammo;
cooldown = 0;
guns_auto = [false, true, false, false, true];
tg = false;
jumped = false;
xcam = _x;
ycam = _y;
md = false;
ad = false;
jumping = 0;
last_hit = undefined;
rar._visible = false;
wp_check = 5;
this.onEnterFrame = function () {
wp_check--;
if (wp_check <= 0) {
t_way = "";
t_way = colliding_wp(_x, _y);
if ((t_way != undefined) and (t_way != "")) {
current_wp = t_way;
}
wp_check = 5;
}
if (!dead) {
if (health <= 0) {
_root.create_smiley_boom(_x, _y);
if (mod == 1) {
if (last_hit != tag) {
_root.score[tag][2]++;
_root.score[last_hit][1]++;
} else {
_root.score[tag][2]++;
_root.score[tag][1]--;
}
} else if (mod == 3) {
_root.score[tag][2]++;
_root.score[last_hit][1]++;
if (team == 1) {
_root.team2_score++;
} else {
_root.team1_score++;
}
}
dead = true;
}
if (_root.game.ground.hitTest((_x + _parent._parent._x) - 7, (_y + _parent._parent._y) + 8, true) or _root.game.ground.hitTest((_x + _parent._parent._x) + 7, (_y + _parent._parent._y) + 8, true)) {
tg = true;
} else {
tg = false;
}
if (_root.PAUSE == false) {
if (Key.isDown(65)) {
if (ls < sl) {
ls = ls + s;
} else {
ls = sl;
}
} else if (ls > 0) {
ls = ls - (s * 2);
} else {
ls = 0;
}
if (Key.isDown(68)) {
if (rs < sl) {
rs = rs + s;
} else {
rs = sl;
}
} else if (rs > 0) {
rs = rs - (s * 2);
} else {
rs = 0;
}
if (tg) {
if (Key.isDown(87)) {
jumped = true;
gr = -j;
tg = false;
}
}
if (!tg) {
if (gr < gm) {
gr = gr + g;
} else {
gr = gm;
}
} else {
gr = 1;
}
if ((mod == 2) and is_rambo) {
rambo_count++;
if (rambo_count > 30) {
_root.score[tag][1]++;
rambo_count = 0;
}
}
}
if (rs > ls) {
if (_root.game.ground.hitTest((((_x + _parent._parent._x) + 12) + rs) - ls, (_y + _parent._parent._y) - 2, true)) {
rs = 0;
}
} else if (_root.game.ground.hitTest((((_x + _parent._parent._x) - 12) + rs) - ls, (_y + _parent._parent._y) - 2, true)) {
ls = 0;
}
if (gr < 0) {
if (_root.game.ground.hitTest((_x + _parent._parent._x) - 7, (_y + _parent._parent._y) - 7, true)) {
gr = gr * -0.5;
} else if (_root.game.ground.hitTest((_x + _parent._parent._x) + 7, (_y + _parent._parent._y) - 7, true)) {
gr = gr * -0.5;
}
}
_y = (_y + gr);
_x = (_x + (rs - ls));
while (_root.game.ground.hitTest((_x + _parent._parent._x) - 7, (_y + _parent._parent._y) + 7, true)) {
_y = (_y - 0.2);
}
while (_root.game.ground.hitTest((_x + _parent._parent._x) + 7, (_y + _parent._parent._y) + 7, true)) {
_y = (_y - 0.2);
}
if (mod == 3) {
team_badge._visible = true;
team_badge.gotoAndStop(team);
} else {
team_badge._visible = false;
}
if (_root.PAUSE == false) {
if (jumped) {
anims.gotoAndStop(2);
jumping = 0;
jumped = false;
} else if (tg) {
if (jumping > 30) {
anims.gotoAndStop(3);
} else if (jumping > 10) {
anims.gotoAndStop(4);
}
jumping = 0;
} else {
jumping++;
}
spawn_e._visible = false;
anims._visible = true;
weps._visible = true;
} else {
anims._visible = false;
weps._visible = false;
}
weps.gotoAndStop(weapon);
anims.anim.base.hats.gotoAndStop(hat);
anims.anim.base.eyes.gotoAndStop(eye);
if (is_rambo) {
weapon = 11;
rar._visible = true;
anims.anim.base.hats._visible = false;
anims.anim.base.rambo_hat._visible = true;
} else if (weapon == 11) {
weapon = 1;
}
if (is_rambo == false) {
rar._visible = false;
anims.anim.base.rambo_hat._visible = false;
anims.anim.base.hats._visible = true;
if (Key.isDown(49)) {
weapon = 1;
} else if (Key.isDown(50)) {
weapon = 2;
} else if (Key.isDown(51)) {
weapon = 3;
} else if (Key.isDown(52)) {
weapon = 4;
} else if (Key.isDown(53)) {
weapon = 5;
} else if (Key.isDown(54)) {
weapon = 6;
} else if (Key.isDown(55)) {
weapon = 7;
} else if (Key.isDown(56)) {
weapon = 8;
} else if (Key.isDown(57)) {
weapon = 9;
}
}
if (!_root.PAUSE) {
cooldown--;
if (!guns_auto[weapon - 1]) {
if (md and (!ad)) {
if (cooldown <= 0) {
if (guns_ammo[weapon - 1] > 0) {
weps.wep.gotoAndStop("idle");
weps.wep.gotoAndStop("shoot");
_root.create_bullet(_x, _y, weps._rotation, guns_bullet_speed[weapon - 1], 1, guns_damage[weapon - 1], guns_bullet_id[weapon - 1], tag);
ad = true;
cooldown = guns_cooldown[weapon - 1];
guns_ammo[weapon - 1]--;
}
}
}
} else if (md) {
if (cooldown <= 0) {
if (guns_ammo[weapon - 1] > 0) {
weps.wep.gotoAndStop("idle");
weps.wep.gotoAndStop("shoot");
_root.create_bullet(_x, _y, weps._rotation, guns_bullet_speed[weapon - 1], 1, guns_damage[weapon - 1], guns_bullet_id[weapon - 1], tag);
cooldown = guns_cooldown[weapon - 1];
guns_ammo[weapon - 1]--;
}
}
}
}
display_ammo = guns_ammo[weapon - 1];
display_cooldown = Math.round((cooldown / guns_cooldown[weapon - 1]) * 100);
if (display_cooldown < 0) {
display_cooldown = 0;
}
if (Key.isDown(27)) {
_root.end_game();
}
if (_root._xmouse >= (_x + _root.game._x)) {
weps._yscale = 100;
anims._yscale = 100;
weps._rotation = Math.atan2(_root._ymouse - (_y + _root.game._y), _root._xmouse - (_x + _root.game._x)) / (Math.PI/180);
anims._rotation = (Math.atan2(_root._ymouse - (_y + _root.game._y), _root._xmouse - (_x + _root.game._x)) / (Math.PI/180)) / 2;
}
if (_root._xmouse < (_x + _root.game._x)) {
weps._yscale = -100;
anims._yscale = -100;
weps._rotation = Math.atan2(_root._ymouse - (_y + _root.game._y), _root._xmouse - (_x + _root.game._x)) / (Math.PI/180);
anims._rotation = ((Math.atan2((_y + _root.game._y) - _root._ymouse, (_x + _root.game._x) - _root._xmouse) / (Math.PI/180)) / 2) + 180;
}
if (jumping > 200) {
this.dead = true;
death = 0;
}
} else if (dead == true) {
if (death == 0) {
if (is_rambo) {
_root.game.players["smiley" + last_hit].is_rambo = true;
_root.game.players["smiley" + last_hit].health = 100;
is_rambo = false;
}
spwnNb = random(_root.map_spawnpoints.length);
_x = _root.map_spawnpoints[spwnNb][0];
_y = _root.map_spawnpoints[spwnNb][1];
weps._visible = false;
anims._visible = false;
spawn_e._visible = true;
rar._visible = false;
arrows_d = arrows.getNextHighestDepth();
while (arrows_d >= 0) {
this.arrows["arrow" + arrows_d].removeMovieClip();
arrows_d--;
}
}
death++;
if (death > 60) {
rs = 0;
ls = 0;
jumping = 0;
gr = 0;
health = 100;
dead = false;
death = 0;
}
}
wx = 250;
wy = 180;
if (weapon != 7) {
cur_addx = (_root._xmouse - (_x + _parent._parent._x)) / 2;
cur_addy = (_root._ymouse - (_y + _parent._parent._y)) / 2;
visor._visible = false;
} else {
cur_addx = (_root._xmouse - (_x + _parent._parent._x)) / 1.5;
cur_addy = (_root._ymouse - (_y + _parent._parent._y)) / 1.5;
visor._visible = true;
vxdif = (_root._xmouse - (_x + _parent._parent._x)) / 8;
vydif = (_root._ymouse - (_y + _parent._parent._y)) / 8;
v1x = vxdif * 2;
v1y = vydif * 2;
v2x = vxdif * 3;
v2y = vydif * 3;
v3x = vxdif * 4;
v3y = vydif * 4;
v4x = vxdif * 5;
v4y = vydif * 5;
v5x = vxdif * 6;
v5y = vydif * 6;
v6x = vxdif * 7;
v6y = vydif * 7;
trace(vxdif);
}
wx = wx - cur_addx;
wy = wy - cur_addy;
xcam = (wx - (_x + _parent._parent._x)) / 10;
ycam = (wy - (_y + _parent._parent._y)) / 10;
if ((xcam > 0.5) or (xcam < -0.5)) {
if (!dead) {
_root.game._x = _root.game._x + xcam;
} else if (death > 30) {
_root.game._x = _root.game._x + xcam;
}
}
if ((ycam > 0.5) or (ycam < -0.5)) {
if (!dead) {
_root.game._y = _root.game._y + ycam;
} else if (death > 30) {
_root.game._y = _root.game._y + ycam;
}
}
};
this.onMouseDown = function () {
md = true;
ad = false;
};
this.onMouseUp = function () {
md = false;
};
my_listener = new Object();
Mouse.addListener(my_listener);
mcnt = 0;
my_listener.onMouseWheel = function (delta) {
if (is_rambo == false) {
if (delta > 0) {
if (weapon < 9) {
weapon++;
}
}
if (delta < 0) {
if (weapon > 1) {
weapon--;
}
}
}
};
Symbol 693 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 696 MovieClip Frame 60
stop();
Symbol 710 MovieClip Frame 14
stop();
Symbol 711 MovieClip Frame 250
stop();
Symbol 717 Button
on (press) {
_root.gotoAndPlay("skip");
}
Symbol 744 MovieClip Frame 5
stop();
Symbol 746 Button
on (press) {
_root.gotoAndStop("new_game");
}
Symbol 748 MovieClip Frame 5
stop();
Symbol 749 Button
on (press) {
_root.gotoAndStop("load_game");
}
Symbol 753 Button
on (release) {
_root.getURL("http://www.smileys-war.com", "_blank");
}
Symbol 756 Button
on (release) {
_root.getURL("http://www.maxgames.com", "_blank");
}
Symbol 757 Button
on (release) {
_root.getURL("http://louissi.newgrounds.com", "_blank");
}
Symbol 759 MovieClip Frame 25
stop();
Symbol 763 MovieClip Frame 5
stop();
Symbol 764 Button
on (press) {
_root.gotoAndStop("menu_root");
}
Symbol 768 MovieClip Frame 5
stop();
Symbol 769 Button
on (press) {
if (login_name.text != "") {
_root.Acc_n = login_name.text;
_root.challenge_id = 0;
_root.unlocked_maps = 0;
_root.smiley_hat = 1;
_root.smiley_eyes = 1;
_root.cash = 0;
_root.overall_cash = 0;
_root.unlocked_hats = 0;
_root.gotoAndStop("menu_main");
_root.fade.gotoAndPlay(1);
}
}
Symbol 773 Button
on (press) {
_root.getURL("http://www.maxgames.com", "_blank");
}
Symbol 780 Button
on (press) {
_root.gotoAndStop("menu_arena");
}
Symbol 781 Button
on (press) {
_root.gotoAndStop("menu_story");
}
Symbol 782 Button
on (press) {
_root.gotoAndStop("menu_custommap");
}
Symbol 783 Button
on (press) {
_root.gotoAndStop("menu_custom");
}
Symbol 784 Button
on (press) {
_root.gotoAndStop("unlock");
}
Symbol 785 Button
on (press) {
_root.gotoAndStop("save_game");
}
Symbol 786 Button
on (press) {
_root.gotoAndStop("title_screen");
}
on (rollOver) {
_root.warning._alpha = 100;
}
on (rollOut) {
_root.warning._alpha = 0;
}
Symbol 787 Button
on (press) {
_root.gotoAndStop("menu_options");
}
Symbol 788 Button
on (press) {
_root.gotoAndStop("menu_instructions");
}
Symbol 789 Button
on (release) {
_root.mapedit.play();
}
Symbol 805 Button
on (release) {
play();
_root.getURL("http://www.smileys-war.com/mapeditor.html", "_blank");
}
Symbol 806 Button
on (release) {
play();
_root.getURL("http://www.maxgames.com/game/map-editor-smileys-war.html", "_blank");
}
Symbol 807 Button
on (release) {
play();
}
Symbol 808 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 13
stop();
Symbol 811 Button
on (press) {
sel = _root.maps_list.selectedIndex;
nb = _root.c_nb.selectedLabel;
mod = _root.c_mod.selectedIndex + 1;
path_id = _root.maps_info[sel][1];
goal = _root.c_goal.selectedIndex;
_root.start_deathmatch(sel, nb, mod, path_id, goal, 0, false);
}
Symbol 814 Button
on (press) {
_root.gotoAndStop("menu_main");
}
Symbol 820 Button
on (press) {
_root.mapcode = _root.in_mapcode.text;
_root.maps[1000] = _root.mapcode;
sel = _root.maps_list.selectedIndex;
nb = _root.c_nb.selectedLabel;
mod = _root.c_mod.selectedIndex + 1;
path_id = _root.maps_info[sel][1];
goal = _root.c_goal.selectedIndex;
_root.start_deathmatch(1000, nb, mod, path_id, goal, 0, false);
}
Symbol 832 Button
on (press) {
if (_root.smiley_hat < (20 + _root.unlocked_hats)) {
_root.smiley_hat++;
} else {
_root.smiley_hat = 1;
}
}
Symbol 833 Button
on (press) {
if (_root.smiley_eyes < 15) {
_root.smiley_eyes++;
} else {
_root.smiley_eyes = 1;
}
}
Symbol 834 Button
on (press) {
if (_root.smiley_hat > 1) {
_root.smiley_hat--;
} else {
_root.smiley_hat = 20 + _root.unlocked_hats;
}
}
Symbol 835 Button
on (press) {
if (_root.smiley_eyes > 1) {
_root.smiley_eyes--;
} else {
_root.smiley_eyes = 15;
}
}
Symbol 838 Button
on (press) {
_root.gotoAndStop("title_screen");
}
Symbol 843 Button
on (press) {
_root.savefile1.clear();
_root.savefile2.clear();
_root.savefile3.clear();
}
Symbol 846 Button
on (press) {
if (_root.savefile1w == true) {
_root.Acc_n = _root.saved_username1;
_root.smiley_hat = _root.saved_hat1;
_root.smiley_eyes = _root.saved_eyes1;
_root.cash = _root.saved_xp1;
_root.overall_cash = _root.saved_oxp1;
_root.challenge_id = _root.saved_challenge1;
_root.unlocked_maps = _root.saved_umaps1;
_root.unlocked_hats = _root.saved_uhats1;
_root.gotoAndStop("menu_main");
}
}
Symbol 847 Button
on (press) {
if (_root.savefile2w == true) {
_root.Acc_n = _root.saved_username2;
_root.smiley_hat = _root.saved_hat2;
_root.smiley_eyes = _root.saved_eyes2;
_root.cash = _root.saved_xp2;
_root.overall_cash = _root.saved_oxp2;
_root.challenge_id = _root.saved_challenge2;
_root.unlocked_maps = _root.saved_umaps2;
_root.unlocked_hats = _root.saved_uhats2;
_root.gotoAndStop("menu_main");
}
}
Symbol 848 Button
on (press) {
if (_root.savefile3w == true) {
_root.Acc_n = _root.saved_username3;
_root.smiley_hat = _root.saved_hat3;
_root.smiley_eyes = _root.saved_eyes3;
_root.cash = _root.saved_xp3;
_root.overall_cash = _root.saved_oxp3;
_root.challenge_id = _root.saved_challenge3;
_root.unlocked_maps = _root.saved_umaps3;
_root.unlocked_hats = _root.saved_uhats3;
_root.gotoAndStop("menu_main");
}
}
Symbol 873 Button
on (release) {
_root.savefile1.data.username = _root.Acc_n;
_root.savefile1.data.hat = _root.smiley_hat;
_root.savefile1.data.eyes = _root.smiley_eyes;
_root.savefile1.data.xp = _root.cash;
_root.savefile1.data.oxp = _root.overall_cash;
_root.savefile1.data.umaps = _root.unlocked_maps;
_root.savefile1.data.uhats = _root.unlocked_hats;
_root.savefile1.data.challenge = _root.challenge_id;
_root.savefile1.flush();
}
Symbol 874 Button
on (release) {
_root.savefile2.data.username = _root.Acc_n;
_root.savefile2.data.hat = _root.smiley_hat;
_root.savefile2.data.eyes = _root.smiley_eyes;
_root.savefile2.data.xp = _root.cash;
_root.savefile2.data.oxp = _root.overall_cash;
_root.savefile2.data.umaps = _root.unlocked_maps;
_root.savefile2.data.uhats = _root.unlocked_hats;
_root.savefile2.data.challenge = _root.challenge_id;
_root.savefile2.flush();
}
Symbol 875 Button
on (release) {
_root.savefile3.data.username = _root.Acc_n;
_root.savefile3.data.hat = _root.smiley_hat;
_root.savefile3.data.eyes = _root.smiley_eyes;
_root.savefile3.data.xp = _root.cash;
_root.savefile3.data.oxp = _root.overall_cash;
_root.savefile3.data.umaps = _root.unlocked_maps;
_root.savefile3.data.uhats = _root.unlocked_hats;
_root.savefile3.data.challenge = _root.challenge_id;
_root.savefile3.flush();
}
Symbol 883 Button
on (press) {
_root.start_deathmatch(_root.a_map_id, _root.a_nbplayers, _root.a_mod, _root.a_path_id, _root.a_goal, _root.a_cash, _root.a_challenge);
}
Symbol 898 Button
on (press) {
_root.fader.play();
}
Symbol 901 MovieClip Frame 31
stop();
Symbol 901 MovieClip Frame 62
_root.gotoAndStop("menu_main");
Symbol 905 Button
on (press) {
_root._quality = "HIGH";
}
Symbol 906 Button
on (press) {
_root._quality = "MEDIUM";
}
Symbol 907 Button
on (press) {
_root._quality = "LOW";
}
Symbol 912 Button
on (press) {
dow = true;
}
on (release) {
dow = false;
}
on (releaseOutside) {
dow = false;
}
Symbol 913 MovieClip Frame 1
dow = false;
this.onEnterFrame = function () {
if (dow) {
but._x = _xmouse;
if (but._x > 100) {
but._x = 100;
}
if (but._x < 0) {
but._x = 0;
}
}
Value = but._x;
};
Symbol 916 Button
on (press) {
if (_root.cash >= _root.map_prices[_root.unlocked_maps]) {
_root.cash = _root.cash - _root.map_prices[_root.unlocked_maps];
_root.unlocked_maps++;
}
}
Symbol 917 Button
on (press) {
if (_root.cash >= _root.hats_prices[_root.unlocked_hats]) {
_root.cash = _root.cash - _root.hats_prices[_root.unlocked_hats];
_root.unlocked_hats++;
}
}