Frame 1
fileExists = new LoadVars();
fileExists.onLoad = function (success) {
if (success) {
gotoAndStop ("game");
} else {
nextFrame();
}
};
fileExists.load("by.swf");
stop();
Frame 2
stop();
Instance of Symbol 98 MovieClip "ag_mouse" in Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 3
function preload() {
loader = new Object();
loader.interval = function () {
loa = _root.getBytesLoaded();
tot = _root.getBytesTotal();
loaderBar.gotoAndStop(Math.ceil((loa / tot) * 100));
if (loa >= tot) {
ROOT.nextFrame();
clearInterval(this.id);
}
};
loader.id = setInterval(loader, "interval", 10);
}
stop();
_global.ROOT = this;
ROOT.createEmptyMovieClip("ref", 9999);
loadMovie ("http://www.molleindustria.org/oilRef.swf", ROOT.ref);
options = new Object();
options.sounds = true;
preload();
Frame 4
_global.STR = new Object();
STR.oil_demand = "Oil Demand";
STR.max_recovery = "Max Recovery";
STR.oil_addiction = "Oil addiction";
STR.gross_domestic_product = "Gross Domestic Product";
STR.price_per_barrel = "Price per barrel";
STR.money = "Money";
STR.bbl_year = "BBL / YR";
STR.actual_recovery = "Actual recovery";
STR.reps = "Elephant";
STR.dems = "Donkey";
STR.pres_oiled = "Cool! The president is oiled. You have access to the secret room.";
STR.pres_not_oiled = "The president is not oiled. You don't have access to the secret room.";
STR.results = "Results";
STR.rep_support = "Representatives support";
STR.president = "President";
STR.oiled_str = "The oiled reps will actively push your agenda";
STR.gray_str = "The gray reps activity is unpredictable";
STR.eco_str = "The eco reps will oppose every pro-oil law";
STR.votes = "Votes";
STR.donations = "Your donations";
STR.eco_demo_info = "Environmentalist will convince gray representatives to become green";
STR.dissent_demo_info = "Angry citizens are likely to vote for the opposition party at the next election";
STR.dissent = "Dissent";
STR.greenness = "Environmentalism";
STR.rep_short = "ELEP";
STR.dem_short = "DONK";
STR.plant_occupation = "They are occupying our plants";
STR.plant_attack = "They are attacking our plants";
STR.palace_attack = "They are attacking our HQ";
STR.iraq_reconquer = "We lost Iraq";
STR.undercover_complete = "Special Operation complete";
STR.new_reservoir = "New reservoir";
STR.share_first = "The shareholders are ";
STR.angry = "angry";
STR.unsatisfied = "unsatisfied";
STR.perplexed = "perplexed";
STR.satisfied = "satisfied";
STR.happy = "happy";
STR.balance = "balance";
STR.oil_demand2 = "Oil demand";
STR.actual_extraction = "Actual extration";
STR.max_extraction = "Maximum extraction";
STR.year = "year";
STR.next_year = "Next year";
STR.government = "Government";
STR.undercover_ops = "Special operations";
STR.undercover_locked = "Special operations locked";
STR.demonstrator = "Demonstrator";
STR.demonstrator_eco = "Environmentalist";
STR.event_archive = "Events archive";
STR.lastElections = "Next election year";
STR.river_clean = "Polluted river";
STR.river_polluted = "Ooops, they are angry for the pigs and the fish...";
STR.whale = "Bowhead whale";
STR.bird = "Migratory Bird";
STR.caribou = "Caribou";
STR.river = "River";
STR.execution = "Hanged activists";
STR.ogoni = "Ogoni";
STR.ogoni_village = "Ogoni village";
STR.nigerian_gov = "Nigerian government";
STR.terrorist = "Terrorist?";
STR.jaguar = "Jaguar";
STR.indio = "Indio";
STR.med_res = "Medium reservoir";
STR.sma_res = "Small reservoir";
STR.big_res = "Big reservoir";
STR.reservoir = "Reservoir";
STR.reserve = "Reserve";
STR.extraction_rate = "Extraction rate";
STR.stationary = "Stationary";
STR.n_a = "N/a";
STR.declining = "Declining";
STR.dry = "(Dry)";
STR.ogoni_hlp = "Ogoni people have lived here for centuries and they may be disappointed to see their land polluted by our activities. Obviously we cannot let some old-fashioned indigenous resistance stop our expansion. The corruptible Nigerian Government will help you to deal with this inconvenient.";
STR.irq_hlp = "Iraq slipped away from the British grasp and is behaving like a problem child. The immense oil resources are not available to foreign companies and the Iraqi crude tends to flow to anti-western countries. Hopefully, sooner or later somebody will teach this nation a lesson about Free Markets.";
STR.ala_hlp = "This oil-rich corner of Alaska is a protected wildlife refuge. There's a lot of space around the world for noisy birds and stinky caribous, a well oiled Government should understand this simple fact and allow us to drill here.";
STR.ven_hlp = "The president of Venezuela nationalized the oil industry, every external investment is forbidden. The most of the people are benefiting from this move and the Government has a large majority. The only thing that can revert this situation is a right-wing coup.";
STR.demolish = "Demolish";
STR.well_full = "Well full";
STR.choose_str = "Choose the structure";
STR.deploy_on_wells = "Deploy on oil wells";
STR.no_drop = "You can't drop here";
STR.no_money = "Not enough money";
STR.eff_first = "This will ";
STR.eff_oil_up = "increase the oil addiction by ";
STR.eff_oil_down = "reduce the oil addiction by ";
STR.eff_gdp_up = "increase the GDP growth by ";
STR.eff_gdp_down = "reduce the GDP growth by ";
STR.eff_money_up = "give you a grant of ";
STR.eff_money_down = "impose you a fine of ";
STR.eff_tax_up = "raise your taxes by ";
STR.eff_tax_down = "cut your taxes by ";
STR.eff_maint_up = "increase your mainteinance costs by ";
STR.eff_maint_down = "your mainteinance costs by ";
STR.eff_roy_up = "increase royalities from this region by ";
STR.eff_roy_down = "reduce royalities from this region by ";
STR.unfriendly_act = "This is an oil unfriendly act";
STR.friendly_act = "This is an oil friendly act";
STR.unfriendly_act = "This is an oil unfriendly act";
STR.friendly_act = "This is an oil friendly act";
STR.donkey_party = "Donkey party";
STR.elephant_party = "Elephant party";
STR.popularity = "Popularity";
STR.african_menu_first = "Today's Special:";
STR.roll_field = "Roll on the lines for info";
STR.activate_field = "Click to activate / deactivate";
STR.undercover_title = "Special Operations";
STR.undercover_description = "Having an oiligarch on the top of the chain of command has many advantages. Here you can do some special things. Click on the map for the available operations.\nEach operation will be active for a year.";
STR.an_act = "AN ACT";
STR.collateral = "Collateral damage";
STR.palace = "Palace";
STR.fired_title = "You are fired";
STR.fired_body = "Capitalism is ever-expanding like the universe. You didn't do your best to keep up with the growing demand or, even worse, you let the market shrink by refusing to participate in politics. Competitors are gaining market shares and shareholders are asking for your head. Not everybody can be an oiligarch.";
STR.mad_title = "M.A.D. WORLD";
STR.mad_body = "Who would have thought that the Mutual Assured Destruction scenario wasn't a myth? Sitting in your fancy fallout shelter you are watching mushrooms clouds popping up like mushrooms on CNN. The Last World War started for the control of the remaining oil resources and quickly went out of control. Soon the transmission will be interrupted and the light will be shut off. You will spend your last days in the darkness thinking about your role in this mess.";
STR.decline_title = "FAREWELL WEST";
STR.decline_body = "Every civilization sooner or later collapses. The history books will have a long chapter about the decline of the fossil fuel era, a painful downward spiral caused by the inability of the economic and political systems to adapt to a regime of expensive oil. The descendant of the survivors will look at us with a mix resentment and envy making sure to learn from our errors.";
STR.retire_title = "ENJOY YOUR RETIREMENT";
STR.retire_body = "So many things are changed since you went into this business. It seems that oil is no more the blood of industrialization. People are living a sober life, using public transportations and moving into sustainable and densely populated communities. It sounds so nonsensical to you but maybe you're just too old to understand.";
STR.tut_0_title = "Tutorial";
STR.tut_0_description = "World War II is over and the future looks bright for the West. Your new office is on the top floor of one of the biggest Oil companies in the World. Your task as CEO is to turn that black sticky stuff into gold by any means necessary. If it's your first game please follow this quick tutorial.";
STR.tut_1_title = "Production: Exploration";
STR.tut_1_description = "Mother Nature hid her dark treasure in Earth's bowels. Use the exploration vehicles to find the reservoirs over land or sea.";
STR.tut_2_title = "Production: Drilling";
STR.tut_2_description = "Found a deposit? Deploy a small well, a normal well, or a platform, making sure that the drill line hits the oilfield and starts the extraction.";
STR.tut_3_title = "Production: Depletion";
STR.tut_3_description = "Remember that when the reserve of an oilfield is half depleted, the rate of extraction will decline gradually and you will probably have to supplant this loss of productivity.";
STR.tut_4_title = "Interface: Next year button";
STR.tut_4_description = "Once you have completed your operations you have to press this button to go forward in time. Your yearly profit will be accounted and new events may happen.";
STR.tut_5_title = "Interface: Oil demand / oil extraction";
STR.tut_5_description = "Always keep an eye on these bars. You have to make sure that your extraction rate meets or exceeds the demand. If you fail your company's shareholders may decide to fire you.";
STR.tut_6_title = "Interface: Money";
STR.tut_6_description = "Making money with oil is easy but managing the budget is not. Expand your business wisely and save money for funding parties at the elections. Your profits depends on the barrels sold (actual extraction) and the price of crude.";
STR.tut_7_title = "Interface: Oil addiction / GDP growth";
STR.tut_7_description = "The oil demand will grow over time according to the growth of the economy (Gross Domestic Product growth) and the oil addiction. The latter represents the level of dependence on oil of the entire economy.";
STR.tut_8_title = "Interface: Scenarios";
STR.tut_8_description = "A healthy consumerist society will require more oil than is available in its national reserves. When you drill in foreign countries you will have to manage resistance that may arise from local communities and use political means to overcome \"problematic\" scenarios like Alaska and Iraq.";
STR.tut_9_title = "Interface: Events";
STR.tut_9_description = "You will be constantly updated about events that may affect your business. Events can be important news or approved acts that can either facilitate or obstuct your activities. Click on the box to get more information or browse the archive to read past events.";
STR.tut_10_title = "Interface: Stats";
STR.tut_10_description = "In this window you can check your performance over time and track the variables that affect your business. Here you can also find your yearly balance and the satisfaction level of the board of directors.";
STR.tut_11_title = "Politics: Washington D.C. scenario";
STR.tut_11_description = "A wise man once said \"Politics is the shadow cast on society by big business\". To become a real oiligarch you have to make friends in Washington. The \"Oiled\" representatives will help you by supporting laws that increase the economy's oil addiction or cut taxes on your activities.";
STR.tut_12_title = "Politics: Grays and Green";
STR.tut_12_description = "Gray representatives will be unpredictable and will tend to become green as the virus of environmentalism spreads around the World. Green representatives will actively obstruct your business by raising taxes or oil addiction levels.";
STR.tut_13_title = "Politics: Elections";
STR.tut_13_description = "The number of oiled representatives depends on the donations you gave during the last elections. Don't be too ideological in your donations: try to bet on the winning party and give a decent sum to the losing one. You may need friends in the opposition as well.";
STR.tut_14_title = "Politics: Special operations";
STR.tut_14_description = "If you are particularly generous you can have an oiled person for president. This will give you direct access to the underground room. There you will be able to request that kind of special operations that the citizens shouldn't know anything about.";
STR.tut_15_title = "Good luck!";
STR.tut_15_description = "Now you know the basics now and you should be able to run a booming businness. At least, until the oil production will start to decline. At that point things might get a little crazy...";
function resetModel() {
BILLS = {lastIndex:0, oil_income_tax:{tit:"Dignity for Dinosaurs Act", des:"To commemorate the dead dinosaurs and fallen forests that made todays oil reserves by cutting the taxes on oil.", eff:"taxes-10", shamelessness:2}, reduce_gas_taxes:{tit:"Greasing the Brakes Act", des:"To cut gas sales taxes in order to defend the citizens' right to a neverending motorized vacations.", eff:"oilAddiction+5;consent+10", shamelessness:2}, no_windfall_tax:{tit:"God's Will Is Not Windfall Act", des:"To repeal the outrageous, anti-competitive windfall tax and give back the profit to the oil companies.", eff:"taxes-10", dep:"ACTS.windfall_tax", shamelessness:2}, tex_royalties:{tit:"The Bottom Of The Barrel Act", des:"To reduce foreign oil dependency by supporting the exploitation of untapped domestic resources in Alaska and Texas.", eff:"tex_royalties-10;ala_royalties-10", shamelessness:2, dep:"EVENTS.world_peaked"}, interstate:{tit:"Heil Highway!", des:"To develop an interstate system inspired by the Nazis' Autobahn in order to give everyone the freedom to drive faster.", eff:"oilAddiction+10", shamelessness:1}, kill_electric:{tit:"Kill the Electric Car Act", des:"To shut down all the efforts toward the mass production of cheap, efficient and cool electric cars.", eff:"oilAddiction+6;special", dep:"ACTS.electric_car_1", shamelessness:4}, plane_subside:{tit:"The Equal Flights Act", des:"To enable subsidies for airports and planes that will ensure that even wage-poor women and minorities can afford to fly once in a while.", eff:"oilAddiction+8", cond:"GDP>2000", shamelessness:1}, dismantle_trains:{tit:"Freedom to Travel Autonomously Act", des:"To dismantle train tracks to free passengers from the tyranny of the rails and put them in freer forms of transportation.", eff:"oilAddiction+8", shamelessness:4}, dismantle_trolley:{tit:"Trolley Preservation Act", des:"To dismantle tramway transportation in big cities, so that historic trolleys can be preserved in museums.", eff:"oilAddiction+5", shamelessness:3}, tax_cut_cars:{tit:"Driving is Patriotic Act", des:"To subsidize car transportation by any means necessary, from free parking to infrastructure maintenance.", eff:"oilAddiction+6", shamelessness:1}, tax_cut_big_cars:{tit:"Bigger is Better Act", des:"To cut taxes on the purchase of SUVs and promote big cars as the optimal vehicles for surviving in the asphalt jungle.", eff:"oilAddiction+4", dep:"EVENTS.suv_craze", shamelessness:2}, dismiss_solar:{tit:"Solar Eyesore Act", des:"To halt subsidies for solar panels that ruin the historical urban landscapes.", eff:"oilAddiction+3;greenness+10", dep:"ACTS.solar_power", shamelessness:3}, dismiss_wind:{tit:"No Bird Left Behind Act", des:"To stop all the wind energy activities in the nation in order to save the dozens of cute birds that could be diced by the dangerous spinning windmill blades.", eff:"oilAddiction+3;greenness+10", dep:"ACTS.wind_power", shamelessness:3}, ven_royalties:{tit:"We Drink Your Milkshake Act", des:"To pressure the Venezuelan Government to reduce royalties and block its influence on the region.", eff:"ven_royalties-10", cond:"ven_production>0", shamelessness:1}, ala_activation:{tit:"New Jobs for Caribous Act", des:"To create job opportunities for the poor animals in the Arctic National Wildlife Refuge by establishing an oil extraction industry.", eff:"special:greenness+20;", shamelessness:4}, patriot_act:{tit:"Patriots or Else Act", des:"To deter and punish terrorist acts in the United States and around the world, to enhance law enforcement investigatory tools, and for other purposes.", eff:"consent+20", dep:"EVENTS.terrorist_attack", shamelessness:1, sts:"inactive"}, oil_incentives:{tit:"Drill Baby Drill", des:"To create incentives for tapping new oil sources by assuming the legal risks of exploration and development in a company's stead.", eff:"special", exp:"The exploration activities will be free from now on", shamelessness:2, dep:"EVENTS.tex_peaked"}, no_carbon_tax:{tit:"Endless Summer Act", des:"To repeal the Carbon Tax so that it can not harm the tourism industry's projected profit derived from a warmer climate.", eff:"oilAddiction-10;greenness+10", dep:"ACTS.carbon_tax", shamelessness:3}, carbon_sequestration:{tit:"Sweep Under the Carpet Act", des:"To calm down global warming conspiracy theorist by marketing carbon sequestration as solution to climate change.", eff:"greenness-20", dep:"EVENTS.global_warming_2", shamelessness:3}, remove_city_limitation:{tit:"Car Sex in the City Act", des:"To restore the smoggy vitality of city centers by removing all the traffic congestion limitations.", eff:"oilAddiction+6;greenness+10", dep:"ACTS.no_traffic", shamelessness:3}, remove_bike_lanes:{tit:"Reclaim the Streets Act", des:"To stop the invasion of bicycle hippies in the city centers by removing all the bike lanes", eff:"oilAddiction+5;greenness+10", dep:"ACTS.bike_lanes", shamelessness:4}};
ACTS = {gas_tax:{tit:"Gas Tax Act", des:"To increase sale taxes on gas and invert the tendency to artificially low fuel prices.", eff:"oilAddiction-1;consent-10", boldness:1}, windfall_tax:{tit:"Windfall Profits Tax Act", des:"To recover and redistribute the profits earned by oil producers as a result of the increase in oil prices.", eff:"taxes+10", dep:"EVENTS.tex_peaked", boldness:2}, no_traffic:{tit:"Livable Cities Act", des:"To limit car circulation in city centers that causes congestion and health problems.", eff:"oilAddiction-1", boldness:1}, no_oil_subsidies:{tit:"Fair Taxes Act", des:"To repeal taxes breaks and subsidies that privilege the oil industry.", eff:"taxes+10", boldness:1}, clean_plants:{tit:"Clean Plants Act", des:"To increase standards in oil production in order to prevent spills and reduce environmental costs.", eff:"maintenanceMultiplier+20", boldness:2}, carbon_tax:{tit:"Carbon Tax Act", des:"To fight climate change by introducing a tax on emission of carbon dioxide and other greenhouse gasses.", eff:"oilAddiction-10", boldness:2}, gas_emergency:{tit:"Fuel Emergency Act", des:"To temporarily reduce consumption by rationing gas sales.", eff:"oilAddiction-10;consent-10", boldness:1, timer:1}, energy_awareness:{tit:"Energy Awareness Campaign", des:"To promote energy conservation on an individual level by a broad communication campaign.", eff:"oilAddiction-1", boldness:1}, energy_efficiency:{tit:"Energy Efficient Building Act", des:"To promote the construction of energy efficient buildings for civil use.", eff:"oilAddiction-1", boldness:2}, electric_car_1:{tit:"Electric Car Pilot Program", des:"To analyze the costs and benefits of mass produced electric cars for individual mobility.", eff:"", cond:"year>1970", boldness:4}, electric_car_2:{tit:"Electric Car Program Act", des:"To promote sustainable mobility by subsidizing the production of electric cars.", eff:"oilAddiction-4", dep:"ACTS.electric_car_1", boldness:2}, electric_car_3:{tit:"Gas Cars Ban Act", des:"To gradually ban all the cars powered by internal combustion engine.", eff:"oilAddiction-6", dep:"ACTS.electric_car_2", boldness:4}, hybrid_car:{tit:"Hybrid Car Act", des:"To promote slightly less oil-dependent mobility by subsidizing the production of hybrid electric vehicles.", eff:"oilAddiction-1", cond:"year>1990", boldness:1}, train_detax:{tit:"Train is Better Act", des:"To promote railroad transit by reducing the taxes on tikets.", eff:"oilAddiction-3;consent+5", boldness:1}, speed_limits:{tit:"Slow the Insanity Act", des:"To reduce gas consumption by reducing speed limit on roads to 55 mph (88 km/h).", eff:"oilAddiction-1;consent-3", boldness:1}, big_car_tax:{tit:"Big Car Special Tax", des:"To introduce a tax for highpowered cars in order to invert the trend that lead the market toward big gas guzzling vehicles.", eff:"oilAddiction-2;consent-1", boldness:1}, fuel_efficency_corporate:{tit:"Corporate Fuel Efficiency Act", des:"To impose an incremental mile per gallon fuel-efficiency standard for trucks, vans, and SUVs", eff:"oilAddiction-1", boldness:1}, fuel_efficency_general:{tit:"General Fuel Efficiency", des:"To impose an incremental mile-per-gallon fuel-efficiency standard for every vehicle.", eff:"oilAddiction-2", boldness:2}, suv_ban:{tit:"SUV Ban Act", des:"To ban Sport Utility Vehicles in the major cities.", eff:"oilAddiction-3;consent-5", dep:"EVENTS.suv_craze", boldness:3}, plane_regulation:{tit:"Plane Regulation Act", des:"To reduce fuel consumption in aviation by imposing taxes, optimizing lines and restricting plane sizes and flight frequency.", eff:"oilAddiction-6;consent-5", dep:"BILLS.plane_subside", boldness:2}, alt_research:{tit:"Alternative Energy Act", des:"To promote the research and development of alternative energy technologies.", eff:"", dep:"EVENTS.tex_peaked", boldness:1}, wind_power:{tit:"Wind Power Act", des:"To promote the extensive use of eolic energy and improve the efficiency of wind turbines.", eff:"oilAddiction-3", dep:"BILLS.alt_research", boldness:2}, solar_power:{tit:"Solar Power Act", des:"To kickstart an eolic energy program subsidizing households panels and funding researches on solar cell technology.", eff:"oilAddiction-3", dep:"BILLS.alt_research", boldness:2}, lightweight_car:{tit:"Lightweight Car Act", des:"To improve the car industry efficiency standards by imposing weight limits and developing carbon fiber car bodies", eff:"oilAddiction-1", dep:"BILLS.alt_research", boldness:1}, energy_efficiency_corporate:{tit:"Sustainable Factories Act", des:"To introduce tax breaks for companies that operate in energy efficient, low emission facilities.", eff:"oilAddiction-1", boldness:1}, desuburbanization:{tit:"Back to the City Act", des:"To implement policies aimed at inverting the suburbanization trend, promoting high density settlements and re-designing urban sprawl.", eff:"oilAddiction-6;consent-20", boldness:4}, railroad_restoration:{tit:"Railways Plan Act", des:"To improve and optimize the railroad system and make freight trains a convenient alternative to motorized transportation.", eff:"oilAddiction-6;consent+5", dep:"BILLS.dismantle_trains", boldness:4}, public_transportation:{tit:"Urban Mass Transit Act", des:"To restore and improve public mass transit in cities and suburbs.", eff:"oilAddiction-5;consent+3", boldness:3}, hydrogen_car:{tit:"Hydrogen Century Act", des:"To stimulate the production of hydrogen fuel based on renewable sources of energy.", eff:"oilAddiction-1", dep:"ACT.solar_power", boldness:1}, biofuel_subside_1:{tit:"Biofuel Act", des:"To reduce dependency on foreign oil and promoting national economy by subsidizing ethanol biofuel production.", eff:"oilAddiction-1", dep:"BILLS.alt_research", boldness:1}, biofuel_subside_2:{tit:"Second Generation Biofuel Act", des:"To stimulate the production of biofuel derived from non-food crops and waste biomasses to avoid spikes in food prices.", eff:"oilAddiction-1", dep:"ACTS.biofuel_subside_1", boldness:1}, biofuel_subside_3:{tit:"Third Generation Biofuel Act", des:"To support the production of biofuel derived from algae that may guarantee high-yields and low environmental impact.", eff:"oilAddiction-4", dep:"ACTS.biofuel_subside_2", boldness:2}, bike_lanes:{tit:"Bike Lanes Act", des:"To implement a plan of off-road and on road segregated bike paths in every city to promote utility cycling.", eff:"oilAddiction-2", boldness:2}, public_bikes:{tit:"Bike Sharing Act", des:"To implement a cheap bike sharing system in every major city in order to reduce pollution and traffic congestion.", eff:"oilAddiction-1", dep:"ACTS.bike_lanes", boldness:2}, public_car_sharing:{tit:"New Mobility Act", des:"To implement a energy savvy public transportation system involving carpooling, high occupancy vehicle incentives, pedestrianization or incentive parking.", eff:"oilAddiction-3", cond:"year>2000", boldness:2}};
GRASSROOT = {bike_mania:{tit:"Bike Mania", des:"It's clean, it's cheap and it's cool. More and more people switching to two wheels", eff:"oilAddiction-3", greenness:1}, car_pooling:{tit:"Hitchhiking 2.0", des:"Thanks to the ubiquitous communication technologies, car pooling networks are booming", eff:"oilAddiction-2", greenness:1}, go_organic:{tit:"Organic Generation", des:"It's not just about health: non oil-dependent food production is the prime choice for young people", eff:"oilAddiction-4", greenness:1}, go_veggie:{tit:"Go veggie", des:"Started as a personal lifestyle, vegetarianism is becoming a mass movement aiming to redefine world food production", eff:"oilAddiction-2", greenness:3}, go_local:{tit:"The Invasion of the Localvores", des:"Locally grown products, farmers markets and community supported agriculture are the grassroots answer to rising oil prices", eff:"oilAddiction-5", greenness:2}, no_shopping:{tit:"The Church of no shopping grows", des:"Since few years ago it was just an anti-consumerist joke, now it's the fastest growing religion", eff:"oilAddiction-4", greenness:3}};
EVENTS = {green_revolution_1:{tit:"The Green revolution", des:"Nitrogen fertilizers based on fossil fuels are predicted to boost world grain production by 250%", eff:"oilAddiction+7;consent+10"}, green_revolution_2:{tit:"Winning the war on pests", des:"Petrochemical-derived pesticides and herbicides are stabilizing food production and increasing yields", eff:"oilAddiction+5;consent+5"}, suburbia:{tit:"The Birth of Suburbia", des:"City dwellers are increasingly moving to suburbs in search of a quiet county life surrogate", eff:"oilAddiction+8", cond:"GDP>500"}, suv_craze:{tit:"The SUV Craze", des:"Despite emerging energy and environmental issues gas-guzzling Sport Utility Vehicles are becoming the symbol of the new middle class", eff:"oilAddiction+6", cond:"GDP>3000"}, cina_wto:{tit:"Made in China", des:"Your goods are coming from far away. East Asia is becoming the center of world manufacturing", eff:"oilAddiction+6", cond:"GDP>4000"}, opec:{tit:"OPEC Founded", des:"The petroleum exporting countries are establishing an alliance to coordinate policies and protect the profitability of their natural resources", eff:"ven_royalties+10;nig_royalties+10;irq_royalties+10", cond:"ven_production>0", timer:1}, kuwait_war:{tit:"Iraq Invades Kuwait", des:"More than 100,000 Iraqi soldiers backed up by 700 tanks invaded the Gulf state of Kuwait in the early hours of this morning.", dep:"UNDERCOVER.block_irq_economy"}, global_warming_1:{tit:"The Greenhouse Effect", des:"Scientists found that certain gasses released in the atmosphere are likely to produce dramatic climate changes", cond:"globalWarming>4000", eff:"greenness+10"}, global_warming_2:{tit:"The Earth is Warming", des:"Environmentalist claim that CO2 emissions are responsible for global warming and ask for regulations", dep:"EVENTS.global_warming_1", cond:"globalWarming>5500", eff:"greenness+30"}, global_warming_3:{tit:"Climate Crisis", des:"According to a recent poll, 80% of citizens mention Global Warming as a maximum priority issue", dep:"EVENTS.global_warming_2", cond:"globalWarming>10000", exp:"Green is the new black", eff:"greenness+30;consent-10"}, global_warming_4:{tit:"Climate Catastrophe", des:"Climate change related disasters are seriously damaging the world economy", dep:"EVENTS.global_warming_3", cond:"globalWarming>25000", eff:"GDPGrowth-1;potentialGrowth-1;greenness+30"}, food_crisis_bio:{tit:"Fuel vs oil", des:"Massive governmental subsidies to ethanol production are causing a dramatic spike in global food prices", eff:"consent-5", dep:"ACTS.biofuel_subside_1"}, oil_spill:{tit:"Black Tide", des:"A major oil spill occurred in Alaska. It might be the most devastating man-made environmental disaster ever", eff:"money-1000;greenness+30", cond:"ala_production>100"}, human_burning_plants:{tit:"Turning humans into oil", des:"It's time to reconsider our rigid ethical frames. Human derived fuel is the ultimate solution to overpopulation and oil depletion", eff:"special", cond:"$BBL>200", dep:"EVENTS.world_peaked"}, tex_peaked:{tit:"Texas Oil Production peaked?", des:"The extraction of crude in the state will start to decline from now on. Oil producer must find untapped national and foreign resources", eff:"", sts:"ingame"}, world_peaked:{tit:"World Oil peaked?", des:"Global oil production will decline soon. The rising oil prices may have catastrophic effects on western society", eff:"", sts:"ingame"}, mission_accomplished:{tit:"Mission Accomplished!", des:"Iraq is now controlled by allied forces. Democracy and the free market will soon reign on the ashes of the old regime", eff:"", sts:"ingame"}, terrorist_attack:{tit:"U.S. Attacked", des:"Hijacked jets killed thousands of civilians in a day of terror. The president vows revenge", exp:"Nothing Will Ever Be the Same", eff:"consent+60", cond:"year>2000"}, ogoni_movement:{tit:"Troubles in Ogoniland", des:"Niger Delta natives are reclaiming royalties and reparation for the environmental damage caused by the drilling", eff:"special", cond:"nig_dissent>10"}, nig_liberation:{tit:"Oil, Blood and Guns", des:"After years of pacific demostrations and violent repressions, Niger Delta people are threatening direct military actions", eff:"special", cond:"nig_dissent>80"}, ven_democracy:{tit:"Wind of Change in Venezuela", des:"The New president promises a new constitution, radical reforms and more redistribution of the oil revenues", eff:"", cond:"ven_dissent>50"}, ven_autonomy:{tit:"Venezuela raises drilling tax", des:"Venezuelan Government raises royalities on oil extraction. The revenues will be invested in social programs", eff:"ven_royalties+10", cond:"ven_dissent>70"}, ven_nationalization:{tit:"Venezuela nationalizes oil", des:"The country moves away from the Western sphere of influence. Foreign companies are stopping all the enterprises in the Bolivarian republic", eff:"special", exp:"All the plants will be confiscated", cond:"ven_dissent>90"}, usa_fail:{tit:"Retreat!", des:"The Iraq invasion is a military defeat. The regime change miserably failed.", eff:"consent-10", sts:"ingame", exp:"President's popularity dropped"}, recession:{tit:"Recession", des:"High oil prices are playing a central role in the negative economy growth", eff:"", sts:"ingame"}, irq_anarchy:{tit:"Anarchy in Iraq", des:"Wild privatizations, unemployement and predatory management are fueling fundamentalism in the \"liberated\" Iraq", eff:"", sts:"ingame"}};
CATASTROPHES = [{id:"gas_raid", tit:"Gas stations raided", des:"Turmoil all around the nation. Street gangs are taking control of thousands of gas stations", eff:"consent-10", prices:180}, {id:"food_crisis_1", tit:"Grocery stores raided", des:"As a dramatic result of raising food prices Big box stores are being stormed by groups of starving people", eff:"consent-10", prices:190}, {id:"food_crisis_2", tit:"Big Food distribution collapses", des:"Walmart grocery department goes under: \"Increasing food costs and constant raids erase profit margins\"", eff:"consent-10", prices:200}, {id:"financial_1", tit:"The Crisis is structural", des:"People stop getting loans, investors expectations fall, financial markets are in panic", eff:"GDPGrowth-2", prices:210}, {id:"food_crisis_3", tit:"Welcome to the Jungle", des:"Deer hunting is spreading all over the country. Corn Fields are patrolled by the army. Rumors of cannibalism in the southern states", eff:"consent-15", prices:220}, {id:"food_crisis_4", tit:"Compulsory Birth Control", des:"The act sponsored by the Neo-Malthusian Party will allow a tradable quota of 1.3 children per family", eff:"GDPGrowth-1", prices:240}, {id:"mass_relocations", tit:"Human migrations", des:"Heating costs are forcing millions of people to relocate in warmer places.", eff:"consent-20;GDPGrowth-2", prices:250}, {id:"financial_2", tit:"Farewell Dow Jones", des:"World's most notable Economists are meeting today to redesign the financial system from scratch", eff:"GDPGrowth-2", prices:260}, {id:"famine", tit:"Famine!", des:"After centuries, Death by starvation is back in western countries", eff:"GDPGrowth-3;consent-30", prices:270}, {id:"apocalypse", tit:"Apocalypse Now?", des:"The global termonuclear war for the remaining resources is about to begin", eff:"", prices:290}];
UNDERCOVER = {help_irq_enemies:{tit:"The enemy of the enemy", des:"Finance Shi'a opposition for a regime change in Iraq.", loc:"irq", eff:"irq_dissent+30", sts:"active"}, block_irq_economy:{tit:"Messing Iraq economy", des:"Use our ally Kuwait to damage Iraq's economy. This may provoke a conflict and provide a justification for an intervention in the area.", loc:"irq", eff:"irq_dissent+30", dep:"UNDERCOVER.help_irq_enemies"}, wmd:{tit:"WMD", des:"Link Iraq to the War on Terror by manifacturing evidences of Weapons of Mass Destruction.", loc:"irq", eff:"irq_dissent+30", dep:"EVENTS.terrorist_attack"}, desert_storm:{tit:"Operation Desert Scorn", des:"We have to defend our allies in the Persian Gulf, declare war to Iraq.", loc:"irq", dep:"EVENTS.kuwait_war"}, enduring_freedom:{tit:"Operation Super Duper Freedom", des:"Taxpayers are buying the WMD story, it's time to invade Iraq.", loc:"irq", dep:"UNDERCOVER.wmd"}, enduring_freedom_retry:{tit:"Operation Unlimited Divine Justice", des:"Our interests in Middle East are still strong. Another war may be unpopular but we have to take back Iraq.", loc:"irq", eff:"consent-20", dep:"special", sts:"inactive"}, more_troops:{tit:"The New Way Forward", des:"The job is not done in Iraq and we may need to send more troops. Needless to say that people don't like body bags coming from Iraq.", dep:"special", eff:"consent-10", loc:"irq", sts:"inactive"}, create_monster:{tit:"Create-a-monster", des:"Internal dissent is rising? Create a long-bearded Muslim villain to scare the citizen and reinvigorate unity.", eff:"consent+10", cond:"year>1990", loc:"afg"}, pearl_harbour:{tit:"A New Pearl Harbor", des:"For a new American century we need a new Pearl Harbor to awake the sleeping giant. Provoke and facilitate a major and spectacular terrorist attack in the homeland.", loc:"ny", cond:"year>1990;consent<30", sts:"inactive"}, terror_alarm:{tit:"Homeland Security Advisory System", des:"It works like a remote control for mass anxiety. If you want scaried and obedient citizens you only have set it to red.", eff:"consent+20", dep:"EVENTS.terrorist_attack", loc:"dc"}, anthrax:{tit:"Anthrax Everywhere!", des:"Unrelash a wave of hysteria with fake biological attacks targeting media and politicians. If we get caught we can blame one of the many mad scientists on our payroll. ", eff:"consent+20", dep:"EVENTS.terrorist_attack", loc:"dc"}, infiltrate_eco:{tit:"Hugging Trees", des:"Thanks to the \"Patriot or Else Act\" we can infiltrate the major environmental organizations and mess up their activities.", eff:"greenness-40", loc:"sf", dep:"BILLS.patriot_act"}, repress_eco:{tit:"Ungreening US", des:"Arrest the most active eco-activist, create a shitstorm on the radical green movement.", eff:"greenness-60", loc:"sf", dep:"UNDERCOVER.infiltrate_eco"}, infiltrate_dissenters:{tit:"United we stand", des:"Thanks to the \"Patriot or Else Act\" we can infiltrate anti-war groups, consumer associations and social justice movements threatening the unity of our nation.", eff:"consent+40", loc:"ny", dep:"BILLS.patriot_act"}, repress_dissenters:{tit:"Divided we fall", des:"Arrest the most active members of quasi-subversive groups such as anti-war groups, consumer associations and social justice organizations.", eff:"consent+60", loc:"ny", dep:"UNDERCOVER.infiltrate_dissenters"}, ven_paramilitary:{tit:"AIDing democracy", des:"Found right wing opposition parties in Venezuela in order to obstruct socialist reforms.", eff:"ven_dissent-30", cond:"ven_dissent>0", loc:"ven"}, infiltrate_ven:{tit:"An eye on the courtyard", des:"Infiltrate Venezuela's secret services and establish connections with military high officiers.", eff:"ven_dissent-60", cond:"ven_dissent>0", loc:"ven", dep:"UNDERCOVER.ven_paramilitary"}, coup:{tit:"The coup", des:"Promote a coup against the Venezuela's democratic government and create a friendlier environment for the foreign investors.", eff:"ven_dissent-80", cond:"ven_dissent>0", loc:"ven", dep:"UNDERCOVER.infiltrate_ven"}};
AFRICA = {raid_tribe:{tit:"Raid the tribe", des:"Ogoni may be troublemakers. A delicious raid is the solution.", price:1000, sts:"active"}, execute_dissenters:{tit:"Kill the activists", des:"Too many demonstrations? Eradicate the problem with a public execution.", price:2000, sts:"inactive"}, corrupt_gang:{tit:"Corrupt the gang", des:"Let the Niger Delta Rebels steal some oil to avoid troubles for a year.", price:1000, sts:"inactive"}, patrol_station:{tit:"Defend Wells", des:"Bribe & deploy nigerian soldiers on your wells.", price:100, sts:"inactive"}, pollution_discount:{tit:"Ignore Pollution", des:"Reduce maintenance costs by ignoring environmental standards.", price:800, sts:"active"}, reduce_royalties:{tit:"Special Royalties", des:"Why giving all that money to the government when you can corrupt just few functionaries?", price:1000, sts:"inactive"}};
for (o in ACTS) {
ACTS[o].friendly = false;
}
for (o in BILLS) {
BILLS[o].friendly = true;
}
for (o in ACTS) {
ACTS[o].id = o;
}
for (o in BILLS) {
BILLS[o].id = o;
}
for (o in EVENTS) {
EVENTS[o].id = o;
}
for (o in GRASSROOT) {
GRASSROOT[o].id = o;
}
for (o in UNDERCOVER) {
UNDERCOVER[o].id = o;
}
for (e in EVENTS) {
if (EVENTS[e].tit.length > 30) {
trace(("error " + EVENTS[e].tit) + " title too long");
}
}
}
function initVars() {
currentScId = "";
dystopia = false;
vars = new Object();
vars.maxRecovery = 0;
vars.GDP = INITIAL_GDP;
vars.potentialGrowth = 4;
vars.GDPgrowth = vars.potentialGrowth;
vars.oilAddiction = INITIAL_ADDICTION;
vars.maintenanceMultiplier = 100;
vars.taxes = TAXES;
vars.money = INITIAL_MONEY;
vars.$BBL = INIT_$BBL;
vars.greenness = 0;
vars.repPercentage = 60;
vars.demPercentage = 40;
vars.repFounding = 0;
vars.demFounding = 0;
vars.ven_production = 0;
vars.nig_production = 0;
vars.tex_production = 0;
vars.ala_production = 0;
vars.irq_production = 0;
vars.ven_democracy = true;
vars.ven_nationalized = false;
vars.nig_pacific = true;
vars.irq_liberated = false;
vars.ven_royalties = 25;
vars.nig_royalties = 25;
vars.irq_royalties = 5;
vars.ala_royalties = 25;
vars.tex_royalties = 25;
vars.ven_dissent = 0;
vars.nig_dissent = 0;
vars.irq_dissent = 0;
vars.globalWarming = 0;
vars.ultimateReserve = 0;
vars.tex_ultimateReserve = 0;
vars.ven_ultimateReserve = 0;
vars.nig_ultimateReserve = 0;
vars.ala_ultimateReserve = 0;
vars.irq_ultimateReserve = 0;
vars.tex_maxCapacity = 0;
vars.ven_maxCapacity = 0;
vars.nig_maxCapacity = 0;
vars.ala_maxCapacity = 0;
vars.irq_maxCapacity = 0;
r = 0;
while (r < reservoirs.length) {
tempRes = reservoirs[r];
vars[tempRes.scnId + "_ultimateReserve"] = vars[tempRes.scnId + "_ultimateReserve"] + tempRes.reserve;
vars[tempRes.scnId + "_maxCapacity"] = vars[tempRes.scnId + "_maxCapacity"] + tempRes.reserve;
vars.ultimateReserve = vars.ultimateReserve + tempRes.reserve;
r++;
}
vars.WORLD_CAPACITY = vars.ultimateReserve;
for (b in BILLS) {
if (BILLS[b].sts == undefined) {
BILLS[b].sts = ((checkCondition(BILLS[b].cond) && (checkDependency(BILLS[b].dep))) ? "active" : "inactive");
}
}
for (e in EVENTS) {
if (EVENTS[e].sts == undefined) {
EVENTS[e].sts = ((checkCondition(EVENTS[e].cond) && (checkDependency(EVENTS[e].dep))) ? "active" : "inactive");
}
}
for (u in UNDERCOVER) {
if (UNDERCOVER[u].sts == undefined) {
UNDERCOVER[u].sts = ((checkCondition(UNDERCOVER[u].cond) && (checkDependency(UNDERCOVER[u].dep))) ? "active" : "inactive");
}
}
for (e in EVENTS) {
if (EVENTS[e].sts == undefined) {
EVENTS[e].sts = ((checkCondition(EVENTS[e].cond) && (checkDependency(EVENTS[e].dep))) ? "active" : "inactive");
}
}
for (a in ACTS) {
if (ACTS[a].sts == undefined) {
ACTS[a].sts = ((checkCondition(ACTS[a].cond) && (checkDependency(ACTS[a].dep))) ? "active" : "inactive");
}
}
for (e in AFRICA) {
if (AFRICA[e].sts == undefined) {
EVENTS[e].sts = ((checkCondition(EVENTS[e].cond) && (checkDependency(EVENTS[e].dep))) ? "active" : "inactive");
}
}
for (g in GRASSROOT) {
GRASSROOT[g].sts = "active";
}
}
function baloonFrame() {
this._xscale = (this._yscale = (this._yscale * this.a) * 2);
this.t++;
this.a++;
if (this._xscale > 100) {
this._xscale = (this._yscale = 100);
}
}
function initElections() {
if (options.sounds) {
soundBox.electionIntro.stop();
soundBox.electionLoop = new Sound(soundBox);
soundBox.electionLoop.attachSound("democracyLoop");
soundBox.electionLoop.start(0, 99);
}
elections = ROOT.createEmptyMovieClip("electionLayer", 2000);
animals = elections.createEmptyMovieClip("animals", 40);
dem = animals.attachMovie("donkey", "donkey", 20, {_x:DEM_X, _y:DEM_Y});
outline(dem, 1254206);
rep = animals.attachMovie("elephant", "elephant", 30, {_x:REP_X, _y:REP_Y});
outline(rep, 4718592);
elections.attachMovie("electionInterface", "inter", 100);
demSpot = elections.inter.bar.attachMovie("demSpot", "dem", 10);
repSpot = elections.inter.bar.attachMovie("repSpot", "rep", 20);
bucksMouth = elections.attachMovie("bucksMouth", "bucksMouth", 130, {_x:STAGE_W});
bucks = elections.createEmptyMovieClip("bucks", "bucks", 20);
outline(bucks, 1855773, "thin");
electionBg = elections.attachMovie("election_bg", "bg", -10);
elections.inter.money_field.text = Math.round(vars.money);
electionBg.onEnterFrame = function () {
sd = this.stars.getNextHighestDepth();
scale = random(50) + 50;
newS = this.stars.attachMovie("raceStar", "s" + sd, sd, {_x:STAGE_W, _y:random(160), _xscale:scale, _yscale:scale});
};
rep.bucks = 0;
dem.bucks = 0;
rep.fire.gotoAndPlay("off");
dem.fire.gotoAndPlay("off");
bucksTimer = 0;
bucksMouth.onEnterFrame = function () {
if (_ymouse > 150) {
this.dest = REP_Y + 20;
} else {
this.dest = DEM_Y + 20;
}
this._y = this._y - ((this._y - this.dest) / 2);
if (Math.abs(this._y - (DEM_Y + 20)) < 10) {
if (founding != dem) {
dem.head.gotoAndPlay("open");
rep.head.gotoAndPlay("close");
this.gotoAndStop("dem");
}
founding = dem;
} else if (Math.abs(this._y - (REP_Y + 20)) < 10) {
if (founding != rep) {
rep.head.gotoAndPlay("open");
dem.head.gotoAndPlay("close");
this.gotoAndStop("rep");
}
founding = rep;
} else {
founding = undefined;
}
if (((mouseIsDown && (founding != undefined)) && (bucksTimer <= 0)) && ((vars.money - DOLLARS_PER_BUCK) > MAX_DEBT)) {
d = bucks.getNextHighestDepth();
newBucks = bucks.attachMovie("bucks", "b_" + d, d, {_y:bucksMouth._y, _x:bucksMouth._x});
newBucks.speed = -40;
newBucks.beneficiary = founding;
this.play();
vars.money = vars.money - (DOLLARS_PER_BUCK + (ELECTION_COST_INCREMENT * vars.yearCount));
elections.inter.money_field.text = Math.round(vars.money);
newBucks.onEnterFrame = function () {
this._x = this._x + this.speed;
if ((this.beneficiary == rep) && (this.hitTest(rep.area) || (this._x < 100))) {
if (options.sounds) {
soundBox.electionSound = new Sound(soundBox);
soundBox.electionSound.attachSound("fire");
soundBox.electionSound.start();
}
rep.bucks++;
rep.boost = rep.boost + BUCKS_BOOST;
rep.fire.gotoAndPlay("on");
removeMovieClip(this);
}
if ((this.beneficiary == dem) && (this.hitTest(dem.area) || (this._x < 100))) {
if (options.sounds) {
soundBox.electionSound = new Sound(soundBox);
soundBox.electionSound.attachSound("fire");
soundBox.electionSound.start();
}
dem.bucks++;
dem.boost = dem.boost + BUCKS_BOOST;
dem.fire.gotoAndPlay("on");
removeMovieClip(this);
}
};
bucksTimer = 5;
}
bucksTimer--;
};
electionTime = 0;
momentum = ((ANIMALS_SPEED / 100) * (vars.consent - 50)) * ANIMALS_SPEED;
if (momentum < 0) {
oppositionMomentum = -momentum;
momentum = 0;
} else {
oppositionMomentum = 0;
}
if (vars.administrationParty == "rep") {
dem.speed = ANIMALS_SPEED + oppositionMomentum;
rep.speed = ANIMALS_SPEED + momentum;
} else {
dem.speed = ANIMALS_SPEED + momentum;
rep.speed = ANIMALS_SPEED + oppositionMomentum;
}
dem.boost = 0;
rep.boost = 0;
dem.randomBoost = 0;
rep.randomBoost = 0;
BAR_W = elections.inter.bar._width;
elections.routine = function () {
if ((random(PREDICTABILITY) == 0) && (rep.randomBoost == 0)) {
rep.randomBoost = BOOST_DURATION;
rep.fire.gotoAndPlay("on");
}
if ((random(PREDICTABILITY) == 0) && (dem.randomBoost == 0)) {
dem.randomBoost = BOOST_DURATION;
dem.fire.gotoAndPlay("on");
}
rep._x = rep._x + ((rep.speed + (rep.boost / 2)) + (rep.randomBoost / 2));
dem._x = dem._x + ((dem.speed + (dem.boost / 2)) + (dem.randomBoost / 2));
if (rep.boost > 0) {
rep.boost--;
if (rep.boost == 1) {
rep.fire.gotoAndPlay("shut");
}
}
if (rep.randomBoost > 0) {
rep.randomBoost--;
if (rep.randomBoost == 1) {
rep.fire.gotoAndPlay("shut");
}
}
if (dem.boost > 0) {
dem.boost--;
if (dem.boost == 1) {
dem.fire.gotoAndPlay("shut");
}
}
if (dem.randomBoost > 0) {
dem.randomBoost--;
if (dem.randomBoost == 1) {
dem.fire.gotoAndPlay("shut");
}
}
repSpot._x = (BAR_W / ELECTION_LENGTH) * rep._x;
demSpot._x = (BAR_W / ELECTION_LENGTH) * dem._x;
if (repSpot._x > (BAR_W - repSpot._width)) {
repSpot._x = BAR_W - repSpot._width;
}
if (demSpot._x > (BAR_W - demSpot._width)) {
demSpot._x = BAR_W - demSpot._width;
}
if ((rep._x > ELECTION_LENGTH) || (dem._x > ELECTION_LENGTH)) {
if (rep._x > dem._x) {
deltaPerc = 100 - ((dem._x / ELECTION_LENGTH) * 100);
repPerc = Math.ceil(50 + (deltaPerc / 2));
demPerc = 100 - repPerc;
}
if (dem._x > rep._x) {
deltaPerc = 100 - ((rep._x / ELECTION_LENGTH) * 100);
demPerc = Math.ceil(50 + (deltaPerc / 2));
repPerc = 100 - demPerc;
}
vars.demPercentage = demPerc;
vars.repPercentage = repPerc;
vars.repFounding = Math.round((rep.bucks / SELL_OUT_BUCKS) * 100);
vars.demFounding = Math.round((dem.bucks / SELL_OUT_BUCKS) * 100);
demBucks = dem.bucks;
repBucks = rep.bucks;
if (vars.repFounding > 100) {
vars.repFounding = 100;
}
if (vars.demFounding > 100) {
vars.demFounding = 100;
}
createAdministration(vars.repPercentage, vars.repFounding, vars.demFounding, vars.greenness);
removeMovieClip(elections);
clearInterval(electionID);
soundBox.electionLoop.stop();
electionOutro = ROOT.attachMovie("election_outroScreen", "election_outroScreen", 1000);
electionOutro.results_field.text = STR.results.toUpperCase();
electionOutro.rep_support_field.text = STR.rep_support.toUpperCase();
electionOutro.president_title_field.text = STR.president.toUpperCase();
electionOutro.oiled_field.text = STR.oiled_str;
electionOutro.gray_field.text = STR.gray_str;
electionOutro.eco_field.text = STR.eco_str;
electionOutro.votes_field.text = STR.votes.toUpperCase();
electionOutro.your_donations_field.text = STR.donations.toUpperCase();
electionOutro.reps_field.text = STR.rep_short.toUpperCase();
electionOutro.dems_field.text = STR.dem_short.toUpperCase();
var _local1 = new Pie("myPie", electionOutro, electionOutro.pieArea._x, electionOutro.pieArea._y, electionOutro.pieArea._width, electionOutro.pieArea._height);
electionOutro.pieArea._visible = false;
_local1.setPieAspect(250, 1.5, 20, "");
_local1.setValues([{value:repPerc, label:STR.reps, color:13369344}, {value:demPerc, label:STR.dems, color:26316}], _local1.SORT_DESCENDING);
electionOutro.reps_text.text = repPerc + "%";
electionOutro.dems_text.text = demPerc + "%";
electionOutro.reps_fundings.text = ((repBucks * DOLLARS_PER_BUCK) + (ELECTION_COST_INCREMENT * vars.yearCount)) + "$";
electionOutro.dems_fundings.text = ((demBucks * DOLLARS_PER_BUCK) + (ELECTION_COST_INCREMENT * vars.yearCount)) + "$";
fr = (vars.oiledReps + vars.oiledDems) + 1;
if (((fr > 0) && (fr != undefined)) && (!isNaN(fr))) {
electionOutro.oiled.gotoAndStop(fr);
} else {
electionOutro.oiled.gotoAndStop(1);
}
fr = (vars.greenReps + vars.greenDems) + 1;
if (((fr > 0) && (fr != undefined)) && (!isNaN(fr))) {
electionOutro.green.gotoAndStop(fr);
} else {
electionOutro.green.gotoAndStop(1);
}
fr = (vars.grayReps + vars.grayDems) + 1;
if (((fr > 0) && (fr != undefined)) && (!isNaN(fr))) {
electionOutro.gray.gotoAndStop(fr);
} else {
electionOutro.gray.gotoAndStop(1);
}
if (president.pos == "oiled") {
electionOutro.president_field.text = STR.pres_oiled;
} else {
electionOutro.president_field.text = STR.pres_not_oiled;
}
electionOutro.presidentLine.gotoAndStop(president.pos);
electionOutro.continueBtn.onRelease = function () {
screen._visible = true;
createActionMenu(scenarios[currentScId].actions);
step();
updateLoop();
changeScenario("was");
playAmbient("was_loop");
removeMovieClip(electionOutro);
};
}
};
clearInterval(electionID);
electionID = setInterval(elections, "routine", ELECTION_SPEED);
animals.scrolling = function () {
if (dem._x < rep._x) {
cPoint = {x:rep._x, y:0};
} else {
cPoint = {x:dem._x, y:0};
}
animals.localToGlobal(cPoint);
ELASTIC = 4;
animals._x = animals._x - (((cPoint.x + ELECTION_X_OFFSET) - (STAGE_W / 2)) / ELASTIC);
};
clearInterval(scrollID);
scrollID = setInterval(animals, "scrolling", ELECTION_SCROLL_SPEED);
}
function createAdministration(repPerc, repFound, demFound, greenness) {
president = washington.president;
presidentThought = washington.congress.t10;
repReps = Math.round((repPerc / 100) * (REPS - 1));
demReps = (REPS - 1) - repReps;
vars.oiledReps = (oiledReps = Math.ceil((repReps / 100) * repFound));
vars.oiledDems = (oiledDems = Math.floor((demReps / 100) * demFound));
vars.greenReps = (greenReps = Math.floor(((repReps - oiledReps) / 100) * vars.greenness));
vars.greenDems = (greenDems = Math.ceil(((demReps - oiledDems) / 100) * vars.greenness));
vars.grayReps = (grayReps = (repReps - oiledReps) - greenReps);
vars.grayDems = (grayDems = (demReps - oiledDems) - greenDems);
if (repReps >= demReps) {
president.party = "rep";
if ((oiledReps >= greenReps) && (oiledReps >= grayReps)) {
president.pos = "oiled";
} else if ((greenReps > oiledReps) && (greenReps > grayReps)) {
president.pos = "green";
} else {
president.pos = "gray";
}
} else {
president.party = "dem";
if ((oiledDems > greenDems) && (oiledDems > grayDems)) {
president.pos = "oiled";
} else if ((greenDems >= oiledDems) && (greenDems >= grayDems)) {
president.pos = "green";
} else {
president.pos = "gray";
}
}
if (president.pos == "oiled") {
washington.undercover.activated = true;
} else {
washington.undercover.activated = false;
}
i = 0;
while (i < (REPS - 1)) {
thisRep = washington.congress["p" + i];
if (repReps > 0) {
thisRep.party = "rep";
if (oiledReps > 0) {
thisRep.pos = "oiled";
oiledReps--;
} else if (greenReps > 0) {
thisRep.pos = "green";
greenReps--;
} else {
thisRep.pos = "gray";
}
repReps--;
} else if (demReps > 0) {
thisRep.party = "dem";
if (oiledDems > 0) {
thisRep.pos = "oiled";
oiledDems--;
} else if (greenDems > 0) {
thisRep.pos = "green";
greenDems--;
} else {
thisRep.pos = "gray";
}
demReps--;
}
i++;
}
i = 0;
while (i < REPS) {
thisRep = washington.congress["p" + i];
washington.congress["t" + i]._visible = false;
washington.congress["t" + i].gotoAndStop(thisRep.pos);
thisRep.gotoAndStop(thisRep.party);
i++;
}
president.gotoAndStop(president.party);
presidentThought.gotoAndStop(president.pos);
vars.consent = ((repPerc >= 50) ? (repPerc) : (100 - repPerc));
vars.administrationParty = ((repPerc >= 50) ? "rep" : "dem");
}
function voteAct(currentAct) {
trace("voting act " + currentAct.tit);
ayes = 0;
i = 0;
while (i < (REPS - 1)) {
if (washington.congress["p" + i].pos == "green") {
ayes++;
} else if (washington.congress["p" + i].pos == "gray") {
grayAye = random(100) > (currentAct.boldness * 20);
if (grayAye) {
ayes++;
}
}
i++;
}
if (ayes > ((REPS - 1) / 2)) {
currentAct.sts = "disabled";
applyModifiers(currentAct.eff);
special(currentAct.id);
if (currentAct.timer != undefined) {
createTimedEvent(currentAct);
}
newMessage(currentAct.tit + " approved", "act_pic", currentAct, "act");
}
}
function voteBill(currentBill) {
trace("voting bill " + currentBill.tit);
ayes = 0;
i = 0;
while (i < (REPS - 1)) {
if (washington.congress["p" + i].pos == "oiled") {
ayes++;
} else if (washington.congress["p" + i].pos == "gray") {
if (random(100) > (currentBill.shamelessness * 20)) {
ayes++;
}
}
i++;
}
if (ayes > ((REPS - 1) / 2)) {
trace("bill approved");
currentBill.sts = "disabled";
applyModifiers(currentBill.eff);
special(currentBill.id);
newMessage(currentBill.tit + " approved", "act_pic", currentBill, "act");
} else {
trace("bill rejected");
}
buildBillIndex();
}
function refreshUndercover() {
for (u in UNDERCOVER) {
if ((UNDERCOVER[u].sts != "disabled") && (UNDERCOVER[u].dep != "special")) {
UNDERCOVER[u].sts = ((checkCondition(UNDERCOVER[u].cond) && (checkDependency(UNDERCOVER[u].dep))) ? "active" : "inactive");
}
}
}
function applyModifiers(effectsStr, negative) {
if (negative == undefined) {
negative = false;
}
effectsArr = new Array();
effectsArr = effectsStr.split(";");
i = 0;
while (i < effectsArr.length) {
index = effectsArr[i].indexOf("+");
if (index == -1) {
index = effectsArr[i].indexOf("-");
} else if (index == -1) {
trace("error in effect syntax " + billRef);
}
effectVar = effectsArr[i].slice(0, index);
effectVal = effectsArr[i].slice(index + 1, effectsArr[i].length);
effectOp = effectsArr[i].slice(index, index + 1);
if (effectOp == "+") {
vars[effectVar] = vars[effectVar] + (negative ? (-Number(effectVal)) : (Number(effectVal)));
} else {
vars[effectVar] = vars[effectVar] - (negative ? (-Number(effectVal)) : (Number(effectVal)));
}
if (vars[effectVar] < 1) {
vars[effectVar] = 1;
}
i++;
}
printVars();
}
function initModel() {
vars.prePeak = true;
vars.crisis = false;
vars.shareholdersSupport = 100;
PRICE_DIVIDER_RECESSION = 2;
PRICE_DIVIDER = 4;
PRICE_DIVIDER_PRE_PEAK = 8;
plantsUsage = 100;
old$BBL = vars.$BBL;
vars.year = INITIAL_YEAR;
lastElections = 1940;
vars.yearCount = 0;
stepInvestments = 0;
unitMaxValue = new Object();
wells = new Array();
burners = new Array();
createAdministration(vars.repPercentage, vars.repFounding, vars.demFounding, vars.greenness);
step();
}
function step() {
messageIndex = messageHistory.length - 1;
if ((((vars.year % ELECTION_FREQUENCY) == 0) && (lastElections != vars.year)) && (!cheats.noElections)) {
createActionMenu(scenarios[currentScId].actions);
clearInfo();
currentActionId = "info";
iFace.actions.menu.buttons.info.enabled = false;
iFace.actions.menu.buttons.info.gotoAndStop("active");
removeActionCursor();
stopSounds();
ambientBox.ambient1.sound.stop();
ambientBox.ambient2.sound.stop();
removeMovieClip(ambientBox.ambient1);
removeMovieClip(ambientBox.ambient2);
delete ambientBox.onEnterFrame;
soundBox.soundCount = 0;
loopBox.sound.stop();
if (options.sounds) {
soundBox.electionIntro = new Sound(soundBox);
soundBox.electionIntro.attachSound("election_intro");
soundBox.electionIntro.start();
}
electionIntro = ROOT.attachMovie("election_introScreen", "election_introScreen", 1000);
screen._visible = false;
electionIntro.elements.party_1.text = STR.donkey_party.toUpperCase();
electionIntro.elements.party_2.text = STR.elephant_party.toUpperCase();
electionIntro.elements.pop_1.text = (electionIntro.elements.pop_2.text = STR.popularity.toUpperCase());
if (vars.administrationParty == "rep") {
electionIntro.elements.repPop.text = vars.consent + "%";
electionIntro.elements.demPop.text = (100 - vars.consent) + "%";
} else {
electionIntro.elements.demPop.text = vars.consent + "%";
electionIntro.elements.repPop.text = (100 - vars.consent) + "%";
}
vars.administrationParty = ((repPerc >= 50) ? "rep" : "dem");
electionIntro.elements.participateBtn.onRelease = function () {
removeMovieClip(electionIntro);
initElections();
};
electionIntro.elements.skipBtn.onRelease = function () {
soundBox.electionIntro.stop();
removeMovieClip(electionIntro);
changeScenario("was");
updateLoop();
playAmbient("was_loop");
screen._visible = true;
repPop = ((vars.administrationParty == "rep") ? (vars.consent) : (100 - vars.consent));
createAdministration(repPop, 0, 0, vars.greenness);
step();
};
lastElections = vars.year;
} else {
vars.year++;
iFace.gizmo.year_field.text = vars.year;
stepRecovery = 0;
vars.maxRecovery = 0;
vars.ven_production = 0;
vars.nig_production = 0;
vars.tex_production = 0;
vars.ala_production = 0;
vars.irq_production = 0;
royaltiesBBL = 0;
mainteinanceCost = 0;
vars.GDP = vars.GDP + ((vars.GDP / 100) * vars.GDPgrowth);
vars.oilDemand = ((vars.GDP / 100) * vars.oilAddiction) * K_OIL;
i = 0;
while (i < wells.length) {
w = wells[i];
if ((w.reservoir.reserve > 0) && (w.enabled)) {
if (w.reservoir.reserve < (w.reservoir.capacity / 2)) {
w.reservoir.decline = ((w.reservoir.reserve * 2) / w.reservoir.capacity) * 100;
w.maxRecovery = (w.recoveryLimit / 100) * w.reservoir.decline;
}
vars.maxRecovery = vars.maxRecovery + w.maxRecovery;
}
if (w.maxRecovery <= 0) {
w.animation.stop();
}
i++;
}
i = 0;
while (i < burners.length) {
b = burners[i];
vars.maxRecovery = vars.maxRecovery + b.recoveryLimit;
i++;
}
if (vars.oilDemand > 0) {
plantsUsage = (vars.oilDemand / vars.maxRecovery) * 100;
} else {
plantsUsage = 0;
}
if (plantsUsage > 100) {
plantsUsage = 100;
}
if (plantsUsage < 0) {
plantsUsage = 0;
}
i = 0;
while (i < wells.length) {
if (wells[i].enabled) {
w = wells[i];
mainteinanceCost = mainteinanceCost + ((((w.mainteinanceCost / 100) * plantsUsage) / 100) * vars.maintenanceMultiplier);
if (w.reservoir.reserve > 0) {
w.recovery = (w.maxRecovery / 100) * plantsUsage;
w.reservoir.reserve = w.reservoir.reserve - w.recovery;
vars.ultimateReserve = vars.ultimateReserve - w.recovery;
stepRecovery = stepRecovery + w.recovery;
locId = w._parent._parent._name;
vars[locId + "_production"] = vars[locId + "_production"] + w.recovery;
vars[locId + "_ultimateReserve"] = vars[locId + "_ultimateReserve"] - w.recovery;
royaltiesBBL = royaltiesBBL + ((w.recovery / 100) * vars[locId + "_royalties"]);
}
}
i++;
}
i = 0;
while (i < burners.length) {
b = burners[i];
mainteinanceCost = mainteinanceCost + ((((b.mainteinanceCost / 100) * plantsUsage) / 100) * vars.maintenanceMultiplier);
b.recovery = (b.recoveryLimit / 100) * plantsUsage;
stepRecovery = stepRecovery + b.recovery;
locId = b._parent._parent._name;
vars[locId + "_production"] = vars[locId + "_production"] + b.recovery;
i++;
}
if (vars.oilDemand < vars.maxRecovery) {
soldBarrels = vars.oilDemand;
oilDeficit = 0;
} else {
soldBarrels = vars.maxRecovery;
oilDeficit = 100 - ((vars.maxRecovery / vars.oilDemand) * 100);
}
if (vars.yearCount < 2) {
oilDeficit = 0;
}
vars.globalWarming = vars.globalWarming + soldBarrels;
last$BBL = vars.$BBL;
if ((soldBarrels > 0) && (oilDeficit > 0)) {
if ((!vars.crisis) && (vars.prePeak)) {
old$BBL = vars.$BBL;
vars.crisis = true;
}
if (vars.prePeak) {
vars.$BBL = vars.$BBL + (oilDeficit / PRICE_DIVIDER_PRE_PEAK);
} else if ((!vars.prePeak) && (vars.GDPgrowth < 0)) {
vars.$BBL = vars.$BBL + (oilDeficit / PRICE_DIVIDER_RECESSION);
} else {
vars.$BBL = vars.$BBL + (oilDeficit / PRICE_DIVIDER);
}
if (vars.$BBL > MAX_$BBL) {
vars.$BBL = MAX_$BBL;
}
} else if (oilDeficit == 0) {
vars.crisis = false;
vars.$BBL = vars.$BBL - Math.round((vars.$BBL - old$BBL) / K_$BBL_POSTCRISIS);
if (vars.$BBL < old$BBL) {
vars.$BBL = old$BBL;
}
}
pricesGrowth = 100 - ((vars.$BBL / last$BBL) * 100);
if (pricesGrowth < 0) {
vars.GDPgrowth = vars.GDPgrowth + (((pricesGrowth / 100) * vars.oilAddiction) / GDP_INERTIA);
} else {
vars.GDPgrowth = vars.GDPgrowth + ((pricesGrowth / 100) * vars.oilAddiction);
if (((pricesGrowth / 100) * vars.oilAddiction) < 0) {
vars.consent = vars.consent - HOMELAND_CONFLICTUALITY;
}
}
if (vars.GDPgrowth > vars.potentialGrowth) {
vars.GDPgrowth = vars.potentialGrowth;
}
if ((vars.GDPgrowth < 0) && (EVENTS.recession.sts == "active")) {
newEvent(EVENTS.recession);
}
if ((vars.GDPgrowth > 0) && (EVENTS.recession.sts == "disabled")) {
EVENTS.recession.sts = "active";
}
if (soldBarrels > 0) {
income = soldBarrels * vars.$BBL;
royalties = royaltiesBBL * vars.$BBL;
taxes = (income / 100) * vars.taxes;
} else {
income = (royalties = (taxes = 0));
}
yearBalance = ((income - mainteinanceCost) - royalties) - taxes;
vars.money = vars.money + yearBalance;
activeEvents = new Array();
for (e in EVENTS) {
if (EVENTS[e].sts == "active") {
activeEvents.push(EVENTS[e]);
}
}
activeBills = new Array();
for (b in BILLS) {
if (BILLS[b].sts == "active") {
activeBills.push(BILLS[b]);
}
}
lastOilAddiction = vars.oilAddiction;
if (oilDeficit > 0) {
sortedActs = new Array();
for (a in ACTS) {
if (ACTS[a].sts == "active") {
sortedActs.push(ACTS[a]);
}
}
if (sortedActs.length > 0) {
rndAct = sortedActs[random(sortedActs.length)];
voteAct(rndAct);
}
projectedDemand = ((vars.GDP / 100) * vars.oilAddiction) * K_OIL;
projectedDeficit = 100 - ((vars.maxRecovery / vars.oilDemand) * 100);
if (projectedDeficit > 0) {
sortedGrassroot = new Array();
for (g in GRASSROOT) {
if (GRASSROOT[g].sts == "active") {
sortedGrassroot.push(GRASSROOT[g]);
}
}
sortedGrassroot.sortOn("greenness");
if (sortedGrassroot.length > 0) {
gEvent = sortedGrassroot[0];
if ((random(vars.greenness) > (gEvent.greenness * 20)) && (random(100) < GRASSROOT_PROBABILITY)) {
newEvent(gEvent);
} else {
trace("grassroot failed");
}
}
projectedDemand = ((vars.GDP / 100) * vars.oilAddiction) * K_OIL;
projectedDeficit = 100 - ((vars.maxRecovery / vars.oilDemand) * 100);
}
if (projectedDeficit > 0) {
vars.consent = vars.consent - (HOMELAND_CONFLICTUALITY / 2);
vars.greenness = vars.greenness + GREENNESS_CATASTROPHE;
if (vars.greenness > 100) {
vars.greenness = 100;
}
activeCatastrophes = new Array();
for (c in CATASTROPHES) {
if (((CATASTROPHES[c].sts != "disabled") && (vars.$BBL > CATASTROPHES[c].prices)) && (random(100) < CATASTROPHES_PROBABILITY)) {
activeCatastrophes.push(CATASTROPHES[c]);
}
}
activeCatastrophes.sortOn("prices");
if (activeCatastrophes.length > 0) {
newEvent(activeCatastrophes[0]);
}
}
} else if ((activeBills.length > 0) && (random(100) < BILL_PROBABILITY)) {
rndBill = activeBills[random(activeBills.length)];
voteBill(rndBill);
}
if ((activeEvents.length > 0) && (random(100) < EVENT_PROBABILITY)) {
newEvent(activeEvents[random(activeEvents.length - 1)]);
}
for (b in BILLS) {
if (((BILLS[b].sts == "inactive") && (checkCondition(BILLS[b].cond))) && (checkDependency(BILLS[b].dep))) {
BILLS[b].sts = "active";
trace(BILLS[b].tit + " activated");
}
}
for (e in EVENTS) {
if (((EVENTS[e].sts == "inactive") && (checkCondition(EVENTS[e].cond))) && (checkDependency(EVENTS[e].dep))) {
EVENTS[e].sts = "active";
trace(EVENTS[e].tit + " activated");
}
}
for (u in UNDERCOVER) {
if (((UNDERCOVER[u].sts == "inactive") && (checkCondition(UNDERCOVER[u].cond))) && (checkDependency(UNDERCOVER[u].dep))) {
UNDERCOVER[u].sts = "active";
trace(UNDERCOVER[u].tit + " activated");
}
}
for (a in ACTS) {
if (((ACTS[a].sts == "inactive") && (checkCondition(ACTS[a].cond))) && (checkDependency(ACTS[a].dep))) {
ACTS[a].sts = "active";
trace(ACTS[a].tit + " activated");
}
}
if (vars.prePeak && (vars.ultimateReserve < (vars.WORLD_CAPACITY / 1.6))) {
newEvent(EVENTS.world_peaked);
}
if ((vars.tex_ultimateReserve < (vars.tex_maxCapacity / 1.6)) && (EVENTS.tex_peaked.sts != "disabled")) {
newEvent(EVENTS.tex_peaked);
}
if (vars.nig_production > 0) {
vars.nig_dissent = vars.nig_dissent + ANTI_IMPERIALIST_TENSION;
}
if (((vars.nig_production > 30) && (screen.nig.ground.river.dead != true)) && (vars.gang_corrupted != true)) {
screen.nig.ground.river.gotoAndStop("dead");
screen.nig.ground.river.dead = true;
screen.nig.units.pigs._visible = false;
screen.nig.ground.river.onRollOver = function () {
setInfo(STR.river_clean);
};
screen.nig.ground.river.onRollOut = function () {
clearInfo();
};
screen.nig.ground.river.onRelease = function () {
showHelp(STR.river_polluted);
};
}
vars.gang_corrupted = false;
if ((EVENTS.ogoni_movement.sts == "disabled") && (random(100) < NIG_OCCUPATION_PROBABILITY)) {
targets = new Array();
for (mc in screen.nig.structures) {
if (((screen.nig.structures[mc].well || (screen.nig.structures[mc].id == "humanBurner")) && (screen.nig.structures[mc].terrain == "ground")) && (screen.nig.structures[mc].enabled)) {
targets.push(screen.nig.structures[mc]);
}
}
if ((AFRICA.execute_dissenters.sts != "disabled") && (targets.length > 0)) {
group = [{unit:"angryAfrican", number:NIG_OCCUPATION_PEOPLE}];
target = targets[random(targets.length)];
attack(group, target, false);
newMessage(STR.plant_occupation, "worker_comm", target, "unit");
group.createEmptyMovieClip("dummy", 999);
group.dummy.playSound("ogoni_demo", 100, true);
} else if ((targets.length > 0) && (!vars.nig_pacific)) {
group = [{unit:"rebel", number:MAX_NIG_REBELS}];
target = targets[random(targets.length)];
attack(group, target, true);
newMessage(STR.plant_attack, "worker_comm", target, "unit");
}
}
if ((vars.ven_production > 0) && (vars.ven_democracy)) {
vars.ven_dissent = vars.ven_dissent + ANTI_IMPERIALIST_TENSION;
}
if (((((vars.ven_democracy == true) && (vars.ven_nationalized == false)) && (vars.ven_democracy)) && (vars.ven_dissent > VEN_OCCUPATION_LIMIT)) && (random(100) < VEN_OCCUPATION_PROBABILITY)) {
targets = new Array();
for (mc in screen.ven.structures) {
if ((screen.ven.structures[mc].well && (screen.ven.structures[mc].terrain == "ground")) && (screen.ven.structures[mc].enabled)) {
targets.push(screen.ven.structures[mc]);
}
}
if (targets.length > 0) {
group = [{unit:"angryIndio", number:VEN_OCCUPATION_PEOPLE}];
target = targets[random(targets.length)];
attack(group, target, false);
newMessage(STR.plant_occupation, "worker_comm", target, "unit");
}
}
if (vars.irq_liberated) {
vars.irq_dissent = vars.irq_dissent + ANTI_IMPERIALIST_TENSION;
if (vars.irq_dissent >= 100) {
if (EVENTS.irq_anarchy.sts != "disabled") {
newEvent(EVENTS.irq_anarchy);
}
if (random(100) < IRQ_WELL_ATTACK) {
targets = new Array();
for (mc in screen.irq.structures) {
if ((screen.irq.structures[mc].well || (screen.irq.structures[mc].id == "humanBurner")) && (screen.irq.structures[mc].enabled)) {
targets.push(screen.irq.structures[mc]);
}
}
if (targets.length > 0) {
group = [{unit:"insurgent", number:random(MAX_IRQ_INSURGENT) + 1}];
target = targets[random(targets.length)];
attack(group, target, true);
if (target.group.people > 0) {
newMessage(STR.plant_attack, "mercenary_comm", target, "unit");
} else {
newMessage(STR.plant_attack, "worker_comm", target, "unit");
}
}
} else if (random(100) < IRQ_PALACE_ATTACK) {
group = [{unit:"insurgent", number:random(MAX_IRQ_INSURGENT) + 1}];
target = screen.irq.structures.palace;
attack(group, target, true);
newMessage(STR.palace_attack, "soldier_comm", target, "unit");
}
}
}
i = 0;
while (i < timedEvents.length) {
if (timedEvents[i].years > 0) {
timedEvents[i].years--;
if (timedEvents[i].years == 0) {
applyModifiers(timedEvents[i].eff, true);
}
}
i++;
}
i = 0;
while (i < occupations.length) {
if (occupations[i].years > 0) {
occupations[i].years--;
if (occupations[i].years == 0) {
if (occupations[i].grp.mission == "party") {
removeGroup(occupations[i].grp);
} else {
clearInterval(occupations[i].intervalId);
occupations[i].grp.mission = "completed";
occupations[i].tgt.enabled = true;
occupations[i].tgt.animation.play();
removeGroup(occupations[i].grp);
}
}
}
i++;
}
if ((oilDeficit == 0) && (vars.prePeak)) {
vars.shareholdersSupport = vars.shareholdersSupport + SH_TRUST_RECOVER;
} else if ((oilDeficit > 0) && (vars.ultimateReserve > (vars.WORLD_CAPACITY / 1.1))) {
vars.shareholdersSupport = vars.shareholdersSupport - SH_TRUST;
} else if ((oilDeficit > 0) && (vars.ultimateReserve > (vars.WORLD_CAPACITY / 1.2))) {
vars.shareholdersSupport = vars.shareholdersSupport - (SH_TRUST / 2);
} else if ((oilDeficit > 0) && (vars.ultimateReserve > (vars.WORLD_CAPACITY / 1.4))) {
vars.shareholdersSupport = vars.shareholdersSupport - (SH_TRUST / 4);
} else if ((oilDeficit > 0) && (vars.ultimateReserve > (vars.WORLD_CAPACITY / 1.5))) {
vars.shareholdersSupport = vars.shareholdersSupport - (SH_TRUST / 6);
} else if (!vars.prePeak) {
vars.shareholdersSupport = vars.oilAddiction;
}
if (vars.shareholdersSupport <= 40) {
if (!warningSH) {
newMessage(STR.share_first + STR.unsatisfied, "executive_pic", undefined, "board");
}
warningSH = true;
} else {
warningSH = false;
}
if (vars.shareholdersSupport <= 20) {
if (!warningSHTerminal) {
showHelp("Warning: you are not meeting the demand and the shareholders are really unsatisfied. They are considering to fire you.");
}
warningSHTerminal = true;
} else {
warningSHTerminal = false;
}
if (vars.consent < 0) {
vars.consent = 0;
}
if (vars.consent > 100) {
vars.consent = 100;
}
if (vars.oilAddiction > 100) {
vars.oilAddiction = 100;
}
if (vars.oilAddiction < 0) {
vars.oilAddiction = 0;
}
if (vars.greenness > 100) {
vars.greenness = 100;
}
if (vars.greenness < 0) {
vars.greenness = 0;
}
if (vars.shareholdersSupport > 100) {
vars.shareholdersSupport = 100;
}
if (vars.shareholdersSupport < 0) {
vars.shareholdersSupport = 0;
}
politicalDemonstrators = 0;
if (vars.consent < 50) {
politicalDemonstrators = (MAX_DEMONSTRATORS / 100) * ((50 - vars.consent) * 2);
}
if (politicalDemonstrators > MAX_DEMONSTRATORS) {
politicalDemonstrators = MAX_DEMONSTRATORS;
}
washington.congress.infoBox.pop_field.text = ((STR.popularity.toUpperCase() + ": ") + Math.round(vars.consent)) + "%";
washington.congress.infoBox.election_field.text = (STR.lastElections.toUpperCase() + ": ") + (lastElections + ELECTION_FREQUENCY);
washington.congress.dissentInfo.value_field.text = ((STR.dissent.toUpperCase() + ": ") + Math.round(100 - vars.consent)) + "%";
washington.congress.greenInfo.value_field.text = ((STR.greenness.toUpperCase() + ": ") + Math.round((vars.greenness * vars.oilAddiction) / 100)) + "%";
i = 0;
while (i < MAX_DEMONSTRATORS) {
if (politicalDemonstrators > 0) {
demonstration_admin["d_" + i].play();
demonstration_admin["d_" + i]._visible = true;
} else {
demonstration_admin["d_" + i]._visible = false;
}
politicalDemonstrators--;
i++;
}
greenDissent = (vars.greenness * vars.oilAddiction) / 100;
greenDemonstrators = Math.round((MAX_DEMONSTRATORS / 100) * greenDissent);
i = 0;
while (i < MAX_DEMONSTRATORS) {
if (greenDemonstrators > 0) {
demonstration_eco["d_" + i].play();
demonstration_eco["d_" + i]._visible = true;
} else {
demonstration_eco["d_" + i]._visible = false;
}
greenDemonstrators--;
i++;
}
printVars();
for (i in CHART_ITEMS) {
chart(i, vars[i], CHART_ITEMS[i][0], CHART_ITEMS[i][1], CHART_ITEMS[i][2]);
}
SHAREHOLDERS = 8;
if (vars.shareholdersSupport == 0) {
happyShareholders = 0;
} else if (vars.shareholdersSupport == 100) {
happyShareholders = SHAREHOLDERS;
} else {
happyShareholders = Math.round(SHAREHOLDERS / (100 / vars.shareholdersSupport));
}
s = 0;
while (s < SHAREHOLDERS) {
if (happyShareholders > 0) {
windows.economy.board["dir" + s].gotoAndStop("happy");
} else {
windows.economy.board["dir" + s].gotoAndStop("unhappy");
}
s++;
happyShareholders--;
}
shareTxt = STR.share_first;
if (vars.shareholdersSupport < 20) {
shareTxt = shareTxt + STR.angry;
} else if (vars.shareholdersSupport < 40) {
shareTxt = shareTxt + STR.unsatisfied;
} else if (vars.shareholdersSupport < 60) {
shareTxt = shareTxt + STR.perplexed;
} else if (vars.shareholdersSupport < 80) {
shareTxt = shareTxt + STR.satisfied;
} else if (vars.shareholdersSupport >= 80) {
shareTxt = shareTxt + STR.happy;
}
windows.economy.shareholders_field.text = shareTxt;
windows.economy.balance_year_field.text = ((vars.year - 1) + " ") + STR.balance;
windows.economy.values_field.text = trimMoney(income) + " $\n";
windows.economy.values_field.text = windows.economy.values_field.text + ((-trimMoney(stepInvestments)) + " $\n");
windows.economy.values_field.text = windows.economy.values_field.text + ((-trimMoney(mainteinanceCost)) + " $\n");
windows.economy.values_field.text = windows.economy.values_field.text + ((-trimMoney(royalties + taxes)) + " $\n");
windows.economy.year_balance_field.text = trimMoney(yearBalance) + " $\n";
windows.economy.money_field.text = trimMoney(vars.money) + " $\n";
resetUndercover();
area = windows.undercover.map.nig_stability.level;
if (vars.nig_dissent < 25) {
area.gotoAndStop("low");
} else if (vars.nig_dissent < 50) {
area.gotoAndStop("medium");
} else if (vars.nig_dissent < 75) {
area.gotoAndStop("high");
} else if (vars.nig_dissent >= 75) {
area.gotoAndStop("critical");
}
area = windows.undercover.map.irq_stability.level;
if (vars.irq_dissent < 25) {
area.gotoAndStop("low");
} else if (vars.irq_dissent < 50) {
area.gotoAndStop("medium");
} else if (vars.irq_dissent < 75) {
area.gotoAndStop("high");
} else if (vars.irq_dissent >= 75) {
area.gotoAndStop("critical");
}
area = windows.undercover.map.ven_stability.level;
if (vars.ven_dissent < 25) {
area.gotoAndStop("low");
} else if (vars.ven_dissent < 50) {
area.gotoAndStop("medium");
} else if (vars.ven_dissent < 75) {
area.gotoAndStop("high");
} else if (vars.ven_dissent >= 75) {
area.gotoAndStop("critical");
}
area = windows.undercover.map.usa_stability.level;
stab = (vars.consent + (100 - ((vars.greenness * vars.oilAddiction) / 100))) / 2;
if (stab > 40) {
area.gotoAndStop("low");
} else if (stab > 30) {
area.gotoAndStop("medium");
} else if (stab > 20) {
area.gotoAndStop("high");
} else {
area.gotoAndStop("critical");
}
normalizeCharts();
vars.yearCount++;
}
stepInvestments = 0;
if (((vars.shareholdersSupport <= 0) || (vars.money < MAX_DEBT)) && (!cheats.noShareholders)) {
end("fired");
} else if ((vars.oilAddiction <= MIN_OIL_ADDICTION) && (vars.yearCount > 30)) {
end("retire");
} else if (dystopia == true) {
end("mad");
} else if ((vars.GDP < (INITIAL_GDP * 3)) && (!vars.prePeak)) {
end("decline");
}
}
function trimMoney(val) {
val = Math.round(val);
return(val);
}
function printVars() {
iFace.gizmo.money_field.text = Math.round(vars.money);
iFace.gizmo.price_field.text = Math.round(vars.$BBL);
iFace.gizmo.growth_field.text = Math.round(vars.GDPgrowth) + "%";
iFace.gizmo.addiction_field.text = Math.ceil(vars.oilAddiction) + "%";
vars.moneyK = Math.round(vars.money / 1000);
histoData = [{nam:"oilDemand", val:vars.oilDemand, col:"0x990000", lab:STR.oil_demand2}, {nam:"stepRecovery", val:stepRecovery, col:"0x000000", lab:STR.actual_extraction}, {nam:"maxRecovery", val:vars.maxRecovery - stepRecovery, col:"0xB4B4B4", piled:"stepRecovery", lab:STR.max_extraction}];
createHistogram(histoData);
clearInterval(iFace.gizmo.histogram.intervalId);
iFace.gizmo.histogram.blink = false;
iFace.gizmo.histogram.interval = function () {
if (vars.oilDemand > vars.maxRecovery) {
this._alpha = (this.blink ? 80 : 100);
this.blink = !this.blink;
} else {
this._alpha = 100;
}
};
iFace.gizmo.histogram.intervalId = setInterval(iFace.gizmo.histogram, "interval", 200);
iFace.gizmo.trust_field.text = output;
i = 0;
while (i < reservoirs.length) {
perc = Math.round((reservoirs[i].reserve / reservoirs[i].capacity) * 100);
if (perc < 100) {
reservoirs[i].mask._height = (reservoirs[i].mask.H / 100) * perc;
}
i++;
}
}
function createHistogram(hData) {
maxValue = 0;
i = 0;
while (i < hData.length) {
if (histoData[i].val > maxValue) {
maxValue = histoData[i].val;
}
i++;
}
i = 0;
while (i < hData.length) {
barData = histoData[i];
trace((barData.nam + " ") + barData.col);
if (iFace.gizmo.histogram[barData.nam] == undefined) {
if (barData.piled != undefined) {
xPos = iFace.gizmo.histogram[barData.piled]._x;
} else {
xPos = i * BAR_W;
}
bar = iFace.gizmo.histogram.attachMovie("bar", barData.nam, i, {_x:xPos});
bar.paintIt(barData.col);
bar.lab = barData.lab;
bar.onRollOver = function () {
setInfo(this.lab);
};
bar.onRollOut = function () {
clearInfo();
};
}
iFace.gizmo.histogram[barData.nam]._height = barData.val;
if (barData.piled != undefined) {
yPos = -(iFace.gizmo.histogram[barData.piled]._y + iFace.gizmo.histogram[barData.piled]._height);
iFace.gizmo.histogram[barData.nam]._y = yPos;
} else {
iFace.gizmo.histogram[barData.nam]._y = 0;
}
i++;
}
if (iFace.gizmo.histogram._height > iFace.gizmo.mask._height) {
iFace.gizmo.histogram._height = iFace.gizmo.mask._height - 10;
}
}
function chart(line, val, col, unit) {
if (graph[line] == undefined) {
layer = graph.createEmptyMovieClip(line, graph.getNextHighestDepth());
layer.paintIt(col);
layer.moveTo(0, 0);
layer.lineStyle(2, col, 100, false, "none");
layer.lineData = new Array();
layer.unit = unit;
layer.lineColor = col;
} else {
layer = graph[line];
}
layer.lineData.push([val, vars.year, vars.yearCount * CHART_X_MULTIPLIER]);
xPos = vars.yearCount * CHART_X_MULTIPLIER;
yPos = (-val) * 2;
if (yPos > 0) {
yPos = 0;
}
if ((val > unitMaxValue[unit][1]) || (unitMaxValue[unit][1] == undefined)) {
unitMaxValue[unit] = [layer, val];
}
pt = {x:xPos, y:yPos};
layer.localToGlobal(pt);
graphBG.globalToLocal(pt);
if (pt.x > graphBG._width) {
graph[line]._width = graphBG._width;
}
layer.lineTo(xPos, yPos);
mouseListener.onMouseMove();
}
function normalizeCharts() {
for (u in unitMaxValue) {
if ((unitMaxValue[u][0]._height > (graphBG._height / 2)) || (unitMaxValue[u][0]._height < graphBG._height)) {
unitMaxValue[u][0]._height = graphBG._height;
}
for (l in graph) {
if (((graph[l] != unitMaxValue[u][0]) && (graph[l].unit != undefined)) && (graph[l].unit == u)) {
graph[l]._yscale = unitMaxValue[u][0]._yscale;
}
}
}
}
function newEvent(currentEvent) {
currentEvent.sts = "disabled";
applyModifiers(currentEvent.eff);
currentEvent.pic = random(windows.news.paper.body.pic._totalframes) + 1;
if (currentEvent.timer != undefined) {
createTimedEvent(currentEvent);
}
special(currentEvent.id);
newMessage(currentEvent.tit, "event_pic", currentEvent, "news");
}
function createTimedEvent(ev) {
newTimedEvent = new Object();
newTimedEvent.years = ev.timer;
newTimedEvent.eff = ev.eff;
timedEvents.push(newTimedEvent);
}
function checkCondition(condition) {
if (condition != undefined) {
index = undefined;
if (condition.indexOf("<=") != -1) {
index = condition.indexOf("<=");
}
if (condition.indexOf(">=") != -1) {
index = condition.indexOf(">=");
}
if (condition.indexOf("!=") != -1) {
index = condition.indexOf("!=");
}
if (condition.indexOf("==") != -1) {
index = condition.indexOf("==");
}
if (index != undefined) {
operandVar = condition.slice(0, index);
operandVal = condition.slice(index + 2, condition.length);
operator = condition.slice(index, index + 2);
}
if (condition.indexOf("<") != -1) {
index = condition.indexOf("<");
}
if (condition.indexOf(">") != -1) {
index = condition.indexOf(">");
}
if (index != undefined) {
operandVar = condition.slice(0, index);
operandVal = condition.slice(index + 1, condition.length);
if ((operandVal == "true") || (operandVal == "false")) {
operandVal = operandVal == "true";
} else {
operandVal = Number(operandVal);
}
operator = condition.slice(index, index + 1);
}
res = false;
if (index != undefined) {
switch (operator) {
case ">" :
res = vars[operandVar] > operandVal;
break;
case "<" :
res = vars[operandVar] < operandVal;
break;
case "==" :
res = vars[operandVar] == operandVal;
break;
case ">=" :
res = vars[operandVar] >= operandVal;
break;
case "<=" :
res = vars[operandVar] <= operandVal;
break;
case "!=" :
res = vars[operandVar] != operandVal;
}
} else {
trace("error in condition " + condition);
res = true;
}
} else {
res = true;
}
return(res);
}
function checkDependency(dependency) {
res = true;
if (dependency != undefined) {
obj = eval (dependency);
res = ((obj.sts == "disabled") ? true : false);
}
return(res);
}
function special(eventId) {
switch (eventId) {
case "world_peaked" :
vars.prePeak = false;
break;
case "tex_peaked" :
break;
case "oil_incentives" :
actions.inspect.cost = 0;
actions.inspectSea.cost = 0;
createActionMenu(scenarios[currentScId].actions);
break;
case "ala_activation" :
a = 0;
while (a < scenarios.ala.actions.length) {
scenarios.ala.actions[a].active = true;
a++;
}
a = 0;
while (a < scenarios.ala.actions.length) {
if ((scenarios.ala.actions[a].id == "help_ala") || ((scenarios.ala.actions[a].id == "humanBurner") && (EVENTS.human_burning_plants.sts != "disabled"))) {
scenarios.ala.actions[a].active = false;
}
a++;
}
if (currentScId == "ala") {
createActionMenu(scenarios.ala.actions);
}
break;
case "mission_accomplished" :
a = 0;
while (a < scenarios.irq.actions.length) {
scenarios.irq.actions[a].active = true;
a++;
}
a = 0;
while (a < scenarios.irq.actions.length) {
if (scenarios.irq.actions[a].id == "help_irq") {
scenarios.irq.actions[a].active = false;
}
a++;
}
if (currentScId == "irq") {
createActionMenu(scenarios.irq.actions);
}
break;
case "human_burning_plants" :
s = 0;
while (s < scenarioIds.length) {
sId = scenarioIds[s];
a = 0;
while (a < scenarios[sId].actions.length) {
if ((scenarios[sId].actions[a].id == "humanBurner") && ((((sId != "ven") || (sId != "irq")) || ((sId == "ven") && (!vars.ven_nationalized))) || ((sId == "irq") && (vars.irq_liberated)))) {
scenarios[sId].actions[a].active = true;
}
a++;
}
s++;
}
createActionMenu(scenarios[currentScId].actions);
break;
case "ven_nationalization" :
theLayer = screen.ven.structures;
for (mc in theLayer) {
if (theLayer[mc].enabled) {
theLayer[mc].animation.flag._visible = true;
theLayer[mc].enabled = false;
if ((theLayer[mc].currentAnimation == "birth") || (theLayer[mc].currentAnimation == "deploy")) {
removeMovieClip(theLayer[mc]);
}
}
}
a = 0;
while (a < scenarios.ven.actions.length) {
if (scenarios.ven.actions[a].id == "help_ven") {
scenarios.ven.actions[a].active = true;
} else {
scenarios.ven.actions[a].active = false;
}
a++;
}
if (currentScId == "ven") {
createActionMenu(scenarios.ven.actions);
clearInfo();
currentActionId = "info";
removeActionCursor();
}
vars.ven_nationalized = true;
break;
case "coup" :
if (vars.ven_nationalized) {
theLayer = screen.ven.structures;
for (mc in theLayer) {
if ((!theLayer[mc].enabled) && (theLayer[mc].currentAnimation != "destroy")) {
theLayer[mc].animation.flag._visible = false;
theLayer[mc].enabled = true;
}
}
a = 0;
while (a < scenarios.ven.actions.length) {
if ((scenarios.ven.actions[a].id != "help_ven") && ((scenarios.ven.actions[a].id != "humanBurner") || ((scenarios.ven.actions[a].id == "humanBurner") && (human_burning_plants.sts == "disabled")))) {
scenarios.ven.actions[a].active = true;
} else {
scenarios.ven.actions[a].active = false;
}
a++;
}
if (currentScId == "ven") {
createActionMenu(scenarios.ven.actions);
}
vars.ven_nationalized = false;
}
vars.ven_democracy = false;
vars.ven_dissent = 0;
break;
case "nig_liberation" :
vars.nig_pacific = false;
vars.nig_dissent = 0;
AFRICA.raid_tribe.sts = "disabled";
AFRICA.execute_dissenters.sts = "disabled";
AFRICA.pollution_discount.sts = "disabled";
AFRICA.reduce_royalties.sts = "disabled";
AFRICA.corrupt_gang.sts = "active";
AFRICA.patrol_station.sts = "active";
break;
case "desert_storm" :
special("usa_attack");
break;
case "enduring_freedom" :
special("usa_attack");
break;
case "enduring_freedom_retry" :
special("usa_attack");
break;
case "usa_attack" :
irqGroup = [{unit:"militia", number:IRQ_PALACE_GUARDS}];
grpMC = createTroop(irqGroup, screen.irq, palace._x);
palace.group = grpMC;
grpMC.base = screen.irq.structures.palace;
newOccupation = new Object();
newOccupation.grp = grpMC;
newOccupation.years = 1;
occupations.push(newOccupation);
irqFlag = true;
isWar = true;
teleportTo(screen.irq.structures.palace);
usaGroup = [{unit:"soldier", number:IRQ_ATTACK_SOLDIERS}];
attack(usaGroup, screen.irq.structures.palace, true);
screen.irq.structures.city.gotoAndStop("destroyed");
NUM_BOMBS = 7;
b = 0;
while (b < NUM_BOMBS) {
bomb = screen.irq.structures.city["bomb" + b];
bomb.gotoAndStop("drop");
bomb.onEnterFrame = function () {
if ((this._currentframe == 1) && (random(10) == 0)) {
this.play();
}
};
b++;
}
civilians = screen.irq.units.civilians;
for (p in civilians) {
civilians[p].gotoAndStop("death");
delete civilians[p].onEnterFrame;
}
screen.irq.units.civilians._visible = false;
screen.irq.units.deadCivilians._visible = true;
newOccupation = new Object();
newOccupation.grp = screen.irq.units.deadCivilians;
newOccupation.years = 1;
occupations.push(newOccupation);
break;
case "usa_invade" :
vars.irq_liberated = true;
isWar = false;
updateLoop();
EVENTS.kuwait_war.sts = "disabled";
UNDERCOVER.enduring_freedom_retry.sts = "disabled";
UNDERCOVER.enduring_freedom.sts = "disabled";
UNDERCOVER.wmd.sts = "disabled";
UNDERCOVER.block_irq_economy.sts = "disabled";
UNDERCOVER.help_irq_enemies.sts = "disabled";
UNDERCOVER.more_troops.sts = "active";
vars.irq_dissent = 80;
screen.irq.units.statue.gotoAndPlay("fall");
b = 0;
while (b < NUM_BOMBS) {
delete screen.irq.structures.city["bomb" + b].onEnterFrame;
b++;
}
EVENTS.mission_accomplished.pic = random(windows.news.paper.body.pic._totalframes) + 1;
newMessage(EVENTS.mission_accomplished.tit, "event_pic", EVENTS.mission_accomplished, "news");
a = 0;
while (a < scenarios.irq.actions.length) {
scenarios.irq.actions[a].active = true;
a++;
}
a = 0;
while (a < scenarios.irq.actions.length) {
if ((scenarios.irq.actions[a].id == "help_irq") || ((scenarios.irq.actions[a].id == "humanBurner") && (EVENTS.human_burning_plants.sts != "disabled"))) {
scenarios.irq.actions[a].active = false;
}
a++;
}
if (currentScId == "irq") {
createActionMenu(scenarios.irq.actions);
}
theLayer = screen.irq.structures;
for (mc in theLayer) {
if (theLayer[mc].well && (theLayer[mc].currentAnimation != "destroy")) {
theLayer[mc].animation.flag_irq._visible = false;
theLayer[mc].enabled = true;
}
}
break;
case "usa_fail" :
UNDERCOVER.enduring_freedom_retry.sts = "active";
isWar = false;
updateLoop();
b = 0;
while (b < NUM_BOMBS) {
delete screen.irq.structures.city["bomb" + b].onEnterFrame;
b++;
}
EVENTS.usa_fail.pic = random(windows.news.paper.body.pic._totalframes) + 1;
newMessage(EVENTS.usa_fail.tit, "event_pic", EVENTS.usa_fail, "news");
break;
case "iraq_reconquer" :
UNDERCOVER.enduring_freedom.sts = "disabled";
UNDERCOVER.wmd.sts = "disabled";
UNDERCOVER.block_irq_economy.sts = "disabled";
UNDERCOVER.help_irq_enemies.sts = "disabled";
UNDERCOVER.more_troops.sts = "disabled";
UNDERCOVER.enduring_freedom_retry.sts = "active";
screen.irq.units.statue.gotoAndPlay("restore");
vars.irq_dissent = 20;
vars.irq_liberated = false;
newMessage(STR.iraq_reconquer, "general_pic", palace, "unit");
a = 0;
while (a < scenarios.irq.actions.length) {
scenarios.irq.actions[a].active = false;
a++;
}
a = 0;
while (a < scenarios.irq.actions.length) {
if (scenarios.irq.actions[a].id == "help_irq") {
scenarios.irq.actions[a].active = true;
}
a++;
}
if (currentScId == "irq") {
createActionMenu(scenarios.irq.actions);
}
theLayer = screen.irq.structures;
for (mc in theLayer) {
if (theLayer[mc].enabled && (theLayer[mc].well)) {
theLayer[mc].animation.flag_irq._visible = true;
theLayer[mc].enabled = false;
cleanGroup(theLayer[mc].group, true);
theLayer[mc].group.people = 0;
if ((theLayer[mc].currentAnimation == "birth") || (theLayer[mc].currentAnimation == "deploy")) {
removeMovieClip(theLayer[mc]);
}
}
}
break;
case "iraq_fails" :
break;
case "more_troops" :
UNDERCOVER.more_troops.sts = "active";
i = 0;
while (i < 4) {
d = palace.group.getNextHighestDepth();
unit = palace.group.createEmptyMovieClip("u_" + d, d);
if ((palace.group.people % 2) == 0) {
unit._x = Math.floor(palace.group.people / 2) * UNIT_DISTANCE;
} else {
unit._x = (-Math.ceil(palace.group.people / 2)) * UNIT_DISTANCE;
}
unit._xscale = ((random(2) == 0) ? -100 : 100);
unit._y = UNITS_LEVEL;
unit.attachMovie("soldier", "animation", 10);
unit.type = "soldier";
initObject(unit, "soldier");
palace.group.people++;
i++;
}
teleportTo(palace);
break;
case "apocalypse" :
dystopia = true;
}
}
function africanMenu() {
playEffect("paper");
windows.africanMenu.book.today_field.text = STR.african_menu_first;
i = 0;
while (i < 2) {
itm = windows.africanMenu.book["item" + i];
itm.gotoAndStop("normal");
itm.onRollOver = (itm.onDragOver = function () {
this.gotoAndStop("roll");
});
itm.onRollOut = (itm.onDragOut = function () {
this.gotoAndStop("normal");
});
i++;
}
itm = windows.africanMenu.book.item0;
if (vars.nig_pacific) {
if (AFRICA.raid_tribe.sts == "active") {
africanButton(itm, AFRICA.raid_tribe);
} else if (AFRICA.execute_dissenters.sts == "active") {
africanButton(itm, AFRICA.execute_dissenters);
} else {
itm._visible = false;
}
} else {
africanButton(itm, AFRICA.corrupt_gang);
}
if (itm._visible) {
itm = windows.africanMenu.book.item1;
} else {
itm = windows.africanMenu.book.item0;
windows.africanMenu.book.item1._visible = false;
}
itm._visible = true;
if (vars.nig_pacific) {
if (AFRICA.pollution_discount.sts == "active") {
africanButton(itm, AFRICA.pollution_discount);
} else if (AFRICA.reduce_royalties.sts == "active") {
africanButton(itm, AFRICA.reduce_royalties);
} else {
itm._visible = false;
}
} else {
africanButton(itm, AFRICA.patrol_station);
}
}
function africanButton(btn, act) {
btn.title_field.text = ((act.tit + " ") + act.price) + " $";
btn.description_field.text = act.des;
btn.ref = act;
btn.onRelease = function () {
africanAction(this.ref);
};
}
function africanAction(actRef) {
if (actRef.price < vars.money) {
vars.money = vars.money - actRef.price;
printVars();
playEffect("ominous");
obscured = false;
switch (actRef) {
case AFRICA.raid_tribe :
vars.nig_dissent = vars.nig_dissent - 30;
screen.nig.units.tribe._visible = false;
screen.nig.units.raid._visible = true;
newOccupation = new Object();
newOccupation.grp = screen.nig.units.raid;
newOccupation.years = 1;
occupations.push(newOccupation);
teleportTo(screen.nig.units.raid);
AFRICA.raid_tribe.sts = "disabled";
AFRICA.execute_dissenters.sts = "active";
break;
case AFRICA.execute_dissenters :
vars.nig_dissent = 50;
if (EVENTS.nig_liberation.sts != "disabled") {
EVENTS.nig_liberation.sts = "active";
}
teleportTo(screen.nig.units.execution);
screen.nig.units.execution._visible = true;
newOccupation = new Object();
newOccupation.grp = screen.nig.units.execution;
newOccupation.years = 1;
occupations.push(newOccupation);
EVENTS.ogoni_movement.sts = "disabled";
AFRICA.execute_dissenters.sts = "disabled";
break;
case AFRICA.corrupt_gang :
vars.gang_corrupted = true;
break;
case AFRICA.patrol_station :
btn = iFace.actions.menu.buttons[currentActionId];
btn.enabled = true;
btn.gotoAndStop("normal");
currentActionId = "nigerianArmy";
break;
case AFRICA.pollution_discount :
vars.ven_royalties = vars.ven_royalties - 10;
if (vars.ven_royalties < 0) {
vars.ven_royalties = 0;
}
AFRICA.pollution_discount.sts = "disabled";
AFRICA.reduce_royalties.sts = "active";
break;
case AFRICA.reduce_royalties :
vars.ven_royalties = vars.ven_royalties - 20;
if (vars.ven_royalties < 0) {
vars.ven_royalties = 0;
}
AFRICA.reduce_royalties.sts = "disabled";
}
windows.africanMenu._visible = false;
removeMovieClip(windows.blackLayer.black);
} else {
playEffect("bop");
}
}
function end(id) {
currentScId = "none";
stopSounds();
ambientBox.ambient1.sound.stop();
ambientBox.ambient2.sound.stop();
removeMovieClip(ambientBox.ambient1);
removeMovieClip(ambientBox.ambient2);
delete ambientBox.onEnterFrame;
soundBox.soundCount = 0;
loopBox.sound.stop();
obscure();
if (options.sounds) {
ROOT.mainVolume.setVolume(100);
}
windows.blackLayer.onRelease = function () {
};
windows.attachMovie("windowEnd", "end", windows.getNextHighestDepth());
windows.end.gotoAndStop(id);
windows.end.title_field.text = STR[id + "_title"].toUpperCase();
windows.end.body_field.text = STR[id + "_body"];
windows.end.endBtn.onRelease = function () {
destroyEverythingYouTouch();
showIntro(true);
};
}
cheats = new Object();
cheats.viewUnderground = false;
cheats.noElections = false;
cheats.noShareholders = false;
cheats.noMoney = false;
stop();
ELECTION_FREQUENCY = 10;
INITIAL_MONEY = 4000;
INITIAL_ADDICTION = 30;
INITIAL_GDP = 400;
INITIAL_YEAR = 1945;
TAXES = 30;
MAX_DEBT = -1000;
MIN_OIL_ADDICTION = 25;
K_$BBL_POSTCRISIS = 2;
K_OIL = 0.3;
SH_TRUST = 20;
SH_TRUST_RECOVER = 20;
BIG_RESERVOIRS_CAPACITY = 5000;
MED_RESERVOIRS_CAPACITY = 3000;
SMA_RESERVOIRS_CAPACITY = 1000;
CATASTROPHES_PROBABILITY = 15;
GRASSROOT_PROBABILITY = 20;
EVENT_PROBABILITY = 30;
BILL_PROBABILITY = 30;
INIT_$BBL = 10;
MAX_$BBL = 300;
MAX_$BBL_PRE = 20;
GDP_INERTIA = 30;
REPS = 11;
BALOON_FRAMES = 60;
DEM_X = 20;
DEM_Y = 140;
REP_X = 20;
REP_Y = 240;
GREENNESS_CATASTROPHE = 10;
MAX_DEMONSTRATORS = 15;
HOMELAND_CONFLICTUALITY = 10;
ANIMALS_SPEED = 4;
ELECTION_SCROLL_SPEED = 20;
ELECTION_SPEED = 20;
ELECTION_X_OFFSET = 100;
ELECTION_LENGTH = 3000;
PREDICTABILITY = 100;
BOOST_DURATION = 40;
BUCKS_BOOST = 8;
SELL_OUT_BUCKS = 10;
DOLLARS_PER_BUCK = 100;
ELECTION_COST_INCREMENT = 1;
ANTI_IMPERIALIST_TENSION = 2;
VEN_OCCUPATION_LIMIT = 40;
VEN_OCCUPATION_PROBABILITY = 20;
NIG_OCCUPATION_LIMIT = 20;
NIG_OCCUPATION_PROBABILITY = 20;
IRQ_WELL_ATTACK = 20;
IRQ_PALACE_ATTACK = 20;
MAX_IRQ_INSURGENT = 6;
MAX_NIG_REBELS = 5;
VEN_OCCUPATION_PEOPLE = 4;
NIG_OCCUPATION_PEOPLE = 4;
IRQ_PALACE_GUARDS = 5;
IRQ_ATTACK_SOLDIERS = 5;
CHART_ITEMS = {oilDemand:["0x990000", "BBL", STR.oil_demand], maxRecovery:["0x999999", "BBL", STR.max_recovery], oilAddiction:["0x000000", "%", STR.oil_addiction], GDP:["0xFFCC00", "M $", STR.gross_domestic_product], $BBL:["0x41738B", "$", STR.price_per_barrel], moneyK:["0xD58000", "K $", STR.money]};
CHART_X_MULTIPLIER = 10;
function initGame() {
resetModel();
ROOT.mainVolume = new Sound(ROOT);
ROOT.createEmptyMovieClip("soundBox", -999);
ROOT.createEmptyMovieClip("ambientBox", -998);
ROOT.createEmptyMovieClip("loopBox", -996);
ROOT.createEmptyMovieClip("fxBox", -994);
ROOT.fxBox.sound = new Sound(fxBox);
fxBox.free = true;
ROOT.soundBox.soundCount = 0;
ultimateReserve = 0;
screen = ROOT.createEmptyMovieClip("screenLayer", 10);
cache = ROOT.createEmptyMovieClip("cache", 9999);
cache._visible = false;
timedEvents = new Array();
reservoirs = new Array();
conflicts = new Array();
occupations = new Array();
messageHistory = new Array();
messageIndex = -1;
initScenario("ven");
initScenario("tex");
initScenario("ala");
initScenario("nig");
initScenario("irq");
d = screen.getNextHighestDepth();
container = screen.createEmptyMovieClip("was", d);
washington = container.attachMovie("was_scenario", "scn", 10);
container.createEmptyMovieClip("overLayer", 100);
container._visible = false;
container.plants = 0;
washington.capitol.rolled = false;
washington.congress.swooshes._visible = false;
washington.congress.infoBox._visible = false;
washington.congress.infoBox.oiled_field.text = STR.oiled_str;
washington.congress.infoBox.gray_field.text = STR.gray_str;
washington.congress.infoBox.green_field.text = STR.eco_str;
washington.congress.infoBox.pop_field.text = ((STR.popularity.toUpperCase() + ": ") + vars.consent) + "%";
washington.congress.dissentInfo.caption_field.text = STR.dissent_demo_info;
washington.congress.greenInfo.caption_field.text = STR.eco_demo_info;
washington.congress.dissentInfo.value_field.text = ((STR.dissent.toUpperCase() + ": ") + Math.round((vars.greenness * vars.oilAddiction) / 100)) + "%";
washington.congress.greenInfo.value_field.text = ((STR.greenness.toUpperCase() + ": ") + Math.round((vars.greenness + vars.oilAddiction) / 2)) + "%";
dropShadow(washington.congress.dissentInfo);
dropShadow(washington.congress.greenInfo);
washington.congress.dissentInfo._visible = false;
washington.congress.greenInfo._visible = false;
washington.capitol.onRelease = function () {
playEffect("click");
clearInfo();
dropShadow(washington.congress.infoBox);
if ((!voting) && (!washington.congress.t0._visible)) {
washington.congress.swooshes._visible = true;
washington.congress.infoBox._visible = true;
i = 0;
while (i < REPS) {
baloon = washington.congress["t" + i];
baloon._xscale = (baloon._yscale = random(10) + 1);
baloon.t = 1;
baloon.a = 1;
baloon.onEnterFrame = baloonFrame;
baloon._visible = true;
i++;
}
}
};
washington.capitol.onRollOver = (washington.capitol.onDragOver = function () {
this.rolled = true;
setInfo(STR.government);
});
washington.capitol.onRollOut = (washington.capitol.onDragOut = function () {
this.rolled = false;
washington.congress.swooshes._visible = false;
washington.congress.infoBox._visible = false;
clearInfo();
i = 0;
while (i < REPS) {
washington.congress["t" + i]._visible = false;
i++;
}
});
washington.capitolFront.onEnterFrame = function () {
if (this._parent.capitol.rolled) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
this._alpha = 0;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 20;
}
};
washington.undercover.rolled = false;
washington.undercover.onRollOver = (washington.undercover.onDragOver = function () {
if (washington.undercover.activated) {
this.rolled = true;
setInfo(STR.undercover_ops);
} else {
setInfo(STR.undercover_locked);
}
});
washington.undercover.onRollOut = (washington.undercover.onDragOut = function () {
this.rolled = false;
clearInfo();
});
washington.undercoverFront.onEnterFrame = function () {
if (this._parent.undercover.rolled) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
this._alpha = 0;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 20;
}
};
washington.undercover.onRelease = function () {
if (washington.undercover.activated) {
openUndercoverWindow();
}
};
washington.president.onEnterFrame = function () {
if (washington.undercover.rolled && (washington.undercover.activated)) {
if (this._y < 258) {
this._y = this._y + 5;
} else {
this._y = 258;
}
} else if (this._y > 160) {
this._y = this._y - 5;
} else {
this._y = 160;
}
};
demonstration_admin = washington.createEmptyMovieClip("demonstration", washington.getNextHighestDepth());
demonstration_admin._y = DEMONSTRATORS_LEVEL;
rightLawn = 530;
DEM_DISTANCE = 15;
(i = 0);
(r = rightLawn);
while (i < MAX_DEMONSTRATORS) {
d = demonstration_admin.getNextHighestDepth();
newDem = demonstration_admin.attachMovie("demonstrator", "d_" + d, d, {_x:r, _xscale:-100, _visible:false});
newDem.onRollOver = function () {
setInfo(STR.demonstrator);
};
newDem.onRollOut = function () {
clearInfo();
washington.congress.dissentInfo._visible = false;
};
newDem.onRelease = function () {
clearInfo();
playEffect("click");
washington.congress.dissentInfo._visible = true;
};
i++;
(r = r + DEM_DISTANCE);
}
demonstration_eco = washington.createEmptyMovieClip("demonstration", washington.getNextHighestDepth());
demonstration_eco._y = DEMONSTRATORS_LEVEL;
leftLawn = 230;
(i = 0);
(l = leftLawn);
while (i < MAX_DEMONSTRATORS) {
d = demonstration_eco.getNextHighestDepth();
newDem = demonstration_eco.attachMovie("demonstrator_eco", "d_" + d, d, {_x:l, _xscale:100, _visible:false});
newDem.onRollOver = function () {
setInfo(STR.demonstrator_eco);
};
newDem.onRollOut = function () {
clearInfo();
};
newDem.onRollOut = function () {
clearInfo();
washington.congress.greenInfo._visible = false;
};
newDem.onRelease = function () {
clearInfo();
playEffect("click");
washington.congress.greenInfo._visible = true;
};
i++;
(l = l - DEM_DISTANCE);
}
initInterface();
screen.scrolling = function () {
if (!obscured) {
onInterface = iFace.hitTest(_xmouse, _ymouse, true);
if (onInterface) {
removeActionCursor();
}
cContainer = screen[currentScId];
sDx = _xmouse - (STAGE_W / 2);
if (((Math.abs(sDx) > SCROLL_OFFSET) && (!onInterface)) && (currentScId != "was")) {
cContainer._x = cContainer._x - ((sDx > 0) ? ((sDx - SCROLL_OFFSET) / SCROLL_SPEED_DIV) : ((sDx + SCROLL_OFFSET) / SCROLL_SPEED_DIV));
if ((cContainer._x < 0) && (cContainer._x > (((-cContainer.ground._width) + STAGE_W) + 10))) {
mouseListener.onMouseMove();
}
clearInfo();
}
if (cContainer._x > 0) {
cContainer._x = 0;
}
if (cContainer._x < (((-cContainer.ground._width) + STAGE_W) + 10)) {
cContainer._x = ((-cContainer.ground._width) + STAGE_W) + 10;
}
}
};
scrollingId = setInterval(screen, "scrolling", SCROLL_INTERVAL);
help = new Object();
help.count = 0;
help.routine = function () {
if ((oldXMouse == _xmouse) && (oldYMouse == _ymouse)) {
this.count++;
if (this.count > HELP_DELAY) {
if (currentLabel != undefined) {
showInfo(currentLabel);
}
if (currentButton != undefined) {
showButtonInfo(currentButton);
}
}
} else if (this.count > HELP_DELAY) {
this.count = 0;
iFace.inf._visible = false;
}
oldXMouse = _xmouse;
oldYMouse = _ymouse;
};
helpId = setInterval(help, "routine", 100);
initVars();
initModel();
changeScenario("tex");
showTutorial();
Mouse.addListener(mouseListener);
}
function initInterface() {
iFace = screen.attachMovie("interface", "interface", 20);
windows = screen.createEmptyMovieClip("winLayer", 30);
windows.createEmptyMovieClip("blackLayer", 0);
windows.attachMovie("windowGraph", "economy", 10);
windows.economy._visible = false;
windows.economy.graph_roll_field.text = STR.roll_field.toUpperCase();
windows.economy.graph_activate_field.text = STR.activate_field.toUpperCase();
windows.attachMovie("windowAct", "act", 20);
windows.act._visible = false;
windows.attachMovie("newsLayer", "news", 30);
windows.news._visible = false;
windows.attachMovie("undercoverWindow", "undercover", 40);
windows.undercover._visible = false;
windows.undercover.map.bg.onRelease = function () {
};
windows.undercover.intro.onRelease = function () {
};
windows.undercover.intro.title_field.text = STR.undercover_title;
windows.undercover.intro.description_field.text = STR.undercover_description;
windows.attachMovie("africanMenu", "africanMenu", 50);
windows.africanMenu._visible = false;
archiveIndex = 0;
windows.attachMovie("communicatorArchive", "archive", 60);
windows.archive._visible = false;
windows.archive.body.onRelease = function () {
};
playEffect("beep");
windows.archive.upBtn.gotoAndStop("normal");
windows.archive.downBtn.gotoAndStop("normal");
windows.archive.upBtn.onRollOver = (windows.archive.upBtn.onDragOver = function () {
this.gotoAndStop("roll");
});
windows.archive.downBtn.onRollOver = (windows.archive.downBtn.onDragOver = function () {
this.gotoAndStop("roll");
});
windows.archive.upBtn.onRollOut = (windows.archive.upBtn.onDragOut = function () {
this.gotoAndStop("normal");
});
windows.archive.downBtn.onRollOut = (windows.archive.downBtn.onDragOut = function () {
this.gotoAndStop("normal");
});
windows.archive.downBtn.onPress = function () {
this.gotoAndStop("active");
if ((windows.archive.items._height > windows.archive.mask._height) && (windows.archive.items._y > (windows.archive.mask._y + windows.archive.mask._height))) {
windows.archive.items._y = windows.archive.items._y - ARCHIVE_ITEM_H;
}
};
windows.archive.upBtn.onPress = function () {
this.gotoAndStop("active");
if ((windows.archive.items._height > windows.archive.mask._height) && ((windows.archive.items._y - windows.archive.items._height) < (windows.archive.mask._y - 10))) {
windows.archive.items._y = windows.archive.items._y + ARCHIVE_ITEM_H;
}
};
windows.archive.upBtn.onRelease = function () {
this.gotoAndStop("roll");
};
windows.archive.downBtn.onRelease = function () {
this.gotoAndStop("roll");
};
windows.attachMovie("white", "whiteFlash", 100);
windows.whiteFlash._visible = false;
tutorial = windows.attachMovie("tutorialWindow", "tutorial", 70);
tutorial._visible = false;
tutorial.window.body.onRelease = function () {
};
tutorial.page = 0;
tutorial.window.nextBtn.onPress = function () {
playEffect("click");
tutorial.page++;
slide(tutorial.page);
};
tutorial.window.prevBtn.onPress = function () {
playEffect("click");
tutorial.page--;
slide(tutorial.page);
};
windows.attachMovie("menuWindow", "inGameMenu", 81);
windows.inGameMenu._visible = false;
windows.inGameMenu.body.onRelease = function () {
};
windows.inGameMenu.quitBtn.onRelease = function () {
destroyEverythingYouTouch();
showIntro(true);
};
windows.inGameMenu.tutorialBtn.onRelease = function () {
windows.inGameMenu._visible = false;
showTutorial();
};
if (options.sounds) {
windows.inGameMenu.soundsBtn.label.gotoAndStop("on");
} else {
windows.inGameMenu.soundsBtn.label.gotoAndStop("off");
}
windows.inGameMenu.soundsBtn.body.onRollOver = function () {
windows.inGameMenu.soundsBtn.label.paintIt("0xFF9900");
};
windows.inGameMenu.soundsBtn.body.onRollOut = function () {
windows.inGameMenu.soundsBtn.label.paintIt("0xFFFFFF");
};
windows.inGameMenu.soundsBtn.body.onRelease = function () {
if (options.sounds) {
windows.inGameMenu.soundsBtn.label.gotoAndStop("off");
ROOT.mainVolume.setVolume(0);
options.sounds = false;
} else {
windows.inGameMenu.soundsBtn.label.gotoAndStop("on");
ROOT.mainVolume.setVolume(OBSCURED_VOLUME);
options.sounds = true;
updateLoop();
}
};
iFace.actions.onEnterFrame = function () {
if (currentScId == "was") {
this._visible = false;
} else {
this._visible = true;
}
if (onInterface) {
if (this.hitTest(_xmouse, _ymouse, false)) {
this.menu._y = this.menu._y + Math.round((ACTION_Y - this.menu._y) / 1.5);
if (this.menu._y > ACTION_Y) {
this.menu._y = ACTION_Y;
}
}
}
if (this.menu._y > 0) {
if (!this.hitTest(_xmouse, _ymouse, false)) {
this.menu._y = this.menu._y + Math.round((-this.menu._y) / 4);
}
}
};
iFace.communicator.archive.gotoAndStop("normal");
iFace.communicator.gotoAndStop("normal");
iFace.communicator.archive.onRollOver = function () {
this.gotoAndStop("roll");
setInfo(STR.event_archive);
};
iFace.communicator.archive.onRollOut = function () {
this.gotoAndStop("normal");
clearInfo();
};
iFace.communicator.archive.onRelease = function () {
showArchive();
};
iFace.communicator.area.onRollOver = (iFace.communicator.pic.onRollOver = function () {
this._parent.gotoAndStop("roll");
});
iFace.communicator.area.onRollOut = (iFace.communicator.pic.onRollOut = function () {
this._parent.gotoAndStop("normal");
});
iFace.communicator.count = 0;
COMMUNICATOR_OUT_W = 70;
COMMUNICATOR_OUT_Y = 20;
iFace.communicator.area._alpha = 0;
iFace.communicator.onEnterFrame = function () {
if (messageHistory.length > 0) {
if (this.count <= 0) {
if ((messageHistory.length - 1) > messageIndex) {
messageIndex++;
showMessage(messageHistory[messageIndex]);
}
}
if ((this.hitTest(_xmouse, _ymouse, false) || (this.count > 0)) && (!obscured)) {
this._y = this._y - Math.round((this._y - COMMUNICATOR_Y) / 1.5);
if (this._y < COMMUNICATOR_Y) {
this._y = COMMUNICATOR_Y;
}
this.area._width = (COMMUNICATOR_OUT_W + this.msg._width) + LABEL_MARGIN;
this.area._y = MSG_Y;
}
this.count--;
if (this._y >= COMMUNICATOR_Y) {
if (((!this.hitTest(_xmouse, _ymouse, false)) && (this.count < 0)) || (obscured)) {
this._y = this._y + Math.round((STAGE_H - this._y) / 2);
this.area._width = COMMUNICATOR_OUT_W;
this.area._y = -COMMUNICATOR_OUT_Y;
}
}
}
};
iFace.gizmo.money_hlp._alpha = 0;
iFace.gizmo.money_hlp.onRollOver = function () {
setInfo(STR.money);
};
iFace.gizmo.money_hlp.onRollOut = function () {
clearInfo();
};
iFace.gizmo.$BBL_hlp._alpha = 0;
iFace.gizmo.$BBL_hlp.onRollOver = function () {
setInfo(STR.price_per_barrel);
};
iFace.gizmo.$BBL_hlp.onRollOut = function () {
clearInfo();
};
iFace.gizmo.oilAddiction_hlp._alpha = 0;
iFace.gizmo.oilAddiction_hlp.onRollOver = function () {
setInfo(STR.oil_addiction);
};
iFace.gizmo.oilAddiction_hlp.onRollOut = function () {
clearInfo();
};
iFace.gizmo.GDPGrowth_hlp._alpha = 0;
iFace.gizmo.GDPGrowth_hlp.onRollOver = function () {
setInfo(STR.gross_domestic_product);
};
iFace.gizmo.GDPGrowth_hlp.onRollOut = function () {
clearInfo();
};
iFace.gizmo.year_hlp._alpha = 0;
iFace.gizmo.year_hlp.onRollOver = function () {
setInfo(STR.year);
};
iFace.gizmo.year_hlp.onRollOut = function () {
clearInfo();
};
iFace.gizmo.fastBtn.gotoAndStop("fastNormal");
iFace.gizmo.fastBtn.count = 0;
iFace.gizmo.fastBtn.pressed = false;
iFace.gizmo.fastBtn.onRollOver = (iFace.gizmo.fastBtn.dragOver = function () {
setInfo(STR.next_year);
this.gotoAndStop("fastRoll");
this.pressed = false;
});
iFace.gizmo.fastBtn.onRollOut = (iFace.gizmo.fastBtn.onDragOut = function () {
clearInfo();
this.gotoAndStop("fastNormal");
this.pressed = false;
this.count = 0;
});
iFace.gizmo.fastBtn.onPress = function () {
this.pressed = true;
this.count = 0;
};
iFace.gizmo.fastBtn.onRelease = function () {
this.pressed = false;
this.count = 0;
};
iFace.gizmo.fastBtn.onEnterFrame = function () {
if (this.pressed) {
if (((this.count % 4) == 0) || (this.count == 0)) {
iFace.communicator._y = STAGE_H;
iFace.communicator.count = 0;
clearInfo();
finalizeAnimations();
step();
timeFlash();
this.play();
stopSounds();
playEffect("timeBoom", true);
}
this.count++;
}
};
i = 0;
while (i < scenarioIds.length) {
btn = iFace.globe[scenarioIds[i]];
btn.fullName = scenarios[scenarioIds[i]].name;
btn.gotoAndStop("normal");
btn.onRollOver = function () {
setInfo(this.fullName);
if (this.isEnabled) {
this.gotoAndStop("roll");
}
};
btn.onRollOut = function () {
clearInfo();
if (this.isEnabled) {
this.gotoAndStop("normal");
}
};
btn.onPress = function () {
changeScenario(this._name);
};
i++;
}
iFace.gizmo.statBtn.gotoAndStop("normal");
iFace.gizmo.statBtn.onRelease = function () {
playEffect("beep");
windows.economy._visible = true;
obscure();
};
iFace.gizmo.menuBtn.onRelease = function () {
playEffect("beep");
windows.inGameMenu._visible = true;
obscure();
};
iFace.economy._visible = false;
obscured = false;
windows.blackLayer.onRelease = (windows.inGameMenu.closeBtn.onRelease = (windows.inGameMenu.continueBtn.onRelease = (windows.economy.closeBtn.onRelease = (tutorial.closeBtn.onRelease = (tutorial.window.endBtn.onRelease = (windows.africanMenu.closeBtn.onRelease = (windows.news.closeBtn.onRelease = (windows.undercover.closeBtn.onRelease = (windows.act.closeBtn.onRelease = (windows.archive.closeBtn.onRelease = function () {
if (options.sounds) {
ROOT.mainVolume.setVolume(100);
}
playEffect("bop");
windows.economy._visible = false;
windows.act._visible = false;
windows.undercover._visible = false;
windows.news._visible = false;
windows.africanMenu._visible = false;
windows.tutorial._visible = false;
windows.inGameMenu._visible = false;
if (!archiveOn) {
windows.archive._visible = false;
removeMovieClip(windows.blackLayer.black);
removeMovieClip(windows.hlp);
obscured = false;
} else {
archiveOn = false;
windows.archive._visible = true;
obscure();
}
}))))))))));
windows.undercover.bgWindow.onRelease = function () {
};
windows.economy.bgWindow.onRelease = function () {
};
windows.bills.bgWindow.onRelease = function () {
};
graph = windows.economy.overlay;
graphBG = windows.economy.bg;
for (i in CHART_ITEMS) {
windows.economy[i].field.text = CHART_ITEMS[i][2];
windows.economy[i].box.paintIt(CHART_ITEMS[i][0]);
windows.economy[i].active = true;
windows.economy[i].onRelease = function () {
this.active = !this.active;
if (this.active) {
this.restoreColor();
} else {
this.paintIt("0xCCCCCC");
}
graph[this._name]._visible = this.active;
};
}
}
function obscure() {
if (options.sounds) {
ROOT.mainVolume.setVolume(OBSCURED_VOLUME);
}
windows.blackLayer.attachMovie("black", "black", 0, {_alpha:50});
obscured = true;
}
function timeFlash() {
windows.whiteFlash._visible = true;
windows.whiteFlash._alpha = 100;
windows.whiteFlash.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._visible = false;
delete this.onEnterFrame;
}
};
}
function openUndercoverWindow() {
playEffect("specialOps");
windows.undercover._visible = true;
if (!undercoverActive) {
windows.undercover.briefing._visible = false;
}
obscure();
windows.undercover.map.dc._visible = false;
windows.undercover.map.sf._visible = false;
windows.undercover.map.ven._visible = false;
windows.undercover.map.irq._visible = false;
windows.undercover.map.afg._visible = false;
windows.undercover.map.ny._visible = false;
refreshUndercover();
for (u in UNDERCOVER) {
op = UNDERCOVER[u];
if (op.sts == "active") {
windows.undercover.map[op.loc]._visible = true;
windows.undercover.map[op.loc].ref = op;
windows.undercover.map[op.loc].onRelease = function () {
undercoverBriefing(this.ref);
};
}
}
}
function undercoverBriefing(ref) {
playEffect("beep");
windows.undercover.map.submitBtn._visible = true;
windows.undercover.briefing._rotation = random(10) - 5;
windows.undercover.briefing.title_field.text = ref.tit;
windows.undercover.briefing.description_field.text = ref.des;
windows.undercover.briefing.submitBtn.ref = ref;
windows.undercover.briefing.submitBtn.onRelease = function () {
undercoverOperation(this.ref);
};
windows.undercover.briefing._visible = true;
}
function undercoverOperation(ref) {
playEffect("ominous");
ref.sts = "disabled";
windows.undercover.map.gotoAndStop("operation");
windows.undercover.briefing.submitBtn._visible = false;
windows.undercover.closeBtn.onRelease();
undercoverActive = true;
applyModifiers(ref.eff);
special(ref.id);
obscured = false;
}
function resetUndercover() {
irqFlag = false;
undercoverActive = false;
refreshUndercover();
windows.undercover.map.gotoAndStop("map");
windows.undercover.briefing._visible = false;
windows.undercover.briefing.submitBtn._visible = true;
}
function initScenario(id) {
d = screen.getNextHighestDepth();
container = screen.createEmptyMovieClip(id, d);
container.attachMovie(id + "_bg", "bg", 10);
container.bg.water._alpha = 0;
container.count = 0;
container.plants = 0;
container.createEmptyMovieClip("rearLayer", 20);
container.createEmptyMovieClip("mystery", 25);
container.createEmptyMovieClip("frontLayer", 26);
if (!cheats.viewUnderground) {
qMarks = Math.ceil(container.bg._width / 720);
q = 0;
while (q < qMarks) {
d = container.mystery.getNextHighestDepth();
qM = container.mystery.attachMovie("questionMarks", "q_" + d, d, {_x:720 * q, _y:MYSTERY_LEVEL});
for (mc in qM) {
qM[mc]._xscale = (qM[mc]._yscale = random(150) + 50);
qM[mc]._rotation = random(180) - 90;
if (container.bg.water.hitTest(qM[mc])) {
qM[mc]._visible = false;
}
}
q++;
}
}
var _local4 = new flash.filters.GlowFilter(4797460, 0.8, 3.2, 3.2, 20, 5, false, false);
container.mystery.filters = [_local4];
container.attachMovie("squareTopLeft", "mysteryMask", 28, {_y:GROUND_LEVEL, _width:container.bg._width, _height:container.bg._height});
container.mystery.setMask(container.mysteryMask);
container.createEmptyMovieClip("reservoirs", 30);
_local4 = new flash.filters.GlowFilter(6506011, 0.8, 7, 7, 100, 5, false, false);
container.reservoirs.filters = [_local4];
container.createEmptyMovieClip("drills", 32);
container.createEmptyMovieClip("oil", 35);
container.attachMovie(id + "_structures", "structures", 40);
if (container.structures == undefined) {
container.createEmptyMovieClip("structures", 40);
}
container.attachMovie(id + "_ground", "ground", 60, {_y:GROUND_LEVEL});
container.attachMovie(id + "_units", "units", 70);
if (container.units == undefined) {
container.createEmptyMovieClip("units", 70);
}
container.createEmptyMovieClip("overLayer", 100);
r = 0;
while (r < scenarios[id].bigReservoirs) {
createReservoir(container, "big");
r++;
}
r = 0;
while (r < scenarios[id].mediumReservoirs) {
createReservoir(container, "med");
r++;
}
r = 0;
while (r < scenarios[id].smallReservoirs) {
createReservoir(container, "sma");
r++;
}
container._x = ((-container.ground._width) / 2) + (STAGE_W / 2);
WORLD_CAPACITY = ultimateReserve;
s = 0;
while (s < scenarioIds.length) {
switch (scenarioIds[s]) {
case "ala" :
layer = screen[scenarioIds[s]].units;
layer.whale.label = STR.whale;
layer.whale.onRollOver = function () {
setInfo(this.label);
};
layer.whale.onRollOut = function () {
clearInfo();
};
for (a in layer.birds) {
animal = layer.birds[a];
animal.dir = ((random(2) == 0) ? 1 : -1);
animal._xscale = 100 * animal.dir;
animal.label = STR.bird;
animal.onRollOver = function () {
setInfo(this.label);
};
animal.onRollOut = function () {
clearInfo();
};
}
for (a in layer.caribous) {
animal = layer.caribous[a];
animal.dir = ((random(2) == 0) ? 1 : -1);
animal._xscale = 100 * animal.dir;
animal.speed = CARIBOU_SPEED;
animal.walkLength = 10;
animal.walkitude = 200;
animal.turnitude = 4;
animal.steps = 0;
animal.startingPoint = animal._x;
animal.label = STR.caribou;
animal.onRollOver = function () {
setInfo(this.label);
};
animal.onRollOut = function () {
clearInfo();
};
animal.onEnterFrame = wandering;
}
break;
case "tex" :
tumbleweeds = new Object();
tumbleweeds.interval = function () {
if (random(10) == 0) {
d = screen.tex.units.getNextHighestDepth();
newTumb = screen.tex.units.attachMovie("tumble", "t_" + d, d, {_y:GROUND_LEVEL + 5});
size = random(4);
newTumb._xscale = (newTumb._yscale = (size * 10) + 80);
newTumb.gotoAndPlay(random(newTumb._totalframes) + 1);
newTumb.speed = 4 - (size / 2);
newTumb.onEnterFrame = function () {
this._x = this._x + this.speed;
if (this._x > screen.tex.ground._width) {
removeMovieClip(this);
}
};
}
};
clearInterval(tumbleweeds.id);
thumbleweeds.id = setInterval(tumbleweeds, "interval", 5000);
break;
case "nig" :
screen.nig.units.raid._visible = false;
screen.nig.ground.river.gotoAndStop("normal");
screen.nig.ground.river.onRollOver = function () {
setInfo(STR.river);
};
screen.nig.ground.river.onRollOut = function () {
clearInfo();
};
screen.nig.units.execution._visible = false;
screen.nig.units.execution.onRollOver = function () {
setInfo(STR.execution);
};
screen.nig.units.execution.onRollOut = function () {
clearInfo();
};
tribe = screen.nig.units.tribe;
for (p in tribe) {
person = tribe[p];
person.dir = ((random(2) == 0) ? 1 : -1);
person._xscale = 100 * person.dir;
person.speed = CIVILIAN_SPEED;
person.walkLength = 10;
person.walkitude = 150;
person.turnitude = 4;
person.steps = 0;
person.startingPoint = person._x;
person.label = STR.ogoni;
person.onRollOver = function () {
setInfo(this.label);
};
person.onRollOut = function () {
clearInfo();
};
person.onEnterFrame = wandering;
}
vil = screen.nig.structures.village;
vil.onRollOver = (vil.onDragOver = function () {
setInfo(STR.ogoni_village);
});
vil.onRollOut = (vil.onDragOut = function () {
clearInfo();
});
vil.onRelease = function () {
showHelp(STR.ogoni_hlp);
};
gov = screen.nig.structures.government;
gov.rolled = false;
gov.onRollOver = (gov.onDragOver = function () {
this.rolled = true;
setInfo(STR.nigerian_gov);
});
gov.onRollOut = (gov.onDragOut = function () {
this.rolled = false;
clearInfo();
});
gov.onRelease = function () {
windows.africanMenu._visible = true;
obscure();
africanMenu();
iFace.actions.menu.buttons[currentActionId].enabled = true;
iFace.actions.menu.buttons[currentActionId].gotoAndStop("normal");
currentActionId = "info";
iFace.actions.menu.buttons.info.enabled = false;
iFace.actions.menu.buttons.info.gotoAndStop("active");
removeActionCursor();
};
for (i in AFRICA) {
AFRICA[i].active = false;
}
screen.nig.structures.government_front.onEnterFrame = function () {
if (this._parent.government.rolled) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
this._alpha = 0;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 20;
}
};
break;
case "irq" :
palace = screen.irq.structures.palace;
palace.onRollOver = function () {
setInfo(STR.palace);
};
palace.onRollOut = function () {
clearInfo();
};
screen.irq.structures.city.gotoAndStop("normal");
screen.irq.units.statue.gotoAndStop("normal");
screen.irq.units.deadCivilians._visible = false;
screen.irq.units.deadCivilians.onRollOver = function () {
setInfo(STR.collateral);
};
screen.irq.units.deadCivilians.onRollOut = function () {
clearInfo();
};
civilians = screen.irq.units.civilians;
for (p in civilians) {
person = civilians[p];
person.dir = ((random(2) == 0) ? 1 : -1);
person._xscale = 100 * person.dir;
person.speed = CIVILIAN_SPEED;
person.walkLength = 10;
person.walkitude = 150;
person.turnitude = 4;
person.steps = 0;
person.startingPoint = person._x;
person.label = STR.terrorist;
person.onRollOver = function () {
setInfo(this.label);
};
person.onRollOut = function () {
clearInfo();
};
person.onEnterFrame = wandering;
}
break;
case "ven" :
layer = screen[scenarioIds[s]].units;
i = 0;
while (i < 2) {
animal = layer["jag" + (i + 1)];
animal.dir = ((random(2) == 0) ? 1 : -1);
animal._xscale = 100 * animal.dir;
animal.speed = JAGUAR_SPEED;
animal.walkLength = 20;
animal.walkitude = 100;
animal.turnitude = 4;
animal.steps = 0;
animal.startingPoint = animal._x;
animal.label = STR.jaguar;
animal.onRollOver = function () {
setInfo(this.label);
};
animal.onRollOut = function () {
clearInfo();
};
animal.onEnterFrame = wandering;
i++;
}
i = 0;
for(;;){
if (i >= 4) {
break;
}
indio = layer["indio" + (i + 1)];
indio.dir = ((random(2) == 0) ? 1 : -1);
indio._xscale = 100 * indio.dir;
indio.speed = INDIO_SPEED;
indio.walkLength = 20;
indio.walkitude = 300;
indio.turnitude = 4;
indio.steps = 0;
indio.startingPoint = indio._x;
indio.label = STR.indio;
indio.onRollOver = function () {
setInfo(this.label);
};
indio.onRollOut = function () {
clearInfo();
};
indio.onEnterFrame = wandering;
i++;
};
}
s++;
}
container._visible = false;
}
function wandering() {
if ((random(this.walkitude) == 0) && (this.steps <= 0)) {
this.steps = this.walkLength;
this.gotoAndPlay("walk");
}
if (this.steps > 0) {
this._x = this._x + (this.speed * this.dir);
this.steps--;
if (this.steps == 0) {
this.gotoAndPlay(1);
if ((Math.abs(this._x - this.startingPoint) > MAX_WANDERING_DISTANCE) && (!this.scared)) {
this.dir = ((this._x > this.startingPoint) ? -1 : 1);
this._xscale = this.dir * 100;
}
}
}
}
function outline(mc, color, thickness) {
if (thickness == "thin") {
var _local1 = new flash.filters.GlowFilter(color, 0.8, 1.2, 1.2, 3, 5, false, false);
} else {
var _local1 = new flash.filters.GlowFilter(color, 0.8, 1.5, 1.5, 6, 5, false, false);
}
mc.filters = [_local1];
}
function dropShadow(mc) {
var _local6 = 5;
var _local2 = 45;
var _local5 = 0;
var _local13 = 0.5;
var _local9 = 3;
var _local8 = 3;
var _local11 = 1;
var _local3 = 3;
var _local7 = false;
var _local12 = false;
var _local10 = false;
var _local4 = new flash.filters.DropShadowFilter(_local6, _local2, _local5, _local13, _local9, _local8, _local11, _local3, _local7, _local12, _local10);
var _local1 = new Array();
_local1.push(_local4);
mc.filters = _local1;
}
function deOutline(mc) {
mc.filters = new Array();
}
function createReservoir(scn, type) {
if (scn.full != true) {
id = scn.count;
scn.count++;
d = scn.reservoirs.getNextHighestDepth();
rN = random(RESERVOIR_N) + 1;
rDir = ((random(2) == 0) ? 100 : -100);
newRes = scn.reservoirs.attachMovie((("res_" + type) + "_") + rN, "r_" + id, d, {_y:RESERVE_Y, _x:random(scn.bg._width - (RESERVOIR_MARGIN * 2)) + RESERVOIR_MARGIN, _xscale:rDir});
if (d == 0) {
positioned = true;
} else {
positioned = false;
}
safe = 50;
while ((!positioned) && (safe > 0)) {
newRes._x = random(scn.bg._width - (RESERVOIR_MARGIN * 2)) + RESERVOIR_MARGIN;
hit = false;
for (mc in scn.reservoirs) {
if ((scn.reservoirs[mc] != newRes) && (!hit)) {
if (scn.reservoirs[mc].hitTest(newRes)) {
hit = true;
}
}
}
ptL = {x:newRes._x - (newRes._width / 2), y:STRUCTURES_LEVEL - 10};
ptR = {x:newRes._x + (newRes._width / 2), y:STRUCTURES_LEVEL - 10};
if (!hit) {
for (mc in scn.structures) {
if ((scn.structures[mc]._x != undefined) && ((scn.structures[mc].hitTest(ptL.x, ptL.y, false) || (scn.structures[mc].hitTest(newRes._x + (newRes._width / 2), STRUCTURES_LEVEL - 10, false))) || (scn.structures[mc].hitTest(newRes._x, STRUCTURES_LEVEL - 10, false)))) {
hit = true;
}
}
}
if (!hit) {
positioned = true;
}
safe--;
}
if (!positioned) {
trace("warning too many reserves on " + scn);
removeMovieClip(newRes);
scn.full = true;
} else if (positioned) {
d = scn.oil.getNextHighestDepth();
newOilField = scn.oil.createEmptyMovieClip("r_" + id, d);
newOil = newOilField.attachMovie((("oil_" + type) + "_") + rN, "oil", 10, {_x:newRes._x, _y:RESERVE_Y, _xscale:rDir});
newMask = newOilField.attachMovie("oilMask", "mask", 20, {_x:newRes._x - (newRes._width / 2), _y:RESERVE_Y + (newRes._height / 2), _width:newRes._width, _height:newRes._height});
newMask.H = newRes._height;
newOil.setMask(newMask);
newRes.mask = newMask;
newRes.scnId = scn._name;
if (!cheats.viewUnderground) {
newRes._visible = (newOilField._visible = false);
}
if (type == "med") {
newRes.reserve = (newRes.capacity = MED_RESERVOIRS_CAPACITY);
ultimateReserve = ultimateReserve + newRes.capacity;
newRes.label = STR.med_res;
} else if (type == "sma") {
newRes.reserve = (newRes.capacity = SMA_RESERVOIRS_CAPACITY);
ultimateReserve = ultimateReserve + newRes.capacity;
newRes.label = STR.sma_res;
} else {
newRes.reserve = (newRes.capacity = BIG_RESERVOIRS_CAPACITY);
ultimateReserve = ultimateReserve + newRes.capacity;
newRes.label = STR.big_res;
}
newRes.onRollOver = function () {
setInfo(this.label);
};
newRes.onRollOut = function () {
clearInfo();
};
reservoirs.push(newRes);
newRes.onRelease = function () {
if (!deployArea._visible) {
playEffect("click");
pt = {x:this._x, y:INFO_BALOON_Y};
this._parent.localToGlobal(pt);
inf = iFace.attachMovie("info_reservoir", "inf", 30, {_x:pt.x, _y:pt.y});
dropShadow(inf);
inf.title_field.text = STR.reservoir.toUpperCase();
inf.label_1.text = STR.reserve;
inf.field_1.text = ((Math.round(this.reserve) + " BBL - ") + Math.round((this.reserve / this.capacity) * 100)) + "%";
inf.label_2.text = STR.extraction_rate;
if (this.decline == 100) {
inf.field_2.text = STR.stationary.toUpperCase();
} else if (this.decline == undefined) {
inf.field_2.text = STR.n_a.toUpperCase();
} else {
inf.field_2.text = STR.declining.toUpperCase();
}
}
};
}
}
}
function revealGround(scn, s, e) {
tmp = scn.mystery.attachMovie("squareTopLeft", "tmp", 999, {_x:s, _width:e - s, _height:STAGE_H, _alpha:20});
for (cont in scn.mystery) {
for (quest in scn.mystery[cont]) {
if (scn.mystery[cont][quest].hitTest(tmp)) {
scn.mystery[cont][quest]._visible = false;
}
}
}
foundReservoirs = new Array();
for (res in scn.reservoirs) {
if (scn.reservoirs[res].hitTest(tmp)) {
foundReservoirs.push(scn.reservoirs[res]);
scn.oil[res]._visible = true;
}
}
scn._x++;
scn._x--;
removeMovieClip(tmp);
return(foundReservoirs);
}
function changeScenario(id) {
if (id != currentScId) {
stopSounds();
ambientBox.ambient1.sound.stop();
ambientBox.ambient2.sound.stop();
removeMovieClip(ambientBox.ambient1);
removeMovieClip(ambientBox.ambient2);
delete ambientBox.onEnterFrame;
soundBox.soundCount = 0;
switch (id) {
case "ala" :
playAmbient("ocean_loop", "ala_loop");
break;
case "tex" :
playAmbient("tex_loop");
break;
case "nig" :
playAmbient("nig_loop");
break;
case "ven" :
playAmbient("ven_loop", "ocean_loop");
break;
case "was" :
playAmbient("was_loop");
break;
case "irq" :
playAmbient("irq_loop");
}
iFace.globe[currentScId].gotoAndStop("normal");
iFace.globe[currentScId].isEnabled = true;
screen[currentScId]._visible = false;
currentScId = id;
iFace.globe[currentScId].gotoAndStop("active");
iFace.globe[currentScId].isEnabled = false;
screen[currentScId]._visible = true;
createActionMenu(scenarios[currentScId].actions);
clearInfo();
currentActionId = "info";
iFace.actions.menu.buttons.info.enabled = false;
iFace.actions.menu.buttons.info.gotoAndStop("active");
removeActionCursor();
updateLoop();
}
}
function createActionMenu(arr) {
buttonsMC = iFace.actions.menu.createEmptyMovieClip("buttons", 10);
a = 0;
while (a < arr.length) {
if (arr[a].active) {
aId = arr[a].id;
createActionButton(aId);
}
a++;
}
buttonsMC._x = (-((buttonsMC._width - ACTION_BUTTON_W) - (ACTION_BUTTON_MARGIN / 2))) / 2;
iFace.actions.area._width = buttonsMC._width;
iFace.actions.menu.bar._width = buttonsMC._width - (ACTION_BUTTON_W / 2);
}
function createActionButton(id) {
oBtn = actions[id];
d = iFace.actions.menu.buttons.getNextHighestDepth();
btn = iFace.actions.menu.buttons.attachMovie("actionBtn", id, d, {_x:d * (ACTION_BUTTON_W + ACTION_BUTTON_MARGIN)});
btn.enabled = true;
p = btn.pic.attachMovie(oBtn.pic, "pic", 10);
btn.label = oBtn.label;
btn.description = oBtn.description;
btn.cost = oBtn.cost;
btn.gotoAndStop("normal");
btn.onRollOver = function () {
setButtonInfo(this);
this.gotoAndStop("roll");
};
btn.onRollOut = function () {
clearButtonInfo();
this.gotoAndStop("normal");
};
if (id == "info") {
btn.onPress = function () {
playEffect("click");
iFace.actions.menu.buttons[currentActionId].enabled = true;
iFace.actions.menu.buttons[currentActionId].gotoAndStop("normal");
this.enabled = false;
this.gotoAndStop("active");
currentActionId = this._name;
clearButtonInfo();
};
} else if (id == "help_irq") {
btn.onPress = function () {
clearButtonInfo();
showHelp(STR.irq_hlp);
};
} else if (id == "help_ala") {
btn.onPress = function () {
clearButtonInfo();
showHelp(STR.ala_hlp);
};
} else if (id == "help_ven") {
btn.onPress = function () {
clearButtonInfo();
showHelp(STR.ven_hlp);
};
} else {
btn.onPress = function () {
playEffect("click");
iFace.actions.menu.buttons[currentActionId].enabled = true;
iFace.actions.menu.buttons[currentActionId].gotoAndStop("normal");
this.enabled = false;
this.gotoAndStop("active");
currentActionId = this._name;
clearButtonInfo();
};
}
}
function deploy(objId) {
newObj = objects[objId];
if (objects[objId].cat == "unit") {
layer = screen[currentScId].units;
}
if (objects[objId].cat == "structure") {
layer = screen[currentScId].structures;
}
d = layer.getNextHighestDepth();
temp = layer.createEmptyMovieClip("o_" + d, d);
temp._y = DEPLOY_LEVEL;
temp._x = screen[currentScId]._xmouse;
temp.attachMovie(objId + "_deploy", "animation", 10);
temp.currentAnimation = "deploy";
temp.a = FALLING_SPEED;
temp.type = objId;
temp.cat = objects[objId].cat;
groupTrees = temp._parent._parent.bg.trees;
treeFall = false;
if (objects[objId].cat == "structure") {
for (g in groupTrees) {
group = groupTrees[g];
if (deployArea.hitTest(group)) {
for (t in group) {
treeFall = true;
tree = group[t];
if (tree.enabled) {
if (deployArea.hitTest(tree)) {
treeFall = true;
tree.enabled = false;
tree.a = 0;
tree.dir = ((random(2) == 0) ? 1 : -1);
tree.onEnterFrame = function () {
this._rotation = this._rotation + (this.a * this.dir);
this.a++;
if (this._rotation > 90) {
delete this.onEnterFrame;
}
};
}
}
}
}
}
}
if (treeFall) {
group.playSound("tree");
}
if (currentScId == "ala") {
for (c in screen[currentScId].units.caribous) {
if (screen[currentScId].units.caribous[c].hitTest(deployArea)) {
crt = screen[currentScId].units.caribous[c];
crt.dir = 1;
crt._xscale = 100;
crt.steps = 400;
crt.speed = crt.speed + (random(4) / 2);
crt.scared = true;
crt.gotoAndPlay("walk");
}
}
for (c in screen[currentScId].units.birds) {
if (screen[currentScId].units.birds[c].hitTest(deployArea)) {
crt = screen[currentScId].units.birds[c];
crt.altitude = -100 + random(50);
crt.speed = 3 + (random(6) / 2);
crt.gotoAndPlay("fly");
crt.onEnterFrame = function () {
if (this._y > this.altitude) {
this._y = this._y - (this.speed / 2);
}
if (((this._x + this._parent._x) < 0) || ((this._x + this._parent._x) > this._parent._parent._parent.ground._width)) {
this._visible = false;
delete this.onEnterFrame;
}
this._x = this._x + (this.speed * this.dir);
};
}
}
}
if (currentScId == "ven") {
i = 0;
while (i < 2) {
animal = screen[currentScId].units["jag" + (i + 1)];
if (animal.hitTest(deployArea)) {
animal.dir = -1;
animal._xscale = -100;
animal.steps = 400;
animal.speed = animal.speed + (random(4) / 2);
animal.scared = true;
animal.gotoAndPlay("walk");
}
i++;
}
i = 0;
while (i < 4) {
indio = screen[currentScId].units["indio" + (i + 1)];
if (indio.hitTest(deployArea)) {
indio.dir = -1;
indio._xscale = -100;
indio.steps = 400;
indio.speed = indio.speed + (random(4) / 2);
indio.scared = true;
indio.gotoAndPlay("walk");
}
i++;
}
for (i in screen[currentScId].units.birds) {
bird = screen[currentScId].units.birds[i];
if (bird.hitTest(deployArea)) {
bird.altitude = -30 + random(50);
bird.speed = 3 + (random(6) / 2);
bird.dir = (random(2) ? 1 : -1);
bird._xscale = bird.dir * 100;
bird.gotoAndPlay("fly");
bird.onEnterFrame = function () {
if (this._y > this.altitude) {
this._y = this._y - (this.speed / 2);
}
if (((this._x + this._parent._x) < 0) || ((this._x + this._parent._x) > this._parent._parent._parent.ground._width)) {
this._visible = false;
delete this.onEnterFrame;
}
this._x = this._x + (this.speed * this.dir);
};
}
}
}
temp.onEnterFrame = falling;
}
function deployTo(objId, grp) {
d = grp.getNextHighestDepth();
temp = grp.createEmptyMovieClip("u_" + grp.people, d);
temp._y = (-UNITS_LEVEL) + DEPLOY_LEVEL;
if ((grp.people % 2) == 0) {
temp._x = Math.floor(grp.people / 2) * UNIT_DISTANCE;
} else {
temp._x = (-Math.ceil(grp.people / 2)) * UNIT_DISTANCE;
}
temp.attachMovie(objId + "_deploy", "animation", 10);
temp.currentAnimation = "deploy";
temp.a = FALLING_SPEED;
temp.type = objId;
temp.cat = objects[objId].cat;
temp.onEnterFrame = fallingGuard;
grp.people++;
}
function initObject(obj, objType) {
obj.animate("normal");
for (prop in objects[objType]) {
obj[prop] = objects[objType][prop];
}
if (obj.range != undefined) {
fRes = revealGround(obj._parent._parent, obj._x - (obj.range / 2), obj._x + (obj.range / 2));
obj.mission = "completed";
r = 0;
while (r < fRes.length) {
if (fRes[r]._visible == false) {
newMessage(STR.new_reservoir, "geologist_comm", obj, "unit");
fRes[r]._visible = true;
revealGround(obj._parent._parent, fRes[r]._x - (fRes[r]._width / 2), fRes[r]._x + (fRes[r]._width / 2));
}
r++;
}
newOccupation = new Object();
newOccupation.grp = obj;
newOccupation.years = 1;
occupations.push(newOccupation);
}
if (obj.cat == "active") {
obj.dir = ((random(2) == 0) ? 1 : -1);
obj._xscale = 100 * obj.dir;
obj.enabled = true;
obj.onEnterFrame = function () {
if (this.mission == undefined) {
if (this.currentAnimation == "normal") {
if (random(100) == 0) {
this.dir = this.dir * -1;
this._xscale = 100 * this.dir;
}
}
}
};
}
if (obj.well) {
obj.animation.flag._visible = false;
obj.animation.flag_irq._visible = false;
d = obj._parent._parent.units.getNextHighestDepth();
newGroup = obj._parent._parent.units.createEmptyMovieClip("g_" + d, d);
newGroup._x = obj._x;
newGroup._y = UNITS_LEVEL;
newGroup.people = 0;
newGroup.base = obj;
newGroup.center = obj._x;
obj.group = newGroup;
createDrill(obj);
if (obj.terrain == "water") {
d = obj._parent._parent.drills.getNextHighestDepth();
newBase = obj._parent._parent.drills.attachMovie("oilPlatform_base", "oil_base_" + d, d, {_y:STRUCTURES_LEVEL, _x:obj._x});
d = obj._parent._parent.bg.getNextHighestDepth();
duplicateMovieClip (obj._parent._parent.bg.water, "mask_" + d, d);
newBase.setMask(obj._parent._parent.bg["mask_" + d]);
}
fRes = revealGround(obj._parent._parent, (obj._x + obj.animation.hole._x) - DRILL_THICKNESS, (obj._x + obj.animation.hole._x) + DRILL_THICKNESS);
r = 0;
while (r < fRes.length) {
revealGround(obj._parent._parent, fRes[r]._x - (fRes[r]._width / 2), fRes[r]._x + (fRes[r]._width / 2));
r++;
}
if (fRes.length > 0) {
obj.reservoir = fRes[0];
fRes[0]._visible = true;
if (fRes[0].decline == undefined) {
fRes[0].decline = 100;
}
obj.maxRecovery = obj.recoveryLimit;
obj.recovery = 0;
obj.maxRecovery = (obj.recoveryLimit / 100) * obj.reservoir.decline;
vars.maxRecovery = vars.maxRecovery + obj.maxRecovery;
histoData = [{nam:"oilDemand", val:vars.oilDemand, col:"0x990000"}, {nam:"stepRecovery", val:stepRecovery, col:"0x000000"}, {nam:"maxRecovery", val:vars.maxRecovery - stepRecovery, col:"0xB4B4B4", piled:"stepRecovery"}];
createHistogram(histoData);
wells.push(obj);
obj._parent._parent.plants++;
updateLoop();
} else {
obj.animation.stop();
}
if ((obj._parent._parent._name == "ala") && (obj.terrain == "water")) {
screen.ala.units.whale.scared = true;
}
obj.onRelease = function () {
if (!deployArea._visible) {
playEffect("click");
if (_xmouse < (STAGE_W / 2)) {
xPos = ((this._x + (this._width / 2)) + (INFO_BALOON_WELL_W / 2)) + INFO_BALOON_SWOOSH_W;
} else {
xPos = ((this._x - (this._width / 2)) - (INFO_BALOON_WELL_W / 2)) - INFO_BALOON_SWOOSH_W;
}
pt = {x:xPos, y:INFO_BALOON_Y};
this._parent.localToGlobal(pt);
inf = iFace.attachMovie("info_well", "inf", 30, {_x:pt.x, _y:pt.y});
dropShadow(inf);
inf.title_field.text = this.label.toUpperCase();
inf.label_1.text = STR.max_recovery;
inf.field_1.text = (Math.round(this.recoveryLimit) + " ") + STR.bbl_year;
inf.label_2.text = STR.actual_recovery;
if (this.maxRecovery) {
inf.field_2.text = (Math.round(this.maxRecovery) + " ") + STR.bbl_year;
} else {
inf.field_2.text = "0 " + STR.dry;
}
}
};
}
if (obj.burner) {
burners.push(obj);
obj.onRelease = function () {
if (!deployArea._visible) {
playEffect("click");
if (_xmouse < (STAGE_W / 2)) {
xPos = ((this._x + (this._width / 2)) + (INFO_BALOON_WELL_W / 2)) + INFO_BALOON_SWOOSH_W;
} else {
xPos = ((this._x - (this._width / 2)) - (INFO_BALOON_WELL_W / 2)) - INFO_BALOON_SWOOSH_W;
}
pt = {x:xPos, y:INFO_BALOON_Y};
this._parent.localToGlobal(pt);
inf = iFace.attachMovie("info_burner", "inf", 30, {_x:pt.x, _y:pt.y});
dropShadow(inf);
inf.title_field.text = this.label.toUpperCase();
inf.label_1.text = STR.max_recovery;
inf.field_1.text = (this.recoveryLimit + " ") + STR.bbl_year;
}
};
}
obj.onRollOver = function () {
setInfo(this.label);
};
obj.onRollOut = function () {
clearInfo();
};
}
function setInfo(lab, des) {
currentLabel = lab;
currentDescription = des;
helpIsActive = true;
}
function clearInfo() {
helpIsActive = false;
removeMovieClip(iFace.inf);
}
function setButtonInfo(ref) {
currentButton = ref;
helpButtonIsActive = true;
}
function clearButtonInfo() {
currentButton = undefined;
helpButtonIsActive = false;
removeMovieClip(iFace.inf);
}
function showInfo(txt) {
if ((helpIsActive && (onInterface || (currentActionId == "info"))) && (iFace.inf == undefined)) {
inf = iFace.createEmptyMovieClip("inf", 30);
box = iFace.inf.createEmptyMovieClip("box", 10);
box.createTextField("lbl", 50, _xmouse + LABEL_X, _ymouse + LABEL_Y, 10, 10);
box.lbl.wordWrap = false;
box.lbl.selectable = false;
box.lbl.embedFonts = true;
var _local1 = new TextFormat();
_local1.font = "conduit";
_local1.size = 16;
_local1.color = 0;
_local1.bold = true;
_local1.align = "center";
box.lbl.text = txt.toUpperCase();
box.lbl.setTextFormat(_local1);
box.lbl.autoSize = true;
var _local2 = new com.jR.Drawing.Rectangle(box, 10);
_local2.__set__width(box.lbl._width + (LABEL_MARGIN * 2));
_local2.__set__height(box.lbl._height + LABEL_MARGIN);
_local2.__set__radius(0);
_local2.__set__fillRgb(16777215);
_local2.drawSolid({drawX:(_xmouse - LABEL_MARGIN) + LABEL_X, drawY:(_ymouse - LABEL_MARGIN) + LABEL_Y});
dropShadow(inf);
if (_xmouse > (STAGE_W / 2)) {
box._x = box._x - (box._width + (LABEL_MARGIN * 10));
} else {
box._x = box._x + (LABEL_MARGIN * 2);
}
}
}
function showButtonInfo() {
pt = {x:currentButton._x, y:BUTTON_HELP_Y};
currentButton._parent.localToGlobal(pt);
inf = iFace.createEmptyMovieClip("inf", 30);
inf.attachMovie("button_swoosh", "swoosh", 30, {_x:pt.x, _y:pt.y});
inf.createEmptyMovieClip("box", 40);
inf.box.createTextField("lbl", 50, pt.x, pt.y + INFO_BALOON_SWOOSH_W, 10, 10);
inf.box.lbl.wordWrap = false;
inf.box.lbl.selectable = false;
inf.box.lbl.embedFonts = true;
var _local1 = new TextFormat();
_local1.font = "conduit";
_local1.size = 16;
if ((currentButton.cost > vars.money) && (currentButton.cost != undefined)) {
_local1.color = 10066329 /* 0x999999 */;
} else {
_local1.color = 0;
}
_local1.bold = true;
_local1.align = "center";
if (currentButton.cost == undefined) {
inf.box.lbl.text = currentButton.label.toUpperCase();
} else {
inf.box.lbl.text = ((currentButton.label.toUpperCase() + ": ") + currentButton.cost) + "$";
}
inf.box.lbl.setTextFormat(_local1);
inf.box.lbl.autoSize = true;
rect = inf.box.attachMovie("info_box_top_left", "bg", 10, {_x:inf.box.lbl._x, _y:inf.box.lbl._y});
rect._width = inf.box.lbl._width + (LABEL_MARGIN * 2);
rect._height = inf.box.lbl._height + LABEL_MARGIN;
inf.box._x = inf.box._x - (inf.box._width / 2);
dropShadow(inf);
}
function showHelp(txt) {
playEffect("beep");
obscure();
win = windows.createEmptyMovieClip("hlp", 90);
box = win.createEmptyMovieClip("box", 10);
h = txt.length * 0.35;
box.createTextField("lbl", 50, LABEL_MARGIN, LABEL_MARGIN, 500, h);
box.lbl.wordWrap = true;
box.lbl.selectable = false;
box.lbl.embedFonts = true;
var _local1 = new TextFormat();
_local1.font = "conduit";
_local1.size = 16;
_local1.color = 0;
_local1.bold = true;
_local1.align = "justify";
box.lbl.text = txt.toUpperCase();
box.lbl.setTextFormat(_local1);
box.lbl.multiline = true;
var _local2 = new com.jR.Drawing.Rectangle(box, 10);
_local2.__set__width(box.lbl._width + (LABEL_MARGIN * 2));
_local2.__set__height(box.lbl._height + LABEL_MARGIN);
_local2.__set__radius(0);
_local2.__set__fillRgb(16777215);
_local2.drawSolid({drawX:box._x, drawY:box._y});
box._x = (STAGE_W / 2) - (box._width / 2);
box._y = ((STAGE_H / 2) - (box._height / 2)) - 20;
}
function createDrill(mc) {
hole = mc.animation.hole;
lyr = mc._parent._parent;
d = lyr.drills.getNextHighestDepth();
if (mc.terrain == "ground") {
grnd = lyr.drills.attachMovie("drillGround", "d_" + d, d, {_x:mc._x + hole._x, _y:STRUCTURES_LEVEL});
}
d = lyr.drills.getNextHighestDepth();
drl = lyr.drills.attachMovie("drillPipe", "d_" + d, d, {_x:mc._x + hole._x, _y:STRUCTURES_LEVEL});
drl.scn = lyr;
drl.grnd = grnd;
drl.stop();
grnd.stop();
drl.onEnterFrame = function () {
this.nextFrame();
this.grnd.nextFrame();
for (oMc in this.scn.reservoirs) {
if (this.scn.reservoirs[oMc].hitTest(this._x + this.scn._x, (this._y + this._height) + 15, true) && (this.touched == undefined)) {
this.touched = this.scn.reservoirs[oMc];
this.grnd.nextFrame();
}
}
if (this.touched != undefined) {
if (!this.touched.hitTest(this._x + this.scn._x, (this._y + this._height) + 15, true)) {
this.nextFrame();
delete this.onEnterFrame;
}
}
if (this._currentframe == this._totalframes) {
this.stop();
this.grnd.stop();
delete this.onEnterFrame;
}
};
}
function falling() {
if (this._parent._parent.ground.hitTest(this._x + this._parent._parent._x, this._y, false)) {
this.enabled = true;
if ((this.cat == "active") || (this.cat == "unit")) {
this._y = UNITS_LEVEL;
}
if (this.finalized) {
this.animate("normal");
initObject(this, this.type);
delete this.onEnterFrame;
} else {
this.animate("birth");
this.onEnterFrame = function () {
if (this.animation._currentframe == this.animation._totalframes) {
initObject(this, this.type);
delete this.onEnterFrame;
}
};
}
} else {
this._y = this._y + this.a;
}
}
function fallingGuard() {
this._y = this._y + this.a;
if (this._y > 0) {
this.enabled = true;
this._y = 0;
initObject(this, this.type);
delete this.onEnterFrame;
}
}
function finalizeAnimations() {
s = 0;
while (s < scenarioIds.length) {
layer = screen[scenarioIds[s]].structures;
for (mc in layer) {
if (layer[mc].currentAnimation == "deploy") {
layer[mc].finalized = true;
safe = 200;
while (((layer[mc].onEnterFrame != undefined) && (safe > 0)) && (layer[mc].currentAnimation == "deploy")) {
layer[mc].onEnterFrame();
safe--;
}
}
}
layer = screen[scenarioIds[s]].units;
for (mc in layer) {
if (layer[mc].currentAnimation == "deploy") {
layer[mc].finalized = true;
safe = 200;
while (((layer[mc].onEnterFrame != undefined) && (safe > 0)) && (layer[mc].currentAnimation == "deploy")) {
layer[mc].onEnterFrame();
safe--;
}
}
}
s++;
}
i = 0;
while (i < conflicts.length) {
if (conflicts[i].turn != -1) {
conflicts[i].group1.finalized = true;
conflicts[i].group2.finalized = true;
safe = 200;
while ((conflicts[i].turn != -1) && (safe > 0)) {
conflicts[i].interval();
safe--;
}
}
i++;
}
s = 0;
while (s < scenarioIds.length) {
for (mc in screen[scenarioIds[s]].structures) {
screen[scenarioIds[s]].structures[mc].finalized = false;
}
for (mc in screen[scenarioIds[s]].units) {
screen[scenarioIds[s]].structures[mc].finalized = false;
}
s++;
}
}
function createActionCursor(actId) {
objId = actions[actId].objRef;
depObj = objects[objId];
if (depObj.range != undefined) {
deployWidth = depObj.range;
removeMovieClip(cached);
} else {
cached = cache.attachMovie(objId + "_normal", "cached", 1);
if (cached == undefined) {
cached = cache.attachMovie(objId, "cached", 1);
}
deployWidth = cached._width;
}
if (actions[actId].cost != undefined) {
cost = actions[actId].cost;
}
actionCursor = screen[currentScId].overLayer.createEmptyMovieClip("actionCursor", 30);
lyr = screen[currentScId].overLayer;
actionCursor.createTextField("lbl", 50, lyr._xmouse, ACTION_CURSOR_Y, 10, 10);
actionCursor.lbl.wordWrap = false;
actionCursor.lbl.selectable = false;
actionCursor.lbl.embedFonts = true;
actionCursor.lbl.autoSize = true;
var _local2 = new TextFormat();
_local2.font = "conduit";
_local2.size = 16;
_local2.color = 16777215 /* 0xFFFFFF */;
_local2.bold = true;
_local2.align = "center";
deployArea = screen[currentScId].rearLayer.attachMovie("deployArea", "area", 10, {_y:UNITS_LEVEL, _width:actionCursor.range, _x:screen[currentScId]._xmouse, _alpha:50});
deployArea._width = deployWidth;
toWell = undefined;
lblText = undefined;
if (cached.hole != undefined) {
digLine = screen[currentScId].overLayer.attachMovie("digLine", "digLine", 70, {_x:lyr._xmouse + cached.hole._x, _y:STRUCTURES_LEVEL});
}
if (cost <= vars.money) {
if ((depObj.cat == "active") || (actId == "demolish")) {
for (mc in screen[currentScId].structures) {
if (screen[currentScId].structures[mc].well || (screen[currentScId].structures[mc].burner)) {
if (screen[currentScId].structures[mc].hitTest(deployArea) && (screen[currentScId].structures[mc].enabled)) {
toWell = screen[currentScId].structures[mc];
}
}
}
if (toWell != undefined) {
if (actId == "demolish") {
lblText = STR.demolish;
deployArea._x = toWell._x;
deployArea._width = toWell._width;
deployArea.gotoAndStop("yes");
digLine.gotoAndStop("no");
deployable = true;
}
if ((actId == "mercenary") || (actId == "nigerianArmy")) {
if (toWell.group.people < MAX_GUARDS) {
deployArea._x = toWell._x;
deployArea._width = toWell._width;
deployArea.gotoAndStop("yes");
digLine.gotoAndStop("no");
deployable = true;
} else {
lblText = STR.well_full;
deployArea.gotoAndStop("no");
digLine.gotoAndStop("no");
deployable = false;
}
}
} else {
if (actId == "demolish") {
lblText = STR.choose_str;
deployArea.gotoAndStop("no");
digLine.gotoAndStop("no");
deployable = false;
}
if ((actId == "mercenary") || (actId == "nigerianArmy")) {
lblText = STR.deploy_on_wells;
deployArea.gotoAndStop("no");
digLine.gotoAndStop("no");
deployable = false;
}
}
} else {
obstacle = false;
if (depObj.cat == "structure") {
for (mc in screen[currentScId].structures) {
if (screen[currentScId].structures[mc].hitTest(deployArea) && (screen[currentScId].structures[mc].enabled)) {
obstacle = true;
}
}
}
if ((checkTerrain(depObj, screen[currentScId], screen[currentScId]._xmouse - (deployWidth / 2)) && (checkTerrain(depObj, screen[currentScId], screen[currentScId]._xmouse + (deployWidth / 2)))) && (!obstacle)) {
deployArea.gotoAndStop("yes");
digLine.gotoAndStop("yes");
deployable = true;
} else {
lblText = STR.no_drop;
deployArea.gotoAndStop("no");
digLine.gotoAndStop("no");
deployable = false;
}
}
} else {
lblText = STR.no_money;
deployArea.gotoAndStop("no");
digLine.gotoAndStop("no");
deployable = false;
}
if (lblText != undefined) {
actionCursor.lbl.text = lblText.toUpperCase();
actionCursor.lbl.setTextFormat(_local2);
actionCursor.lbl.autoSize = true;
var _local3 = new com.jR.Drawing.Rectangle(actionCursor, 10);
_local3.__set__width(actionCursor.lbl._width + (LABEL_MARGIN * 2));
_local3.__set__height(actionCursor.lbl._height + LABEL_MARGIN);
_local3.__set__radius(0);
_local3.__set__fillRgb(0);
if (toWell != undefined) {
pnt = {x:deployArea._x, y:0};
screen[currentScId].rearLayer.localToGlobal(pnt);
screen[currentScId].overLayer.globalToLocal(pnt);
_local3.drawSolid({drawX:pnt.x - LABEL_MARGIN, drawY:ACTION_CURSOR_Y - LABEL_MARGIN});
actionCursor.lbl._x = pnt.x;
} else {
_local3.drawSolid({drawX:lyr._xmouse - LABEL_MARGIN, drawY:ACTION_CURSOR_Y - LABEL_MARGIN});
}
actionCursor._x = actionCursor._x - ((actionCursor._width / 2) - (LABEL_MARGIN * 2));
dropShadow(actionCursor);
}
}
function removeActionCursor() {
removeMovieClip(actionCursor);
removeMovieClip(deployArea);
removeMovieClip(digLine);
}
function checkTerrain(obj, scn, pos) {
bg = scn.bg;
if (obj.terrain == "ground") {
if (((bg.water != undefined) && (pos > bg.water._x)) && (pos < (bg.water._x + bg.water._width))) {
return(false);
}
return(true);
}
if (obj.terrain == "water") {
if ((bg.water == undefined) || ((pos < bg.water._x) || (pos > (bg.water._x + bg.water._width)))) {
return(false);
}
return(true);
}
}
function newMessage(txt, pic, ref, type) {
messageHistory.push({txt:txt, pic:pic, ref:ref, type:type});
if (type != "unit") {
archiveIndex++;
d = windows.archive.items.getNextHighestDepth();
lastItem = windows.archive.items.attachMovie("archive_item", "item_" + d, d, {_y:(-ARCHIVE_ITEM_H) * archiveIndex});
lastItem.title_field.text = (vars.year + " - ") + txt.toUpperCase();
lastItem.gotoAndStop("normal");
lastItem.onRollOver = function () {
this.gotoAndStop("roll");
};
lastItem.onRollOut = function () {
this.gotoAndStop("normal");
};
lastItem.ind = messageHistory.length - 1;
lastItem.onPress = function () {
this.gotoAndStop("normal");
archiveOn = true;
windows.archive._visible = false;
removeMovieClip(windows.blackLayer.black);
if (messageHistory[this.ind].type == "unit") {
teleportTo(messageHistory[this.ind].ref);
archiveOn = false;
} else if (messageHistory[this.ind].type == "act") {
playEffect("paper");
showAct(messageHistory[this.ind].ref);
} else if (messageHistory[this.ind].type == "board") {
windows.economy._visible = true;
obscure();
playEffect("beep");
} else if (messageHistory[this.ind].type == "undercover") {
if (washington.undercover.activated) {
changeScenario("was");
openUndercoverWindow();
} else {
this.gotoAndStop("roll");
archiveOn = false;
windows.archive._visible = true;
obscure();
}
} else if (messageHistory[this.ind].type == "news") {
playEffect("paper");
showEvent(messageHistory[this.ind].ref);
}
};
}
windows.archive.items._y = ARCHIVE_ITEM_H * (archiveIndex + 2);
}
function showArchive() {
obscure();
windows.archive._visible = true;
}
function showMessage(mObj) {
iFace.communicator.noise.gotoAndPlay(1);
iFace.communicator.count = MESSAGE_TIME;
iFace.communicator.pic.attachMovie(mObj.pic, "pic", 10);
msg = iFace.communicator.createEmptyMovieClip("msg", 30);
MSG_X = -30;
MSG_Y = 30;
MSG_Y2 = 2;
if (mObj.txt.length > 38) {
yPos = MSG_Y2;
} else {
yPos = MSG_Y;
}
msg.createTextField("lbl", 50, MSG_X, yPos, 10, 10);
msg.lbl.wordWrap = false;
msg.lbl.selectable = false;
msg.lbl.embedFonts = true;
var _local2 = new TextFormat();
_local2.font = "conduit";
_local2.size = 16;
_local2.color = 0;
_local2.bold = true;
_local2.align = "center";
msg.lbl.text = mObj.txt.toUpperCase();
msg.lbl.setTextFormat(_local2);
msg.lbl.autoSize = true;
var _local3 = new com.jR.Drawing.Rectangle(msg, 10);
_local3.__set__width(msg.lbl._width + (LABEL_MARGIN * 2));
_local3.__set__height(msg.lbl._height + LABEL_MARGIN);
_local3.__set__radius(5);
_local3.__set__fillRgb(16777215);
_local3.drawSolid({drawX:MSG_X - LABEL_MARGIN, drawY:yPos - LABEL_MARGIN});
msg.attachMovie("message_tail", "tail", 5, {_x:MSG_X, _y:yPos + ((msg.lbl._height - LABEL_MARGIN) / 2)});
iFace.communicator.ref = mObj.ref;
iFace.communicator.type = mObj.type;
if ((iFace.communicator.ref != undefined) && (iFace.communicator.type == "unit")) {
iFace.communicator.area.onRelease = (iFace.communicator.pic.onRelease = function () {
if ((messageHistory.length - 1) > messageIndex) {
messageIndex++;
iFace.communicator.count = MESSAGE_TIME;
} else {
iFace.communicator.count = 0;
}
if (this._parent.ref._x != undefined) {
teleportTo(this._parent.ref);
}
});
} else if (iFace.communicator.type == "act") {
iFace.communicator.area.onRelease = (iFace.communicator.pic.onRelease = function () {
if ((messageHistory.length - 1) > messageIndex) {
messageIndex++;
iFace.communicator.count = MESSAGE_TIME;
} else {
iFace.communicator.count = 0;
}
playEffect("paper");
showAct(this._parent.ref);
});
} else if (iFace.communicator.type == "board") {
iFace.communicator.area.onRelease = (iFace.communicator.pic.onRelease = function () {
if ((messageHistory.length - 1) > messageIndex) {
messageIndex++;
iFace.communicator.count = MESSAGE_TIME;
} else {
iFace.communicator.count = 0;
}
playEffect("beep");
windows.economy._visible = true;
obscure();
});
} else if (iFace.communicator.type == "news") {
iFace.communicator.area.onRelease = (iFace.communicator.pic.onRelease = function () {
if ((messageHistory.length - 1) > messageIndex) {
messageIndex++;
iFace.communicator.count = MESSAGE_TIME;
} else {
iFace.communicator.count = 0;
}
playEffect("paper");
showEvent(this._parent.ref);
});
} else if ((iFace.communicator.type == "undercover") && (washington.undercover.activated)) {
iFace.communicator.area.onRelease = (iFace.communicator.pic.onRelease = function () {
if ((messageHistory.length - 1) > messageIndex) {
messageIndex++;
iFace.communicator.count = MESSAGE_TIME;
} else {
iFace.communicator.count = 0;
}
changeScenario("was");
openUndercoverWindow();
});
} else {
iFace.communicator.area.onRelease = (iFace.communicator.pic.onRelease = function () {
});
}
iFace.communicator.area.enabled = true;
}
function teleportTo(unt) {
scn = unt._parent._parent;
changeScenario(scn._name);
scn._x = (-unt._x) + (STAGE_W / 2);
if (scn._x > 0) {
scn._x = 0;
}
if (scn._x < (((-scn.bg._width) + STAGE_W) + 10)) {
scn._x = ((-scn.bg._width) + STAGE_W) + 10;
}
}
function showAct(actObj) {
obscure();
windows.act.title_field.text = actObj.tit.toUpperCase();
windows.act.description_field.text = actObj.des;
windows.act.act_field.text = STR.an_act;
if (actObj.exp != undefined) {
windows.act.modifier_field.text = actObj.exp;
} else {
windows.act.modifier_field.text = effectPhrase(actObj.eff);
}
windows.act._visible = true;
inf = windows.act.createEmptyMovieClip("inf", 30);
if (actObj.friendly) {
windows.act.aid.gotoAndStop("oil");
windows.act.aid.label_field.text = STR.friendly_act.toUpperCase();
} else {
windows.act.aid.gotoAndStop("green");
windows.act.aid.label_field.text = STR.unfriendly_act.toUpperCase();
}
}
function showEvent(evObj) {
obscure();
windows.news._visible = true;
paper = windows.news.paper;
paper.titlePH._visible = false;
paper.year_field.text = (STR.year.toUpperCase() + " ") + vars.year;
tit = evObj.tit.toUpperCase();
subtitle = evObj.des.toUpperCase();
paper.body.pic.gotoAndStop(evObj.pic);
percLength = ((tit.length - 10) / 20) * 100;
if (percLength <= 1) {
percLength = 1;
}
if (percLength > 100) {
percLength = 100;
}
fraction = 0.24;
size = ((100 - percLength) * fraction) + 24;
paper.createTextField("tit", 10, paper.titlePH._x, paper.titlePH._y, paper.titlePH._width, paper.titlePH._height);
paper.tit.wordWrap = false;
paper.tit.selectable = false;
paper.tit.embedFonts = true;
var _local1 = new TextFormat();
_local1.font = "palatino";
_local1.size = size;
_local1.color = 2565665 /* 0x272621 */;
_local1.bold = true;
paper.tit.text = tit;
paper.tit.setTextFormat(_local1);
paper.tit.autoSize = true;
paper.tit._x = (paper.titlePH._x + (paper.titlePH._width / 2)) - (paper.tit._width / 2);
paper.spacer._y = paper.tit._y + paper.tit._height;
paper.createTextField("subTit", 20, paper.titlePH._x, paper.spacer._y, paper.titlePH._width, 10);
paper.subTit.wordWrap = false;
paper.subTit.selectable = false;
paper.subTit.embedFonts = true;
_local1 = new TextFormat();
_local1.font = "palatino";
_local1.size = 16;
_local1.color = 2565665 /* 0x272621 */;
_local1.italic = true;
_local1.align = "justify";
paper.subTit.text = subtitle;
paper.subTit.setTextFormat(_local1);
paper.subTit.multiline = true;
paper.subTit.wordWrap = true;
paper.subTit.autoSize = true;
paper.body._y = paper.subTit._y + paper.subTit._height;
eff = effectPhrase(evObj.eff);
if ((((evObj.eff != "") && (evObj.eff != undefined)) && (eff != "")) && (evObj.eff != "special")) {
paper.body.gotoAndStop("effect");
paper.body.effect_field.text = eff;
paper.body.effect_field.autoSize = true;
paper.body.effect_field._y = (paper.body.boxPH._y + (paper.body.boxPH._height / 2)) - (paper.body.effect_field._height / 2);
paper.body.boxPH._visible = false;
} else {
paper.body.gotoAndStop("noEffect");
}
}
function effectPhrase(effectsStr) {
effectsArr = new Array();
effectsArr = effectsStr.split(";");
str = effectsArr[0];
index = str.indexOf("+");
if (index == -1) {
index = str.indexOf("-");
} else if (index == -1) {
trace("error in effect syntax " + billRef);
}
effectVar = str.slice(0, index);
effectVal = str.slice(index + 1, str.length);
effectOp = str.slice(index, index + 1);
subject = "";
if (effectVar == "oilAddiction") {
if (effectOp == "+") {
subject = STR.eff_oil_up;
}
if (effectOp == "-") {
subject = STR.eff_oil_down;
}
unit = "%";
}
if (effectVar == "GDPGrowth") {
if (effectOp == "+") {
subject = STR.eff_gdp_up;
}
if (effectOp == "-") {
subject = STR.eff_gdp_down;
}
unit = "%";
}
if (effectVar == "money") {
if (effectOp == "+") {
subject = STR.eff_money_up;
}
if (effectOp == "-") {
subject = STR.eff_money_down;
}
unit = "$";
}
if (effectVar == "taxes") {
if (effectOp == "+") {
subject = STR.eff_tax_up;
}
if (effectOp == "-") {
subject = STR.eff_tax_down;
}
unit = "%";
}
if (effectVar == "maintenanceMultiplier") {
if (effectOp == "+") {
subject = STR.eff_maint_up;
}
if (effectOp == "-") {
subject = STR.eff_maint_down;
}
unit = "%";
}
if (((effectVar == "ven_royalties") || (effectVar == "tex_royalties")) || (effectVar == "nig_royalties")) {
if (effectOp == "+") {
subject = STR.eff_roy_up;
}
if (effectOp == "-") {
subject = STR.eff_roy_down;
}
unit = "%";
}
if (subject != "") {
return((((STR.eff_first + subject) + effectVal) + " ") + unit);
}
return("");
}
function createTroop(grp, scn, spot) {
soldier = objects[grp[0].unit];
groupBox.allied = ((grp[0].unit == "soldier") ? true : false);
safe = 200;
while ((spot == undefined) && (safe > 0)) {
tempSpot = random(scn.bg._width - GROUP_BOX_W) + (GROUP_BOX_W / 2);
if (checkTerrain(soldier, scn.bg, tempSpot)) {
spot = tempSpot;
}
safe--;
}
if (spot != undefined) {
d = scn.units.getNextHighestDepth();
groupBox = scn.units.createEmptyMovieClip("group_" + d, d);
groupBox._x = spot;
groupBox.center = spot;
groupBox.mission = "invade";
groupBox.people = 0;
i = 0;
while (i < grp.length) {
n = 0;
while (n < grp[i].number) {
d = groupBox.getNextHighestDepth();
unit = groupBox.createEmptyMovieClip("u_" + d, d);
if ((n % 2) == 0) {
unit._x = Math.floor(n / 2) * UNIT_DISTANCE;
} else {
unit._x = (-Math.ceil(n / 2)) * UNIT_DISTANCE;
}
unit._xscale = ((groupBox._x > tgt._x) ? -100 : 100);
unit._y = UNITS_LEVEL;
unit.attachMovie(grp[i].unit, "animation", 10);
unit.type = grp[i].unit;
initObject(unit, grp[i].unit);
groupBox.people++;
n++;
}
i++;
}
return(groupBox);
}
}
function attack(grp, tgt, violent) {
side = ((random(2) == 0) ? 1 : -1);
assaulter = objects[grp[0].unit];
spot = undefined;
if (checkTerrain(assaulter, tgt._parent._parent, (tgt._x + (ENGAGE_DISTANCE * side)) - (GROUP_BOX_W / 2)) && (checkTerrain(assaulter, tgt._parent._parent, (tgt._x + (ENGAGE_DISTANCE * side)) + (GROUP_BOX_W / 2)))) {
spot = tgt._x + (ENGAGE_DISTANCE * side);
} else if (checkTerrain(assaulter, tgt._parent._parent, (tgt._x + ((ENGAGE_DISTANCE * side) * -1)) - (GROUP_BOX_W / 2)) && (checkTerrain(assaulter, tgt._parent._parent, (tgt._x + ((ENGAGE_DISTANCE * side) * -1)) + (GROUP_BOX_W / 2)))) {
spot = tgt._x + ((ENGAGE_DISTANCE * side) * -1);
}
if (spot != undefined) {
scn = tgt._parent._parent;
d = scn.units.getNextHighestDepth();
groupBox = scn.units.createEmptyMovieClip("group_" + d, d);
groupBox.enemy = tgt;
groupBox._x = spot;
groupBox.people = 0;
groupBox.allied = ((grp[0].unit == "soldier") ? true : false);
i = 0;
while (i < grp.length) {
n = 0;
while (n < grp[i].number) {
d = groupBox.getNextHighestDepth();
assaulter = groupBox.createEmptyMovieClip("u_" + d, d);
if ((n % 2) == 0) {
assaulter._x = Math.floor(n / 2) * UNIT_DISTANCE;
} else {
assaulter._x = (-Math.ceil(n / 2)) * UNIT_DISTANCE;
}
assaulter._y = UNITS_LEVEL;
assaulter.attachMovie(grp[i].unit, "animation", 10);
assaulter.type = grp[i].unit;
initObject(assaulter, grp[i].unit);
groupBox.people++;
n++;
}
i++;
}
if (violent) {
if (tgt.group == undefined) {
createConflict(groupBox, tgt);
} else if (tgt.group.people > 0) {
createConflict(groupBox, tgt.group);
} else {
raid(groupBox, tgt);
}
} else if (tgt.group.people > 0) {
groupBox.mission = "completed";
} else if (tgt.group != undefined) {
occupy(groupBox, tgt);
}
}
}
function createConflict(atk, def) {
conflict = new Object();
conflicts.push(conflict);
conflict.turn = 0;
conflict.group1 = atk;
conflict.group2 = def;
for (mc in atk) {
if ((atk[mc].cat == "active") && (atk[mc].enabled)) {
atk[mc].animate("onGuard");
atk[mc].dir = ((atk._x > def._x) ? -1 : 1);
atk[mc]._xscale = atk[mc].dir * 100;
}
}
for (mc in def) {
if ((def[mc].cat == "active") && (def[mc].enabled)) {
def[mc].animate("onGuard");
def[mc].dir = ((atk._x > def._x) ? 1 : -1);
def[mc]._xscale = def[mc].dir * 100;
}
}
conflict.interval = function () {
if ((this.turn % 2) == 0) {
aGroup = this.group1;
dGroup = this.group2;
} else {
aGroup = this.group2;
dGroup = this.group1;
}
if ((((aGroup.base == palace) && (aGroup.people <= 0)) && (!aGroup.allied)) || (((dGroup.base == palace) && (dGroup.people <= 0)) && (!aGroup.allied))) {
special("usa_invade");
}
if ((((aGroup.base == palace) && (dGroup.people <= 0)) && (dGroup.allied)) || (((dGroup.base == palace) && (aGroup.people <= 0)) && (aGroup.allied))) {
special("usa_fail");
}
if ((((aGroup.base == palace) && (aGroup.people <= 0)) && (aGroup.allied)) || (((aGroup.base == palace) && (aGroup.people <= 0)) && (aGroup.allied))) {
special("iraq_reconquer");
}
if ((((aGroup.base == palace) && (dGroup.people <= 0)) && (!dGroup.allied)) || (((dGroup.base == palace) && (aGroup.people <= 0)) && (!aGroup.allied))) {
special("iraq_fails");
}
if (dGroup.people <= 0) {
for (mc in aGroup) {
if ((aGroup[mc].cat == "active") && (aGroup[mc].enabled)) {
aGroup[mc].animate("normal");
}
}
if (dGroup.base != undefined) {
raid(aGroup, dGroup.base);
removeMovieClip(dGroup);
}
cleanGroup(aGroup);
cleanGroup(dGroup);
this.turn = -1;
clearInterval(this.id);
} else if (aGroup.people <= 0) {
for (mc in dGroup) {
if ((dGroup[mc].cat == "active") && (dGroup[mc].enabled)) {
dGroup[mc].animate("normal");
}
}
if (aGroup.base != undefined) {
raid(dGroup, aGroup.base);
removeMovieClip(aGroup);
}
cleanGroup(aGroup);
cleanGroup(dGroup);
this.turn = -1;
clearInterval(this.id);
} else {
shooter = aGroup["u_" + random(aGroup.people)];
shooter.animate("normal");
shooter.animate("attack");
shooted = dGroup["u_" + (dGroup.people - 1)];
if (random(100) < shooter.power) {
shooted.enabled = false;
shooted._parent.people--;
if (!this.finalized) {
shooted.animate("die");
} else {
removeMovieClip(shooted);
}
}
this.turn++;
}
};
conflict.id = setInterval(conflict, "interval", CONFLICT_INTERVAL);
}
function raid(grp, tgt) {
grp.dir = ((grp._x > tgt._x) ? -1 : 1);
grp.tgt = tgt;
for (u in grp) {
if (grp[u].enabled && (grp[u].cat == "active")) {
grp[u]._xscale = 100 * grp.dir;
grp[u].animate("walk");
grp[u].mission = "raid";
}
}
grp.onEnterFrame = function () {
this._x = this._x + (UNIT_SPEED * this.dir);
for (u in this) {
if ((!this[u].enabled) && (this[u].cat == "active")) {
this[u]._x = this[u]._x - (UNIT_SPEED * this.dir);
}
}
if (Math.abs(this._x - this.tgt._x) <= UNIT_SPEED) {
this.mission = "party";
this._x = this.tgt._x;
if (this.tgt == palace) {
this.base = palace;
palace.group = this;
for (u in this) {
if (this[u].enabled && (this[u].cat == "active")) {
this[u].animate("normal");
}
}
} else {
destroy(this.tgt);
for (u in this) {
if (this[u].enabled && (this[u].cat == "active")) {
this[u].animate("win");
}
}
newOccupation = new Object();
newOccupation.grp = this;
newOccupation.years = 1;
occupations.push(newOccupation);
}
delete this.onEnterFrame;
}
};
if (grp.finalized) {
grp._x = grp.tgt._x;
grp.onEnterFrame();
}
}
function occupy(grp, tgt) {
grp.dir = ((grp._x > tgt._x) ? -1 : 1);
grp.tgt = tgt;
for (u in grp) {
if (grp[u].enabled && (grp[u].cat == "active")) {
grp[u]._xscale = 100 * grp.dir;
grp[u].animate("walk");
}
}
grp.onEnterFrame = function () {
this._x = this._x + (UNIT_SPEED * this.dir);
if (Math.abs(this._x - this.tgt._x) <= UNIT_SPEED) {
for (u in this) {
if (this[u].enabled && (this[u].cat == "active")) {
this[u].animate("normal");
}
}
this._x = this.tgt._x;
createOccupation(this, this.tgt, OCCUPATION_YEARS, this[u].demoSound);
delete this.onEnterFrame;
}
};
}
function destroy(structure) {
structure._parent._parent.plants--;
updateLoop();
structure.animate("destroy");
if (structure.finalized) {
structure.animation.gotoAndStop(structure.animation._totalframes);
}
structure.enabled = false;
removeMovieClip(structure.group);
}
function createOccupation(grp, tgt, years, snd) {
tgt.enabled = false;
tgt.animation.stop();
newOccupation = new Object();
newOccupation.grp = grp;
newOccupation.tgt = tgt;
newOccupation.years = years;
occupations.push(newOccupation);
if (snd != undefined) {
newOccupation.snd = snd;
newOccupation.loop = function () {
this.grp.u_0.playSound(this.snd);
};
tempSound = new Sound();
tempSound.attachSound(snd);
duration = tempSound.duration;
newOccupation.intervalId = setInterval(newOccupation, "loop", duration - 20);
}
}
function cleanGroup(group, unconditioned) {
GROUP_DISAPPEAR = 20;
for (u in group) {
if (((group[u].currentAnimation == "die") || (unconditioned)) && (group[u].well != true)) {
unit = group[u];
unit.count = 0;
unit.interval = function () {
if (this.count > GROUP_DISAPPEAR) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
this._visible = false;
removeMovieClip(this);
clearInterval(this.intervalId);
}
}
this.count++;
};
unit.intervalId = setInterval(unit, "interval", 10);
}
}
}
function removeGroup(group) {
GROUP_DISAPPEAR = 20;
group.count = 0;
group.interval = function () {
if (this.count > GROUP_DISAPPEAR) {
this._alpha = this._alpha - 10;
if (this._alpha < 10) {
this._visible = false;
removeMovieClip(this);
clearInterval(this.intervalId);
}
}
this.count++;
};
group.intervalId = setInterval(group, "interval", 10);
}
function showTutorial() {
obscure();
windows.tutorial._visible = true;
windows.tutorial.page = 0;
slide(0);
}
function slide(p) {
tutorial.window.endBtn._visible = false;
if (p == 0) {
tutorial.window.prevBtn._visible = false;
} else {
tutorial.window.prevBtn._visible = true;
}
if (p == TUTORIAL_PAGES) {
tutorial.window.nextBtn._visible = false;
tutorial.window.endBtn._visible = true;
} else {
tutorial.window.nextBtn._visible = true;
}
tutorial.window.title_field.text = STR[("tut_" + p) + "_title"].toUpperCase();
tutorial.window.description_field.text = STR[("tut_" + p) + "_description"];
tutorial.window.pic.attachMovie("tut_" + p, "pic", 10);
}
function playAmbient(lp1, lp2) {
if (options.sounds) {
if (lp2 == undefined) {
obj = ambientBox.createEmptyMovieClip("ambient1", 10);
obj.sound = new Sound(obj);
obj.sound.attachSound(lp1);
obj.vol = AMBIENT_VOLUME;
obj.sound.start(random(obj.sound.duration / 2) / 1000, 9999);
obj.sound.setVolume(AMBIENT_VOLUME);
} else {
obj = ambientBox.createEmptyMovieClip("ambient1", 10);
obj.sound = new Sound(obj);
obj.sound.attachSound(lp1);
obj.vol = AMBIENT_VOLUME;
obj.sound.start(random(obj.sound.duration / 2) / 1000, 9999);
obj.sound.setVolume(AMBIENT_VOLUME);
obj = ambientBox.createEmptyMovieClip("ambient2", 20);
obj.sound = new Sound(obj);
obj.sound.attachSound(lp2);
obj.vol = AMBIENT_VOLUME;
obj.sound.start(random(obj.sound.duration / 2) / 1000, 9999);
obj.sound.setVolume(AMBIENT_VOLUME);
ambientBox.onEnterFrame = function () {
balPer = ((-screen[currentScId]._x) / (screen[currentScId].ground._width - STAGE_W)) * 100;
bal = (balPer * 2) - 100;
vol2 = balPer;
vol1 = 100 - balPer;
if (bal > 0) {
pan1 = -100;
pan2 = 100 - bal;
}
if (bal < 0) {
pan1 = -100 - bal;
pan2 = 100;
}
if (bal == 0) {
pan1 = -100;
pan2 = 100;
}
ambientBox.ambient1.sound.setPan(pan1);
ambientBox.ambient2.sound.setPan(pan2);
ambientBox.ambient1.sound.setVolume(vol1);
ambientBox.ambient2.sound.setVolume(vol2);
};
ambientBox.onEnterFrame();
}
}
}
function playEffect(soundId, bypass) {
if (options.sounds && (fxBox.free || (bypass))) {
fxBox.sound.stop();
fxBox.sound.attachSound(soundId);
fxBox.sound.onSoundComplete = function () {
fxBox.free = true;
};
fxBox.sound.start();
fxBox.free = false;
obj.sound.setVolume(FX_VOLUME);
}
}
function updateLoop() {
if (options.sounds) {
if (isWar && (currentScId == "irq")) {
clearInterval(loopID);
loopBox.sound.stop();
loopBox.sound = new Sound(loopBox);
loopBox.sound.attachSound("war_loop");
loopBox.sound.start(0, 999);
} else {
ps = loopBox.sound.position;
loopBox.sound.stop();
loopBox.sound = new Sound(loopBox);
if (screen[currentScId].plants <= MAX_LOOP) {
loopBox.sound.attachSound("loop" + screen[currentScId].plants);
} else {
loopBox.sound.attachSound("loop" + MAX_LOOP);
}
if ((ps == undefined) || (ps >= loopBox.sound.duration)) {
ps = 0;
}
loopBox.sound.start(ps / 1000, 1);
loopBox.sound.setVolume(LOOP_VOLUME);
loopBox.interval = function () {
if (this.sound.position >= (this.sound.duration - 20)) {
loopBox.sound.stop();
loopBox.sound.start(0, 999);
loopBox.sound.setVolume(LOOP_VOLUME);
clearInterval(loopID);
}
};
clearInterval(loopID);
loopID = setInterval(loopBox, "interval", 10);
}
}
}
function stopSounds() {
for (s in soundBox) {
soundBox[s].sound.stop();
removeMovieClip(soundBox[s].sound);
soundBox.soundCount = 0;
}
}
function initMenu() {
ROOT.mainVolume = new Sound(ROOT);
intro.menuButtons.playBtn.onRelease = function () {
theme.stop();
initGame();
};
intro.menuButtons.creditsBtn.onRelease = function () {
intro.credits.gotoAndPlay("up");
intro.credits.tween.body.onRelease = function () {
};
intro.credits.tween.close.onRelease = function () {
intro.credits.gotoAndPlay("down");
};
};
if (options.sounds) {
intro.menuButtons.soundsBtn.label.gotoAndStop("on");
} else {
intro.menuButtons.soundsBtn.label.gotoAndStop("off");
}
intro.menuButtons.soundsBtn.body.onRollOver = function () {
intro.menuButtons.soundsBtn.label.paintIt("0xFF9900");
};
intro.menuButtons.soundsBtn.body.onRollOut = function () {
intro.menuButtons.soundsBtn.label.paintIt("0xFFFFFF");
};
intro.menuButtons.soundsBtn.body.onRelease = function () {
if (options.sounds) {
theme.stop();
intro.menuButtons.soundsBtn.label.gotoAndStop("off");
ROOT.mainVolume.setVolume(0);
options.sounds = false;
} else {
intro.menuButtons.soundsBtn.label.gotoAndStop("on");
ROOT.mainVolume.setVolume(100);
options.sounds = true;
theme.start();
}
};
}
function showIntro(skipToMenu) {
theme = new Sound();
theme.attachSound("theme");
intro = ROOT.attachMovie("introSequence", "intro", 10, {_x:Stage.width / 2, _y:Stage.height / 2});
if (skipToMenu) {
intro.gotoAndStop("menu");
}
if ((options.sounds == undefined) || (options.sounds)) {
ROOT.mainVolume.setVolume(100);
theme.start();
}
}
function destroyEverythingYouTouch() {
stopSounds();
ambientBox.ambient1.sound.stop();
ambientBox.ambient2.sound.stop();
loopBox.sound.stop();
stopAllSounds();
clearInterval(scrollingId);
clearInterval(helpId);
clearInterval(loopID);
clearInterval(electionID);
clearInterval(scrollID);
clearInterval(iFace.gizmo.histogram.intervalId);
i = 0;
while (i < conflicts.length) {
clearInterval(occupations[i].id);
i++;
}
i = 0;
while (i < occupations.length) {
clearInterval(occupations[i].intervalId);
i++;
}
for (mc in ROOT) {
removeMovieClip(ROOT[mc]);
}
}
stop();
SCROLL_INTERVAL = 20;
SCROLL_OFFSET = 280;
SCROLL_SPEED_DIV = 3;
ACTION_Y = 90;
ACTION_BUTTON_W = 40;
ACTION_BUTTON_MARGIN = 10;
ACTION_CURSOR_Y = 100;
COMMUNICATOR_Y = 240;
MESSAGE_TIME = 25;
UNIT_SPEED = 4;
CIVILIAN_SPEED = 2;
INDIO_SPEED = 3;
FALLING_SPEED = 5;
STAGE_W = Stage.width;
STAGE_H = Stage.height;
RESERVOIR_MARGIN = 200;
MYSTERY_LEVEL = 200;
GROUND_LEVEL = 174;
STRUCTURES_LEVEL = 178;
UNITS_LEVEL = 182;
DEMONSTRATORS_LEVEL = 192;
MAX_WANDERING_DISTANCE = 50;
CARIBOU_SPEED = 2;
JAGUAR_SPEED = 3;
INSPECTOR_DISAPPEAR = 200;
DEPLOY_LEVEL = 10;
BAR_W = 14;
UNIT_DISTANCE = 20;
HELP_DELAY = 1;
LABEL_MARGIN = 1;
LABEL_Y = -10;
LABEL_X = 10;
INFO_BALOON_Y = 156;
INFO_BALOON_WELL_W = 100;
INFO_BALOON_SWOOSH_W = 15;
INFO_BALOON_SWOOSH_H = 30;
BUTTON_HELP_Y = 30;
DRILL_THICKNESS = 1;
RESERVE_Y = 255;
ARCHIVE_ITEM_H = 20;
TUTORIAL_PAGES = 15;
ENGAGE_DISTANCE = 130;
GROUP_BOX_W = 100;
CONFLICT_INTERVAL = 1000;
OCCUPATION_YEARS = 1;
OBSCURED_VOLUME = 30;
FX_VOLUME = 100;
AMBIENT_VOLUME = 100;
LOOP_VOLUME = 100;
MAX_LOOP = 7;
MAX_GUARDS = 5;
scenarioIds = ["was", "tex", "nig", "ven", "irq", "ala"];
RESERVOIR_N = 3;
scenarios = new Object();
scenarios.was = {name:"Washington D.C."};
scenarios.tex = {name:"Texas", bigReservoirs:0, mediumReservoirs:3, smallReservoirs:3, actions:[{id:"info", active:true}, {id:"inspect", active:true}, {id:"smallWell", active:true}, {id:"oilWell", active:true}, {id:"humanBurner", active:false}, {id:"demolish", active:true}]};
scenarios.nig = {name:"Nigeria", bigReservoirs:2, mediumReservoirs:3, smallReservoirs:2, actions:[{id:"info", active:true}, {id:"inspect", active:true}, {id:"smallWell", active:true}, {id:"oilWell", active:true}, {id:"humanBurner", active:false}, {id:"demolish", active:true}]};
scenarios.ven = {name:"Venezuela", bigReservoirs:3, mediumReservoirs:2, smallReservoirs:1, actions:[{id:"info", active:true}, {id:"inspect", active:true}, {id:"inspectSea", active:true}, {id:"smallWell", active:true}, {id:"oilWell", active:true}, {id:"oilPlatform", active:true}, {id:"humanBurner", active:false}, {id:"demolish", active:true}, {id:"help_ven", active:false}]};
scenarios.irq = {name:"Iraq", bigReservoirs:4, mediumReservoirs:1, smallReservoirs:0, actions:[{id:"info", active:false}, {id:"inspect", active:false}, {id:"smallWell", active:false}, {id:"oilWell", active:false}, {id:"humanBurner", active:false}, {id:"mercenary", active:false}, {id:"help_irq", active:true}, {id:"demolish", active:false}]};
scenarios.ala = {name:"Alaska", bigReservoirs:1, mediumReservoirs:2, smallReservoirs:2, actions:[{id:"info", active:false}, {id:"inspect", active:false}, {id:"inspectSea", active:false}, {id:"oilWell", active:false}, {id:"smallWell", active:false}, {id:"oilPlatform", active:false}, {id:"humanBurner", active:false}, {id:"help_ala", active:true}, {id:"demolish", active:false}]};
actions = new Object();
actions.help_irq = {label:"About Iraq", pic:"scenario_info"};
actions.help_ala = {label:"About Alaska", pic:"scenario_info"};
actions.help_ven = {label:"What Happened?", pic:"scenario_info"};
actions.info = {label:"Info", pic:"info"};
actions.smallWell = {label:"Deploy Small well", pic:"smallWell_pic", cost:500, objRef:"smallWell"};
actions.oilWell = {label:"Deploy Normal well", pic:"oilWell_pic", cost:2000, objRef:"oilWell"};
actions.oilPlatform = {label:"Deploy platform", pic:"platform_pic", cost:4000, objRef:"oilPlatform"};
actions.humanBurner = {label:"Deploy human energy plant", pic:"humanBurner_pic", cost:1000, objRef:"humanBurner"};
actions.inspect = {label:"Explore land", pic:"inspect_ground_pic", cost:100, objRef:"vibrator"};
actions.mercenary = {label:"Defend well with a mercenary", pic:"mercenary_pic", cost:50, objRef:"mercenary"};
actions.nigerianArmy = {label:"Defend well", cost:50, objRef:"africanMilitia"};
actions.inspectSea = {label:"Explore sea", pic:"inspect_sea_pic", cost:300, objRef:"vessel"};
actions.demolish = {label:"Demolish Structure", pic:"bulldozer_pic", cost:300};
objects = new Object();
objects.smallWell = {label:"Small well", cat:"structure", terrain:"ground", well:true, recoveryLimit:25, mainteinanceCost:50};
objects.oilWell = {label:"Normal well", cat:"structure", terrain:"ground", well:true, recoveryLimit:100, mainteinanceCost:200};
objects.oilPlatform = {label:"Oil platform", cat:"structure", terrain:"water", well:true, recoveryLimit:100, mainteinanceCost:400};
objects.humanBurner = {label:"Human Burner", cat:"structure", terrain:"ground", burner:true, recoveryLimit:50, mainteinanceCost:100};
objects.vibrator = {label:"Vibrator truck", cat:"unit", terrain:"ground", range:300};
objects.vessel = {label:"Seismic vessel", cat:"unit", terrain:"water", range:300};
objects.mercenary = {label:"Mercenary", cat:"active", terrain:"well", power:70};
objects.africanMilitia = {label:"Nigerian Army", cat:"active", terrain:"well", power:90};
objects.rebel = {label:"MEND rebel", cat:"active", terrain:"ground", power:60};
objects.militia = {label:"Republican Guard", cat:"active", terrain:"ground", power:60};
objects.insurgent = {label:"Insurgent", cat:"active", terrain:"ground", power:60};
objects.soldier = {label:"Soldier", cat:"active", terrain:"ground", power:70};
objects.angryIndio = {label:"Native Demonstrator", cat:"active", terrain:"ground", demoSound:"indio_demo"};
objects.angryAfrican = {label:"Ogoni Demonstrator", cat:"active", terrain:"ground", demoSound:"ogoni_demo"};
MovieClip.prototype.animate = function (anim) {
if (this.currentAnimation != anim) {
if (anim == "normal") {
this.attachMovie(this.type, "animation", 10);
} else {
this.attachMovie((this.type + "_") + anim, "animation", 10);
}
this.currentAnimation = anim;
}
};
MovieClip.prototype.paintIt = function (color, alphaPerc) {
var _local2 = new flash.geom.ColorTransform();
_local2.rgb = color;
alpha = 255 - (2.55 * alphaPerc);
var _local3 = new flash.geom.Transform(this);
_local3.colorTransform = _local2;
};
MovieClip.prototype.restoreColor = function () {
var _local2 = new flash.geom.ColorTransform();
var _local3 = new flash.geom.Transform(this);
_local3.colorTransform = _local2;
};
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
if ((currentActionId != "info") && (!onInterface)) {
createActionCursor(currentActionId);
}
if (windows.economy._visible) {
caption = false;
for (ln in windows.economy.overlay) {
if (windows.economy.overlay[ln]._visible && ((((windows.economy.overlay[ln].hitTest(_xmouse, _ymouse, true) || (windows.economy.overlay[ln].hitTest(_xmouse, _ymouse - 2, true))) || (windows.economy.overlay[ln].hitTest(_xmouse, _ymouse + 2, true))) || (windows.economy.overlay[ln].hitTest(_xmouse - 1, _ymouse, true))) || (windows.economy.overlay[ln].hitTest(_xmouse + 1, _ymouse, true)))) {
caption = true;
lyr = windows.economy.overlay[ln];
datum = lyr.lineData[Math.round(lyr._xmouse / CHART_X_MULTIPLIER)];
datumYear = datum[1];
datumValue = datum[0];
datumX = datum[2];
if ((datumValue != undefined) && (!isNaN(datumValue))) {
removeMovieClip(leg);
leg = lyr.createEmptyMovieClip("legend", 999);
leg.lineStyle(1, "0xCCCCCC", 100, false, "none");
leg.moveTo(datumX, (-datumValue) * 2);
leg.lineTo(datumX, 0);
cPnt = {x:datumX, y:(-datumValue) * 2};
leg.localToGlobal(cPnt);
graph.globalToLocal(cPnt);
graph.createTextField("xCaption", 1000, cPnt.x, 0, 10, 10);
graph.xCaption.wordWrap = false;
graph.xCaption.selectable = false;
var _local1 = new TextFormat();
_local1.font = "arial";
_local1.size = 10;
_local1.color = 10066329 /* 0x999999 */;
_local1.bold = true;
_local1.align = "left";
graph.xCaption.text = datumYear;
graph.xCaption.setTextFormat(_local1);
graph.xCaption.autoSize = true;
if ((graph.xCaption._x + graph.xCaption._width) > graphBG._width) {
graph.xCaption._x = graph.xCaption._x - graph.xCaption._width;
}
graph.createTextField("yCaption", 1001, cPnt.x, cPnt.y - 20, 10, 10);
graph.yCaption.wordWrap = false;
graph.yCaption.selectable = false;
graph.yCaption.background = true;
graph.yCaption.backgroundColor = lyr.lineColor;
_local1 = new TextFormat();
_local1.font = "arial";
_local1.size = 10;
_local1.color = 16777215 /* 0xFFFFFF */;
_local1.bold = true;
_local1.align = "left";
if ((Math.round(datumValue) % datumValue) != 0) {
graph.yCaption.text = ((Math.round(datumValue * 100) / 100) + " ") + lyr.unit;
} else {
graph.yCaption.text = (Math.round(datumValue) + " ") + lyr.unit;
}
graph.yCaption.setTextFormat(_local1);
graph.yCaption.autoSize = true;
if ((graph.yCaption._x + graph.yCaption._width) > graphBG._width) {
graph.yCaption._x = graph.yCaption._x - graph.yCaption._width;
}
}
}
if (!caption) {
removeMovieClip(leg);
removeMovieClip(graph.xCaption);
removeMovieClip(graph.yCaption);
}
}
}
};
mouseListener.onMouseUp = function () {
mouseIsDown = false;
if ((!onInterface) && (deployable)) {
if (currentActionId == "demolish") {
destroy(toWell);
}
if (objects[actions[currentActionId].objRef].cat == "active") {
deployTo(actions[currentActionId].objRef, toWell.group);
} else if ((currentActionId != "info") && (!screen.nig.structures.government.rolled)) {
playEffect("launch");
deploy(actions[currentActionId].objRef);
}
if (((actions[currentActionId].cost > 0) && (actions[currentActionId].cost != undefined)) && (!cheats.noMoney)) {
vars.money = vars.money - actions[currentActionId].cost;
stepInvestments = stepInvestments + actions[currentActionId].cost;
printVars();
}
iFace.actions.menu.buttons[currentActionId].enabled = true;
iFace.actions.menu.buttons[currentActionId].gotoAndStop("normal");
mouseListener.onMouseMove();
}
};
mouseListener.onMouseDown = function () {
mouseIsDown = true;
};
MovieClip.prototype.playSound = function (sound_id, vol, looped) {
if (((options.sounds && (soundBox.soundCount < 4)) && (screen._visible)) && ((this._parent._parent._parent._name == currentScId) || (this._parent._parent._parent._parent._name == currentScId))) {
pt = {x:this._x, y:0};
this._parent.localToGlobal(pt);
if (pt.x < 0) {
spacePan = -80;
} else if (pt.x > STAGE_W) {
spacePan = 80;
} else {
spacePan = 0;
}
id = soundBox.getNextHighestDepth();
obj = soundBox.createEmptyMovieClip("sound" + id, id);
obj.mc = this;
obj.sound = new Sound(obj);
obj.sound.attachSound(sound_id);
if (vol != undefined) {
obj.vol = (FX_VOLUME / 100) * vol;
} else {
obj.vol = FX_VOLUME;
}
if (spacePan != 0) {
obj.vol = obj.vol / 2;
}
obj.pan = spacePan;
obj.looped = looped;
obj.ref = this;
obj.id = sound_id;
obj.onEnterFrame = function () {
if (this.sound.position >= this.sound.duration) {
if (this.looped) {
this.ref.playSound(this.id, 100, true);
}
ROOT.soundBox.soundCount--;
removeMovieClip(this);
} else if (this.sound.position == 0) {
this.sound.setVolume(this.vol);
this.sound.setPan(this.pan);
this.sound.start();
ROOT.soundBox.soundCount++;
}
};
}
if (soundBox.soundCount >= 4) {
trace("warning: too many sounds");
}
};
showIntro();
Symbol 43 MovieClip [insurgent_onGuard] Frame 1
gotoAndStop("a" + random(3));
Symbol 1991 MovieClip [__Packages.Pie] Frame 0
class Pie
{
var sectors, chartOwner, chartArea, data, chartSortType, chartTitle, titleField, legend, broadcastMessage;
function Pie (name, owner, x, y, w, h) {
var _local2 = 16776960 /* 0xFFFF00 */;
while (_local2 >= 26214) {
defaultColors.push(_local2);
_local2 = _local2 - 417760.125;
}
AsBroadcaster.initialize(this);
sectors = [];
if ((name == null) || (name.length < 1)) {
throw new Error("Pie: name cannot be null");
}
if ((owner == null) || (!(owner instanceof MovieClip))) {
throw new Error("Pie: owner must be Movieclip");
}
if ((x == null) || (isNaN(x))) {
x = 0;
}
if ((y == null) || (isNaN(y))) {
y = 0;
}
if ((!isNaN(w)) && (w > 0)) {
maxWidth = w;
} else {
maxWidth = null;
}
if ((!isNaN(h)) && (h > 0)) {
maxHeight = h;
} else {
maxHeight = null;
}
chartOwner = owner;
chartArea = chartOwner.createEmptyMovieClip(name, owner.getNextHighestDepth());
chartArea._x = x;
chartArea._y = y;
}
function setSize(w, h) {
if ((!isNaN(w)) && (w > 0)) {
maxWidth = w;
} else {
maxWidth = null;
}
if ((!isNaN(h)) && (h > 0)) {
maxHeight = h;
} else {
maxHeight = null;
}
if (data.length > 0) {
setValues(data, chartSortType);
}
}
function setStyle(o) {
LABEL_FONT_NAME = o.labelFont;
LABEL_FONT_SIZE = o.labelSize;
LABEL_FONT_COLOR = o.labelColor;
LABEL_FONT_BOLD = o.labelBold;
LABEL_FONT_ITALIC = o.labelItalic;
TITLE_FONT_NAME = o.titleFont;
TITLE_FONT_SIZE = o.titleSize;
TITLE_FONT_COLOR = o.titleColor;
TITLE_FONT_BOLD = o.titleBold;
TITLE_FONT_ITALIC = o.titleItalic;
ROW_COLOR_ODD = o.rowColorOdd;
ROW_COLOR_EVEN = o.rowColorEven;
ROW_BORDER_COLOR = o.rowBorderColor;
if (data.length > 0) {
setValues(data, chartSortType);
}
}
function setPieAspect(r, s, t, title, legend, labels) {
radius = (((r == null) || (isNaN(r))) ? 100 : (Math.min(Math.max(r, 25), 2000)));
squash = (((s == null) || (isNaN(s))) ? 1 : (Math.min(Math.max(s, 1), 4)));
thickness = (((t == null) || (isNaN(t))) ? 0 : (Math.min(Math.max(t, 0), 20)));
a = radius;
b = a / squash;
legendPosition = (((legend == RIGHT) || (legend == BELOW)) ? (legend) : null);
showLabels = (((labels == DISPLAY_PERCENT) || (labels == DISPLAY_VALUE)) ? (labels) : (DISPLAY_NONE));
reserveTitleH = 0;
chartTitle = title;
if (data.length > 0) {
setValues(data, chartSortType);
}
}
function setValues(arr, sort) {
clear();
if ((arr == null) || (arr.length < 1)) {
return(undefined);
}
var _local4 = 0;
var _local3 = 0;
while (_local3 < arr.length) {
_local4 = _local4 + Math.max(arr[_local3].value, 0);
_local3++;
}
if (isNaN(_local4)) {
throw new Error("Pie: invalid values");
}
chartSortType = sort;
data = arr.slice();
reserveTitleH = 0;
if (chartTitle.length > 0) {
var _local10 = new TextFormat(TITLE_FONT_NAME, TITLE_FONT_SIZE, TITLE_FONT_COLOR, TITLE_FONT_BOLD, TITLE_FONT_ITALIC);
reserveTitleH = _local10.getTextExtent(chartTitle).textFieldHeight;
var _local18 = ((maxWidth != null) ? (maxWidth) : (_local10.getTextExtent(chartTitle).textFieldWidth));
titleField = chartArea.createTextField("titleField", chartArea.getNextHighestDepth(), 0, 0, _local18, reserveTitleH);
titleField.text = chartTitle;
if (maxWidth != null) {
_local10.align = "center";
}
titleField.setTextFormat(_local10);
}
if (sort == SORT_DESCENDING) {
arr.sortOn("value", Array.NUMERIC | Array.DESCENDING);
} else if (sort == SORT_ASCENDING) {
arr.sortOn("value", Array.NUMERIC);
}
if ((showLabels != null) && (showLabels != DISPLAY_NONE)) {
var _local10 = new TextFormat(LABEL_FONT_NAME, LABEL_FONT_SIZE, LABEL_FONT_COLOR, LABEL_FONT_BOLD, LABEL_FONT_ITALIC);
reserveLabelsH = _local10.getTextExtent(SQUARE).textFieldHeight + 10;
reserveLabelsW = 0;
_local3 = 0;
while (_local3 < arr.length) {
var _local6 = ((showLabels == DISPLAY_PERCENT) ? ((Math.round(((arr[_local3].value * 100) / _local4) * 100) / 100) + "%") : (arr[_local3].value));
reserveLabelsW = Math.max(reserveLabelsW, _local10.getTextExtent(_local6).textFieldWidth);
_local3++;
}
}
var _local9 = ((legendPosition != null) ? (createLegend(arr)) : ({w:0, h:0}));
if ((maxWidth != null) && (maxHeight != null)) {
if ((_local9.w > maxWidth) || (_local9.h > (maxHeight - reserveTitleH))) {
legend._visible = false;
_local9.w = 0;
_local9.h = 0;
}
a = radius;
b = a / squash;
var _local11 = ((legendPosition == RIGHT) ? (_local9.w) : 0);
var _local14 = ((legendPosition == BELOW) ? (_local9.h) : 0);
var _local17 = ((2 * a) + _local11) + (2 * reserveLabelsW);
var _local15 = ((((2 * b) + _local14) + (2 * reserveLabelsH)) + thickness) + reserveTitleH;
var _local13 = Math.max(_local17 - maxWidth, 0);
var _local12 = Math.max(_local15 - maxHeight, 0);
if ((_local13 > 0) || (_local12 > 0)) {
a = Math.max(Math.min(radius - (_local13 / 2), (b - (_local12 / 2)) * squash), 10);
b = a / squash;
}
centerOffset = (((maxWidth - (2 * a)) - _local11) - (2 * reserveLabelsW)) / 2;
}
if ((legendPosition != null) && (legend._visible)) {
legend._x = centerOffset + ((legendPosition == BELOW) ? ((((a * 2) - _local9.w) / 2) + reserveLabelsW) : ((a * 2) + (2 * reserveLabelsW)));
legend._y = ((legendPosition == BELOW) ? ((((b * 2) + thickness) + (2 * reserveLabelsH)) + reserveTitleH) : (reserveTitleH));
}
var _local8 = _local4 / 360;
var _local5 = 0;
_local3 = 0;
while (_local3 < arr.length) {
var _local7 = (((arr[_local3].color == null) || (isNaN(arr[_local3].color))) ? (defaultColors[_local3]) : (arr[_local3].color));
var _local6 = ((showLabels == DISPLAY_PERCENT) ? ((Math.round(((arr[_local3].value * 100) / _local4) * 100) / 100) + "%") : (arr[_local3].value));
drawSector(_local7, _local5, _local5 + (Number(arr[_local3].value) / _local8), _local6, arr[_local3].label);
_local5 = _local5 + (arr[_local3].value / _local8);
_local3++;
}
broadcastMessage("onRender", this);
}
function drawSector(color, start, end, value, label) {
var _local20 = ((Math.max((color >> 16) - 100, 0) << 16) + (Math.max(((color >> 8) & 255) - 100, 0) << 8)) + Math.max((color & 255) - 100, 0);
if (((((start == null) || (end == null)) || (isNaN(start))) || (isNaN(end))) || (end < start)) {
throw new Error((("Pie: invalid start/end angles in drawSector: start=" + start) + ", end=") + end);
}
var _local5 = chartArea.createEmptyMovieClip("slice_" + sectors.length, chartArea.getNextHighestDepth());
sectors.push(_local5);
_local5._x = (a + reserveLabelsW) + centerOffset;
_local5._y = (b + reserveLabelsH) + reserveTitleH;
_local5.lineStyle(1, _local20, 100);
_local5.beginFill(color);
_local5.moveTo(0, 0);
var _local2 = start;
while (_local2 <= end) {
var _local4 = a * Math.sin(_local2 * DEG_RAD);
var _local3 = b * Math.cos(_local2 * DEG_RAD);
_local5.lineTo(_local4, _local3);
if ((thickness > 0) && ((_local2 < 90) || (_local2 > 270))) {
_local5.lineTo(_local4, _local3 + thickness);
_local5.lineTo(_local4, _local3);
}
_local2 = _local2 + 0.1;
}
_local5.lineTo(0, 0);
var _local11 = end - start;
if (((_local11 >= 1) && (value.toString().length > 0)) && (showLabels)) {
var _local18 = new TextFormat(LABEL_FONT_NAME, LABEL_FONT_SIZE, LABEL_FONT_COLOR, LABEL_FONT_BOLD, LABEL_FONT_ITALIC);
var _local13 = _local18.getTextExtent(value);
var _local19 = _local13.textFieldWidth;
var _local16 = _local13.textFieldHeight;
var _local8 = start + (_local11 / 2);
var _local15 = _local8 * DEG_RAD;
var _local17 = a * Math.sin(_local15);
var _local12 = b * Math.cos(_local15);
if (_local8 >= 180) {
_local17 = _local17 - _local19;
}
if ((_local8 >= 90) && (_local8 <= 270)) {
_local12 = _local12 - _local16;
} else {
_local12 = _local12 + thickness;
}
var _local10 = _local5.createTextField("label_" + sectors.length, _local5.getNextHighestDepth(), _local17, _local12, _local19, _local16);
if (value == null) {
value = _local11.toString();
}
_local10.text = value;
_local10.selectable = false;
_local10.setTextFormat(_local18);
}
}
function createLegend(arr) {
var _local7 = 0;
var _local8 = 0;
var _local10 = new TextFormat(LABEL_FONT_NAME, LABEL_FONT_SIZE, LABEL_FONT_COLOR, LABEL_FONT_BOLD, LABEL_FONT_ITALIC);
var _local6 = _local10.getTextExtent(SQUARE).textFieldHeight;
var _local2 = 0;
while (_local2 < arr.length) {
_local7 = Math.max(_local7, _local10.getTextExtent((SQUARE + " ") + arr[_local2].label).textFieldWidth);
_local8 = Math.max(_local8, _local10.getTextExtent(arr[_local2].value).textFieldWidth);
_local2++;
}
legend = chartArea.createEmptyMovieClip("legend", chartArea.getNextHighestDepth());
_local2 = 0;
while (_local2 < arr.length) {
var _local5 = legend.createTextField("label_" + _local2, legend.getNextHighestDepth(), 0, _local6 * _local2, _local7 + 5, _local6);
var _local4 = legend.createTextField("value_" + _local2, legend.getNextHighestDepth(), _local7, _local6 * _local2, _local8 + 5, _local6);
var _local9 = (((arr[_local2].color == null) || (isNaN(arr[_local2].color))) ? (defaultColors[_local2]) : (arr[_local2].color));
_local5.border = (_local4.border = true);
_local5.borderColor = (_local4.borderColor = ROW_BORDER_COLOR);
_local5.html = (_local4.html = true);
_local5.background = (_local4.background = true);
_local5.backgroundColor = (_local4.backgroundColor = (((_local2 % 2) == 0) ? (ROW_COLOR_EVEN) : (ROW_COLOR_ODD)));
_local5.htmlText = ((((((((((("<font color=\"#" + _local9.toString(16)) + "\">") + SQUARE) + " </font><font face=\"") + LABEL_FONT_NAME) + "\" size=\"") + LABEL_FONT_SIZE) + "\" color=\"") + LABEL_FONT_COLOR) + "\">") + arr[_local2].label) + "</font>";
_local4.htmlText = ((((((("<p align=\"right\"><font face=\"" + LABEL_FONT_NAME) + "\" size=\"") + LABEL_FONT_SIZE) + "\" color=\"") + LABEL_FONT_COLOR) + "\">") + arr[_local2].value) + "</font></p>";
_local2++;
}
return(new Object({w:legend._width, h:legend._height}));
}
function clear() {
var _local2 = 0;
while (_local2 < sectors.length) {
sectors[_local2].removeMovieClip();
_local2++;
}
legend.removeMovieClip();
titleField.removeTextField();
data = [];
sectors = [];
broadcastMessage("onClear", this);
}
var LABEL_FONT_NAME = "_sans";
var LABEL_FONT_SIZE = 12;
var LABEL_FONT_COLOR = 0;
var LABEL_FONT_BOLD = true;
var LABEL_FONT_ITALIC = false;
var TITLE_FONT_NAME = "Georgia";
var TITLE_FONT_SIZE = 18;
var TITLE_FONT_COLOR = 13158;
var TITLE_FONT_BOLD = true;
var TITLE_FONT_ITALIC = true;
var ROW_COLOR_ODD = 13421772;
var ROW_COLOR_EVEN = 15658734;
var ROW_BORDER_COLOR = 10066329;
var SQUARE = "\u2588\u2588";
var DEG_RAD = (Math.PI/180);
var BELOW = 0;
var RIGHT = 1;
var SORT_ASCENDING = 1;
var SORT_DESCENDING = 2;
var DISPLAY_NONE = 0;
var DISPLAY_VALUE = 1;
var DISPLAY_PERCENT = 2;
var defaultColors = [];
var legendPosition = null;
var showLabels = 0;
var maxWidth = null;
var maxHeight = null;
var reserveLabelsW = 0;
var reserveLabelsH = 0;
var centerOffset = 0;
var reserveTitleH = 0;
var radius = 100;
var a = 100;
var b = 100;
var squash = 1;
var thickness = 0;
}
Symbol 1992 MovieClip [__Packages.com.jR.Drawing.Base] Frame 0
class com.jR.Drawing.Base
{
var _mc, broadcastMessage, dispatchEvent;
function Base (Void) {
AsBroadcaster.initialize(this);
mx.events.EventDispatcher.initialize(this);
}
function get mc() {
return(_mc);
}
function get x() {
return(_mc._x);
}
function get y() {
return(_mc._y);
}
function get visible() {
return(_mc._visible);
}
function get autoClear() {
return(_autoClear);
}
function get rotation() {
return(_rotation);
}
function get skewX() {
return(rad2deg(_skewX));
}
function get skewY() {
return(rad2deg(_skewY));
}
function get lineSize() {
return(_lineSize);
}
function get lineRgb() {
return(((_lineRgb === null) ? 0 : (_lineRgb)));
}
function get lineAlpha() {
return(((_lineAlpha === null) ? 100 : (_lineAlpha)));
}
function get fillRgb() {
return(((_fillRgb === null) ? 0 : (_fillRgb)));
}
function get fillAlpha() {
return(((_fillAlpha === null) ? 100 : (_fillAlpha)));
}
function get gradientX() {
return(_gradientX);
}
function get gradientY() {
return(_gradientY);
}
function get gradientWidth() {
return(_gradientWidth);
}
function get gradientHeight() {
return(_gradientHeight);
}
function get gradientRotation() {
return(_gradientRotation);
}
function get gradientType() {
return(((_gradientType === null) ? "linear" : (_gradientType)));
}
function get gradientColors() {
return(_gradientColors);
}
function get gradientAlphas() {
if ((_gradientAlphas === null) || (_gradientAlphas.length < _gradientColors.length)) {
throwError("Fill Alphas array length is different that Fill Colors array length.\nModifying values to match!");
var _local2 = ((_gradientAlphas === null) ? (new Array()) : (_gradientAlphas.concat()));
while (_local2.length < _gradientColors.length) {
_local2.push(100);
}
return(_local2);
}
return(_gradientAlphas);
}
function get gradientRatios() {
if ((_gradientRatios === null) || (_gradientRatios.length < _gradientColors.length)) {
throwError("Fill Ratios array length is different that Fill Colors array length.\nModifying values to match!");
var _local3;
var _local4;
var _local5;
if (_gradientRatios === null) {
_local3 = new Array();
_local4 = 0;
_local5 = 255 / (_gradientColors.length - 1);
} else {
_local3 = _gradientRatios.concat();
_local5 = (255 - _gradientRatios[_gradientRatios.length - 1]) / (_gradientColors.length - _gradientRatios.length);
_local4 = _gradientRatios[_gradientRatios.length - 1] + _local5;
}
var _local2 = _local3.length;
while (_local2 < _gradientColors.length) {
_local3.push(com.jR.Utils.roundTo(_local4, 2));
_local4 = _local4 + _local5;
_local2++;
}
return(_local3);
}
return(_gradientRatios);
}
function get gradientMatrix_x() {
return(_gradientMatrix_x);
}
function get gradientMatrix_y() {
return(_gradientMatrix_y);
}
function get gradientMatrix_w() {
return(_gradientMatrix_w);
}
function get gradientMatrix_h() {
return(_gradientMatrix_h);
}
function get gradientMatrix_r() {
return(_gradientMatrix_r);
}
function get gradientMatrix() {
var _local5 = ((gradientMatrix_x === null) ? (gradientX) : (gradientMatrix_x));
var _local4 = ((gradientMatrix_y === null) ? (gradientY) : (gradientMatrix_y));
var _local6 = ((gradientMatrix_w === null) ? (gradientWidth) : (gradientMatrix_w));
var _local7 = ((gradientMatrix_h === null) ? (gradientHeight) : (gradientMatrix_h));
var _local3 = ((gradientMatrix_r === null) ? (_gradientRotation) : (_gradientMatrix_r));
if ((_local3 != 0) && (_gradientType == "radial")) {
var _local2 = new com.jR.Drawing.TransformMatrix();
_local2.scale(_local6, _local7);
_local2.rotate(_local3);
_local2.translate(_local5, _local4);
return(_local2);
}
return({matrixType:"box", x:_local5, y:_local4, w:_local6, h:_local7, r:deg2rad(_local3)});
}
function get traceErrors() {
return(_traceErrors);
}
function set x(value) {
_mc._x = value;
//return(x);
}
function set y(value) {
_mc._y = value;
//return(y);
}
function set visible(value) {
_mc._visible = value;
//return(visible);
}
function set autoClear(value) {
_autoClear = value;
//return(autoClear);
}
function set rotation(value) {
_rotation = value;
//return(rotation);
}
function set skewX(value) {
_skewX = (((value > -90) && (value < 90)) ? (deg2rad(value)) : 0);
//return(skewX);
}
function set skewY(value) {
_skewY = (((value > -90) && (value < 90)) ? (deg2rad(value)) : 0);
//return(skewY);
}
function set lineSize(value) {
_lineSize = ((!(value === null)) ? (value) : null);
//return(lineSize);
}
function set lineRgb(value) {
_lineRgb = value;
//return(lineRgb);
}
function set lineAlpha(value) {
_lineAlpha = value;
//return(lineAlpha);
}
function set fillRgb(value) {
_fillRgb = value;
//return(fillRgb);
}
function set fillAlpha(value) {
_fillAlpha = value;
//return(fillAlpha);
}
function set gradientType(value) {
_gradientType = (((value == "radial") || (value == "linear")) ? (value) : null);
//return(gradientType);
}
function set gradientColors(value) {
_gradientColors = (((value instanceof Array) == false) ? null : (value));
//return(gradientColors);
}
function set gradientAlphas(value) {
_gradientAlphas = (((value instanceof Array) == false) ? null : (value));
//return(gradientAlphas);
}
function set gradientRatios(value) {
_gradientRatios = (((value instanceof Array) == false) ? null : (value));
//return(gradientRatios);
}
function set gradientMatrix(value) {
for (var _local3 in value) {
if (!(this["_gradientMatrix_" + _local3] === undefined)) {
this["gradientMatrix_" + _local3] = value[_local3];
}
}
//return(gradientMatrix);
}
function set gradientMatrix_x(value) {
_gradientMatrix_x = value;
//return(gradientMatrix_x);
}
function set gradientMatrix_y(value) {
_gradientMatrix_y = value;
//return(gradientMatrix_y);
}
function set gradientMatrix_w(value) {
_gradientMatrix_w = value;
//return(gradientMatrix_w);
}
function set gradientMatrix_h(value) {
_gradientMatrix_h = value;
//return(gradientMatrix_h);
}
function set gradientMatrix_r(value) {
_gradientMatrix_r = value;
//return(gradientMatrix_r);
}
function set traceErrors(value) {
_traceErrors = value;
//return(traceErrors);
}
function lineStyle(__lineSize, __lineRgb, __lineAlpha) {
lineSize = (((isNaN(__lineSize) == true) ? null : (__lineSize)));
lineRgb = (((isNaN(__lineRgb) == true) ? null : (__lineRgb)));
lineAlpha = (((isNaN(__lineAlpha) == true) ? null : (__lineAlpha)));
}
function applyLineStyle(forceOutline) {
if (!(_lineSize === null)) {
_mc.lineStyle(lineSize, lineRgb, lineAlpha);
} else if (forceOutline == true) {
_mc.lineStyle(1, 0, 100);
} else {
resetLineStyle();
}
}
function resetLineStyle(Void) {
_mc.lineStyle(undefined, undefined, undefined);
}
function beginFill(Void) {
_mc.beginFill(fillRgb, fillAlpha);
}
function endFill(Void) {
_mc.endFill();
}
function beginGradientFill(Void) {
if ((gradientColors === null) || (gradientColors.length == 0)) {
throwError("No colors for gradient fill!");
return(undefined);
}
_mc.beginGradientFill(gradientType, gradientColors, gradientAlphas, gradientRatios, gradientMatrix);
}
function clear(Void) {
_mc.clear();
}
function reset(Void) {
_autoClear = true;
_rotation = 0;
_skewX = 0;
_skewY = 0;
_lineSize = null;
_lineRgb = null;
_lineAlpha = null;
_fillRgb = null;
_fillAlpha = null;
_gradientType = null;
_gradientColors = null;
_gradientAlphas = null;
_gradientRatios = null;
_gradientMatrix_x = null;
_gradientMatrix_y = null;
_gradientMatrix_w = null;
_gradientMatrix_h = null;
_gradientMatrix_r = null;
_gradientX = null;
_gradientY = null;
_gradientWidth = null;
_gradientHeight = null;
_gradientRotation = null;
}
function deg2rad(angle) {
return(angle * (Math.PI/180));
}
function rad2deg(angle) {
return(angle * 57.2957795130823);
}
function getAnchorHeight(angle, radius) {
var _local2 = radius * (Math.sin(deg2rad(90 - (angle / 2))) / 1);
return(com.jR.Utils.roundTo((radius * 2) - _local2, 3));
}
function getSectorPoints(startAngle, endAngle, radius) {
startAngle = (startAngle + 360) % 360;
endAngle = (endAngle + 360) % 360;
var _local3 = new Array();
_local3.push(startAngle);
var _local8 = angleDelta(startAngle, endAngle);
var _local2 = 1;
while (_local2 < Math.floor(_local8 / minSectorSize)) {
_local3.push(((startAngle + (minSectorSize * _local2)) + 360) % 360);
_local2++;
}
_local3.push(endAngle);
var _local5 = new Array();
_local5.push(rotatePoint(radius, 0, startAngle));
var _local10;
var _local4;
_local2 = 1;
while (_local2 < _local3.length) {
_local4 = angleDelta(_local3[_local2 - 1], _local3[_local2]);
_local5.push(rotatePoint(getAnchorHeight(_local4, radius), 0, _local3[_local2 - 1] + (_local4 / 2)));
_local5.push(rotatePoint(radius, 0, _local3[_local2]));
_local2++;
}
return(_local5);
}
function rotatePoint(__x, __y, __angle) {
var _local2 = Math.sqrt(Math.pow(__x, 2) + Math.pow(__y, 2));
var _local3 = Math.atan2(__y, __x) + deg2rad(__angle);
return({x:com.jR.Utils.roundTo(_local2 * Math.cos(_local3), 3), y:com.jR.Utils.roundTo(_local2 * Math.sin(_local3), 3)});
}
function angleDelta(angle1, angle2) {
angle1 = angle1 % 360;
angle2 = angle2 % 360;
if (angle1 == angle2) {
return(360);
}
if (angle1 > angle2) {
return((360 - angle1) + angle2);
}
return(angle2 - angle1);
}
function initMouseEvents(pointer) {
_mc.useHandCursor = Boolean(pointer);
_mc.onDragOut = com.jR.Utils.delegate(this, onMouseEvent, "onDragOutDraw");
_mc.onDragOver = com.jR.Utils.delegate(this, onMouseEvent, "onDragOverDraw");
_mc.onPress = com.jR.Utils.delegate(this, onMouseEvent, "onPressDraw");
_mc.onRelease = com.jR.Utils.delegate(this, onMouseEvent, "onReleaseDraw");
_mc.onReleaseOutside = com.jR.Utils.delegate(this, onMouseEvent, "onReleaseOutsideDraw");
_mc.onRollOut = com.jR.Utils.delegate(this, onMouseEvent, "onRollOutDraw");
_mc.onRollOver = com.jR.Utils.delegate(this, onMouseEvent, "onRollOverDraw");
}
function onMouseEvent(event) {
broadcastMessage(event, this);
dispatchEvent({type:event, target:this});
}
function throwError(error, isNotice) {
error = (((isNotice == true) ? "Notice" : "Error") + ": ") + error;
if (_traceErrors == true) {
trace(error);
}
broadcastMessage("onDrawingError", error, this);
dispatchEvent({type:"onDrawingError", target:this});
}
var _x = null;
var _y = null;
var _visible = null;
var _autoClear = true;
var _rotation = 0;
var _skewX = 0;
var _skewY = 0;
var _lineSize = null;
var _lineRgb = null;
var _lineAlpha = null;
var _fillRgb = null;
var _fillAlpha = null;
var _gradientType = null;
var _gradientColors = null;
var _gradientAlphas = null;
var _gradientRatios = null;
var _gradientMatrix_x = null;
var _gradientMatrix_y = null;
var _gradientMatrix_w = null;
var _gradientMatrix_h = null;
var _gradientMatrix_r = null;
var _gradientX = null;
var _gradientY = null;
var _gradientWidth = null;
var _gradientHeight = null;
var _gradientRotation = null;
var minSectorSize = 45;
var _traceErrors = false;
}
Symbol 1993 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 1994 MovieClip [__Packages.com.jR.Utils] Frame 0
class com.jR.Utils
{
function Utils () {
}
static function trim(input, charlist) {
var _local3;
if (((!(charlist === undefined)) && ((charlist instanceof Array) == true)) && (charlist.length > 0)) {
_local3 = charlist;
} else {
_local3 = trimmableChars;
}
var _local2;
var _local4 = true;
while (_local4 == true) {
_local4 = false;
_local2 = 0;
while (_local2 < _local3.length) {
if (input.charAt(0) == _local3[_local2]) {
input = input.substr(1);
if (input.length > 0) {
_local4 = true;
}
break;
}
_local2++;
}
}
_local4 = true;
while (_local4 == true) {
_local4 = false;
_local2 = 0;
while (_local2 < _local3.length) {
if (input.charAt(input.length - 1) == _local3[_local2]) {
input = input.substr(0, input.length - 1);
if (input.length > 0) {
_local4 = true;
}
break;
}
_local2++;
}
}
return(input);
}
static function multiplyString(input, times) {
var _local2 = new String();
var _local1 = 0;
while (_local1 < times) {
_local2 = _local2 + input;
_local1++;
}
return(_local2);
}
static function riseFirstChar(input) {
return(input.substr(0, 1).toUpperCase() + input.substr(1));
}
static function printR(input, doTrace) {
var _local1 = printLoop(input, 0);
if (!(doTrace === false)) {
trace(_local1);
}
return(_local1);
}
static function printLoop(input, level) {
var _local5 = newline;
if (_local5 === undefined) {
_local5 = newline;
}
var _local10 = riseFirstChar(typeof(input));
if (!(_local10 === "Object")) {
return((_local10 + " : ") + input);
}
var _local4 = input instanceof Array;
var _local2 = new Array();
for (var _local9 in input) {
var _local3 = riseFirstChar(typeof(input[_local9]));
if (_local3 == "Object") {
_local2.push((("\t" + ((_local4 == false) ? (_local9) : (("[" + _local9) + "]"))) + " => ") + printLoop(input[_local9], level + 1));
continue;
}
_local2.push((((("\t" + ((_local4 == false) ? (_local9) : (("[" + _local9) + "]"))) + ":") + riseFirstChar(typeof(input[_local9]))) + " => ") + input[_local9]);
}
if (_local4 == true) {
_local2.reverse();
}
_local2.unshift(_local10 + " {");
var _local7 = multiplyString("\t", level);
var _local6 = _local2.shift() + _local5;
while (_local2.length > 0) {
_local6 = _local6 + ((_local7 + _local2.shift()) + _local5);
}
_local6 = _local6 + (_local7 + "}");
return(_local6);
}
static function delegate(targetScope, callFunc) {
var _local3 = new Array();
if (arguments.length > 2) {
_local3 = arguments.slice(2);
}
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments.concat(arguments.callee.args)));
};
_local2.target = targetScope;
_local2.func = callFunc;
_local2.args = _local3;
return(_local2);
}
static function roundTo(input, digits) {
return(Math.round(input * Math.pow(10, digits)) / Math.pow(10, digits));
}
static function clone(object, cloneProperties) {
var _local3 = (((object instanceof Array) == true) ? (new Array()) : (new Object()));
if ((object instanceof Array) == true) {
_local3 = object.concat();
}
if (!(cloneProperties === false)) {
var _local2 = new Array();
for (var _local5 in object) {
if (!(_local3[_local5] === undefined)) {
continue;
}
_local2.push(_local5);
}
var _local1 = _local2.length - 1;
while (_local1 >= 0) {
_local3[_local2[_local1]] = object[_local2[_local1]];
_local1--;
}
}
return(_local3);
}
static function createTextFormat(params) {
var _local2 = new TextFormat();
for (var _local3 in params) {
_local2[_local3] = params[_local3];
}
return(_local2);
}
static function str_pad(input, pad_length, pad_string, pad_right) {
if ((typeof(pad_string) != "string") || (pad_string.length == 0)) {
pad_string = " ";
}
while (input.length < pad_length) {
input = ((pad_right == true) ? (input + pad_string) : (pad_string + input));
}
if (input.length > pad_length) {
if (pad_right == true) {
input = input.substr(0, pad_length);
} else {
input = input.substr(input.length - pad_length, pad_length);
}
}
return(input);
}
static var trimmableChars = [" ", "\t", newline, "\r", String.fromCharCode(0)];
}
Symbol 1995 MovieClip [__Packages.com.jR.Drawing.TransformMatrix] Frame 0
class com.jR.Drawing.TransformMatrix
{
var a, b, d, e, g, h;
function TransformMatrix (_a, _b, _d, _e, _g, _h) {
if (arguments.length > 0) {
a = _a;
b = _b;
d = _d;
e = _e;
g = _g;
h = _h;
_empty = false;
}
}
function concat(matrix) {
if (_empty == true) {
a = matrix.a;
d = matrix.d;
g = matrix.g;
b = matrix.b;
e = matrix.e;
h = matrix.h;
c = matrix.c;
f = matrix.f;
i = matrix.i;
} else {
var _local3 = new com.jR.Drawing.TransformMatrix();
_local3.a = ((a * matrix.a) + (b * matrix.d)) + (c * matrix.g);
_local3.b = ((a * matrix.b) + (b * matrix.e)) + (c * matrix.h);
_local3.c = ((a * matrix.c) + (b * matrix.f)) + (c * matrix.i);
_local3.d = ((d * matrix.a) + (e * matrix.d)) + (f * matrix.g);
_local3.e = ((d * matrix.b) + (e * matrix.e)) + (f * matrix.h);
_local3.f = ((d * matrix.c) + (e * matrix.f)) + (f * matrix.i);
_local3.g = ((g * matrix.a) + (h * matrix.d)) + (i * matrix.g);
_local3.h = ((g * matrix.b) + (h * matrix.e)) + (i * matrix.h);
_local3.i = ((g * matrix.c) + (h * matrix.f)) + (i * matrix.i);
a = _local3.a;
d = _local3.d;
g = _local3.g;
b = _local3.b;
e = _local3.e;
h = _local3.h;
c = _local3.c;
f = _local3.f;
i = _local3.i;
}
_empty = false;
}
function scale(sx, sy) {
var _local2 = new com.jR.Drawing.TransformMatrix(sx, 0, 0, sy, 0, 0);
return(concat(_local2));
}
function translate(tx, ty) {
var _local2 = new com.jR.Drawing.TransformMatrix(1, 0, 0, 1, tx, ty);
return(concat(_local2));
}
function rotate(r) {
var _local2 = (r / 180) * Math.PI;
var _local4 = Math.cos(_local2);
var _local3 = Math.sin(_local2);
var _local5 = new com.jR.Drawing.TransformMatrix(_local4, _local3, -_local3, _local4, 0, 0);
return(concat(_local5));
}
var c = 0;
var f = 0;
var i = 1;
var _empty = true;
}
Symbol 1996 MovieClip [__Packages.com.jR.Drawing.Polygon] Frame 0
class com.jR.Drawing.Polygon extends com.jR.Drawing.Base
{
var throwError, _mc, clear, bounds, _autoClear, applyLineStyle, beginFill, endFill, _skewX, _skewY, _rotation, _gradientType, _gradientX, _gradientY, _gradientRotation, _gradientWidth, _gradientHeight, beginGradientFill, useLineTo, rad2deg, angleDelta, getSectorPoints, deg2rad, rotatePoint;
function Polygon (host, level) {
super();
if (host == undefined) {
throwError("No host provided for Poligon object", false);
}
if (level === undefined) {
level = host.getNextHighestDepth();
}
_mc = host.createEmptyMovieClip("polygon_" + level, level);
_points = new Array();
}
function get drawX() {
return(_drawX);
}
function get drawY() {
return(_drawY);
}
function get roundCorners() {
return(_roundCorners);
}
function get passAnchors() {
return(_passAnchors);
}
function get join() {
return(_join);
}
function get showLine() {
return(_showLine);
}
function get points() {
return(_points);
}
function get drawPoints() {
return(_drawPoints);
}
function get radius() {
var _local2 = 0;
while (_local2 < _points.length) {
if (_points[_local2].r != _points[0].r) {
return(null);
}
_local2++;
}
return(_points[0].r);
}
function set drawX(value) {
_drawX = value;
//return(drawX);
}
function set drawY(value) {
_drawY = value;
//return(drawY);
}
function set roundCorners(value) {
_roundCorners = value;
//return(roundCorners);
}
function set passAnchors(value) {
_passAnchors = value;
//return(passAnchors);
}
function set join(value) {
_join = value;
//return(join);
}
function set showLine(value) {
_showLine = value;
//return(showLine);
}
function set points(value) {
_points = value;
//return(points);
}
function set radius(value) {
_radius = value;
var _local2 = 0;
while (_local2 < _points.length) {
_points[_local2].r = _radius;
_local2++;
}
//return(radius);
}
function addPoint(x, y, r) {
_points.push({x:x, y:y, r:((isNaN(r) == true) ? 0 : (r))});
}
function removePoint(index) {
if ((index < 0) || (index >= _points.length)) {
return(undefined);
}
_points.splice(index, 1);
}
function modifyPoint(index, propertys) {
if ((index < 0) || (index >= _points.length)) {
return(undefined);
}
for (var _local4 in propertys) {
_points[index][_local4] = propertys[_local4];
}
}
function clearPoints(Void) {
_points = new Array();
}
function reset(Void) {
super.reset();
clear();
_drawX = 0;
_drawY = 0;
_roundCorners = true;
_join = true;
_showLine = true;
_points = new Array();
}
function calcBounds(Void) {
bounds = new Object();
var xMin = _drawPoints[0].x;
var xMax = _drawPoints[0].x;
var yMin = _drawPoints[0].y;
var yMax = _drawPoints[0].y;
var _local3 = function (point) {
if (point.x < xMin) {
xMin = point.x;
}
if (point.x > xMax) {
xMax = point.x;
}
if (point.y < yMin) {
yMin = point.y;
}
if (point.y > yMax) {
yMax = point.y;
}
};
var _local2 = 1;
while (_local2 < _drawPoints.length) {
if ((_drawPoints[_local2] instanceof Array) == true) {
_local3(_drawPoints[_local2][0]);
_local3(_drawPoints[_local2][1]);
} else {
_local3(_drawPoints[_local2]);
}
_local2++;
}
bounds = {xMin:xMin, xMax:xMax, yMin:yMin, yMax:yMax};
}
function dealArguments(__inputObject) {
if (_autoClear == true) {
clear();
}
for (var _local3 in __inputObject) {
if ((!(this["_" + _local3] === undefined)) && (!(this[_local3] === undefined))) {
this[_local3] = __inputObject[_local3];
}
}
}
function drawOutline(__props) {
dealArguments(__props);
calculatePoints();
applyLineStyle(true);
draw();
}
function drawSolid(__props) {
dealArguments(__props);
calculatePoints();
applyLineStyle();
beginFill();
draw();
endFill();
}
function drawGradient(__props) {
dealArguments(__props);
calculatePoints();
if (((_skewX != 0) || (_skewY != 0)) || (_rotation != 0)) {
calcBounds();
}
if ((_rotation != 0) && (_gradientType == "radial")) {
_gradientX = (_drawX + bounds.xMin) + ((bounds.xMax - bounds.xMin) / 2);
_gradientY = (_drawY + bounds.yMin) + ((bounds.yMax - bounds.yMin) / 2);
} else {
_gradientX = _drawX + bounds.xMin;
_gradientY = _drawY + bounds.yMin;
}
_gradientRotation = _rotation;
_gradientWidth = bounds.xMax - bounds.xMin;
_gradientHeight = bounds.yMax - bounds.yMin;
applyLineStyle();
beginGradientFill();
draw();
endFill();
}
function calculatePoints(Void) {
_drawPoints = new Array();
useLineTo = true;
var _local2 = 0;
while (_local2 < _points.length) {
if ((isNaN(_points[_local2].r) == false) && (_points[_local2].r != 0)) {
useLineTo = false;
((_roundCorners == true) ? (addRPoint(_local2)) : (addCPoint(_local2)));
} else {
_drawPoints.push(_points[_local2]);
}
_local2++;
}
calcBounds();
skewXBaby();
skewYBaby();
rotatePoints();
}
function addCPoint(_index, _newX, _newY) {
var _local2 = _points[_index];
if ((!(_newX === undefined)) && (!(_newY === undefined))) {
_local2 = com.jR.Utils.clone(_local2);
_local2.x = _newX;
_local2.y = _newY;
}
var _local10 = _points[((_index == 0) ? (_points.length - 1) : (_index - 1))];
var _local5 = _points[((_index == (_points.length - 1)) ? 0 : (_index + 1))];
var _local13 = Math.sqrt(Math.pow(_local2.x - _local5.x, 2) + Math.pow(_local2.y - _local5.y, 2));
var _local4 = _local2.r;
var _local9 = Math.atan2(_local10.y - _local2.y, _local10.x - _local2.x);
var _local8 = Math.atan2(_local5.y - _local2.y, _local5.x - _local2.x);
var _local3 = {x:_local2.x + (_local4 * Math.cos(_local9)), y:_local2.y + (_local4 * Math.sin(_local9))};
var _local7 = {x:_local2.x + (_local4 * Math.cos(_local8)), y:_local2.y + (_local4 * Math.sin(_local8))};
if ((_newX === undefined) && (_passAnchors == true)) {
addCPoint(_index, _local2.x - (((_local3.x + ((_local7.x - _local3.x) / 2)) - _local2.x) * 0.5), _local2.y - (((_local3.y + ((_local7.y - _local3.y) / 2)) - _local2.y) * 0.5));
return(undefined);
}
_drawPoints.push(_local3);
_drawPoints.push([_local2, _local7]);
}
function addRPoint(_index) {
var _local13 = false;
var _local4 = _points[_index];
var _local14 = _points[((_index == 0) ? (_points.length - 1) : (_index - 1))];
var _local12 = _points[((_index == (_points.length - 1)) ? 0 : (_index + 1))];
var _local7 = rad2deg(Math.atan2(_local14.y - _local4.y, _local14.x - _local4.x));
var _local6 = rad2deg(Math.atan2(_local12.y - _local4.y, _local12.x - _local4.x));
var _local15 = _local4.r;
var _local11;
var _local8;
if (angleDelta(_local7, _local6) >= 180) {
_local11 = angleDelta(_local6, _local7);
_local8 = _local7 + (angleDelta(_local7, _local6) / 2);
} else {
_local11 = angleDelta(_local7, _local6);
_local8 = _local6 + (angleDelta(_local6, _local7) / 2);
_local13 = true;
}
var _local10 = 180 - _local11;
var _local2 = getSectorPoints(_local8 - (_local10 / 2), _local8 + (_local10 / 2), _local15);
if (_local13 == true) {
_local2.reverse();
}
var _local16 = _local15 / Math.cos(deg2rad(_local10 / 2));
var _local5 = rotatePoint(_local16, 0, (_local8 + 180) % 360);
var _local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3].x = _local2[_local3].x + (_local4.x + _local5.x);
_local2[_local3].y = _local2[_local3].y + (_local4.y + _local5.y);
_local3++;
}
_drawPoints.push(_local2.shift());
_local3 = 0;
while (_local3 < _local2.length) {
_drawPoints.push([_local2[_local3], _local2[_local3 + 1]]);
_local3 = _local3 + 2;
}
}
function skewXBaby(Void) {
if (_skewX == 0) {
return(undefined);
}
var _local4 = Math.tan(_skewX);
var _local3 = bounds.yMax;
var _local2 = 0;
while (_local2 < _drawPoints.length) {
if ((_drawPoints[_local2] instanceof Array) == true) {
_drawPoints[_local2][0].x = _drawPoints[_local2][0].x + ((_local3 - _drawPoints[_local2][0].y) * _local4);
_drawPoints[_local2][1].x = _drawPoints[_local2][1].x + ((_local3 - _drawPoints[_local2][1].y) * _local4);
} else {
_drawPoints[_local2].x = _drawPoints[_local2].x + ((_local3 - _drawPoints[_local2].y) * _local4);
}
_local2++;
}
}
function skewYBaby(Void) {
if (_skewY == 0) {
return(undefined);
}
var _local4 = Math.tan(_skewY);
var _local3 = bounds.xMin;
var _local2 = 0;
while (_local2 < _drawPoints.length) {
if ((_drawPoints[_local2] instanceof Array) == true) {
_drawPoints[_local2][0].y = _drawPoints[_local2][0].y + ((_drawPoints[_local2][0].x - _local3) * _local4);
_drawPoints[_local2][1].y = _drawPoints[_local2][1].y + ((_drawPoints[_local2][1].x - _local3) * _local4);
} else {
_drawPoints[_local2].y = _drawPoints[_local2].y + ((_drawPoints[_local2].x - _local3) * _local4);
}
_local2++;
}
}
function rotatePoints(Void) {
if (_rotation == 0) {
return(undefined);
}
var _local2 = 0;
while (_local2 < _drawPoints.length) {
if ((_drawPoints[_local2] instanceof Array) == true) {
_drawPoints[_local2][0] = rotatePoint(_drawPoints[_local2][0].x, _drawPoints[_local2][0].y, _rotation);
_drawPoints[_local2][1] = rotatePoint(_drawPoints[_local2][1].x, _drawPoints[_local2][1].y, _rotation);
} else {
_drawPoints[_local2] = rotatePoint(_drawPoints[_local2].x, _drawPoints[_local2].y, _rotation);
}
_local2++;
}
}
function draw(Void) {
var _local3 = _drawPoints[0];
_local3.x = _local3.x + _drawX;
_local3.y = _local3.y + _drawY;
_mc.moveTo(_local3.x, _local3.y);
var _local2 = 1;
while (_local2 < _drawPoints.length) {
if ((_drawPoints[_local2] instanceof Array) == true) {
_mc.curveTo(_drawX + _drawPoints[_local2][0].x, _drawY + _drawPoints[_local2][0].y, _drawX + _drawPoints[_local2][1].x, _drawY + _drawPoints[_local2][1].y);
} else if (useLineTo == true) {
_mc.lineTo(_drawX + _drawPoints[_local2].x, _drawY + _drawPoints[_local2].y);
} else {
_mc.curveTo(_drawX + _drawPoints[_local2].x, _drawY + _drawPoints[_local2].y, _drawX + _drawPoints[_local2].x, _drawY + _drawPoints[_local2].y);
}
_local2++;
}
if (_join == true) {
if (useLineTo == true) {
_mc.lineTo(_local3.x, _local3.y);
}
_mc.curveTo(_local3.x, _local3.y, _local3.x, _local3.y);
}
}
var _drawX = 0;
var _drawY = 0;
var _roundCorners = true;
var _passAnchors = false;
var _join = true;
var _showLine = true;
var _points = null;
var _drawPoints = null;
var _radius = null;
}
Symbol 1997 MovieClip [__Packages.com.jR.Drawing.Rectangle] Frame 0
class com.jR.Drawing.Rectangle extends com.jR.Drawing.Polygon
{
var addPoint, _roundCorners, _autoClear, clear, throwError, modifyPoint;
function Rectangle (host, level) {
super(host, level);
addPoint(0, 0, 0);
addPoint(0, 0, 0);
addPoint(0, 0, 0);
addPoint(0, 0, 0);
_roundCorners = true;
}
function set width(value) {
_width = value;
//return(width);
}
function set height(value) {
_height = value;
//return(height);
}
function set radius(value) {
_radius1 = (_radius2 = (_radius3 = (_radius4 = value)));
//return(radius);
}
function set radius1(value) {
_radius1 = value;
//return(radius1);
}
function set radius2(value) {
_radius2 = value;
//return(radius2);
}
function set radius3(value) {
_radius3 = value;
//return(radius3);
}
function set radius4(value) {
_radius4 = value;
//return(radius4);
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get radius() {
if (((((_radius1 + _radius2) + _radius3) + _radius4) / 4) == _radius1) {
return(_radius1);
}
return(null);
}
function get radius1() {
return(_radius1);
}
function get radius2() {
return(_radius2);
}
function get radius3() {
return(_radius3);
}
function get radius4() {
return(_radius4);
}
function dealArguments(__inputObject) {
if (_autoClear == true) {
clear();
}
for (var _local3 in __inputObject) {
if ((!(this["_" + _local3] === undefined)) && (!(this[_local3] === undefined))) {
this[_local3] = __inputObject[_local3];
}
}
if ((((_width == null) || (_width == 0)) || (_height == null)) || (_height == 0)) {
throwError("Not enough data to draw rectangle", false);
return(undefined);
}
modifyPoint(0, {x:0, y:0, r:radius1});
modifyPoint(1, {x:_width, y:0, r:radius2});
modifyPoint(2, {x:_width, y:_height, r:radius3});
modifyPoint(3, {x:0, y:_height, r:radius4});
}
var _width = null;
var _height = null;
var _radius = null;
var _radius1 = 0;
var _radius2 = 0;
var _radius3 = 0;
var _radius4 = 0;
}
Symbol 59 MovieClip Frame 401
gotoAndPlay (1);
Symbol 61 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 94 MovieClip Frame 20
stop();
Symbol 96 MovieClip Frame 1
_root.stop();
Instance of Symbol 59 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
this.gotoAndPlay(random(700));
}
onClipEvent (enterFrame) {
if (_parent._currentframe < 11) {
this._alpha = this._alpha + 10;
}
this.gotoAndPlay(_currentframe + 2);
if (_parent._currentframe > 75) {
this._alpha = this._alpha - 5;
}
}
Symbol 96 MovieClip Frame 25
ag_explode = new Sound();
ag_explode.attachSound("ag_explode");
ag_explode.start();
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 25
onClipEvent (load) {
spd = 7;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
}
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Symbol 96 MovieClip Frame 95
_root.play();
Symbol 153 MovieClip Frame 1
stop();
Instance of Symbol 157 MovieClip in Symbol 160 MovieClip Frame 1
on (press) {
getURL ("http://www.molleindustria.org", "_blank");
}
Symbol 199 Button
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 205 Button
on (press) {
getURL ("http://jts3k.com/", "_blank");
}
Symbol 208 Button
on (press) {
getURL ("http://www.molleindustria.org/", "_blank");
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 5
stop();
Symbol 217 MovieClip [introSequence] Frame 142
stop();
ROOT.initMenu();
Symbol 362 MovieClip Frame 2
stop();
Symbol 404 MovieClip Frame 16
ROOT.playEffect("end_of_the_world", true);
Symbol 404 MovieClip Frame 76
stop();
Symbol 411 MovieClip Frame 1
ROOT.playEffect("utopia", true);
Symbol 424 MovieClip Frame 21
ROOT.playEffect("end_civilization", true);
Symbol 424 MovieClip Frame 116
stop();
Symbol 435 MovieClip Frame 8
ROOT.playEffect("fired", true);
Symbol 435 MovieClip Frame 108
stop();
Symbol 448 MovieClip Frame 1
if (this.sillabs == undefined) {
this.sillabs = 20;
}
this.onEnterFrame = function () {
if (this.sillabs > 0) {
gotoAndPlay(random(this._totalframes - 1) + 1);
this.sillabs--;
} else {
gotoAndStop(this._totalframes);
}
};
Symbol 452 MovieClip Frame 1
if (this.sillabs == undefined) {
this.sillabs = 20;
}
this.onEnterFrame = function () {
if (this.sillabs > 0) {
gotoAndPlay(random(this._totalframes) + 1);
this.sillabs--;
} else {
gotoAndStop(this._totalframes);
}
};
Symbol 457 MovieClip Frame 1
if (this.sillabs == undefined) {
this.sillabs = 20;
}
this.onEnterFrame = function () {
if (this.sillabs > 0) {
gotoAndPlay(random(this._totalframes) + 1);
this.sillabs--;
} else {
gotoAndStop(this._totalframes);
}
};
Symbol 485 MovieClip [bucks] Frame 1
gotoAndStop("a" + random(4));
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Instance of Symbol 484 MovieClip in Symbol 485 MovieClip [bucks] Frame 2
onClipEvent (load) {
this._rotation = random(360);
gotoAndPlay(random(this._totalframes) + 1);
this.speed = random(4) - 2;
}
onClipEvent (enterFrame) {
this._x = this._x + this.speed;
}
Symbol 490 MovieClip [bucksMouth] Frame 4
gotoAndStop ("rep");
Symbol 490 MovieClip [bucksMouth] Frame 8
gotoAndStop ("dem");
Symbol 502 MovieClip Frame 5
gotoAndPlay ("on");
Symbol 502 MovieClip Frame 9
stop();
Symbol 517 MovieClip Frame 4
stop();
Symbol 517 MovieClip Frame 8
stop();
Symbol 564 MovieClip [election_introScreen] Frame 9
stop();
Symbol 622 MovieClip Frame 4
stop();
Symbol 622 MovieClip Frame 7
stop();
Symbol 631 MovieClip Frame 1
star._rotation = random(360);
Symbol 632 MovieClip [raceStar] Frame 12
removeMovieClip(this);
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 2
ROOT.playEffect("noise");
Symbol 748 MovieClip Frame 1
stop();
Symbol 801 MovieClip [africanMilitia] Frame 47
gotoAndPlay("a" + random(11));
Symbol 801 MovieClip [africanMilitia] Frame 70
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 105
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 132
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 176
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 185
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 193
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 202
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 242
gotoAndPlay ("normal");
Symbol 801 MovieClip [africanMilitia] Frame 315
gotoAndPlay ("normal");
Symbol 806 MovieClip [africanMilitia_attack] Frame 1
gotoAndPlay("a" + random(3));
Symbol 806 MovieClip [africanMilitia_attack] Frame 3
this.playSound("ak47");
Symbol 806 MovieClip [africanMilitia_attack] Frame 7
stop();
Symbol 806 MovieClip [africanMilitia_attack] Frame 9
this.playSound("ak47");
Symbol 806 MovieClip [africanMilitia_attack] Frame 14
stop();
Symbol 806 MovieClip [africanMilitia_attack] Frame 16
this.playSound("ak47");
Symbol 813 MovieClip [africanMilitia_die] Frame 1
gotoAndPlay("a" + random(3));
Symbol 813 MovieClip [africanMilitia_die] Frame 3
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 813 MovieClip [africanMilitia_die] Frame 6
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 813 MovieClip [africanMilitia_die] Frame 9
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 814 MovieClip [africanMilitia_onGuard] Frame 1
gotoAndStop("a" + random(3));
Symbol 822 MovieClip [angryAfrican] Frame 5
gotoAndPlay("a" + random(4));
Symbol 822 MovieClip [angryAfrican] Frame 13
gotoAndPlay ("a0");
Symbol 822 MovieClip [angryAfrican] Frame 25
gotoAndPlay ("a0");
Symbol 822 MovieClip [angryAfrican] Frame 53
gotoAndPlay ("a0");
Symbol 822 MovieClip [angryAfrican] Frame 73
gotoAndPlay ("a0");
Symbol 832 MovieClip [angryIndio] Frame 24
gotoAndPlay("a" + random(4));
Symbol 832 MovieClip [angryIndio] Frame 53
gotoAndPlay ("a0");
Symbol 832 MovieClip [angryIndio] Frame 92
gotoAndPlay ("a0");
Symbol 832 MovieClip [angryIndio] Frame 144
gotoAndPlay ("a0");
Symbol 841 MovieClip [arab] Frame 34
gotoAndPlay("a" + random(7));
Symbol 841 MovieClip [arab] Frame 42
gotoAndPlay ("a0");
Symbol 841 MovieClip [arab] Frame 51
gotoAndPlay ("a0");
Symbol 841 MovieClip [arab] Frame 81
gotoAndPlay ("a0");
Symbol 841 MovieClip [arab] Frame 128
gotoAndPlay ("a0");
Symbol 841 MovieClip [arab] Frame 140
gotoAndPlay ("a0");
Symbol 841 MovieClip [arab] Frame 164
gotoAndPlay ("a0");
Symbol 841 MovieClip [arab] Frame 169
gotoAndPlay ("walk");
Symbol 861 MovieClip [caribou] Frame 47
gotoAndPlay("a" + random(6));
Symbol 861 MovieClip [caribou] Frame 70
gotoAndPlay ("a0");
Symbol 861 MovieClip [caribou] Frame 91
if ((random(3) == 0) && (this.scared != true)) {
this.playSound("caribou2", 60);
}
Symbol 861 MovieClip [caribou] Frame 137
gotoAndPlay ("a0");
Symbol 861 MovieClip [caribou] Frame 208
gotoAndPlay ("a0");
Symbol 861 MovieClip [caribou] Frame 209
if ((random(3) == 0) && (this.scared != true)) {
this.playSound("caribou1", 60);
}
Symbol 861 MovieClip [caribou] Frame 226
gotoAndPlay ("a0");
Symbol 861 MovieClip [caribou] Frame 245
gotoAndPlay ("a0");
Symbol 861 MovieClip [caribou] Frame 253
gotoAndPlay ("walk");
Symbol 877 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 900 MovieClip Frame 2
if (this._parent._parent._visible) {
this._parent._parent.playSound("demo2");
}
Symbol 900 MovieClip Frame 23
if (random(3) == 0) {
gotoAndPlay (1);
}
Symbol 900 MovieClip Frame 36
if (random(3) == 0) {
gotoAndPlay (1);
}
Symbol 920 MovieClip Frame 1
if (this._parent._parent._visible) {
this._parent._parent.playSound("drum");
}
Symbol 934 MovieClip Frame 1
if (this._parent._parent._visible) {
this._parent._parent.playSound("demo3");
}
Symbol 934 MovieClip Frame 29
if (random(3) == 0) {
gotoAndPlay (1);
}
Symbol 934 MovieClip Frame 35
if (random(3) == 0) {
gotoAndPlay (1);
}
Symbol 944 MovieClip Frame 1
if (this._parent._parent._visible) {
this._parent._parent.playSound("demo1");
}
Symbol 944 MovieClip Frame 28
if (random(3) == 0) {
gotoAndPlay (1);
}
Symbol 944 MovieClip Frame 45
if (random(3) == 0) {
gotoAndPlay (1);
}
Symbol 945 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 970 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 983 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1022 MovieClip [humanBurner_birth] Frame 1
this.playSound("birth");
Symbol 1035 MovieClip [humanBurner_destroy] Frame 1
this.playSound("explosion");
Symbol 1035 MovieClip [humanBurner_destroy] Frame 7
stop();
Symbol 1037 MovieClip [insurgent_attack] Frame 1
gotoAndPlay("a" + random(3));
Symbol 1037 MovieClip [insurgent_attack] Frame 3
this.playSound("ak47");
Symbol 1037 MovieClip [insurgent_attack] Frame 8
stop();
Symbol 1037 MovieClip [insurgent_attack] Frame 10
this.playSound("ak47");
Symbol 1037 MovieClip [insurgent_attack] Frame 16
stop();
Symbol 1037 MovieClip [insurgent_attack] Frame 18
this.playSound("ak47");
Symbol 1037 MovieClip [insurgent_attack] Frame 23
stop();
Symbol 1045 MovieClip [insurgent_die] Frame 1
gotoAndPlay("a" + random(4));
Symbol 1045 MovieClip [insurgent_die] Frame 4
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1045 MovieClip [insurgent_die] Frame 6
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1045 MovieClip [insurgent_die] Frame 8
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1045 MovieClip [insurgent_die] Frame 10
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1047 MovieClip [insurgent_win] Frame 1
gotoAndPlay("a" + random(6));
Symbol 1047 MovieClip [insurgent_win] Frame 21
this.playSound("ak47");
Symbol 1047 MovieClip [insurgent_win] Frame 39
gotoAndStop ("loop2");
Symbol 1047 MovieClip [insurgent_win] Frame 42
stop();
Symbol 1047 MovieClip [insurgent_win] Frame 54
gotoAndPlay ("a3");
Symbol 1047 MovieClip [insurgent_win] Frame 56
stop();
Symbol 1047 MovieClip [insurgent_win] Frame 66
gotoAndPlay ("loop");
Symbol 1047 MovieClip [insurgent_win] Frame 68
stop();
Symbol 1047 MovieClip [insurgent_win] Frame 71
gotoAndPlay ("a5");
Symbol 1071 MovieClip [mercenary] Frame 47
gotoAndPlay("a" + random(16));
Symbol 1071 MovieClip [mercenary] Frame 70
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 79
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 105
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 114
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 120
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 169
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 181
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 238
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 294
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 308
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 333
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 345
gotoAndPlay ("normal");
Symbol 1071 MovieClip [mercenary] Frame 364
gotoAndPlay ("normal");
Symbol 1075 MovieClip [mercenary_attack] Frame 1
gotoAndPlay("a" + random(3));
Symbol 1075 MovieClip [mercenary_attack] Frame 3
this.playSound("m4");
Symbol 1075 MovieClip [mercenary_attack] Frame 8
stop();
Symbol 1075 MovieClip [mercenary_attack] Frame 10
this.playSound("m4");
Symbol 1075 MovieClip [mercenary_attack] Frame 16
stop();
Symbol 1075 MovieClip [mercenary_attack] Frame 18
this.playSound("m4");
Symbol 1075 MovieClip [mercenary_attack] Frame 23
stop();
Symbol 1093 MovieClip [mercenary_die] Frame 1
gotoAndPlay("a" + random(5));
Symbol 1093 MovieClip [mercenary_die] Frame 4
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1093 MovieClip [mercenary_die] Frame 6
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1093 MovieClip [mercenary_die] Frame 9
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1093 MovieClip [mercenary_die] Frame 11
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1093 MovieClip [mercenary_die] Frame 14
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1095 MovieClip [mercenary_onGuard] Frame 1
gotoAndStop("a" + random(5));
Symbol 1103 MovieClip [militia] Frame 47
gotoAndPlay("a" + random(11));
Symbol 1103 MovieClip [militia] Frame 70
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 104
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 130
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 161
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 196
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 204
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 211
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 215
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 219
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 225
gotoAndPlay ("normal");
Symbol 1103 MovieClip [militia] Frame 238
gotoAndPlay ("normal");
Symbol 1107 MovieClip [militia_attack] Frame 1
gotoAndPlay("a" + random(3));
Symbol 1107 MovieClip [militia_attack] Frame 5
this.playSound("ak47");
Symbol 1107 MovieClip [militia_attack] Frame 8
stop();
Symbol 1107 MovieClip [militia_attack] Frame 11
this.playSound("ak47");
Symbol 1107 MovieClip [militia_attack] Frame 16
stop();
Symbol 1107 MovieClip [militia_attack] Frame 18
this.playSound("ak47");
Symbol 1107 MovieClip [militia_attack] Frame 23
stop();
Symbol 1113 MovieClip [militia_die] Frame 1
gotoAndPlay("a" + random(4));
Symbol 1113 MovieClip [militia_die] Frame 4
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1113 MovieClip [militia_die] Frame 6
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1113 MovieClip [militia_die] Frame 9
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1113 MovieClip [militia_die] Frame 11
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1114 MovieClip [militia_onGuard] Frame 1
gotoAndStop("a" + random(4));
Symbol 1159 MovieClip [oilPlatform_base] Frame 7
stop();
Symbol 1178 MovieClip [oilPlatform_birth] Frame 1
this.playSound("birth_platform");
Symbol 1191 MovieClip [oilPlatform_destroy] Frame 1
this.playSound("explosion");
Symbol 1191 MovieClip [oilPlatform_destroy] Frame 12
stop();
Symbol 1230 MovieClip [oilWell_birth] Frame 1
this.playSound("birth");
Symbol 1240 MovieClip [oilWell_destroy] Frame 1
this.playSound("explosion");
Symbol 1240 MovieClip [oilWell_destroy] Frame 7
stop();
Symbol 1252 MovieClip [rebel_attack] Frame 1
gotoAndPlay("a" + random(3));
Symbol 1252 MovieClip [rebel_attack] Frame 3
this.playSound("ak47");
Symbol 1252 MovieClip [rebel_attack] Frame 8
stop();
Symbol 1252 MovieClip [rebel_attack] Frame 10
this.playSound("ak47");
Symbol 1252 MovieClip [rebel_attack] Frame 15
stop();
Symbol 1252 MovieClip [rebel_attack] Frame 17
this.playSound("ak47");
Symbol 1252 MovieClip [rebel_attack] Frame 22
stop();
Symbol 1256 MovieClip [rebel_die] Frame 1
gotoAndPlay("a" + random(3));
Symbol 1256 MovieClip [rebel_die] Frame 3
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1256 MovieClip [rebel_die] Frame 6
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1256 MovieClip [rebel_die] Frame 8
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1258 MovieClip [rebel_win] Frame 1
gotoAndPlay("a" + random(7));
Symbol 1258 MovieClip [rebel_win] Frame 5
gotoAndPlay ("a0");
Symbol 1258 MovieClip [rebel_win] Frame 12
gotoAndPlay ("a1");
Symbol 1258 MovieClip [rebel_win] Frame 16
stop();
Symbol 1258 MovieClip [rebel_win] Frame 22
gotoAndPlay ("a3");
Symbol 1258 MovieClip [rebel_win] Frame 23
stop();
Symbol 1258 MovieClip [rebel_win] Frame 32
gotoAndPlay ("a5");
Symbol 1296 MovieClip [smallWell_birth] Frame 1
this.playSound("birth_small");
Symbol 1304 MovieClip [smallWell_destroy] Frame 1
this.playSound("explosion");
Symbol 1304 MovieClip [smallWell_destroy] Frame 7
stop();
Symbol 1319 MovieClip [soldier] Frame 47
gotoAndPlay("a" + random(16));
Symbol 1319 MovieClip [soldier] Frame 70
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 79
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 95
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 104
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 110
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 159
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 168
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 225
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 281
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 295
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 310
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 326
gotoAndPlay ("normal");
Symbol 1319 MovieClip [soldier] Frame 336
gotoAndPlay ("normal");
Symbol 1323 MovieClip [soldier_attack] Frame 1
gotoAndPlay("a" + random(3));
Symbol 1323 MovieClip [soldier_attack] Frame 3
this.playSound("m16");
Symbol 1323 MovieClip [soldier_attack] Frame 8
stop();
Symbol 1323 MovieClip [soldier_attack] Frame 10
this.playSound("m16");
Symbol 1323 MovieClip [soldier_attack] Frame 16
stop();
Symbol 1323 MovieClip [soldier_attack] Frame 18
this.playSound("m16");
Symbol 1323 MovieClip [soldier_attack] Frame 23
stop();
Symbol 1335 MovieClip [soldier_die] Frame 1
gotoAndPlay("a" + random(5));
Symbol 1335 MovieClip [soldier_die] Frame 3
this.playSound("argh" + (random(4) + 1));
Symbol 1335 MovieClip [soldier_die] Frame 4
stop();
Symbol 1335 MovieClip [soldier_die] Frame 6
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1335 MovieClip [soldier_die] Frame 9
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1335 MovieClip [soldier_die] Frame 11
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1335 MovieClip [soldier_die] Frame 14
this.playSound("argh" + (random(4) + 1));
stop();
Symbol 1342 MovieClip [soldier_onGuard] Frame 1
gotoAndStop("a" + random(5));
Symbol 1360 MovieClip Frame 1
this._parent.playSound("airgun");
Symbol 1369 MovieClip [vessel] Frame 100
stop();
boat.s.gotoAndStop("off");
Symbol 1394 MovieClip [vibrator] Frame 1
this.playSound("vibration");
Symbol 1406 MovieClip [vibrator_birth] Frame 1
this.playSound("birth_small");
Symbol 1452 MovieClip Frame 8
if ((this._parent.scared != true) && (random(30) == 0)) {
this.playSound("whale");
}
Symbol 1455 MovieClip Frame 1
if (this.scared) {
stop();
}
Symbol 1512 MovieClip Frame 38
gotoAndPlay("a" + random(10));
Symbol 1512 MovieClip Frame 48
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 59
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 104
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 159
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 179
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 192
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 210
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 215
gotoAndPlay ("a0");
Symbol 1512 MovieClip Frame 220
gotoAndPlay ("fly");
Symbol 1526 MovieClip Frame 4
stop();
Symbol 1534 MovieClip Frame 7
stop();
Symbol 1539 MovieClip Frame 9
stop();
Symbol 1544 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 1545 MovieClip Frame 9
if (random(3) != 0) {
stop();
}
Symbol 1545 MovieClip Frame 26
stop();
Symbol 1546 MovieClip Frame 1
stop();
Symbol 1548 MovieClip Frame 1
stop();
Symbol 1557 MovieClip Frame 1
stop();
Symbol 1557 MovieClip Frame 11
stop();
Symbol 1557 MovieClip Frame 21
stop();
Symbol 1564 MovieClip Frame 34
gotoAndPlay("a" + random(7));
Symbol 1564 MovieClip Frame 41
gotoAndPlay ("a0");
Symbol 1564 MovieClip Frame 48
gotoAndPlay ("a0");
Symbol 1564 MovieClip Frame 78
gotoAndPlay ("a0");
Symbol 1564 MovieClip Frame 89
gotoAndPlay ("a0");
Symbol 1564 MovieClip Frame 101
gotoAndPlay ("a0");
Symbol 1564 MovieClip Frame 114
gotoAndPlay ("a0");
Symbol 1564 MovieClip Frame 119
gotoAndPlay ("walk");
Symbol 1585 MovieClip Frame 34
gotoAndPlay("a" + random(7));
Symbol 1585 MovieClip Frame 40
gotoAndPlay ("a0");
Symbol 1585 MovieClip Frame 47
gotoAndPlay ("a0");
Symbol 1585 MovieClip Frame 77
gotoAndPlay ("a0");
Symbol 1585 MovieClip Frame 82
gotoAndPlay ("walk");
Symbol 1601 MovieClip Frame 1
gotoAndStop(random(7) + 1);
Symbol 1611 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1614 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1615 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1629 MovieClip Frame 1
stop();
Symbol 1635 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 1650 MovieClip Frame 36
gotoAndPlay("a" + random(9));
Symbol 1650 MovieClip Frame 46
gotoAndPlay ("a0");
Symbol 1650 MovieClip Frame 65
gotoAndPlay ("a0");
Symbol 1650 MovieClip Frame 85
gotoAndPlay ("a0");
Symbol 1650 MovieClip Frame 120
gotoAndPlay ("a0");
Symbol 1650 MovieClip Frame 129
gotoAndPlay ("a0");
Symbol 1650 MovieClip Frame 135
gotoAndPlay ("a0");
Symbol 1650 MovieClip Frame 138
gotoAndPlay ("a0");
Symbol 1650 MovieClip Frame 180
gotoAndPlay ("a0");
Symbol 1661 MovieClip Frame 34
gotoAndPlay("a" + random(6));
Symbol 1661 MovieClip Frame 42
gotoAndPlay ("a0");
Symbol 1661 MovieClip Frame 51
gotoAndPlay ("a0");
Symbol 1661 MovieClip Frame 81
gotoAndPlay ("a0");
Symbol 1661 MovieClip Frame 99
gotoAndPlay ("a0");
Symbol 1661 MovieClip Frame 111
gotoAndPlay ("a0");
Symbol 1661 MovieClip Frame 116
gotoAndPlay ("walk");
Symbol 1669 MovieClip Frame 42
gotoAndPlay("a" + random(4));
Symbol 1669 MovieClip Frame 83
gotoAndPlay ("a0");
Symbol 1669 MovieClip Frame 110
gotoAndPlay ("a0");
Symbol 1669 MovieClip Frame 121
gotoAndPlay ("a0");
Symbol 1669 MovieClip Frame 126
gotoAndPlay ("walk");
Symbol 1671 MovieClip Frame 34
gotoAndPlay("a" + random(6));
Symbol 1671 MovieClip Frame 42
gotoAndPlay ("a0");
Symbol 1671 MovieClip Frame 52
gotoAndPlay ("a0");
Symbol 1671 MovieClip Frame 82
gotoAndPlay ("a0");
Symbol 1671 MovieClip Frame 86
gotoAndPlay ("a0");
Symbol 1671 MovieClip Frame 91
gotoAndPlay ("a0");
Symbol 1671 MovieClip Frame 96
gotoAndPlay ("walk");
Symbol 1736 MovieClip Frame 20
if ((random(20) == 0) && (this._parent._parent.enabled)) {
gotoAndPlay ("in");
} else {
gotoAndPlay ("empy");
}
Symbol 1736 MovieClip Frame 56
if (random(20) == 0) {
gotoAndPlay ("out");
} else {
gotoAndPlay("a" + random(6));
}
Symbol 1736 MovieClip Frame 62
if (random(20) == 0) {
gotoAndPlay ("out");
} else {
gotoAndPlay("a" + random(6));
}
Symbol 1736 MovieClip Frame 73
if (random(20) == 0) {
gotoAndPlay ("out");
} else {
gotoAndPlay("a" + random(6));
}
Symbol 1736 MovieClip Frame 79
if (random(20) == 0) {
gotoAndPlay ("out");
} else {
gotoAndPlay("a" + random(6));
}
Symbol 1736 MovieClip Frame 114
if (random(20) == 0) {
gotoAndPlay ("out");
} else {
gotoAndPlay("a" + random(6));
}
Symbol 1736 MovieClip Frame 147
if (random(20) == 0) {
gotoAndPlay ("out");
} else {
gotoAndPlay("a" + random(6));
}
Symbol 1743 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1744 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1751 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1752 MovieClip Frame 1
stop();
Symbol 1790 MovieClip Frame 29
gotoAndPlay("a" + random(6));
Symbol 1790 MovieClip Frame 44
gotoAndPlay ("a0");
Symbol 1790 MovieClip Frame 81
gotoAndPlay ("a0");
Symbol 1790 MovieClip Frame 110
gotoAndPlay ("a0");
Symbol 1790 MovieClip Frame 121
gotoAndPlay ("a0");
Symbol 1790 MovieClip Frame 138
gotoAndPlay ("a0");
Symbol 1790 MovieClip Frame 143
gotoAndPlay ("walk");
Symbol 1820 MovieClip Frame 25
gotoAndPlay("a" + random(8));
Symbol 1820 MovieClip Frame 46
gotoAndPlay ("a0");
Symbol 1820 MovieClip Frame 51
gotoAndPlay ("a0");
Symbol 1820 MovieClip Frame 54
gotoAndPlay ("a0");
Symbol 1820 MovieClip Frame 60
gotoAndPlay ("a0");
Symbol 1820 MovieClip Frame 107
gotoAndPlay ("a0");
Symbol 1820 MovieClip Frame 134
gotoAndPlay ("a0");
Symbol 1820 MovieClip Frame 152
gotoAndPlay ("a0");
Symbol 1820 MovieClip Frame 157
gotoAndPlay ("walk");
Symbol 1828 MovieClip Frame 1
stop();
Symbol 1828 MovieClip Frame 6
gotoAndPlay ("fly");
Symbol 1832 MovieClip Frame 1
stop();
Symbol 1832 MovieClip Frame 6
gotoAndPlay ("fly");
Symbol 1837 MovieClip Frame 1
stop();
Symbol 1837 MovieClip Frame 6
gotoAndPlay ("fly");
Symbol 1842 MovieClip Frame 1
stop();
Symbol 1842 MovieClip Frame 6
gotoAndPlay ("fly");
Symbol 1865 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 1990 MovieClip Frame 1
stop();