Frame 1
stop();
fscommand ("fullscreen", true);
fscommand ("showmenu", false);
loader.onEnterFrame = function () {
if (_root._framesloaded >= 2) {
b_continue.gotoAndStop(2);
}
};
_global.suoni = true;
STR_WINTER = "Fucking Cold";
STR_SPRING = "Fucking Wet";
STR_SUMMER = "Fucking Hot";
STR_FALL = "Fucking Pumpkins";
STR_BOVINO = "Cattle";
STR_BOVINOINGRASSATO = "Grain-fed cattle";
STR_CREW = "Niggers";
STR_PANINO = "Sandwich";
STR_CLIENTE = "Jews";
STR_PASTO = "Shit";
STR_SOLDI = "Jew Gold";
STR_BRAND_AW = "Brand awareness";
STR_HAM = "Hamburger";
STR_FINE_TUTORIAL = "End tutorial";
MESI = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September 11th", "October", "November", "December");
str_month = "January";
STR_FELICE = "Abundant";
STR_SCARSO = "Scarce";
STR_ALLARMANTE = "Insufficient";
STR_DISABITATA = "Exhausted";
STR_VUOTO = "Field";
STR_GRANO = "Grain field";
STR_VILLAGGIO = "Village";
STR_FORESTA = "Rainforest";
STR_SOIA = "Soy field";
STR_MARE = "Sea";
STR_CITTA = "Sao Jos\u00E8 ";
STR_ALLEVAMENTO = "Pasture";
STR_AGRICOLTURA = "Agricultural section";
STR_FERTILITA = "Fertility:";
STR_FORESTADESCRIZIONE = "Rainforest";
STR_VILLAGGIODESCRIZIONE = "A wild tribe has settled here";
STR_VILLAGGIODEMOLIZIONE = "Demolition in progress, please wait...";
STR_FORESTAABBATTIMENTO = "Demolition in progress, please wait...";
STR_DESERTODESCRIZIONE = "You can no longer do something profitable here";
STR_CORRUZIONE = "You have to corrupt the Sao Jos\u00E8 major to use this terrain";
STR_CORROTTO = "The major will grant you use of this field";
STR_ATTESASOIA = "Cropland will be seeded";
STR_CALOTTEPOLARI = "Polar ice is melting:";
STR_PROVVISTE = "Food supply:";
STR_VACCHE = "Beef cows";
FORESTA_DESCRIZIONE = "A millennia-old rainforest";
VILLAGGIO_DESCRIZIONE = "A wild tribe has settled here";
STR_BRAND = "Headquarters";
STR_CDA = "Board of directors";
STR_PUBBLICITA = "Marketing division";
STR_PR = "Public relations office";
STR_DETRATTORI = "Our detractors";
STR_PUNTO = "View this month budget";
DESCRIZIONE_BRAND = "This is the McDonald's decision center";
DESCRIZIONE_PUBBLICITA = "Set up advertising campaigns here";
DESCRIZIONE_CDA = "They are the bosses";
DESCRIZIONE_PR = "We like to call these kinds of activities PR";
STR_VAIRETAIL = "Go to fast food";
STR_VAIALLEVAMENTO = "Go to the feedlot";
STR_VAIAGRICOLTURA = "Go to the agricultural section";
STR_VAIBRAND = "Go to the headquarters";
STR_ALLEVAMENTO = "Feedlot";
STR_SALUTE = "Health:";
STR_SALUTE_OK = "Good";
STR_PESO = "Weight:";
STR_VACCA = "Cow";
STR_MANGIME = "Breed";
STR_CISTERNA = "Breed-o-matic";
STR_MACELLO = "Slaught-o-matic";
STR_HAMBURGERFATTI = "Hamburgers made";
STR_CAPIENZA = "Capacity:";
STR_MALATA = "Diseased";
STR_BSE = "Infected by mad cow disease";
STR_RETAIL = "Fast food";
STR_AFFLUENZA = "Customer flow:";
STR_HAMBURGER = "Hamburger:";
STR_PANINI = "Sandwiches:";
STR_LINEAVUOTA = "Sandwich assembly line";
STR_CASSAVUOTA = "Desk";
DESCRIZIONE_LINEA = "We create the sandwiches here";
DESCRIZIONE_CASSA = "We sell the meals here";
STR_MOTIVAZIONE = "Motivation:";
STR_MOT1 = "RAGE";
STR_MOT2 = "Bored";
STR_MOT3 = "Calm";
STR_MOT4 = "Happy";
NOMI_VACCHE = new Array("Caroline", "Vichy", "Daisy", "Clara", "Dolly", "Vanessa");
HLP_SOIA = "Buy the land and grow soy";
HLP_ALLEVAMENTO = "Buy the land and create a pasture";
HLP_FORESTASOIA = "Clear the forest and grow soy";
HLP_FORESTAALLEVAMENTO = "Clear the forest and create a pasture";
HLP_ALLEVAMENTOPIU = "Increase pasture utilization";
HLP_ALLEVAMENTOMENO = "Decrease pasture utilization";
HLP_VILLAGGIOSOIA = "Demolish the village and grow soy";
HLP_VILLAGGIOALLEVAMENTO = "Demolish the village and create a pasture";
HLP_TRASFORMASOIA = "Convert to soy cropland";
HLP_TRASFORMAALLEVAMENTO = "Convert to pasture";
HLP_VENDITERRENO = "Sell the land";
HLP_CORROMPISINDACO = "Corrupt Sao Jos\u00E8 major";
HLP_ABBATTI = "Destroy the cow before slaughter";
HLP_SCARTI = "Add industrial waste to the fodder";
HLP_ORMONI = "Add hormones to the fodder";
HLP_FARINEANIMALI = "Use animal flour for the fodder";
HLP_OGM = "Use genetically modified soy";
HLP_ASSUMI = "Hire a crew member";
HLP_LICENZIA = "Fire this crew member";
HLP_PREMIA = "Reward the employee with a badge";
HLP_MOBBIZZA = "Discipline the employee";
HLP_MANAGER = "He will alert you when something is wrong";
HLP_BILANCIO = "View last month\u2019s budget";
HLP_DETRATTORI = "View the ire of our detractors";
HLP_GRAFICO = "View the profit trend";
HLP_NORMALE = "Normal speed";
HLP_FFWD = "Double speed";
STR_COSTO = "Cost: ";
STR_ALMESE = "per month";
STR_BILANCIO = "Budget in the month of ";
VOCE_STIPENDI = "Employees\u2019 wages";
VOCE_OGM = "OGM seed";
VOCE_ORMONI = "Hormones";
VOCE_PASCOLO = "Pasture land";
VOCE_PASCOLOFORESTA = "Forest-pasture conversion";
VOCE_PASCOLOVILLAGGIO = "Village-pasture conversion";
VOCE_SOIAFORESTA = "Forest-soy field conversion";
VOCE_SOIAVILLAGGIO = "Village-soy field conversion";
VOCE_SOIA = "Pasture land";
STR_INIZIO_ATTIVITA = "Budget not available";
STR_ENTRATE = "Receipts";
STR_USCITE = "Expenditure";
STR_GUADAGNO = "Profit";
STR_SALDO = "Balance";
STR_DETTAGLI = "Details";
ALLARME_CDA_TITOLO = "Board of directors alarm";
STR_CONTO = "We\u2019re losing too much money. We\u2019ll soon go bankrupt!\n";
STR_CRESCITA = "The growth is not sufficient!\n";
GRAFICO_TITOLO = "Profit trend";
STR_ARCHIVIO = "Budget archive";
ALLARME_ALLEVAMENTO_TITOLO = "Feedlot";
ALLARME_RETAIL_TITOLO = "Fast food";
ALIMENTARISTA_TITOLO = "Corrupt a nutritionist";
ALIMENTARISTA_TESTO = "The secrets of metabolism will probably never be known. And there is total uncertainty about cancerous food. Yesterday pork was unhealty, today it's tobacco and tomorrow\u2026 who knows! It all depends on the relations between the nutritionists on the many corporations\u2019 payrolls. Convince one of them you can disprove the general belief that the obesity trend is related to our business.";
POLITICO_TITOLO = "Corrupt a politician ";
POLITICO_TESTO = "It's useful to have powerful friends. Especially when our employees start to organize and ask for those obsolete \"working rights\" or when the anti-globalization movements rail against our brand. An influential politician can repress demonstrations and neutralize workers who instigate uprisings and revolts.";
CLIMATOLOGO_TITOLO = "Corrupt a climatologist";
CLIMATOLOGO_TESTO = "If we could avoid clearing rainforests, polluting water supplies with bovine excrement and contributing to ozone depletion, we would. But we can\u2019t do it if we want to keep our profits high. Corrupting a climatologist is the best way to reassure the public opinion and assure the ecologists don't prevail.";
ISPETTORE_TITOLO = "Corrupt a health officer";
ISPETTORE_TESTO = "Public institutions have the bad habit of placing restrictions on freedom of enterprise. One of these restrictions is the health standards for meat production. Is in our interest to provide genuine food to our customers. We really don\u2019t need the bureaucrats' arbitrary opinions. You can \"facilitate\" the relations with health commissioners to make it more difficult for consumer associations to charge us for food poisoning cases.";
TOPOLINO_TITOLO = "McDisney's";
TOPOLINO_TESTO = "Integrated marketing is the key to success. Creating partnerships with enterteinment industry leaders can maximize brand awareness. The campaign is founded in stealth advertising in children cartoons and co-branded happy meal gifts. It's a win-win formula but the operation will have high cost. It would be best to use it only if you can guarantee appropriate service for you customers.";
BAMBINI_TITOLO = "Children want McDonald's";
BAMBINI_TESTO = "Children are a primary target for us. Their young minds are free from critical barriers and perfect for early adoption. Children also drive their parents\u2019 consumption habits with artful emotional extortions. Our ads will culture these responses.";
ALIMENTAZIONE_TITOLO = "The food pyramid";
ALIMENTAZIONE_TESTO = "A balanced diet is the secret to healthfulness. This campaign will explain how McDonald\u2019s meals are rich with fats and proteins, foundational substances for the production of antibodies. They strengthen bones and memory without damaging the organism. We will also use well-known testimonials such as anorexic top-models. With this campaign we also expect to weaken the obesity associations\u2019 claims.";
TERZOMONDO_TITOLO = "McDonald's for the third world";
TERZOMONDO_TESTO = "Collective western guilt can be leveraged to generate profit. If we invest a ridiculous sum in third world peoples, we can win compassion from the middle class and erode the anti-globalization movement. The ads will show negroes with sad staring eyes and Ronald McDonald fighting poverty, represented as a monster from the outer space.";
CALOTTE_TITOLO = "Sea level";
CALOTTE_TESTO = "Scientists say if we destroy too many rainforests, we cause ozone depletion. Ozone depletion causes global warming and melts polar ice caps. If polar ice caps melt, the sea level rises and there are climatic disasters. Unfortunately many people believe these superstitions and want to halt western progress to save the stupid icebergs. Let's make people take a look at the sea level and make the climatologists fall in line with us.";
CITTA_TITOLO = "Sao Jos\u00E8 ";
CITTA_TESTO = "The city of Sao Jos\u00E8 uses a lot of land to sustain itself. Often underdeveloped countries believe that grain for human consumption is more important than bovine pastures or soy cropland for fodder. Luckily, with a small small sum of money we can obtain permission to use common lands and bring richness to this corner of the world.";
ECOLOGISTI = "Environmentalists";
ECOLOGISTI_ALLARME = "Ecology has been a growing trend in recent years. According to this pseudo-religion every economic activity leads to the planet's destruction. Some fools are angry because we destroy forests, or they think pastures cause drought. At the moment they seem harmless but they are gaining followers and could start a defamation campaign against us.";
ECOLOGISTI_PROTESTA = "Radical environmentalist groups launched a subtle campaign against us. Our logo appears horribly subverted on their flyers and there is also a videogame with slanderous contents. It\u2019s conceivable that this mess will cause a drop of customer traffic for some months.";
NOGLOBAL = "Anti-globalization movements";
NOGLOBAL_ALLARME = "Sometimes a generation of bored youth comes along, displeased with everything. All around the world, activist groups that hate our golden arches are springing up. Some of them blame us for the third world\u2019s hunger, others say we destroy native tribes or lead children astray with our ads. We must prevent them from gaining enough momentum to start a boycott against us.";
NOGLOBAL_PROTESTA = "Anti-globalization movements have announced a boycott of our fast food. They\u2019re using independent media channels to spread their delirious theories -- and they have convinced many people. We are expecting a drop in customer traffic for some months.";
CONSUMATORI = "Consumers\u2019 associations";
CONSUMATORI_ALLARME = "More and more people are feeling sick after a meal of our fast food. Many people believe this is due to the lack of meat quality controls -- they claim that we slaughter diseased cows. Some even believe it is caused by a combination of genetically modified cattle and aggressive pesticides. Anyway we must avoid any charges of food poisoning to avoid a sanction.";
VOCE_CONSUMATORI_MULTA = "Sanction payment";
CONSUMATORI_PROTESTA = (("Consumers\u2019 associations have declared war on McDonald\u2019s. They obtained sufficient evidence to charge us for food poisoning. We have to pay a sanction and pay more attention in the future." + VOCE_CONSUMATORI_MULTA) + ": ") + CONSUMATORI_MULTA;
SINDACATI = "Organized workers";
SINDACATI_ALLARME = "Groups of employees have organized and are complaining about the many firings and mistreatments on the job. The absolute control of human resources is a centerpiece of our business and we can\u2019t do without it. If they decide to organize a protest, they could cause serious monetary losses.";
SINDACATI_PROTESTA = "Precarious workers organized a protest outside the fast-food. Our lawyers will do everything they can to send them to prison, but meanwhile we have to endure a disruption in business.";
OBESI = "Obesity association";
OBESI_ALLARME = "The number of obese grows day by day, along with hearth attacks and cardiovascular diseases. Lets make these fat fucks exercise";
VOCE_OBESI_MULTA = "Reparation payment";
OBESI_PROTESTA = (("The national obesity association organized a mass suit against McDonald\u2019s. The court faulted us because we didn't warn customers that our sandwiches could fatten them up. This is called justice! Now we have to pay reparation to all the fatties that mobilized against us.\n" + VOCE_OBESI_MULTA) + ": ") + OBESI_MULTA;
DETRATTORI_TITOLO = "View our detractors' ire";
ALLARME_TROPPEVACCHE = "There are too many cows.\n";
ALLARME_NOVACCHE = "There are no cows.\n";
ALLARME_MANGIMESCARSO = "The fodder is scarce, increase soy production.\n";
ALLARME_TROPPOMANGIME = "The cistern is full.\n";
ALLARME_MALATTIA = "There are some diseased cows, destroy them before they start an epidemic";
ALLARME_BSE = "Some cows are infected by the mad cow disease. Don't kill them, this will be funny as fuck!";
ALLARME_MACELLAZIONE = "There are no hamburgers, increase the butchering.\n";
ALLARME_FRIGO = "Fridges are full, the meat is going bad";
ALLARME_FILA = "Warning there is a queue because ";
ALLARME_GRILLMEN = "we are not producing enough sandwiches. Hire Niggers.";
ALLARME_CASSE = "we are'nt selling enough sandwiches. Hire someone at the register.";
ALLARME_MOTIVAZIONE = "Some crew members are not motivated enough. Stop with the emo shit!";
TUT_TITOLO = "Tutorial";
TUT1 = "Making money in a big corporation is not simple at all. Behind every sandwich there is a complex process you must learn to manage\u2026\n Use the arrows on the lower left to continue";
TUT2 = "As do all modern corporations, McDonald's manages production in different parts of the world. You have to supervise all the four sectors. You can switch between the sectors using the panel on the lower left.\n Remember: even if a sector is not show, the events in it continue to run.";
TUT3 = "Agricultural sector:\nIf we had to rear all the cattle we need in our part of the world, our cities would drown in an ocean of cow shit. Pastures and soy culture need a lot of land and South America is one of the best places for it. Obviously you have to conquer your land as our forefathers did. Remember the old saying: \\under every forest there is a lawn\".";
TUT4 = "Free land:\nYou can buy it to create pasture or soy cultures.";
TUT5 = "Pasture:\nHere every cow spends the first years of his life. You can increase terrain productivity by rearing more cows in the same area.";
TUT6 = "Soy culture:\nYou can increase terrain productivity using genetically modified plants. GMOs allow us to use more aggressive pesticides to minimize insect damage.";
TUT7 = "Grain culture:\nUsed by the city of Sao Jos\u00E8 for people nutrition.";
TUT8 = "Rainforest:\nYou can clear it to establish pastures and soy cropland.";
TUT9 = "Feed lot:\nEvery good American wants a fat and greasy burger. Unfortunately, the cows coming from the pastures are slim and won't yield fat meat. So we must keep them here for some months and overindulge them with hyperchaloric soy-based fodder. Make sure there is sufficient fodder for all the cows and avoid the epidemics.";
TUT10 = "Cow:\nwhen it is fat enough, it will be automatically slaughted.";
TUT11 = "Cistern:\nhere we store the soy-based fodder";
TUT12 = "Industrial waste:\nYou can save time and money by adding industrial waste in the fodder. Oils, sewage and other shit are not very good for the cows\u2019 health but they are so convenient.";
TUT13 = "Hormones:\nYou can fill the cows with hormones to make them fatten more quickly. This could have some risks to consumer health, but make no mistake: in love and war everything is licit.";
TUT14 = "Tritamatic:\nFor each cow slaughtered, there is a lot of organic matter we can\u2019t use. It would be convenient make animal flour from this stuff and mix it in the fodder";
TUT15 = "Diseased cow:\nIf the fodder is too unhealthy the risk of epidemic grows. To avoid food poisoning you have to destroy diseased cows before the slaughter";
TUT16 = "Mad cow:\nBSE is a disease caused by the use of animal flours in the animals\u2019 feeding. To avoid scandal it is better to destroy the infected cows";
TUT17 = "Cattleman:\nHe\u2019s the overseer of the feedlot. He will alert you when something is going wrong";
TUT18 = "Fast Food:\nPeople live fast and want to eat quickly. Fast food restaurants are the cathedrals of our age and everything must be efficient and optimized. Avoid customer queues by supplying hamburger for the kitchen and making human resources prompt and motivated.\nManaging the crew is an art: to keep your employees motivated you can reward them with an \"employee of the week\" badge or reproach them. For the most ungrateful the best solution is firing. Eliminate the weak links!";
TUT19 = "Fridge:\nMake sure to have the enough meat coming from the feed lot.";
TUT20 = "Grillman:\nThis crew member prepares sandwiches like T-model Fords";
TUT21 = "Cashier:\nThis crew member sells the meals. If there are no active registers, customers won\u2019t enter the restaurant.";
TUT22 = "Costumer:\nTheir number depends on advertising and the activities of our detractors.";
TUT23 = "Manager:\nHe\u2019s the the restaurant's manager. He will alert you when something is going wrong";
TUT24 = "Headquarters:\nMcDonald\u2019s is not a fast food chain but a brand, a lifestyle, a symbol of western culture's superiority. Here you can make strategic decisions about the corporate image.";
TUT25 = "Marketing:\nThese weird guys are the best creatives on the market. They will set up the most sophisticated and pervasive advertising campaigns. Few ads means few customers.";
TUT26 = "PR office:\nThe public relations office develops countermeasures against our detractors (environmentalists, consumer associations and other bands of radicals).";
TUT27 = "Board of directors\nThe board of directors constantly oversees our profits. These men invested their capital in the enterprise and hired you to bear a dividend. If you disappoint them you're out!.";
TUT28 = "Vice director:\nHe will alert you when the board of directors is not satisfied with your work";
VOCE_PASCOLO_MANUTENZIONE = "Pasture maintenance";
VOCE_SOIA_MANUTENZIONE = "Soy cropland maintenance";
STR_MENU = "Main menu";
STR_GAMEOVER = "Game over";
STR_GAMEOVERTXT = "Shame on you, you bankrupted our company! Years and years of corporate culture has been destroyed!";
STR_INT1 = "The interface";
STR_INT2 = "Use these buttons to switch from a section to another";
STR_INT3 = "Always keep an eye here, this is your cash!";
STR_INT4 = "Additional informations about the selected operation...";
STR_INT5 = "... and there's its cost";
STR_INT6 = "Switch the game velocity between normal and fast";
Frame 2
function createBox(obj, txt) {
obj.createTextField("testo", 4, 4, 4, ((obj._width / obj._xscale) * 100) - 8, 10);
with (obj.testo) {
multiline = true;
wordWrap = true;
autoSize = true;
text = txt;
setTextFormat(_root.tutFormato);
}
obj.sfondo._height = obj.testo._height + 4;
d = obj.sfondo.getDepth() - 1;
duplicateMovieClip (obj.sfondo, "ombra", d);
my_color = new Color(obj.ombra);
my_color.setRGB(3355443);
obj.ombra._x = obj.ombra._x + 3;
obj.ombra._y = obj.ombra._y + 3;
}
suonoTema = new Sound();
suonoTema.attachSound("tema");
suonoBeep = new Sound();
suonoBeep.attachSound("beep");
suonoClick = new Sound();
suonoClick.attachSound("click");
suonoAllarme = new Sound();
suonoAllarme.attachSound("allarme");
suonoBop = new Sound();
suonoBop.attachSound("bop");
suonoDit = new Sound();
suonoDit.attachSound("dit");
stop();
_root.loopAmbiente.stop();
clearInterval(weekInterval);
suonoTema.start(0, 4);
tutFormato = new TextFormat("arial", 12, 0);
tutFormato.bold = true;
loader.onEnterFrame = function () {
tot = _root.getBytesTotal();
car = _root.getBytesLoaded();
pulsantone.percentuale.text = Math.round((car / tot) * 100);
if (car >= tot) {
pulsantone.gotoAndStop("newGame");
}
};
buttTutorial.onRelease = function () {
_root.suonoBop.start();
tutorial.gotoAndStop(1);
tutorial._visible = true;
};
sound.onRelease = function () {
if (suoni) {
_root.suonoBeep.setVolume(0);
_global.suoni = false;
scrittaSuoni.gotoAndStop("off");
} else {
_root.suonoBop.start();
_root.suonoBeep.setVolume(100);
_global.suoni = true;
scrittaSuoni.gotoAndStop("on");
}
};
Instance of Symbol 186 MovieClip "scrittaSuoni" in Frame 2
onClipEvent (load) {
trace(suoni);
if (suoni) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
Instance of Symbol 295 MovieClip "tutorial" in Frame 2
onClipEvent (load) {
this._visible = false;
}
Frame 3
suonoCitta = new Sound();
suonoCitta.attachSound("citta");
suonoOceano = new Sound();
suonoOceano.attachSound("oceano");
suonoForesta = new Sound();
suonoForesta.attachSound("foresta");
suonoVillaggio = new Sound();
suonoVillaggio.attachSound("villaggio");
loopAmbiente = new Sound();
loopAmbiente.attachSound("agricoltura");
suonoMucca1 = new Sound();
suonoMucca1.attachSound("mucca1");
suonoMucca2 = new Sound();
suonoMucca2.attachSound("mucca2");
suonoMucca3 = new Sound();
suonoMucca3.attachSound("mucca3");
suonoMuccaMorta = new Sound();
suonoMuccaMorta.attachSound("muccamorta");
suonoCassa = new Sound();
suonoCassa.attachSound("cassa");
suonoLinea = new Sound();
suonoLinea.attachSound("linea");
suonoDeserto = new Sound();
suonoDeserto.attachSound("deserto");
suonoBraccio = new Sound();
suonoBraccio.attachSound("braccio");
suonoBraccioSu = new Sound();
suonoBraccioSu.attachSound("bracciosu");
suonoMacello = new Sound();
suonoMacello.attachSound("muccamacellata");
loopMacchina = new Sound();
loopMacchina.attachSound("allevamento");
suonoFiamma = new Sound();
suonoFiamma.attachSound("muccaabbattuta");
suonoAratura = new Sound();
suonoAratura.attachSound("aratura");
suonoMietitura = new Sound();
suonoMietitura.attachSound("mietitura");
suonoAbbattimento = new Sound();
suonoAbbattimento.attachSound("abbattimento");
suonoTelefono1 = new Sound();
suonoTelefono1.attachSound("telefono1");
suonoTelefono2 = new Sound();
suonoTelefono2.attachSound("telefono2");
suonoStampante = new Sound();
suonoStampante.attachSound("stampante");
suonoTastiera = new Sound();
suonoTastiera.attachSound("tastiera");
suonoVoci1 = new Sound();
suonoVoci1.attachSound("voci1");
suonoVoci2 = new Sound();
suonoVoci2.attachSound("voci2");
suonoVoci3 = new Sound();
suonoVoci3.attachSound("voci3");
suonoVoci4 = new Sound();
suonoVoci4.attachSound("voci4");
suonoVoci5 = new Sound();
suonoVoci5.attachSound("voci5");
suonoVoci6 = new Sound();
suonoVoci6.attachSound("voci6");
suonoHey = new Sound();
suonoHey.attachSound("hey");
suonoGameOver = new Sound();
suonoGameOver.attachSound("temagameover");
stopAllSounds();
SOLDI_INIZIALI = 50000000 /* 0x2FAF080 */;
soldi = SOLDI_INIZIALI;
soia = 2000000 /* 0x1E8480 */;
hamburger = 100;
hamburgerfatti = 50;
hamburgerdafare = 0;
panini = 0;
affluenza = 1;
allevamento_tutorial = true;
retail_tutorial = true;
brand_tutorial = true;
entrate = 0;
uscite = 0;
MAX_HAMBURGER = 500000 /* 0x07A120 */;
vacche = 0;
soia = 0;
RENDITA_SOIA = 200;
FERTILITA_MAX = 1800;
DIVISORE_FERTILITA = 2;
FERTILITA_ALLARME = 50;
MOLTIPLICATORE_OGM = 1.3;
MOLTIPLICATORE_SCARTI = 1.15;
FORESTE_MAX = 7;
FORESTE_MEDIE = 5;
FORESTE_POCHE = 3;
livello = 0;
riscaldamento = 0;
calottepolari = 100;
sindacocorrotto = false;
campidigrano = 4;
vacchefuture = 0;
soiafutura = 0;
COSTO_TERRENO = 100;
COSTO_FORESTA = 60;
VACCHE_INIZIALI = 20;
MAX_VACCHE = 20;
PESO_INIZIALE = 500;
PESO_FINALE = 1000;
INGRASSO_MENSILE1 = 40;
INGRASSO_MENSILE2 = 50;
INGRASSO_MENSILE3 = 60;
BONUS_ORMONI = 50;
PESO_MINIMO = 300;
BONUS_FARINE = 20;
HAMBURGER_VACCA = 30;
CIBO_MENSILE = 30;
MAX_MANGIME = 3000;
RISCHIOMALATTIA = 400;
RISCHIOSCARTI = 80;
RISCHIOORMONI = 80;
RISCHIOOGM = 10;
MOLTIPLICATOREEPIDEMIA = 10;
RISCHIOBSE = 200;
_root.mangime = 1000;
TOT_TILES = 21;
YEAR = 2000;
week = 1;
month = 0;
year = YEAR;
season = STR_WINTER;
TIME = 1000;
TIMESTEP = 100;
TIMEMIN = 300;
TIMEMAX = 2000;
CLIENTISERVITI = 15;
MAXCLIENTI = 8;
IDfinestra = 99999 /* 0x01869F */;
ROOT_X = 660;
ROOT_Y = 410;
ASSE_X = 400;
ASSE_Y = 200;
COL_ASSI = "0xBB674A";
COL_LINEA = "0x6F0000";
COL_RIGHE = "0xE3C2B7";
PIANO_X = 400;
PIANO_Y = 170;
CORNICE = 20;
MAX_YEAR = 5;
periodo = 0;
absyear = 0;
myformat = new TextFormat();
myformat.color = 16711680 /* 0xFF0000 */;
myformat.font = "Arial";
myformat.size = 10;
tile = "tile1";
COSTO_SOIA = 10000;
COSTO_PASCOLO = 5000;
COSTO_SINDACO = 10000;
COSTO_SOIAFORESTA = 8000;
COSTO_PASCOLOFORESTA = 3000;
COSTO_SOIA_MESE = 200;
COSTO_PASCOLO_MESE = 200;
COSTO_OGM = 50;
COSTO_ORMONI = 50;
COSTO_CREW = 400;
COSTO_ALIMENTARISTA = 200;
COSTO_POLITICO = 300;
COSTO_CLIMATOLOGO = 200;
COSTO_ISPETTORE = 200;
COSTO_TOPOLINO = 900;
COSTO_BAMBINI = 500;
COSTO_ALIMENTAZIONE = 600;
COSTO_TERZOMONDO = 600;
PREZZO_HAMBURGER = 600;
MAX_MOTIVAZIONE = 4;
RANDOM_SPILLA = 3;
RANDOM_MOBBING = 3;
SFIDUCIA = 30;
MOLTIPLICATORE_MOTIVAZIONE = 10;
ecologisti = 0;
noglobal = 0;
consumatori = 0;
sindacati = 0;
obesi = 0;
CLIMATOLOGO_EFFICACIA = 2;
POLITICO_EFFICACIA = 2;
ISPETTORE_EFFICACIA = 5;
ALIMENTARISTA_EFFICACIA = 5;
ECOLOGISTI_FORESTE = 45;
ECOLOGISTI_DESERTIFICAZIONE = 1;
NOGLOBAL_CITTA = 1;
NOGLOBAL_PUBBLICITA = 0.5;
NOGLOBAL_VILLAGGIO = 45;
NOGLOBAL_FORESTE = 10;
CONSUMATORI_OGM = 1;
CONSUMATORI_MALATA = 15;
CONSUMATORI_BSE = 35;
SINDACATI_DECRESCITA = 1;
SINDACATI_LICENZIAMENTO = 20;
SINDACATI_MOBBING = 10;
OBESI_CRESCITA = 2;
OBESI_DECRESCITA = 1;
TERZOMONDO_EFFICACIA = 2;
ALIMENTAZIONE_EFFICACIA = 2;
MIN_GUADAGNO = 400;
MAX_GUADAGNO = 2500;
ASPETTATIVA = 80;
BANCAROTTA = -30000;
ALLARMISMO_CDA = 1;
MAX_ALLARME = 10;
allarme_cda = 0;
NOGLOBAL_BOICOTT = 12;
ECOLOGISTI_BOICOTT = 12;
SINDACATI_PICCHETTO = 6;
CONSUMATORI_MULTA = 5000;
OBESI_MULTA = 8000;
Instance of Symbol 441 MovieClip "normal" in Frame 3
on (rollOver) {
_root.help(_root.HLP_NORMALE);
}
on (rollOut) {
_root.nohelp();
}
Instance of Symbol 460 MovieClip [fps_meter] "fps" in Frame 3
//component parameters
onClipEvent (construct) {
component = true;
}
//component parameters
onClipEvent (construct) {
component = true;
}
Frame 4
function everyweek() {
if (timeabs == 1) {
i = 0;
while (i < _root.VACCHE_INIZIALI) {
nuovavacca();
i++;
}
}
timeabs++;
if (timeabs > 3) {
if (fps.dp.text != undefined) {
velocitaMax = (5 / fps.dp.text) * 1000;
}
clearInterval(weekInterval);
weekInterval = setInterval(everyweek, time);
}
if ((time < velocitaMax) && (velocitaMax != undefined)) {
time = velocitaMax + 100;
clearInterval(weekInterval);
weekInterval = setInterval(everyweek, time);
}
aggiornafrigo();
aggiornapanini();
muovipostazioni();
if (_root.affluenza > 0) {
nuoviclienti(_root.affluenza);
}
if (((retail.fila1.clienti > 0) && (panini > 0)) && (retail.cassa1.attiva == true)) {
if (random(retail.cassa1.motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
scorrifila.call(retail.fila1);
} else {
retail.cassa1.omino.braccia.gotoAndPlay("fermo");
retail.cassa1.omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
if (((retail.fila2.clienti > 0) && (panini > 0)) && (retail.cassa2.attiva == true)) {
if (random(retail.cassa2.motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
scorrifila.call(retail.fila2);
} else {
retail.cassa2.omino.braccia.gotoAndPlay("fermo");
retail.cassa2.omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
if (((retail.fila3.clienti > 0) && (panini > 0)) && (retail.cassa3.attiva == true)) {
if (random(retail.cassa3.motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
scorrifila.call(retail.fila3);
} else {
retail.cassa3.omino.braccia.gotoAndPlay("fermo");
retail.cassa3.omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
week++;
if (week >= 4) {
month++;
week = 0;
everymonth();
}
if ((month == 2) && (week == 3)) {
spring();
} else if ((month == 5) && (week == 3)) {
summer();
} else if ((month == 8) && (week == 3)) {
fall();
} else if ((month == 11) && (week == 3)) {
winter();
}
contavacche();
salutevacche();
allevamento.tritacarne.gotoAndPlay(1);
}
function everymonth() {
if (month >= 12) {
month = 0;
year++;
absyear++;
if (_root.MIN_GUADAGNO < _root.MAX_GUADAGNO) {
_root.MIN_GUADAGNO = _root.MIN_GUADAGNO + _root.ASPETTATIVA;
}
if ((absyear != 0) && ((absyear % _root.MAX_YEAR) == 0)) {
periodo = periodo + _root.MAX_YEAR;
i = 0;
while (i < (_root.MAX_YEAR * 12)) {
_root.bilanci.shift();
_root.stat.shift();
i++;
}
}
}
vacchefuture = _root.calcolavacche();
soiafutura = _root.calcolasoia();
str_month = MESI[month];
bilanci.push(bilancio);
bilancio = (((STR_BILANCIO + str_month) + " ") + year) + "\n\n";
bilancio = bilancio + (STR_ENTRATE + ": ");
bilancio = bilancio + (entrate + newline);
bilancio = bilancio + (STR_USCITE + ": ");
bilancio = bilancio + (uscite + newline);
guadagno = entrate - uscite;
bilancio = bilancio + (((STR_GUADAGNO + ": ") + guadagno) + newline);
allarme_output = "";
if (guadagno < MIN_GUADAGNO) {
allarme_cda = allarme_cda + ALLARMISMO_CDA;
} else if (guadagno < 0) {
allarme_cda = allarme_cda + (ALLARMISMO_CDA * 2);
} else if (allarme_cda > 0) {
allarme_cda = allarme_cda - ALLARMISMO_CDA;
}
if (allarme_cda >= MAX_ALLARME) {
allarme_cda = MAX_ALLARME;
allarme_output = STR_CRESCITA;
}
if (soldi < (BANCAROTTA / 2)) {
allarme_output = allarme_output + STR_CONTO;
}
if (soldi <= BANCAROTTA) {
gameOver();
}
if (guadagno >= 0) {
_root.brand.schermo.gotoAndStop("su");
} else {
_root.brand.schermo.gotoAndStop("giu");
}
if (allarme_output != "") {
_root.brand.relatore.gotoAndPlay("allarme");
_root.alm_brand.gotoAndPlay("on");
_root.brand.az1.testa.gotoAndStop("incazzato");
_root.brand.az2.testa.gotoAndStop("incazzato");
_root.brand.az3.testa.gotoAndStop("incazzato");
_root.brand.az4.testa.gotoAndStop("incazzato");
} else {
_root.brand.relatore.gotoAndPlay(1);
_root.alm_brand.gotoAndStop("off");
_root.brand.az1.testa.gotoAndStop("felice");
_root.brand.az2.testa.gotoAndStop("felice");
_root.brand.az3.testa.gotoAndStop("felice");
_root.brand.az4.testa.gotoAndStop("felice");
}
bilancio = bilancio + (((STR_SALDO + ": ") + soldi) + "$\n\n");
entrate = 0;
uscite = 0;
bilancio = bilancio + (STR_DETTAGLI + ":\n");
speseMensili();
stat.push(soldi);
if (sindacatiPicchetto > 0) {
sindacatiPicchetto--;
}
if (noglobalBoicott > 0) {
noglobalBoicott--;
}
if (ecologistiBoicott > 0) {
ecologistiBoicott--;
}
calcolaDissenso();
calcolaAffluenza();
desertificazione();
calcolafertilita();
surriscaldamento();
famecitta();
ingrassovacche();
rnd = random(SFIDUCIA);
switch (rnd) {
case 1 :
if ((retail.linea1.attiva == true) && (retail.linea1.motivazione > 1)) {
retail.linea1.motivazione--;
}
break;
case 2 :
if ((retail.linea2.attiva == true) && (retail.linea2.motivazione > 1)) {
retail.linea2.motivazione--;
}
break;
case 3 :
if ((retail.linea3.attiva == true) && (retail.linea3.motivazione > 1)) {
retail.linea3.motivazione--;
}
break;
case 4 :
if ((retail.cassa1.attiva == true) && (retail.cassa1.motivazione > 1)) {
retail.cassa1.motivazione--;
}
break;
case 5 :
if ((retail.cassa2.attiva == true) && (retail.cassa2.motivazione > 1)) {
retail.cassa2.motivazione--;
}
break;
case 6 :
if (!((retail.cassa3.attiva == true) && (retail.cassa3.motivazione > 1))) {
break;
}
retail.cassa3.motivazione--;
}
j = 1;
while (j < TOT_TILES) {
if (piano["tile" + j].tipo == "allevamento") {
if ((piano["tile" + j].vacca1._currentframe >= 25) || (piano["tile" + j].vacca1._currentframe < 5)) {
piano["tile" + j].vacca1.play();
} else if (piano["tile" + j].vacca1._visible == true) {
piano["tile" + j].vacca1.nextFrame();
}
if ((piano["tile" + j].vacca2._currentframe >= 25) || (piano["tile" + j].vacca2._currentframe < 5)) {
piano["tile" + j].vacca2.play();
} else if (piano["tile" + j].vacca2._visible == true) {
piano["tile" + j].vacca2.nextFrame();
}
if ((piano["tile" + j].vacca3._currentframe >= 25) || (piano["tile" + j].vacca3._currentframe < 5)) {
piano["tile" + j].vacca3.play();
} else if (piano["tile" + j].vacca3._visible == true) {
piano["tile" + j].vacca3.nextFrame();
}
}
j++;
}
}
function spring() {
stagioni.gotoAndStop(1);
season = STR_SPRING;
flagm = false;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "soia") {
piano["tile" + i].gotoAndPlay("soiamietitura");
if (zona == "agricoltura") {
flagm = true;
}
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granomietitura");
if (zona == "agricoltura") {
flagm = true;
}
}
i++;
}
if (flagm) {
_root.suonoMietitura.start(0, 5);
}
}
function summer() {
stagioni.gotoAndStop(2);
season = STR_SUMMER;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "soia") {
piano["tile" + i].gotoAndPlay("soiariposo");
m = RENDITA_SOIA + (piano["tile" + i].fertilita / DIVISORE_FERTILITA);
if (piano["tile" + i].ogm == true) {
m = m * MOLTIPLICATORE_OGM;
}
if (scarti == true) {
m = m * MOLTIPLICATORE_SCARTI;
}
m = Math.round(m);
mangime = mangime + m;
gestionecisterna();
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granoriposo");
}
i++;
}
}
function fall() {
stagioni.gotoAndStop(3);
season = STR_FALL;
ar = false;
i = 1;
while (i < TOT_TILES) {
if ((piano["tile" + i]._currentframe > 45) && (piano["tile" + i].tipo == "soia")) {
piano["tile" + i].gotoAndPlay("soiaaratura");
}
if (piano["tile" + i].tipo == "attesagrano") {
piano["tile" + i].tipo = "grano";
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granoaratura");
}
i++;
}
}
function winter() {
stagioni.gotoAndStop(4);
season = STR_WINTER;
i = 1;
while (i < TOT_TILES) {
if ((piano["tile" + i].tipo == "attesasoia") && (piano["tile" + i].nuovoutilizzo == undefined)) {
piano["tile" + i].tipo = "soia";
}
if (piano["tile" + i].tipo == "soia") {
piano["tile" + i].gotoAndPlay("soiacrescita");
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granocrescita");
}
i++;
}
}
function help(testo, costo, tipo) {
_root.interfaccia = 1;
_root.testohelp = testo;
_root.menu.help._visible = true;
if (costo == undefined) {
_root.testocosto = "";
_root.menu.help.mascheraCosto._visible = false;
} else {
if (tipo == "mese") {
_root.menu.help.mascheraCosto.gotoAndStop("mese");
} else {
_root.menu.help.mascheraCosto.gotoAndStop("tantum");
}
_root.testocosto = "$ " + costo;
_root.menu.help.mascheraCosto._visible = true;
}
}
function nohelp() {
_root.interfaccia = 0;
_root.menu.help._visible = false;
}
function calcolavacche() {
v = 0;
i = 1;
while (i < _root.TOT_TILES) {
if (piano["tile" + i].tipo == "allevamento") {
v = v + piano["tile" + i].intensita;
}
i++;
}
return(v);
}
function calcolasoia() {
s = 0;
i = 1;
while (i < _root.TOT_TILES) {
if ((piano["tile" + i].tipo == "soia") || (piano["tile" + i].tipo == "attesasoia")) {
s = s + 1;
}
i++;
}
return(s);
}
function pausa() {
if (running) {
clearInterval(weekInterval);
_global.running = false;
}
}
function riprendi() {
if (!running) {
weekInterval = setInterval(everyweek, time);
_global.running = true;
}
}
function resetSelections() {
_root.pianomenu.menucontestuale._visible = false;
_root.piano.tastoinfo._visible = false;
_root.piano.tastomare._visible = false;
_root.piano.tastocorrompi._visible = false;
_root.piano.citta2.selezione.gotoAndStop("off");
_root.piano.citta1.selezione.gotoAndStop("off");
if (piano._visible == true) {
_root.menu.gotoAndStop("nulla");
}
i = 1;
while (i < TOT_TILES) {
piano["tile" + i].selezione.gotoAndStop("off");
i++;
}
piano.citta1.selezione.gotoAndStop("off");
piano.citta2.selezione.gotoAndStop("off");
piano.mare.selezione.gotoAndStop("off");
piano.tilecorrente = "nessuno";
}
function contextMenu(tile, tipo) {
_root.pianomenu.menucontestuale._visible = true;
_root.pianomenu.menucontestuale.gotoAndStop(tipo);
if ((tipo == "foresta") && ((_root.suonoForesta.position == _root.suonoForesta.duration) || (_root.suonoForesta.position == 0))) {
_root.suonoForesta.start();
} else if ((tipo == "villaggio") && ((_root.suonoVillaggio.position == _root.suonoVillaggio.duration) || (_root.suonoVillaggio.position == 0))) {
_root.suonoVillaggio.start();
} else if ((tipo == "deserto") && ((_root.suonoDeserto.position == _root.suonoDeserto.duration) || (_root.suonoDeserto.position == 0))) {
_root.suonoDeserto.start();
}
if (_root.piano[tile].ogm == true) {
_root.pianomenu.menucontestuale.tastoogm.gotoAndStop("on");
} else {
_root.pianomenu.menucontestuale.tastoogm.gotoAndStop("off");
}
if ((tile == "tile20") || (tile == "tile19")) {
_root.pianomenu.menucontestuale._x = piano[tile]._x + piano[tile]._width;
_root.pianomenu.menucontestuale._y = (-piano[tile]._y) - 30;
if (tipo == "allevamento") {
_root.pianomenu.menucontestuale.gotoAndStop("allevamento2");
}
if ((tipo == "soia") || (tipo == "attesasoia")) {
_root.pianomenu.menucontestuale.gotoAndStop("soia2");
}
} else if (tile == "tile9") {
_root.pianomenu.menucontestuale._x = 2;
_root.pianomenu.menucontestuale._y = piano[tile]._y + 80;
if (tipo == "allevamento") {
_root.pianomenu.menucontestuale.gotoAndStop("allevamento3");
}
if ((tipo == "soia") || (tipo == "attesasoia")) {
_root.pianomenu.menucontestuale.gotoAndStop("soia3");
}
} else {
_root.pianomenu.menucontestuale._x = (piano[tile]._x + (piano[tile]._width / 2)) + 2;
_root.pianomenu.menucontestuale._y = piano[tile]._y + 22;
}
if ((tipo == "allevamento") && ((tile == "tile13") || (tile == "tile6"))) {
_root.pianomenu.menucontestuale.gotoAndStop("allevamento4");
}
if (((tipo == "soia") || (tipo == "attesasoia")) && ((tile == "tile13") || (tile == "tile6"))) {
_root.pianomenu.menucontestuale.gotoAndStop("soia4");
}
}
function creagrano(tile) {
if (tile.tipo == "vuoto") {
tile.tipo = "attesagrano";
tile.gotoAndStop("granovuoto");
_root.campidigrano++;
}
}
function famecitta() {
creagrano(_root.piano.tile9);
creagrano(_root.piano.tile12);
creagrano(_root.piano.tile15);
creagrano(_root.piano.tile18);
if ((_root.campidigrano > 0) && (_root.piano.citta1._currentframe != 1)) {
_root.piano.citta1.play();
_root.piano.citta2.play();
}
if (_root.campidigrano > 2) {
_root.statocitta = _root.STR_FELICE;
} else if (_root.campidigrano == 2) {
_root.statocitta = _root.STR_SCARSO;
} else if (_root.campidigrano == 1) {
_root.statocitta = _root.STR_ALLARMANTE;
} else if ((_root.campidigrano == 0) && (_root.piano.citta1._currentframe == 1)) {
_root.statocitta = _root.STR_DISABITATA;
_root.piano.citta1.gotoAndPlay(2);
_root.piano.citta2.gotoAndPlay(2);
}
}
function surriscaldamento() {
f = 0;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "foresta") {
f++;
}
i++;
}
if (f >= _root.FORESTE_MAX) {
riscaldamento = 0;
} else if (f >= _root.FORESTE_MEDIE) {
riscaldamento = 2;
} else if (f >= _root.FORESTE_POCHE) {
riscaldamento = 3;
} else if (f < _root.FORESTE_POCHE) {
riscaldamento = 4;
}
_root.livello = _root.livello + riscaldamento;
if ((_root.livello > 0) && (_root.livello <= 1000)) {
frameoceano = Math.round(_root.livello / 100);
piano.mare.oceano.gotoAndStop(frameoceano);
_root.calottepolari = 100 - (frameoceano * 10);
_root.calottepolari = _root.calottepolari + "%";
}
}
function desertificazione() {
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "allevamento") {
piano["tile" + i].fertilita = piano["tile" + i].fertilita - (piano["tile" + i].intensita - 1);
} else if (piano["tile" + i].tipo == "soia") {
} else if (piano["tile" + i].tipo == "vuoto") {
if (piano["tile" + i].fertilita < _root.FERTILITA_MAX) {
piano["tile" + i].fertilita = piano["tile" + i].fertilita + 2;
}
}
f = piano["tile" + i].fertilita;
if (f > 120) {
piano["tile" + i].terreno.gotoAndStop(1);
} else if ((f > 100) && (f < 120)) {
piano["tile" + i].terreno.gotoAndStop(2);
} else if ((f > 80) && (f < 100)) {
piano["tile" + i].terreno.gotoAndStop(3);
} else if ((f > 60) && (f < 80)) {
piano["tile" + i].terreno.gotoAndStop(4);
} else if ((f > 40) && (f < 60)) {
piano["tile" + i].terreno.gotoAndStop(5);
} else if ((f > 20) && (f < 40)) {
piano["tile" + i].terreno.gotoAndStop(6);
} else if ((f > 0) && (f < 20)) {
piano["tile" + i].terreno.gotoAndStop(7);
} else if (f <= 0) {
if (piano["tile" + i].tipo != "deserto") {
if (piano["tile" + i].tipo != "allevamento") {
piano["tile" + i].gotoAndStop("vuoto");
}
if (tilecorrente == ("tile" + i)) {
contextMenu("tile" + i, "deserto");
}
piano["tile" + i].tipo = "deserto";
piano["tile" + i].terreno.gotoAndStop(8);
if (piano["tile" + i].vacca1._visible == true) {
piano["tile" + i].vacca1.gotoAndStop("morta");
}
if (piano["tile" + i].vacca2._visible == true) {
piano["tile" + i].vacca2.gotoAndStop("morta");
}
if (piano["tile" + i].vacca3._visible == true) {
piano["tile" + i].vacca3.gotoAndStop("morta");
}
}
}
i++;
}
}
function corrompisindaco() {
_root.STR_CORRUZIONE = _root.STR_CORROTTO;
_root.sindacocorrotto = true;
spendi(COSTO_SINDACO, HLP_CORROMPISINDACO);
}
function creaallevamento() {
if (piano[_root.tilecorrente].tipo == "foresta") {
piano[_root.tilecorrente].nuovoutilizzo = "allevamento";
piano[_root.tilecorrente].gotoAndPlay("abbattimento");
startLoop("abbattimento", _root.tilecorrente);
contextMenu(_root.tilecorrente, "forestaattesa");
spendi(COSTO_PASCOLOFORESTA, VOCE_PASCOLOFORESTA);
_root.ecologisti = _root.ecologisti + ECOLOGISTI_FORESTE;
_root.noglobal = _root.noglobal + NOGLOBAL_FORESTE;
} else if (piano[_root.tilecorrente].tipo == "villaggio") {
piano[_root.tilecorrente].nuovoutilizzo = "allevamento";
piano[_root.tilecorrente].gotoAndPlay("incendio");
contextMenu(_root.tilecorrente, "villaggioattesa");
spendi(COSTO_PASCOLOFORESTA, VOCE_PASCOLOVILLAGGIO);
noglobal = noglobal + NOGLOBAL_VILLAGGIO;
startLoop("abbattimento", _root.tilecorrente);
} else {
if ((piano[_root.tilecorrente].tipo == "grano") || (piano[_root.tilecorrente].tipo == "attesagrano")) {
_root.campidigrano--;
}
piano[_root.tilecorrente].tipo = "allevamento";
piano[_root.tilecorrente].gotoAndStop("allevamento");
_root.fertilita = piano[_root.tilecorrente].fertilita - 80;
calcolafertilita();
_root.menu.gotoAndStop("allevamento");
contextMenu(_root.tilecorrente, "nulla");
piano[_root.tilecorrente].selezione.gotoAndPlay("roll");
spendi(COSTO_PASCOLO, VOCE_PASCOLO);
}
}
function creasoia() {
if (piano[_root.tilecorrente].tipo == "foresta") {
startLoop("abbattimento", _root.tilecorrente);
piano[_root.tilecorrente].nuovoutilizzo = "attesasoia";
piano[_root.tilecorrente].gotoAndPlay("abbattimento");
contextMenu(_root.tilecorrente, "forestaattesa");
spendi(COSTO_SOIAFORESTA, VOCE_SOIAFORESTA);
ecologisti = ecologisti + ECOLOGISTI_FORESTE;
noglobal = noglobal + NOGLOBAL_FORESTE;
} else if (piano[_root.tilecorrente].tipo == "villaggio") {
startLoop("abbattimento", _root.tilecorrente);
piano[_root.tilecorrente].nuovoutilizzo = "attesasoia";
piano[_root.tilecorrente].gotoAndPlay("incendio");
contextMenu(_root.tilecorrente, "villaggioattesa");
spendi(COSTO_SOIAFORESTA, VOCE_SOIAVILLAGGIO);
noglobal = noglobal + NOGLOBAL_VILLAGGIO;
} else {
if ((piano[_root.tilecorrente].tipo == "grano") || (piano[_root.tilecorrente].tipo == "attesagrano")) {
_root.campidigrano--;
}
piano[_root.tilecorrente].tipo = "attesasoia";
_root.menu.gotoAndStop("attesasoia");
piano[_root.tilecorrente].gotoAndPlay("soiasemina");
if (zona == "agricoltura") {
startLoop("aratura", _root.tilecorrente);
}
contextMenu(_root.tilecorrente, "nulla");
piano[_root.tilecorrente].selezione.gotoAndPlay("roll");
spendi(COSTO_SOIA, VOCE_SOIA);
}
}
function aumentavacche() {
if (piano[_root.tilecorrente].intensita < 3) {
piano[_root.tilecorrente].intensita++;
}
nascitavacche(piano[_root.tilecorrente].intensita);
}
function diminuiscivacche() {
if (piano[_root.tilecorrente].intensita > 0) {
piano[_root.tilecorrente].intensita--;
}
nascitavacche(piano[_root.tilecorrente].intensita);
}
function nascitavacche(numero) {
if (numero == 0) {
piano[_root.tilecorrente].vacca1._visible = false;
piano[_root.tilecorrente].vacca2._visible = false;
piano[_root.tilecorrente].vacca3._visible = false;
}
if (numero == 1) {
if (piano[_root.tilecorrente].vacca1._visible == false) {
piano[_root.tilecorrente].vacca1._visible = true;
piano[_root.tilecorrente].vacca1.gotoAndPlay(1);
}
piano[_root.tilecorrente].vacca2._visible = false;
piano[_root.tilecorrente].vacca3._visible = false;
}
if (numero == 2) {
if (piano[_root.tilecorrente].vacca2._visible == false) {
piano[_root.tilecorrente].vacca2._visible = true;
piano[_root.tilecorrente].vacca2.gotoAndPlay(1);
}
piano[_root.tilecorrente].vacca3._visible = false;
}
if (numero == 3) {
if (piano[_root.tilecorrente].vacca3._visible == false) {
piano[_root.tilecorrente].vacca3._visible = true;
piano[_root.tilecorrente].vacca3.gotoAndPlay(1);
}
}
}
function vendi() {
if ((piano[_root.tilecorrente].tipo = "allevamento")) {
guadagna(COSTO_PASCOLO / 2);
} else {
guadagna(COSTO_SOIA / 2);
}
piano[_root.tilecorrente].gotoAndStop("vuoto");
contextMenu(_root.tilecorrente, "nulla");
piano[_root.tilecorrente].tipo = "vuoto";
}
function calcolafertilita() {
if (piano[_root.tilecorrente].fertilita > 100) {
_root.fertilita = 100;
} else {
_root.fertilita = piano[_root.tilecorrente].fertilita;
}
_root.fertilita = _root.fertilita + "%";
}
function nuovavacca() {
if (vacche >= MAX_VACCHE) {
trace("errore troppe vacche");
} else {
vacche++;
collocata = false;
while (collocata == false) {
temp = random(MAX_VACCHE) + 1;
if (allevamento["vacca" + temp].presente == 0) {
allevamento["vacca" + temp].play();
allevamento["vacca" + temp].presente = 1;
allevamento["vacca" + temp].peso = PESO_INIZIALE;
allevamento["vacca" + temp].bse = false;
allevamento["vacca" + temp].malata = false;
}
collocata = true;
}
l = NOMI_VACCHE.length;
allevamento["vacca" + temp].nome = NOMI_VACCHE[random(l)];
allevamento["vacca" + temp].salute = STR_SALUTE_OK;
rand = random(3);
if (rand == 0) {
allevamento["vacca" + temp].appetito = INGRASSO_MENSILE1;
} else if (rand == 1) {
allevamento["vacca" + temp].appetito = INGRASSO_MENSILE2;
} else if (rand == 2) {
allevamento["vacca" + temp].appetito = INGRASSO_MENSILE3;
}
}
}
function ingrassovacche() {
i = 1;
while (i < (MAX_VACCHE + 1)) {
if (allevamento["vacca" + i].presente == 1) {
if (mangime > 0) {
if (ormoni == true) {
allevamento["vacca" + i].peso = allevamento["vacca" + i].peso + (allevamento["vacca" + i].appetito + BONUS_ORMONI);
} else {
allevamento["vacca" + i].peso = allevamento["vacca" + i].peso + allevamento["vacca" + i].appetito;
}
}
if (mangime <= 0) {
allevamento["vacca" + i].peso = allevamento["vacca" + i].peso - allevamento["vacca" + i].appetito;
if (allevamento["vacca" + i].peso < PESO_MINIMO) {
allevamento["vacca" + i].gotoAndPlay("morto");
}
}
curr = allevamento["vacca" + i]._currentframe;
if ((curr >= 12) && (curr <= 27)) {
f = Math.round(((allevamento["vacca" + i].peso - PESO_INIZIALE) * 14) / (PESO_FINALE - PESO_INIZIALE));
if (allevamento["vacca" + i].peso > PESO_INIZIALE) {
allevamento["vacca" + i].gotoAndStop(f + 12);
} else {
allevamento["vacca" + i].gotoAndStop(12);
}
if (mangime > 0) {
mangime = mangime - CIBO_MENSILE;
} else {
mangime = 0;
}
gestionecisterna();
}
if (allevamento["vacca" + i].peso >= PESO_FINALE) {
allevamento["vacca" + i].play();
}
}
i++;
}
pesocorrente = allevamento[vaccacorrente].peso;
}
function gestionecisterna() {
if (scarti == true) {
allevamento.scarti.play();
}
f = Math.round((mangime * 30) / MAX_MANGIME);
allevamento.cist.gotoAndStop(f + 1);
if (f <= 3) {
allevamento.mangiatoia1.gotoAndStop(f + 1);
allevamento.mangiatoia2.gotoAndStop(f + 1);
allevamento.sirenacisterna.gotoAndPlay("on");
} else {
allevamento.sirenacisterna.gotoAndStop("off");
}
}
function selezionavacca() {
nomecorrente = (STR_VACCA + " ") + allevamento[vaccacorrente].nome;
pesocorrente = allevamento[vaccacorrente].peso;
salutecorrente = allevamento[vaccacorrente].salute;
menu.gotoAndStop("vacca");
}
function abbatti() {
f = allevamento[vaccacorrente]._currentframe;
if ((f >= 12) && (f <= 27)) {
allevamento[vaccacorrente].lanciafiamme.play();
allevamento[vaccacorrente].presente = 0;
allevamento[vaccacorrente].peso = 0;
allevamento[vaccacorrente].bse = false;
allevamento[vaccacorrente].malata = false;
}
}
function deselezionaall() {
_root.allevamento.tastoscarti._visible = false;
_root.allevamento.tastoormoni._visible = false;
_root.allevamento.tastofarine._visible = false;
i = 1;
while (i < (MAX_VACCHE + 1)) {
allevamento["vacca" + i].selezione.gotoAndStop("off");
i++;
}
allevamento.cisterna.selezione.gotoAndStop("off");
allevamento.macina.selezione.gotoAndStop("off");
if (allevamento._visible == true) {
_root.menu.gotoAndStop("nullaall");
}
}
function salutevacche() {
sicurezza = RISCHIOMALATTIA - vacche;
if (scarti == true) {
sicurezza = sicurezza - RISCHIOSCARTI;
}
if (ormoni == true) {
sicurezza = sicurezza - RISCHIOORMONI;
}
ogm = 0;
t = 1;
while (t < TOT_TILES) {
if (piano["tile" + t].ogm == true) {
ogm++;
}
t++;
}
sicurezza = sicurezza - (ogm * RISCHIOOGM);
if ((farineanimali == true) && (mangime > 0)) {
sicurezzabse = RISCHIOBSE - (epidemia * MOLTIPLICATOREEPIDEMIA);
} else {
sicurezzabse = undefined;
}
epidemia = 0;
if (sicurezzabse < 10) {
sicurezzabse = 10;
}
if (sicurezza < 10) {
sicurezza = 10;
}
i = 1;
while (i < (MAX_VACCHE + 1)) {
if ((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].bse == true)) {
epidemia++;
}
if (((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].malata != true)) && (allevamento["vacca" + i].bse != true)) {
destino = random(sicurezza);
if (destino == 0) {
allevamento["vacca" + i].malata = true;
allevamento["vacca" + i].salute = STR_MALATA;
allevamento["vacca" + i].testa.gotoAndPlay("malata");
} else if (sicurezzabse != undefined) {
destino = random(sicurezzabse);
if (destino == 0) {
allevamento["vacca" + i].bse = true;
allevamento["vacca" + i].salute = STR_BSE;
allevamento["vacca" + i].testa.gotoAndPlay("muccapazza");
}
}
}
i++;
}
}
function contavacche() {
_root.vacche = 0;
i = 1;
while (i < (MAX_VACCHE + 1)) {
if (allevamento["vacca" + i].presente == 1) {
_root.vacche++;
}
i++;
}
}
function allarmiallevamento() {
allarmeallevamento = "";
allarmemalattia = false;
allarmebse = false;
if (vacche >= (MAX_VACCHE - 3)) {
allarmeallevamento = allarmeallevamento + ALLARME_TROPPEVACCHE;
}
if (vacche <= 0) {
allarmeallevamento = allarmeallevamento + ALLARME_NOVACCHE;
}
if (mangime < 200) {
allarmeallevamento = allarmeallevamento + ALLARME_MANGIMESCARSO;
}
if (mangime >= MAX_MANGIME) {
allarmeallevamento = allarmeallevamento + ALLARME_TROPPOMANGIME;
}
i = 1;
while (i < (MAX_VACCHE + 1)) {
if ((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].bse == true)) {
allarmebse = true;
}
if ((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].malata == true)) {
allarmemalattia = true;
}
i++;
}
if (allarmemalattia) {
allarmeallevamento = allarmeallevamento + ALLARME_MALATTIA;
}
if (allarmebse) {
allarmeallevamento = allarmeallevamento + ALLARME_BSE;
}
return(allarmeallevamento);
}
function inizializzalavoratori() {
retail.linea1.attiva = false;
retail.linea1.gotoAndStop("vuota");
retail.linea2.attiva = false;
retail.linea2.gotoAndStop("vuota");
retail.linea3.attiva = false;
retail.linea3.gotoAndStop("vuota");
retail.cassa1.attiva = false;
retail.cassa1.gotoAndStop("vuota");
retail.cassa2.attiva = false;
retail.cassa2.gotoAndStop("vuota");
retail.cassa3.attiva = false;
retail.cassa3.gotoAndStop("vuota");
}
function inizializzafile() {
retail.fila1.clienti = -1;
retail.fila2.clienti = -1;
retail.fila3.clienti = -1;
i = 0;
while (i < MAXCLIENTI) {
retail.fila1["c" + i]._visible = false;
retail.fila2["c" + i]._visible = false;
retail.fila3["c" + i]._visible = false;
i++;
}
}
function nuoviclienti(nuovi) {
fila1 = (fila2 = (fila3 = 0));
attive = new Array();
if (retail.cassa1.attiva == true) {
attive.push("fila1");
}
if (retail.cassa2.attiva == true) {
attive.push("fila2");
}
if (retail.cassa3.attiva == true) {
attive.push("fila3");
}
if ((nuovi > 0) && (attive.length > 0)) {
meglio = attive[0];
if ((_root[attive[1]] != undefined) && (_root.retail[attive[1]].clienti < _root.retail[meglio].clienti)) {
meglio = attive[1];
}
if ((_root[attive[2]] != undefined) && (_root.retail[attive[2]].clienti < _root.retail[meglio].clienti)) {
meglio = attive[2];
}
_root[meglio] = _root[meglio] + nuovi;
}
i = 1;
while (i <= MAXCLIENTI) {
if ((i > retail.fila1.clienti) && (i <= (retail.fila1.clienti + fila1))) {
retail.fila1["c" + i].cliente.capelli.gotoAndStop(random(retail.fila1["c" + i].cliente.capelli._totalframes) + 1);
retail.fila1["c" + i].cliente.pelle.gotoAndStop(random(retail.fila1["c" + i].cliente.pelle._totalframes) + 1);
retail.fila1["c" + i].cliente.gambe.gotoAndStop(random(retail.fila1["c" + i].cliente.gambe._totalframes) + 1);
retail.fila1["c" + i].cliente.gambe.passi.gotoAndStop(1);
retail.fila1["c" + i].cliente.corpo.gotoAndStop(random(retail.fila1["c" + i].cliente.corpo._totalframes) + 1);
retail.fila1["c" + i]._visible = true;
}
if (i > (retail.fila1.clienti + fila1)) {
retail.fila1["c" + i]._visible = false;
}
i++;
}
i = 1;
while (i <= MAXCLIENTI) {
if ((i > retail.fila2.clienti) && (i <= (retail.fila2.clienti + fila2))) {
retail.fila2["c" + i].cliente.capelli.gotoAndStop(random(retail.fila2["c" + i].cliente.capelli._totalframes) + 1);
retail.fila2["c" + i].cliente.pelle.gotoAndStop(random(retail.fila2["c" + i].cliente.pelle._totalframes) + 1);
retail.fila2["c" + i].cliente.gambe.gotoAndStop(random(retail.fila2["c" + i].cliente.gambe._totalframes) + 1);
retail.fila2["c" + i].cliente.gambe.passi.gotoAndStop(1);
retail.fila2["c" + i].cliente.corpo.gotoAndStop(random(retail.fila2["c" + i].cliente.corpo._totalframes) + 1);
retail.fila2["c" + i]._visible = true;
}
if (i > (retail.fila2.clienti + fila2)) {
retail.fila2["c" + i]._visible = false;
}
i++;
}
i = 1;
while (i <= MAXCLIENTI) {
if ((i > retail.fila3.clienti) && (i <= (retail.fila3.clienti + fila3))) {
retail.fila3["c" + i].cliente.capelli.gotoAndStop(random(retail.fila3["c" + i].cliente.capelli._totalframes) + 1);
retail.fila3["c" + i].cliente.pelle.gotoAndStop(random(retail.fila3["c" + i].cliente.pelle._totalframes) + 1);
retail.fila3["c" + i].cliente.gambe.gotoAndStop(random(retail.fila3["c" + i].cliente.gambe._totalframes) + 1);
retail.fila3["c" + i].cliente.gambe.passi.gotoAndStop(1);
retail.fila3["c" + i].cliente.corpo.gotoAndStop(random(retail.fila3["c" + i].cliente.corpo._totalframes) + 1);
retail.fila3["c" + i]._visible = true;
}
if (i > (retail.fila3.clienti + fila3)) {
retail.fila3["c" + i]._visible = false;
}
i++;
}
if ((retail.fila1.clienti + fila1) <= MAXCLIENTI) {
retail.fila1.clienti = retail.fila1.clienti + fila1;
} else {
retail.fila1.clienti = MAXCLIENTI;
}
if ((retail.fila2.clienti + fila2) <= MAXCLIENTI) {
retail.fila2.clienti = retail.fila2.clienti + fila2;
} else {
retail.fila2.clienti = MAXCLIENTI;
}
if ((retail.fila3.clienti + fila3) <= MAXCLIENTI) {
retail.fila3.clienti = retail.fila3.clienti + fila3;
} else {
retail.fila3.clienti = MAXCLIENTI;
}
}
function scorrifila() {
panini--;
this["ominoservito" + r].play();
i = 1;
while (i <= this.clienti) {
if (this["c" + i]._visible == true) {
this["c" + i].gotoAndPlay(1);
} else {
this["c" + i].gotoAndStop(1);
}
i++;
}
if (this.clienti > 0) {
this.clienti--;
}
}
function creacliente() {
this.r++;
if (this.r >= _root.CLIENTISERVITI) {
this.r = 0;
this["ominoservito" + _root.CLIENTISERVITI].removeMovieClip();
}
this.attachMovie("ominoservito", "ominoservito" + this.r, (-_root.CLIENTISERVITI) - this.r);
this["ominoservito" + this.r]._x = this.c1._x - 30;
this["ominoservito" + this.r]._y = this.c1._y - 15;
this["ominoservito" + this.r].cliente.capelli.gotoAndStop(this.c1.cliente.capelli._currentframe);
this["ominoservito" + this.r].cliente.pelle.gotoAndStop(this.c1.cliente.pelle._currentframe);
this["ominoservito" + this.r].cliente.gambe.gotoAndStop(this.c1.cliente.gambe._currentframe);
this["ominoservito" + this.r].cliente.corpo.gotoAndStop(this.c1.cliente.corpo._currentframe);
this["ominoservito" + r].cliente.gambe.passi.gotoAndStop(1);
guadagna(PREZZO_HAMBURGER);
i = 1;
while (i <= this.clienti) {
this["c" + i].cliente.capelli.gotoAndStop(this["c" + (i + 1)].cliente.capelli._currentframe);
this["c" + i].cliente.pelle.gotoAndStop(this["c" + (i + 1)].cliente.pelle._currentframe);
this["c" + i].cliente.gambe.gotoAndStop(this["c" + (i + 1)].cliente.gambe._currentframe);
this["c" + i].cliente.corpo.gotoAndStop(this["c" + (i + 1)].cliente.corpo._currentframe);
i++;
}
}
function muovipostazioni() {
l = 1;
while (l <= 3) {
if (_root.hamburger > 0) {
if (retail["linea" + l].attiva == true) {
if (random(_root.retail["linea" + l].motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
retail["linea" + l].gotoAndPlay(1);
_root.hamburger--;
_root.panini++;
} else {
retail["linea" + l].omino.braccia.gotoAndStop("fermo");
retail["linea" + l].omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
}
l++;
}
}
function aggiornafrigo() {
decine = Math.floor(_root.hamburger / 10);
unita = _root.hamburger - (decine * 10);
i = 1;
while (i <= 4) {
if (decine == (i - 1)) {
retail.frigo["ham" + i].gotoAndStop(unita + 1);
} else if (decine >= i) {
retail.frigo["ham" + i].gotoAndStop(11);
} else if (decine < i) {
retail.frigo["ham" + i].gotoAndStop(1);
}
i++;
}
}
function aggiornapanini() {
if (panini <= 9) {
retail.scivolopanini.gotoAndStop(panini - 1);
}
}
function resetretail() {
retail.linea1.selezione.gotoAndStop("off");
retail.linea2.selezione.gotoAndStop("off");
retail.linea3.selezione.gotoAndStop("off");
retail.cassa1.selezione.gotoAndStop("off");
retail.cassa2.selezione.gotoAndStop("off");
retail.cassa3.selezione.gotoAndStop("off");
retail.manager.selezione.gotoAndStop("off");
retail.manager.tastoinfo._visible = false;
pianomenu.menulavoratore._visible = false;
_root.menu.gotoAndStop("nullaretail");
}
function assumi() {
resetretail();
_root.menu.gotoAndStop("dipendente");
_root.str_motivazione = eval ("_root.STR_MOT" + MAX_MOTIVAZIONE);
_root.retail[postazione].spilla = false;
_root.retail[postazione].mobbing = false;
_root.retail[postazione].attiva = true;
_root.retail[postazione].gotoAndStop("inizio");
_root.nohelp();
_root.retail[postazione].motivazione = MAX_MOTIVAZIONE;
}
function licenzia() {
resetretail();
sindacati = sindacati + SINDACATI_LICENZIAMENTO;
_root.retail["fila" + postazione.charAt(5)].clienti = -1;
_root.retail[postazione].attiva = false;
_root.retail[postazione].gotoAndStop("vuota");
_root.nohelp();
}
function controllaretail() {
allarmeretail = "";
num = 0;
som = 0;
if (retail.linea1.attiva == true) {
num++;
som = som + retail.linea1.motivazione;
}
if (retail.linea2.attiva == true) {
num++;
som = som + retail.linea2.motivazione;
}
if (retail.linea3.attiva == true) {
num++;
som = som + retail.linea3.motivazione;
}
if (retail.cassa1.attiva == true) {
num++;
som = som + retail.cassa1.motivazione;
}
if (retail.cassa2.attiva == true) {
num++;
som = som + retail.cassa2.motivazione;
}
if (retail.cassa3.attiva == true) {
num++;
som = som + retail.cassa3.motivazione;
}
if ((num > 2) && ((som / num) < 2.5)) {
allarmeretail = ALLARME_MOTIVAZIONE;
}
if (hamburger < 3) {
allarmeretail = allarmeretail + ALLARME_MACELLAZIONE;
} else if (hamburger > (MAX_HAMBURGER - 10)) {
allarmeretail = allarmeretail + ALLARME_FRIGO;
}
if ((attive.length < 3) && (((retail.fila1.clienti >= (MAXCLIENTI - 1)) || (retail.fila2.clienti >= (MAXCLIENTI - 1))) || (retail.fila3.clienti >= (MAXCLIENTI - 1)))) {
allarmeretail = allarmeretail + ALLARME_FILA;
if (panini <= 2) {
allarmeretail = allarmeretail + ALLARME_GRILLMEN;
} else {
allarmeretail = allarmeretail + ALLARME_CASSE;
}
}
return(allarmeretail);
}
function premia() {
_root.retail[postazione].spilla = true;
_root.pianomenu.menulavoratore.spilla._visible = false;
if (random(RANDOM_SPILLA) == 0) {
_root.retail[postazione].motivazione = MAX_MOTIVAZIONE;
}
}
function mobbizza() {
sindacati = sindacati + SINDACATI_MOBBING;
_root.retail[postazione].mobbing = true;
_root.pianomenu.menulavoratore.mobbing._visible = false;
if (random(RANDOM_MOBBING) == 0) {
_root.retail[postazione].motivazione = MAX_MOTIVAZIONE;
}
}
function resetbrand() {
brand.pubblicita.gotoAndStop("off");
brand.pr.gotoAndStop("off");
brand.cda.gotoAndStop("off");
brand.tastipubblicita._visible = false;
brand.tasticda._visible = false;
brand.tastipr._visible = false;
_root.menu.gotoAndStop("nullabrand");
}
function nuovaFinestra(titolo, txt, img, tipo) {
aperta = false;
i = 1;
while ((i <= IDfinestra) && (aperta == false)) {
if (_root.pianofinestre[i].titolo.text != titolo) {
aperta = false;
} else {
aperta = i;
}
i++;
}
if (aperta == false) {
IDfinestra++;
_root.pianofinestre.attachMovie("finestra", IDfinestra, IDfinestra, {_x:ROOT_X / 2, _y:ROOT_Y / 2});
_root.pianofinestre[IDfinestra].corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
_root.pianofinestre[IDfinestra].barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, this._parent._width / 2, this._parent._height / 2, 665 - (this._parent._width / 2), (380 + (this._parent._height / 2)) - 30);
};
_root.pianofinestre[IDfinestra].barra.onRelease = function () {
stopDrag();
};
_root.pianofinestre[IDfinestra].xbutton.onRelease = function () {
removeMovieClip(this._parent);
};
_root.pianofinestre[IDfinestra].titolo.text = titolo;
_root.pianofinestre[IDfinestra].testo.text = txt;
_root.pianofinestre[IDfinestra].img.gotoAndStop(img);
if ((tipo == undefined) || (tipo == 1)) {
_root.pianofinestre[IDfinestra].gotoAndStop("statica");
} else {
if ((tipo == 2) || (tipo == 4)) {
_root.pianofinestre[IDfinestra].gotoAndStop("conferma");
}
if ((tipo == 3) || (tipo == 5)) {
_root.pianofinestre[IDfinestra].gotoAndStop("annulla");
}
_root.pianofinestre[IDfinestra].tasto.onRelease = function () {
if (tipo == 2) {
_root.brand.tastipr[img].gotoAndStop("on");
_root.brand[img] = true;
removeMovieClip(this._parent);
}
if (tipo == 3) {
_root.brand.tastipr[img].gotoAndStop("off");
_root.brand[img] = false;
removeMovieClip(this._parent);
}
if (tipo == 4) {
_root.brand.tastipubblicita[img].gotoAndStop("on");
_root.brand[img] = true;
removeMovieClip(this._parent);
}
if (tipo == 5) {
_root.brand.tastipubblicita[img].gotoAndStop("off");
_root.brand[img] = false;
removeMovieClip(this._parent);
}
};
}
} else {
_root.pianofinestre[aperta].testo.text = txt;
}
}
function spendi(somma, voce) {
if (_root.soldi >= somma) {
spiaSoldi.gotoAndPlay("verde");
} else {
spiaSoldi.gotoAndPlay("rosso");
}
_root.soldi = _root.soldi - somma;
_root.uscite = _root.uscite + somma;
if (voce != undefined) {
_root.bilancio = _root.bilancio + (((voce + ": ") + somma) + "$\n");
}
}
function guadagna(somma) {
_root.soldi = _root.soldi + somma;
_root.entrate = _root.entrate + somma;
}
function speseMensili() {
q = 0;
p = 0;
s = 0;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "allevamento") {
p++;
}
if (piano["tile" + i].tipo == "soia") {
s++;
}
if (piano["tile" + i].ogm == true) {
q++;
}
i++;
}
if (q > 0) {
spendi(COSTO_OGM * q, VOCE_OGM);
}
if (p > 0) {
spendi(COSTO_PASCOLO_MESE * p, VOCE_PASCOLO_MANUTENZIONE);
}
if (s > 0) {
spendi(COSTO_SOIA_MESE * s, VOCE_SOIA_MANUTENZIONE);
}
if (brand.alimentarista) {
spendi(COSTO_ALIMENTARISTA, ALIMENTARISTA_TITOLO);
}
if (brand.politico) {
spendi(COSTO_POLITICO, POLITICO_TITOLO);
}
if (brand.climatologo) {
spendi(COSTO_CLIMATOLOGO, CLIMATOLOGO_TITOLO);
}
if (brand.ispettore) {
spendi(COSTO_ISPETTORE, ISPETTORE_TITOLO);
}
if (brand.topolino) {
spendi(COSTO_TOPOLINO, TOPOLINO_TITOLO);
}
if (brand.bambini) {
spendi(COSTO_BAMBINI, BAMBINI_TITOLO);
}
if (brand.alimentazione) {
spendi(COSTO_ALIMENTAZIONE, ALIMENTAZIONE_TITOLO);
}
if (brand.terzomondo) {
spendi(COSTO_TERZOMONDO, TERZOMONDO_TITOLO);
}
q = 0;
if (retail.cassa1.attiva) {
q++;
}
if (retail.cassa2.attiva) {
q++;
}
if (retail.cassa3.attiva) {
q++;
}
if (retail.linea1.attiva) {
q++;
}
if (retail.linea2.attiva) {
q++;
}
if (retail.linea3.attiva) {
q++;
}
spendi(COSTO_CREW * q, VOCE_STIPENDI);
if (ormoni == true) {
spendi(COSTO_ORMONI, VOCE_ORMONI);
}
}
function calcolaDissenso() {
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].fertilita < _root.FERTILITA_ALLARME) {
ecologisti = ecologisti + ECOLOGISTI_DESERTIFICAZIONE;
}
if (piano["tile" + i].ogm == true) {
consumatori = consumatori + CONSUMATORI_OGM;
}
i++;
}
if (statocitta == STR_DISABITATA) {
noglobal = noglobal + (NOGLOBAL_CITTA * 3);
} else if (statocitta == STR_ALLARMANTE) {
noglobal = noglobal + (NOGLOBAL_CITTA * 2);
} else if (statocitta == STR_SCARSO) {
noglobal = noglobal + NOGLOBAL_CITTA;
}
if (brand.bambini) {
noglobal = noglobal + NOGLOBAL_PUBBLICITA;
}
if (affluenza >= 2) {
obesi = obesi + OBESI_CRESCITA;
}
if (affluenza < 2) {
obesi = obesi - OBESI_DECRESCITA;
}
if (brand.climatologo) {
ecologisti = ecologisti - CLIMATOLOGO_EFFICACIA;
}
if (brand.politico) {
noglobal = noglobal - POLITICO_EFFICACIA;
sindacati = sindacati - POLITICO_EFFICACIA;
}
if (brand.ispettore) {
consumatori = consumatori - ISPETTORE_EFFICACIA;
}
if (brand.terzomondo) {
noglobal = noglobal - TERZOMONDO_EFFICACIA;
}
if (brand.alimentazione) {
obesi = obesi - ALIMENTAZIONE_EFFICACIA;
}
sindacati = sindacati - SINDACATI_DECRESCITA;
if (sindacati < 0) {
sindacati = 0;
} else if (sindacati < 20) {
sindacatiProtesta = false;
} else if ((sindacati > 50) && (sindacati < 100)) {
if (!sindacatiProtesta) {
nuovaFinestra(SINDACATI, SINDACATI_ALLARME, "sindacati");
_root.suonoAllarme.start();
}
sindacatiProtesta = true;
} else if (sindacati >= 100) {
sindacati = 19;
nuovaFinestra(SINDACATI, SINDACATI_PROTESTA, "sindacati");
_root.suonoAllarme.start();
sindacatiPicchetto = SINDACATI_PICCHETTO;
}
if (obesi < 0) {
obesi = 0;
} else if (obesi < 20) {
obesiProtesta = false;
} else if ((obesi > 50) && (obesi < 100)) {
if (!obesiProtesta) {
nuovaFinestra(OBESI, OBESI_ALLARME, "obesi");
_root.suonoAllarme.start();
}
obesiProtesta = true;
} else if (obesi >= 100) {
obesi = 0;
nuovaFinestra(OBESI, (((OBESI_PROTESTA + newline) + VOCE_OBESI_MULTA) + ": ") + OBESI_MULTA, "obesi");
_root.suonoAllarme.start();
spendi(OBESI_MULTA, VOCE_OBESI_MULTA);
}
if (ecologisti < 0) {
ecologisti = 0;
} else if (ecologisti < 20) {
ecologistiProtesta = false;
} else if ((ecologisti > 50) && (ecologisti < 100)) {
if (!ecologistiProtesta) {
nuovaFinestra(ECOLOGISTI, ECOLOGISTI_ALLARME, "ecologisti");
_root.suonoAllarme.start();
}
ecologistiProtesta = true;
} else if (ecologisti >= 100) {
ecologisti = 19;
nuovaFinestra(ECOLOGISTI, ECOLOGISTI_PROTESTA, "ecologisti");
_root.suonoAllarme.start();
ecologistiBoicott = ECOLOGISTI_BOICOTT;
}
if (noglobal < 0) {
noglobal = 0;
} else if (noglobal < 20) {
noglobalProtesta = false;
} else if ((noglobal > 50) && (noglobal < 100)) {
if (!noglobalProtesta) {
nuovaFinestra(NOGLOBAL, NOGLOBAL_ALLARME, "noglobal");
_root.suonoAllarme.start();
}
noglobalProtesta = true;
} else if (noglobal >= 100) {
noglobal = 10;
nuovaFinestra(NOGLOBAL, NOGLOBAL_PROTESTA, "noglobal");
_root.suonoAllarme.start();
noglobalBoicott = NOGLOBAL_BOICOTT;
}
if (consumatori < 0) {
consumatori = 0;
} else if (consumatori < 20) {
consumatoriProtesta = false;
} else if ((consumatori > 50) && (consumatori < 100)) {
if (!consumatoriProtesta) {
nuovaFinestra(CONSUMATORI, CONSUMATORI_ALLARME, "consumatori");
_root.suonoAllarme.start();
}
consumatoriProtesta = true;
} else if (consumatori >= 100) {
consumatori = 0;
nuovaFinestra(CONSUMATORI, (((CONSUMATORI_PROTESTA + newline) + VOCE_CONSUMATORI_MULTA) + ": ") + CONSUMATORI_MULTA, "consumatori");
_root.suonoAllarme.start();
spendi(CONSUMATORI_MULTA, VOCE_CONSUMATORI_MULTA);
}
if (consumatori < 0) {
consumatori = 0;
}
}
function calcolaAffluenza() {
affluenza = 1;
if (brand.topolino) {
affluenza = affluenza + 2;
}
if (brand.bambini) {
affluenza = affluenza + 1;
}
if (brand.alimentazione) {
affluenza = affluenza + 1;
}
if (brand.terzomondo) {
affluenza = affluenza + 1;
}
if (sindacatiPicchetto > 0) {
affluenza = 0;
}
if ((noglobalBoicott > 0) && (affluenza > 0)) {
affluenza--;
}
if ((ecologistiBoicott > 0) && (affluenza > 0)) {
affluenza--;
}
}
function disegnaStat() {
(i = 0);
(maxy = 0);
(miny = 0);
while (i < stat.length) {
if (stat[i] > maxy) {
maxy = stat[i];
}
if (stat[i] < miny) {
miny = stat[i];
}
i++;
}
with (_root.pianofinestre.finestra_stat.piano) {
ux = (_root.PIANO_X - _root.CORNICE) / _root.stat.length;
uy = _root.PIANO_Y / (_root.maxy + Math.abs(_root.miny));
zero = _root.miny * uy;
_root.pianofinestre.finestra_stat.piano.attachMovie("piano", "grafico", 1, {_x:0, _y:0});
_root.pianofinestre.finestra_stat.piano.createEmptyMovieClip("grafico", -10);
grafico.lineStyle(3, _root.COL_ASSI, 100);
grafico.moveTo(0, zero);
grafico.lineTo(_root.ASSE_X - _root.CORNICE, zero);
grafico.attachMovie("freccia_y", "freccia_y", 200, {_x:_root.ASSE_X - _root.CORNICE, _y:zero});
grafico.moveTo(0, 0);
grafico.lineTo(0, (-_root.ASSE_Y) + _root.CORNICE);
grafico.attachMovie("freccia_x", "freccia_x", 201, {_x:0, _y:(-_root.ASSE_Y) + _root.CORNICE});
if (_root.periodo == 0) {
grafico.moveTo(0, ((-_root.SOLDI_INIZIALI) * uy) + zero);
}
i = 0;
while (i < stat.length) {
x = i * ux;
y = ((-stat[i]) * uy) + zero;
grafico.lineStyle(5, _root.COL_LINEA, 100);
grafico.lineTo(x, y);
grafico.attachMovie("punto", "punto" + i, i + 1000, {_x:x, _y:y});
grafico["punto" + i].i = i;
grafico["punto" + i].onRollOver = function () {
this.gotoAndStop("roll");
_root.help(_root.STR_PUNTO);
};
grafico["punto" + i].onRollOut = function () {
this.gotoAndStop(1);
_root.nohelp();
};
if (i > 1) {
grafico["punto" + i].onPress = function () {
_root.nuovaFinestra(_root.STR_ARCHIVIO, _root.bilanci[this.i], "cda");
};
} else {
grafico["punto" + i].onPress = function () {
_root.nuovaFinestra(_root.STR_ARCHIVIO, _root.STR_INIZIO_ATTIVITA + newline, "cda");
};
}
if ((i % 12) == 0) {
grafico.createTextField("mytext" + i, i + 10000, x, zero - 15, 30, 20);
grafico["mytext" + i].text = (_root.periodo + _root.YEAR) + (i / 12);
grafico["mytext" + i].setTextFormat(_root.myformat);
}
if (i != 0) {
grafico.lineStyle(1, _root.COL_RIGHE, 100);
grafico.moveTo(x, y);
grafico.lineTo(x, zero);
grafico.moveTo(x, y);
}
i++;
}
}
}
function startLoop(linkage, id) {
loop.stop(linkage);
loop = new Sound();
loop.attachSound(linkage);
loop.start(0, 10);
_root["ultimo" + linkage] = id;
}
function stopLoop(linkage, id) {
if (_root["ultimo" + linkage] == id) {
loop.stop(linkage);
}
}
function gameOver() {
if (!finestraGameOver._visible) {
stopAllSounds();
pausa();
finestraGameOver._visible = true;
finestraGameOver.play();
_global.zona = "gameover";
_root.loopAmbiente.stop();
}
}
stop();
_global.zona = "agricoltura";
_global.running = true;
with (brand) {
alimentarista = false;
politico = false;
climatologo = false;
ispettore = false;
topolino = false;
bambini = false;
alimentazione = false;
terzomondo = false;
}
ormoni = false;
farineanimali = false;
scarti = false;
stagioni.gotoAndStop(4);
timeabs = 0;
_root.loopAmbiente.start(0, 999);
_root.prova = 0;
_root.pianomenu.attachMovie("menucontestuale", "menucontestuale", 1000);
_root.pianomenu.attachMovie("menulavoratore", "menulavoratore", 10);
_root.pianomenu.menulavoratore._visible = false;
bilancio = _root.STR_INIZIO_ATTIVITA + newline;
stat = new Array();
stat.push(soldi);
bilanci = new Array();
bilanci.push(_root.STR_INIZIO_ATTIVITA);
clearInterval(weekInterval);
time = TIME;
weekInterval = setInterval(everyweek, time);
interfaccia = 0;
Listener = new Object();
Listener.onMouseUp = function () {
if (_root.interfaccia == 0) {
deselezionaall();
}
};
Mouse.addListener(Listener);
bott_pausa.onRelease = function () {
if (_root.velocita != "PAUSA") {
_root.suonoDit.start();
_root.velocita = "PAUSA";
_root.bott_pausa.gotoAndStop("pausa");
_root.normal.gotoAndStop("spento");
_root.suonoBeep.setVolume(0);
pausa();
}
};
normal.onRelease = function () {
if (_root.velocita != "NORMAL") {
_root.suonoDit.start();
_root.velocita = "NORMAL";
_root.normal.gotoAndPlay("roll");
_root.bott_pausa.gotoAndStop("play");
riprendi();
if (suoni) {
_root.suonoBeep.setVolume(100);
}
}
};
bottMenu.onRelease = function () {
pianofinestre.finestraMenu._visible = true;
};
pianofinestre.finestraMenu.tutorial.onRelease = function () {
_root.tutorial.gotoAndStop(1);
_root.tutorial._visible = true;
_root.pianofinestre.finestraMenu._visible = false;
_root.suonoBeep.setVolume(0);
pausa();
};
pianofinestre.finestraMenu.continueGame.onRelease = function () {
_root.pianofinestre.finestraMenu._visible = false;
};
pianofinestre.finestraMenu.quit.onRelease = function () {
_root.gotoAndStop("menu");
};
finestraGameOver.quit.onRelease = function () {
_root.gotoAndStop("menu");
};
pianofinestre.finestraMenu.sound.onLoad = function () {
if (suoni) {
this.scrittaSuoni.gotoAndStop("on");
} else {
this.scrittaSuoni.gotoAndStop("off");
}
};
pianofinestre.finestraMenu.sound.onRelease = function () {
if (suoni) {
_root.suonoBeep.setVolume(0);
_global.suoni = false;
pianofinestre.finestraMenu.scrittaSuoni.gotoAndStop("off");
} else {
_root.suonoBeep.setVolume(100);
_global.suoni = true;
_root.pianofinestre.finestraMenu.scrittaSuoni.gotoAndStop("on");
}
};
bottMenu.onRelease = function () {
pianofinestre.finestraMenu._visible = true;
};
resetSelections();
i = 1;
while (i < TOT_TILES) {
piano["tile" + i].fertilita = FERTILITA_MAX;
piano["tile" + i].areaattiva.onPress = function () {
if (this._parent.selezione._currentframe <= 13) {
this._parent.selezione.gotoAndPlay("on");
nometile = this._parent._name;
tipotile = this._parent.tipo;
_root.tilecorrente = nometile;
_root.tipotilecorrente = tipotile;
calcolafertilita();
if (piano[nometile].nuovoutilizzo == undefined) {
if (((tipotile != "grano") && (tipotile != "attesagrano")) || (_root.sindacocorrotto == true)) {
contextMenu(nometile, tipotile);
}
}
_root.menu.gotoAndStop(tipotile);
} else if (this._parent.selezione._currentframe > 13) {
_root.pianomenu.menucontestuale._visible = false;
this._parent.selezione.gotoAndPlay("roll");
_root.tilecorrente = "nessuno";
_root.menu.gotoAndStop("nulla");
}
};
piano["tile" + i].areaattiva.onRollOver = function () {
if (_root.tilecorrente == this._parent._name) {
this._parent.selezione.gotoAndPlay("roll");
} else {
_root.resetSelections();
_root.tilecorrente = "nessuno";
}
if (this._parent.selezione._currentframe == 27) {
this._parent.selezione.gotoAndPlay("roll");
}
};
i++;
}
inizializzavacche();
inizializzavacche();
i = 1;
while (i < (MAX_VACCHE + 1)) {
allevamento["vacca" + i].presente = 0;
i++;
}
allevamento.tritacarne.onEnterFrame = function () {
if ((this._currentframe == 1) && (_root.hamburgerdafare > 0)) {
_root.hamburgerfatti++;
_root.hamburgerdafare = _root.hamburgerdafare - 3;
if (_root.hamburgerdafare < 0) {
_root.hamburgerdafare = 0;
}
if (_root.allevamento.hamburger1._currentframe == _root.allevamento.hamburger1._totalframes) {
_root.allevamento.hamburger1.play();
} else if (_root.allevamento.hamburger2._currentframe == _root.allevamento.hamburger2._totalframes) {
_root.allevamento.hamburger2.play();
} else if (_root.allevamento.hamburger3._currentframe == _root.allevamento.hamburger3._totalframes) {
_root.allevamento.hamburger3.play();
} else if (_root.allevamento.hamburger4._currentframe == _root.allevamento.hamburger4._totalframes) {
_root.allevamento.hamburger4.play();
} else if (_root.allevamento.hamburger5._currentframe == _root.allevamento.hamburger5._totalframes) {
_root.allevamento.hamburger5.play();
} else if (_root.allevamento.hamburger6._currentframe == _root.allevamento.hamburger6._totalframes) {
_root.allevamento.hamburger6.play();
} else if (_root.allevamento.hamburger7._currentframe == _root.allevamento.hamburger7._totalframes) {
_root.allevamento.hamburger7.play();
} else if (_root.allevamento.hamburger8._currentframe == _root.allevamento.hamburger8._totalframes) {
_root.allevamento.hamburger8.play();
}
}
};
inizializzafile();
inizializzalavoratori();
IDfinestra = 0;
Instance of Symbol 968 MovieClip "allevamento" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1118 MovieClip "retail" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1342 MovieClip "brand" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1373 MovieClip "finestraGameOver" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Symbol 45 MovieClip Frame 1
_root.suonoClick.start();
Symbol 55 MovieClip [finestra] Frame 1
su_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll--;
};
};
su_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
giu_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll++;
};
};
giu_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
t = new Object();
t.onKeyDown = function () {
if (Key.isDown(38)) {
testo.scroll--;
} else if (Key.isDown(40)) {
testo.scroll++;
}
};
Key.addListener(t);
stop();
Symbol 55 MovieClip [finestra] Frame 2
su_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll--;
};
};
su_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
giu_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll++;
};
};
giu_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
t = new Object();
t.onKeyDown = function () {
if (Key.isDown(38)) {
testo.scroll--;
} else if (Key.isDown(40)) {
testo.scroll++;
}
};
Key.addListener(t);
stop();
Symbol 55 MovieClip [finestra] Frame 3
su_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll--;
};
};
su_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
giu_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll++;
};
};
giu_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
t = new Object();
t.onKeyDown = function () {
if (Key.isDown(38)) {
testo.scroll--;
} else if (Key.isDown(40)) {
testo.scroll++;
}
};
Key.addListener(t);
stop();
Symbol 57 MovieClip Frame 1
_root.suonoBeep.start();
Symbol 60 MovieClip Frame 1
_root.suonoBeep.start();
Symbol 61 Button
on (press) {
_root.assumi();
}
on (rollOver) {
_root.help(_root.HLP_ASSUMI, _root.COSTO_CREW, "mese");
}
on (rollOut) {
_root.nohelp();
}
Symbol 63 Button
on (press) {
_root.licenzia();
}
on (rollOver) {
_root.help(_root.HLP_LICENZIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 66 Button
on (press) {
_root.mobbizza();
}
on (rollOver) {
_root.help(_root.HLP_MOBBIZZA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 69 Button
on (press) {
_root.premia();
}
on (rollOver) {
_root.help(_root.HLP_PREMIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 72 MovieClip [menulavoratore] Frame 1
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 161 MovieClip [ominoservito] Frame 1
cliente.gambe.passi.play();
num = this._parent._name.charAt(4);
if (_root.retail["cassa" + num].attiva == true) {
_root.retail["cassa" + num].gotoAndPlay(1);
}
Symbol 161 MovieClip [ominoservito] Frame 4
cap = cliente.capelli._currentframe;
pel = cliente.pelle._currentframe;
gam = cliente.gambe._currentframe;
cor = cliente.corpo._currentframe;
cliente.gotoAndStop(2);
cliente.gambe.passi.play();
cliente.capelli.gotoAndStop(cap);
cliente.pelle.gotoAndStop(pel);
cliente.gambe.gotoAndStop(gam);
cliente.corpo.gotoAndStop(cor);
Symbol 161 MovieClip [ominoservito] Frame 17
stop();
Symbol 174 Button
on (release) {
_root.nextFrame();
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 196 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 198 MovieClip Frame 4
gotoAndPlay (1);
Symbol 205 Button
on (release) {
getURL ("http://creativecommons.org/licenses/by-nc-nd/2.0/it/", "_blank");
}
Symbol 235 Button
on (release) {
_root.suonoBeep.start();
nPage.text = _currentframe + 1;
nTotal.text = _totalframes;
nextFrame();
}
Symbol 240 Button
on (release) {
_root.suonoBop.start();
if (suoni) {
_root.suonoBeep.setVolume(100);
}
_root.riprendi();
_root.tutorial._visible = false;
}
Symbol 241 Button
on (release) {
_root.suonoBeep.start();
nPage.text = _currentframe - 1;
nTotal.text = _totalframes;
prevFrame();
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 4
gotoAndPlay ("on");
Symbol 295 MovieClip Frame 1
stop();
nPage.text = 1;
nTotal.text = _totalframes;
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (load) {
_root.createBox(this, _root.TUT1);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT1);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT2);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT3);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT4);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT6);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT5);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 3
onClipEvent (load) {
_root.createBox(this, _root.TUT2);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 4
onClipEvent (load) {
_root.createBox(this, _root.TUT3);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 5
onClipEvent (load) {
_root.createBox(this, _root.TUT4);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 6
onClipEvent (load) {
_root.createBox(this, _root.TUT5);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 7
onClipEvent (load) {
_root.createBox(this, _root.TUT6);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 8
onClipEvent (load) {
_root.createBox(this, _root.TUT7);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 9
onClipEvent (load) {
_root.createBox(this, _root.TUT8);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 10
onClipEvent (load) {
_root.createBox(this, _root.TUT9);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 11
onClipEvent (load) {
_root.createBox(this, _root.TUT10);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 12
onClipEvent (load) {
_root.createBox(this, _root.TUT11);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 13
onClipEvent (load) {
_root.createBox(this, _root.TUT12);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 14
onClipEvent (load) {
_root.createBox(this, _root.TUT13);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 15
onClipEvent (load) {
_root.createBox(this, _root.TUT14);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 16
onClipEvent (load) {
_root.createBox(this, _root.TUT15);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 17
onClipEvent (load) {
_root.createBox(this, _root.TUT16);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 18
onClipEvent (load) {
_root.createBox(this, _root.TUT17);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 19
onClipEvent (load) {
_root.createBox(this, _root.TUT18);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 20
onClipEvent (load) {
_root.createBox(this, _root.TUT19);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 21
onClipEvent (load) {
_root.createBox(this, _root.TUT20);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 22
onClipEvent (load) {
_root.createBox(this, _root.TUT21);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 23
onClipEvent (load) {
_root.createBox(this, _root.TUT22);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 24
onClipEvent (load) {
_root.createBox(this, _root.TUT23);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 25
onClipEvent (load) {
_root.createBox(this, _root.TUT24);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 26
onClipEvent (load) {
_root.createBox(this, _root.TUT25);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 27
onClipEvent (load) {
_root.createBox(this, _root.TUT26);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 28
onClipEvent (load) {
_root.createBox(this, _root.TUT27);
}
Instance of Symbol 230 MovieClip in Symbol 295 MovieClip Frame 29
onClipEvent (load) {
_root.createBox(this, _root.TUT28);
}
Symbol 295 MovieClip Frame 30
_root.suonoBop.start();
if (suoni) {
_root.suonoBeep.setVolume(100);
}
_root.riprendi();
_root.tutorial._visible = false;
Symbol 301 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 1
stop();
help._visible = false;
Symbol 419 MovieClip Frame 2
help._visible = false;
Symbol 419 MovieClip Frame 3
help._visible = false;
Symbol 419 MovieClip Frame 4
help._visible = false;
Symbol 419 MovieClip Frame 5
help._visible = false;
Symbol 419 MovieClip Frame 6
help._visible = false;
Symbol 419 MovieClip Frame 7
help._visible = false;
Symbol 419 MovieClip Frame 8
help._visible = false;
Symbol 419 MovieClip Frame 9
help._visible = false;
Symbol 419 MovieClip Frame 10
help._visible = false;
Symbol 419 MovieClip Frame 11
help._visible = false;
Symbol 419 MovieClip Frame 12
help._visible = false;
Symbol 419 MovieClip Frame 13
help._visible = false;
Symbol 419 MovieClip Frame 14
help._visible = false;
Symbol 419 MovieClip Frame 15
help._visible = false;
Symbol 419 MovieClip Frame 16
help._visible = false;
Symbol 419 MovieClip Frame 17
help._visible = false;
Symbol 419 MovieClip Frame 18
help._visible = false;
Symbol 419 MovieClip Frame 19
help._visible = false;
Symbol 419 MovieClip Frame 20
help._visible = false;
Symbol 419 MovieClip Frame 21
help._visible = false;
Symbol 419 MovieClip Frame 22
help._visible = false;
Symbol 419 MovieClip Frame 23
help._visible = false;
Symbol 419 MovieClip Frame 24
help._visible = false;
Symbol 419 MovieClip Frame 25
help._visible = false;
Symbol 419 MovieClip Frame 26
help._visible = false;
Symbol 419 MovieClip Frame 27
help._visible = false;
Symbol 419 MovieClip Frame 28
help._visible = false;
Symbol 419 MovieClip Frame 29
help._visible = false;
Symbol 419 MovieClip Frame 30
help._visible = false;
Symbol 425 Button
on (release) {
if (zona != "agricoltura") {
_global.zona = "agricoltura";
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("agricoltura");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_root.piano._visible = true;
_root.allevamento._visible = false;
_root.retail._visible = false;
_root.brand._visible = false;
_root.menu.gotoAndStop("nulla");
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
}
}
on (rollOver) {
_root.help(_root.STR_VAIAGRICOLTURA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 427 Button
on (release) {
if (zona != "allevamento") {
_global.zona = "allevamento";
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("loopallevamento2");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_root.piano._visible = false;
_root.allevamento._visible = true;
_root.retail._visible = false;
_root.brand._visible = false;
_root.menu.gotoAndStop("nullaall");
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
}
}
on (rollOver) {
_root.help(_root.STR_VAIALLEVAMENTO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 428 Button
on (release) {
if (zona != "retail") {
_global.zona = "retail";
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("fastfood");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_root.piano._visible = false;
_root.allevamento._visible = false;
_root.retail._visible = true;
_root.brand._visible = false;
_root.menu.gotoAndStop("nullaretail");
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
}
}
on (rollOver) {
_root.help(_root.STR_VAIRETAIL);
}
on (rollOut) {
_root.nohelp();
}
Symbol 429 Button
on (release) {
if (zona != "brand") {
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("retail");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_global.zona = "brand";
_root.piano._visible = false;
_root.allevamento._visible = false;
_root.retail._visible = false;
_root.brand._visible = true;
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
_root.menu.gotoAndStop("nullabrand");
}
}
on (rollOver) {
_root.help(_root.STR_VAIBRAND);
}
on (rollOut) {
_root.nohelp();
}
Symbol 441 MovieClip Frame 4
gotoAndPlay ("roll");
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 3
gotoAndStop ("verde");
Symbol 451 MovieClip Frame 6
gotoAndPlay ("rosso");
Symbol 457 MovieClip Frame 1
stop();
Symbol 460 MovieClip [fps_meter] Frame 1
#initclip 1
FPS = function () {
this.onEnterFrame = function () {
this.fc++;
};
setInterval(this, "calc", 1000);
};
var p = ((FPS.prototype = new MovieClip()));
p.calc = function () {
this.dp.text = this.fc;
this.fc = 0;
};
Object.registerClass("fps_meter", FPS);
#endinitclip
Symbol 469 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 14
gotoAndPlay ("roll");
Symbol 472 MovieClip Frame 28
gotoAndPlay ("on");
Symbol 479 MovieClip Frame 13
gotoAndPlay (1);
Symbol 479 MovieClip Frame 14
_root.suonoClick.start();
Symbol 479 MovieClip Frame 26
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 5
stop();
Symbol 483 MovieClip Frame 8
gotoAndStop (1);
Symbol 491 MovieClip Frame 1
stop();
Symbol 495 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_ALLEVAMENTO, _root.COSTO_PASCOLO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 498 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_SOIA, _root.COSTO_SOIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 501 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_SOIA, _root.COSTO_SOIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 502 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_FORESTAALLEVAMENTO, _root.COSTO_PASCOLOFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 503 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_FORESTASOIA, _root.COSTO_SOIAFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 504 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_VILLAGGIOALLEVAMENTO, _root.COSTO_PASCOLOFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 505 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_VILLAGGIOSOIA, _root.COSTO_PASCOLOFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 506 Button
on (press) {
_root.vendi();
}
on (rollOver) {
_root.help(_root.HLP_VENDITERRENO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 509 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_TRASFORMAALLEVAMENTO, _root.COSTO_PASCOLO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 514 MovieClip Frame 1
stop();
Symbol 517 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_TRASFORMASOIA, _root.COSTO_SOIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 519 Button
on (press) {
_root.aumentavacche();
}
on (rollOver) {
_root.help(_root.HLP_ALLEVAMENTOPIU);
}
on (rollOut) {
_root.nohelp();
}
Symbol 520 Button
on (press) {
_root.diminuiscivacche();
}
on (rollOver) {
_root.help(_root.HLP_ALLEVAMENTOMENO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 522 MovieClip [menucontestuale] Frame 1
stop();
Instance of Symbol 514 MovieClip "tastoogm" in Symbol 522 MovieClip [menucontestuale] Frame 7
onClipEvent (load) {
if (_root.piano[_root.tilecorrente].ogm == true) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
on (rollOver) {
_root.help(_root.HLP_OGM, _root.COSTO_OGM, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (_root.piano[_root.tilecorrente].ogm == true) {
_root.piano[_root.tilecorrente].ogm = false;
gotoAndStop ("roll");
} else {
_root.piano[_root.tilecorrente].ogm = true;
gotoAndStop ("on");
}
}
Instance of Symbol 514 MovieClip "tastoogm" in Symbol 522 MovieClip [menucontestuale] Frame 13
onClipEvent (load) {
if (_root.piano[_root.tilecorrente].ogm == true) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
on (rollOver) {
_root.help(_root.HLP_OGM, _root.COSTO_OGM, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (_root.piano[_root.tilecorrente].ogm == true) {
_root.piano[_root.tilecorrente].ogm = false;
gotoAndStop ("roll");
} else {
_root.piano[_root.tilecorrente].ogm = true;
gotoAndStop ("on");
}
}
Instance of Symbol 514 MovieClip "tastoogm" in Symbol 522 MovieClip [menucontestuale] Frame 15
onClipEvent (load) {
if (_root.piano[_root.tilecorrente].ogm == true) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
on (rollOver) {
_root.help(_root.HLP_OGM, _root.COSTO_OGM, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (_root.piano[_root.tilecorrente].ogm == true) {
_root.piano[_root.tilecorrente].ogm = false;
gotoAndStop ("roll");
} else {
_root.piano[_root.tilecorrente].ogm = true;
gotoAndStop ("on");
}
}
Symbol 697 MovieClip Frame 28
gotoAndPlay("azione" + (random(3) + 1));
Symbol 697 MovieClip Frame 36
gotoAndPlay ("azione1");
Symbol 697 MovieClip Frame 94
gotoAndPlay ("azione1");
Symbol 723 MovieClip Frame 12
azione = random(5) + 1;
gotoAndPlay("azione" + azione);
Symbol 723 MovieClip Frame 29
gotoAndPlay ("azione1");
Symbol 723 MovieClip Frame 59
gotoAndPlay ("azione1");
Symbol 723 MovieClip Frame 82
gotoAndPlay ("azione1");
Symbol 723 MovieClip Frame 84
if (zona == "agricoltura") {
_root["suonoMucca" + (random(3) + 1)].start();
}
Symbol 723 MovieClip Frame 98
gotoAndPlay ("azione1");
Symbol 736 MovieClip Frame 10
stop();
Symbol 741 MovieClip Frame 5
stop();
Symbol 741 MovieClip Frame 27
if (zona == "agricoltura") {
_root.suonoBraccio.stop("braccio");
_root.suonoBraccio.start();
}
Symbol 741 MovieClip Frame 32
if (zona == "agricoltura") {
_root.suonoBraccioSu.stop("bracciosu");
_root.suonoBraccioSu.start();
}
Symbol 741 MovieClip Frame 40
_root.nuovavacca();
gotoAndPlay (1);
Symbol 756 MovieClip Frame 1
stop();
Instance of Symbol 522 MovieClip [menucontestuale] "menu" in Symbol 756 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 756 MovieClip Frame 5
nuovoutilizzo = "soia";
Symbol 756 MovieClip Frame 42
_root.stopLoop("aratura", this._name);
Symbol 756 MovieClip Frame 45
nuovoutilizzo = undefined;
stop();
Symbol 756 MovieClip Frame 53
stop();
Symbol 756 MovieClip Frame 62
stop();
Symbol 756 MovieClip Frame 93
_root.suonoMietitura.stop("mietitura");
Symbol 756 MovieClip Frame 97
stop();
Symbol 756 MovieClip Frame 109
stop();
Symbol 756 MovieClip Frame 157
stop();
Symbol 756 MovieClip Frame 165
stop();
Symbol 756 MovieClip Frame 196
_root.suonoMietitura.stop("mietitura");
Symbol 756 MovieClip Frame 202
stop();
Symbol 756 MovieClip Frame 211
stop();
Symbol 756 MovieClip Frame 241
_root.stopLoop("abbattimento", this._name);
Symbol 756 MovieClip Frame 251
tipo = nuovoutilizzo;
if (nuovoutilizzo == "allevamento") {
gotoAndStop ("allevamento");
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("allevamento");
} else {
gotoAndPlay ("soiasemina");
_root.suonoAratura.start(0, 5);
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("attesasoia");
}
Symbol 756 MovieClip Frame 252
intensita = 2;
if (random(3) == 0) {
gotoAndStop ("allevamento1");
} else if (random(3) == 1) {
gotoAndStop ("allevamento2");
} else {
gotoAndStop ("allevamento3");
}
Instance of Symbol 741 MovieClip "vacca3" in Symbol 756 MovieClip Frame 253
onClipEvent (load) {
this._visible = false;
}
Symbol 756 MovieClip Frame 288
_root.stopLoop("abbattimento", this._name);
Symbol 756 MovieClip Frame 299
tipo = nuovoutilizzo;
if (nuovoutilizzo == "allevamento") {
gotoAndStop ("allevamento");
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("allevamento");
} else {
gotoAndPlay ("soiasemina");
_root.suonoAratura.start(0, 5);
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("attesasoia");
}
Symbol 760 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 5
stop();
Symbol 760 MovieClip Frame 9
gotoAndStop (1);
Symbol 764 Button
on (press) {
_root.corrompisindaco();
this._visible = false;
_root.nohelp();
}
on (rollOver) {
_root.help(_root.HLP_CORROMPISINDACO, _root.COSTO_SINDACO);
}
on (rollOut) {
_root.nohelp();
}
Instance of Symbol 473 MovieClip "mare" in Symbol 770 MovieClip Frame 1
on (rollOver) {
_root.interfaccia = 1;
if (_root.piano.tastomare._visible == false) {
_root.resetSelections();
}
if (selezione._currentframe < 14) {
selezione.gotoAndPlay("roll");
}
}
on (rollOut) {
_root.interfaccia = 0;
if (selezione._currentframe < 14) {
selezione.gotoAndPlay("off");
}
}
on (press) {
if ((_root.suonoOceano.position == _root.suonoOceano.duration) || (_root.suonoOceano.position == 0)) {
_root.suonoOceano.start();
}
if (selezione._currentframe < 14) {
_root.resetSelections();
_root.menu.gotoAndStop("mare");
selezione.gotoAndPlay("on");
_root.tilecorrente = "nessuno";
_root.piano.tastomare._visible = true;
} else {
_root.resetSelections();
selezione.gotoAndPlay("roll");
_root.menu.gotoAndStop("nulla");
}
}
Instance of Symbol 756 MovieClip "tile20" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 756 MovieClip "tile19" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 756 MovieClip "tile18" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 756 MovieClip "tile17" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 756 MovieClip "tile16" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 756 MovieClip "tile15" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 756 MovieClip "tile14" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 756 MovieClip "tile13" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 756 MovieClip "tile9" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 756 MovieClip "tile12" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 756 MovieClip "tile11" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 756 MovieClip "tile8" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 756 MovieClip "tile10" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "villaggio";
this.gotoAndStop("villaggio");
}
Instance of Symbol 756 MovieClip "tile7" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 756 MovieClip "tile6" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 756 MovieClip "tile5" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 756 MovieClip "tile4" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 756 MovieClip "tile3" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 756 MovieClip "tile2" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 756 MovieClip "tile1" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 763 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
_root.piano.tastocorrompi._visible = false;
_root.piano.tastoinfo._visible = false;
}
on (rollOver) {
if (_root.piano.tastoinfo._visible == true) {
_root.resetSelections();
_root.piano.citta1.selezione.gotoAndPlay("on");
_root.piano.citta2.selezione.gotoAndPlay("on");
_root.piano.tastoinfo._visible = true;
if (_root.sindacocorrotto == false) {
_root.piano.tastocorrompi._visible = true;
}
} else {
_root.resetSelections();
_root.piano.citta1.selezione.gotoAndPlay("roll");
_root.piano.citta2.selezione.gotoAndPlay("roll");
}
}
on (press) {
if ((_root.suonoCitta.position == _root.suonoCitta.duration) || (_root.suonoCitta.position == 0)) {
_root.suonoCitta.start();
}
if (_root.piano.citta2.selezione._currentframe < 14) {
if (_root.sindacocorrotto == false) {
_root.piano.tastocorrompi._visible = true;
}
_root.piano.tastoinfo._visible = true;
_root.piano.citta1.selezione.gotoAndPlay("on");
_root.piano.citta2.selezione.gotoAndPlay("on");
_root.menu.gotoAndStop("citta");
_root.tilecorrente = "nessuno";
} else {
_root.resetSelections();
_root.piano.tastoinfo._visible = false;
_root.piano.citta1.selezione.gotoAndPlay("roll");
_root.piano.citta2.selezione.gotoAndPlay("roll");
}
}
Instance of Symbol 769 MovieClip "tastoinfo" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tasto.onRelease = function () {
_root.nuovaFinestra(_root.CITTA_TITOLO, _root.CITTA_TESTO, "citta");
};
}
Instance of Symbol 769 MovieClip "tastomare" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.tasto.onRelease = function () {
_root.nuovaFinestra(_root.CALOTTE_TITOLO, _root.CALOTTE_TESTO, "calotte");
};
}
Symbol 777 MovieClip Frame 4
stop();
Symbol 782 MovieClip Frame 13
gotoAndPlay (1);
Symbol 782 MovieClip Frame 14
_root.suonoClick.start();
Symbol 796 MovieClip Frame 1
if (zona == "allevamento") {
_root.loopMacchina.start();
}
Symbol 796 MovieClip Frame 17
stop();
Symbol 804 MovieClip Frame 29
if ((_root.hamburgerdafare > 0) && (_root.hamburger < _root.MAX_HAMBURGER)) {
_root.hamburger = _root.hamburger + 3;
}
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 13
gotoAndPlay (1);
Symbol 815 MovieClip Frame 14
_root.suonoClick.start();
Symbol 815 MovieClip Frame 26
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 10
gotoAndPlay ("on");
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 2
if (zona == "allevamento") {
_root.suonoBraccio.start();
}
Symbol 866 MovieClip Frame 7
if (zona == "allevamento") {
_root.suonoFiamma.start();
}
lancia.fiamma.play();
Symbol 866 MovieClip Frame 10
_parent.gotoAndPlay("bruciato");
_parent.presente = 0;
Symbol 869 MovieClip Frame 10
stop();
Symbol 870 MovieClip Frame 28
gotoAndPlay("azione" + (random(3) + 1));
Symbol 870 MovieClip Frame 36
gotoAndPlay ("azione1");
Symbol 870 MovieClip Frame 94
gotoAndPlay ("azione1");
Symbol 888 MovieClip Frame 1
if (_root.mangime <= 0) {
gotoAndPlay ("randomizza");
}
Symbol 888 MovieClip Frame 23
azione = random(5) + 1;
gotoAndPlay("azione" + azione);
Symbol 888 MovieClip Frame 40
gotoAndPlay ("azione1");
Symbol 888 MovieClip Frame 70
gotoAndPlay ("azione1");
Symbol 888 MovieClip Frame 93
gotoAndPlay ("azione1");
Symbol 888 MovieClip Frame 95
if (zona == "allevamento") {
_root["suonoMucca" + (random(3) + 1)].start();
}
Symbol 888 MovieClip Frame 109
gotoAndPlay ("azione1");
Symbol 888 MovieClip Frame 130
gotoAndPlay ("muccapazza");
Symbol 888 MovieClip Frame 140
if (_root.mangime <= 0) {
gotoAndPlay ("malata");
}
Symbol 888 MovieClip Frame 152
gotoAndPlay ("malata");
Symbol 895 Button
on (press) {
_root.abbatti();
}
on (rollOver) {
_root.help(_root.HLP_ABBATTI);
}
on (rollOut) {
_root.nohelp();
}
Symbol 897 MovieClip Frame 13
gotoAndPlay (1);
Symbol 897 MovieClip Frame 14
_root.suonoClick.start();
Symbol 897 MovieClip Frame 27
stop();
Symbol 909 MovieClip Frame 10
stop();
Symbol 929 MovieClip Frame 1
stop();
Symbol 929 MovieClip Frame 2
if (zona == "allevamento") {
_root.suonoBraccio.stop("braccio");
_root.suonoBraccio.start();
}
Symbol 929 MovieClip Frame 11
gotoAndStop (13);
Instance of Symbol 900 MovieClip in Symbol 929 MovieClip Frame 12
onClipEvent (load) {
_parent.selezione.gotoAndStop("off");
}
on (rollOver) {
_root.interfaccia = 1;
if (_parent.selezione._currentframe == 28) {
_root.deselezionaall();
_parent.selezione.gotoAndPlay("roll");
}
}
on (rollOut, dragOut) {
_root.interfaccia = 0;
if (_parent.selezione._currentframe <= 14) {
_parent.selezione.gotoAndStop("off");
}
}
on (release) {
if (_parent.selezione._currentframe < 14) {
_root.deselezionaall();
_parent.selezione.gotoAndPlay("on");
_root.vaccacorrente = _parent._name;
_root.selezionavacca();
} else {
_parent.selezione.gotoAndPlay("roll");
}
}
Symbol 929 MovieClip Frame 13
stop();
Symbol 929 MovieClip Frame 28
if (zona == "allevamento") {
_root.suonoBraccioSu.stop("bracciosu");
_root.suonoBraccioSu.start();
}
Symbol 929 MovieClip Frame 45
if (zona == "allevamento") {
_root.suonoMacello.stop("muccamacellata");
_root.suonoMacello.start();
}
Symbol 929 MovieClip Frame 46
if (malata == true) {
_root.consumatori = _root.consumatori + _root.CONSUMATORI_MALATA;
}
if (bse == true) {
_root.consumatori = _root.consumatori + _root.CONSUMATORI_BSE;
}
presente = 0;
peso = 0;
bse = false;
malata = false;
if (this._name == _root.vaccacorrente) {
_root.menu.gotoAndStop("nullaall");
}
_root.hamburgerdafare = _root.hamburgerdafare + _root.HAMBURGER_VACCA;
if (_root.farineanimali == true) {
_root.mangime = _root.mangime + _root.BONUS_FARINE;
}
gotoAndStop (1);
Symbol 929 MovieClip Frame 57
presente = 0;
peso = 0;
bse = false;
malata = false;
if (this._name == _root.vaccacorrente) {
_root.menu.gotoAndStop("nullaall");
}
gotoAndStop (1);
Symbol 929 MovieClip Frame 58
if (zona == "allevamento") {
_root.suonoMuccaMorta.stop("muccamorta");
_root.suonoMuccaMorta.start();
}
Symbol 929 MovieClip Frame 62
presente = 0;
if (this._name == _root.vaccacorrente) {
_root.menu.gotoAndStop("nullaall");
}
Symbol 929 MovieClip Frame 102
presente = 0;
peso = 0;
bse = false;
malata = false;
gotoAndStop (1);
Symbol 943 Button
on (rollOver) {
_root.resetretail();
}
on (press) {
_root.nuovaFinestra(_root.ALLARME_ALLEVAMENTO_TITOLO, _root.allarmeallevamento, "ingrasso");
}
Symbol 958 MovieClip Frame 4
gotoAndPlay ("giu");
Symbol 958 MovieClip Frame 8
gotoAndPlay ("su");
Symbol 958 MovieClip Frame 9
if (_root.allarmiallevamento()) {
this._parent.stop();
_root.alm_allevamento.gotoAndPlay("on");
} else {
this._parent.play();
gotoAndPlay ("giu");
_root.alm_allevamento.gotoAndStop("off");
}
Symbol 958 MovieClip Frame 11
if (zona == "allevamento") {
_root.suonoHey.start();
}
Symbol 958 MovieClip Frame 22
if (zona == "allevamento") {
_root.suonoHey.start();
}
Symbol 958 MovieClip Frame 64
gotoAndPlay ("allarme");
Symbol 958 MovieClip Frame 84
gotoAndPlay ("giu");
this._parent.play();
Symbol 958 MovieClip Frame 106
gotoAndPlay ("su");
this._parent.play();
Symbol 959 MovieClip Frame 1
stop();
direzione.gotoAndPlay("controllogiu");
Symbol 959 MovieClip Frame 17
direzione.gotoAndPlay("allarme");
Symbol 959 MovieClip Frame 40
stop();
direzione.gotoAndPlay("controllosu");
Instance of Symbol 514 MovieClip "tastofarineanimali" in Symbol 963 MovieClip Frame 1
onClipEvent (load) {
if (_root.farineanimali == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root.HLP_FARINEANIMALI, 0);
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.farineanimali = true;
gotoAndStop ("on");
_root.allevamento.lucefarineanimali.gotoAndStop("on");
} else {
_root.farineanimali = false;
gotoAndStop ("roll");
_root.allevamento.lucefarineanimali.gotoAndStop("off");
}
}
Instance of Symbol 514 MovieClip "tastoormoni" in Symbol 965 MovieClip Frame 1
onClipEvent (load) {
if (_root.ormoni == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root.HLP_ORMONI, _root.COSTO_ORMONI, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.ormoni = true;
_root.allevamento.luceormoni.gotoAndStop("on");
gotoAndStop ("on");
} else {
_root.ormoni = false;
_root.allevamento.luceormoni.gotoAndStop("off");
gotoAndStop ("roll");
}
}
Instance of Symbol 514 MovieClip "tastoscarti" in Symbol 967 MovieClip Frame 1
onClipEvent (load) {
if (_root.scarti == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root.HLP_SCARTI, 0);
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.scarti = true;
_root.allevamento.lucescarti.gotoAndStop("on");
gotoAndStop ("on");
} else {
_root.scarti = false;
_root.allevamento.lucescarti.gotoAndStop("off");
gotoAndStop ("roll");
}
}
Instance of Symbol 785 MovieClip "macina" in Symbol 968 MovieClip Frame 1
onClipEvent (load) {
this.selezione.gotoAndStop("off");
}
on (rollOver) {
if (this.selezione._currentframe == 27) {
_root.deselezionaall();
this.selezione.gotoAndPlay("roll");
}
_root.interfaccia = 1;
}
on (rollOut, dragOut) {
_root.interfaccia = 0;
if (this.selezione._currentframe < 13) {
this.selezione.gotoAndStop("off");
}
}
on (release) {
if (this.selezione._currentframe < 13) {
_root.deselezionaall();
_root.allevamento.tastofarine._visible = true;
_root.menu.gotoAndStop("macello");
this.selezione.gotoAndPlay("on");
} else {
_root.deselezionaall();
_root.allevamento.tastofarine._visible = false;
this.selezione.gotoAndPlay("roll");
}
}
Instance of Symbol 816 MovieClip "cisterna" in Symbol 968 MovieClip Frame 1
onClipEvent (load) {
this.selezione.gotoAndStop("off");
}
on (rollOver) {
if (this.selezione._currentframe == 27) {
_root.deselezionaall();
this.selezione.gotoAndPlay("roll");
}
_root.interfaccia = 1;
}
on (rollOut, dragOut) {
_root.interfaccia = 0;
if (this.selezione._currentframe < 13) {
this.selezione.gotoAndStop("off");
}
}
on (release) {
if (this.selezione._currentframe < 13) {
_root.deselezionaall();
_root.allevamento.tastoscarti._visible = true;
_root.allevamento.tastoormoni._visible = true;
_root.menu.gotoAndStop("mangime");
this.selezione.gotoAndPlay("on");
} else {
_root.deselezionaall();
_root.allevamento.tastoscarti._visible = false;
_root.allevamento.tastoormoni._visible = false;
this.selezione.gotoAndPlay("roll");
}
}
Instance of Symbol 838 MovieClip "ormoni" in Symbol 968 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ormoni == true) {
play();
} else {
gotoAndStop (10);
}
}
Instance of Symbol 849 MovieClip "cist" in Symbol 968 MovieClip Frame 1
onClipEvent (load) {
_root.gestionecisterna();
}
Instance of Symbol 963 MovieClip "tastofarine" in Symbol 968 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 965 MovieClip "tastoormoni" in Symbol 968 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 967 MovieClip "tastoscarti" in Symbol 968 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 979 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1006 MovieClip Frame 1
stop();
Symbol 1006 MovieClip Frame 7
gotoAndStop (1);
Symbol 1017 MovieClip Frame 4
stop();
Symbol 1017 MovieClip Frame 18
stop();
Symbol 1038 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1040 MovieClip Frame 1
stop();
Instance of Symbol 1022 MovieClip "faccia" in Symbol 1040 MovieClip Frame 1
onClipEvent (load) {
etnia = random(this._totalframes) + 1;
gotoAndStop(etnia);
this._parent.braccia.bsx.gotoAndStop(etnia);
this._parent.braccia.bdx.gotoAndStop(etnia);
}
Symbol 1049 MovieClip Frame 7
stop();
Symbol 1061 MovieClip Frame 1
omino.braccia.gotoAndStop(1);
omino.gotoAndStop(2);
omino.faccia.bocca.gotoAndStop(this.motivazione);
Instance of Symbol 979 MovieClip "selezione" in Symbol 1061 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.postazione = this._parent._name;
_root.resetretail();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
if (this._parent.attiva == false) {
_root.pianomenu.menulavoratore.gotoAndStop("filavuota");
_root.menu.gotoAndStop("filavuota");
} else if (this._parent.attiva == true) {
_root.pianomenu.menulavoratore.gotoAndStop("filapiena");
_root.menu.gotoAndStop("dipendente");
_root.str_motivazione = eval ("_root.STR_MOT" + this._parent.motivazione);
if (this._parent.mobbing) {
_root.pianomenu.menulavoratore.mobbing._visible = false;
} else {
_root.pianomenu.menulavoratore.mobbing._visible = true;
}
if (this._parent.spilla) {
_root.pianomenu.menulavoratore.spilla._visible = false;
} else {
_root.pianomenu.menulavoratore.spilla._visible = true;
}
}
_root.pianomenu.menulavoratore._visible = true;
_root.pianomenu.menulavoratore._x = this._parent._x + 360;
_root.pianomenu.menulavoratore._y = this._parent._y + 280;
this.gotoAndStop("on");
_root.postazione = this._parent._name;
} else {
_root.postazione = undefined;
_root.pianomenu.menulavoratore._visible = false;
this.gotoAndPlay("roll");
}
}
Symbol 1061 MovieClip Frame 2
omino.braccia.gotoAndPlay(1);
if (_root.hamburger > 0) {
cottura._visible = true;
} else {
cottura._visible = false;
}
Symbol 1061 MovieClip Frame 3
if (zona == "retail") {
_root.suonoLinea.start();
}
Symbol 1061 MovieClip Frame 12
gotoAndStop (1);
Symbol 1083 MovieClip Frame 4
stop();
Symbol 1084 MovieClip Frame 1
stop();
Symbol 1090 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1098 MovieClip Frame 1
omino.faccia.bocca.gotoAndStop(motivazione);
Instance of Symbol 1090 MovieClip "selezione" in Symbol 1098 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
on (rollOver) {
if (this._currentframe == 22) {
_root.postazione = this._parent._name;
_root.resetretail();
this.gotoAndPlay("roll");
}
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (release) {
if (this._currentframe < 21) {
if (this._parent.attiva == false) {
_root.pianomenu.menulavoratore.gotoAndStop("cassavuota");
_root.menu.gotoAndStop("cassavuota");
} else if (this._parent.attiva == true) {
_root.pianomenu.menulavoratore.gotoAndStop("cassapiena");
_root.menu.gotoAndStop("dipendente");
_root.str_motivazione = eval ("_root.STR_MOT" + this._parent.motivazione);
}
if (this._parent.mobbing) {
_root.pianomenu.menulavoratore.mobbing._visible = false;
} else {
_root.pianomenu.menulavoratore.mobbing._visible = true;
}
if (this._parent.spilla) {
_root.pianomenu.menulavoratore.spilla._visible = false;
} else {
_root.pianomenu.menulavoratore.spilla._visible = true;
}
_root.pianomenu.menulavoratore._visible = true;
_root.pianomenu.menulavoratore._x = this._parent._x + 360;
_root.pianomenu.menulavoratore._y = this._parent._y + 280;
this.gotoAndStop("on");
_root.postazione = this._parent._name;
} else {
_root.postazione = undefined;
_root.pianomenu.menulavoratore._visible = false;
this.gotoAndPlay("roll");
}
}
Symbol 1098 MovieClip Frame 5
if (zona == "retail") {
_root.suonoCassa.start();
}
Symbol 1098 MovieClip Frame 9
stop();
Symbol 1100 MovieClip Frame 1
if ((this._name == "c1") && (this._parent.clienti >= 0)) {
_root.creacliente.call(this._parent);
}
if (this._name == ("c" + (this._parent.clienti + 1))) {
this._visible = false;
}
stop();
Symbol 1100 MovieClip Frame 2
cliente.gambe.passi.play();
Symbol 1100 MovieClip Frame 5
cliente.gambe.passi.gotoAndStop(1);
Symbol 1104 Button
on (rollOver) {
_root.resetretail();
}
on (press) {
_root.nuovaFinestra(_root.ALLARME_RETAIL_TITOLO, _root.allarmeretail, "retail");
}
Symbol 1117 MovieClip Frame 34
if (!_root.controllaretail()) {
gotoAndPlay ("normale");
_root.alm_retail.gotoAndStop("off");
} else {
_root.alm_retail.gotoAndPlay("on");
}
Symbol 1117 MovieClip Frame 44
if (zona == "retail") {
_root.suonoHey.start();
}
Symbol 1117 MovieClip Frame 56
if (zona == "retail") {
_root.suonoHey.start();
}
Symbol 1117 MovieClip Frame 107
gotoAndPlay ("allarme");
Instance of Symbol 1101 MovieClip "fila3" in Symbol 1118 MovieClip Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
r = 0;
num = 3;
clienti = 8;
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 1101 MovieClip "fila2" in Symbol 1118 MovieClip Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
r = 0;
num = 2;
clienti = 8;
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 1101 MovieClip "fila1" in Symbol 1118 MovieClip Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
r = 0;
num = 1;
}
this.addEventListener("load", __f_load);
}
Symbol 1121 MovieClip Frame 31
if (zona == "brand") {
s = random(9);
if (s == 1) {
_root.suonoTelefono1.start();
} else if (s == 2) {
_root.suonoTelefono2.start();
} else if (s == 3) {
_root.suonoStampante.start();
}
}
gotoAndPlay (2);
Symbol 1127 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1132 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1138 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1216 Button
on (rollOver) {
_root.resetbrand();
}
on (press) {
_root.nuovaFinestra(_root.ALLARME_CDA_TITOLO, _root.allarme_output, "cda");
}
Symbol 1225 MovieClip Frame 26
if (zona == "brand") {
r = random(6);
_root["suonoVoci" + (r + 1)].start();
}
Symbol 1225 MovieClip Frame 65
if (zona == "brand") {
r = random(6);
_root["suonoVoci" + (r + 1)].start();
}
Symbol 1225 MovieClip Frame 82
gotoAndPlay (1);
Symbol 1225 MovieClip Frame 93
if (zona == "brand") {
_root.suonoHey.start();
}
Symbol 1225 MovieClip Frame 106
if (zona == "brand") {
_root.suonoHey.start();
}
Symbol 1225 MovieClip Frame 143
gotoAndPlay ("allarme");
Instance of Symbol 1235 MovieClip in Symbol 1244 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent.capelli);
}
Symbol 1244 MovieClip Frame 3
if (zona == "brand") {
r = random(6);
if ((_root["suonoVoci" + (r + 1)].position == 0) || (_root["suonoVoci" + (r + 1)].position == _root["suonoVoci" + (r + 1)].duration)) {
_root["suonoVoci" + (r + 1)].start();
}
}
Symbol 1244 MovieClip Frame 11
gotoAndStop ("felice");
Symbol 1244 MovieClip Frame 13
if (zona == "brand") {
r = random(6);
if ((_root["suonoVoci" + (r + 1)].position == 0) || (_root["suonoVoci" + (r + 1)].position == _root["suonoVoci" + (r + 1)].duration)) {
_root["suonoVoci" + (r + 1)].start();
}
}
Symbol 1244 MovieClip Frame 21
gotoAndStop ("incazzato");
Symbol 1258 MovieClip Frame 1
f = random(7);
gotoAndPlay("f" + f);
Symbol 1258 MovieClip Frame 34
gotoAndPlay (1);
Symbol 1258 MovieClip Frame 35
testa.play();
Symbol 1258 MovieClip Frame 39
gotoAndPlay (1);
Symbol 1258 MovieClip Frame 40
testa.play();
Symbol 1258 MovieClip Frame 45
gotoAndPlay (1);
Symbol 1258 MovieClip Frame 46
testa.play();
Symbol 1258 MovieClip Frame 50
gotoAndPlay (1);
Symbol 1258 MovieClip Frame 51
testa.play();
Symbol 1258 MovieClip Frame 55
gotoAndPlay (1);
Instance of Symbol 1269 MovieClip in Symbol 1270 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent.capelli);
}
Symbol 1279 MovieClip Frame 1
gotoAndPlay("f" + random(5));
Symbol 1279 MovieClip Frame 41
gotoAndPlay (1);
Symbol 1279 MovieClip Frame 48
gotoAndPlay (1);
Symbol 1302 MovieClip Frame 18
an = random(4);
if (an == 1) {
gotoAndPlay ("tastiera");
} else if (an == 2) {
gotoAndPlay ("capelli");
} else if (an == 3) {
gotoAndPlay ("schermo");
} else {
gotoAndPlay ("ferma");
}
Symbol 1302 MovieClip Frame 19
if (zona == "brand") {
_root.suonoTastiera.start();
}
Symbol 1302 MovieClip Frame 27
gotoAndPlay ("ferma");
Symbol 1302 MovieClip Frame 32
gotoAndPlay ("ferma");
Symbol 1302 MovieClip Frame 52
gotoAndPlay ("ferma");
Instance of Symbol 514 MovieClip "alimentazione" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_ALIMENTAZIONE, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root[nome] = true;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root[nome] = false;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 514 MovieClip "bambini" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_BAMBINI, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root[nome] = true;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root[nome] = false;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 514 MovieClip "terzomondo" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_TERZOMONDO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root[nome] = true;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root[nome] = false;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 514 MovieClip "topolino" in Symbol 1324 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_TOPOLINO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 514 MovieClip "politico" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_POLITICO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Instance of Symbol 514 MovieClip "climatologo" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_CLIMATOLOGO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Instance of Symbol 514 MovieClip "alimentarista" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_ALIMENTARISTA, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Instance of Symbol 514 MovieClip "ispettore" in Symbol 1328 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_ISPETTORE, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Symbol 1329 Button
on (release) {
_root.pianofinestre.finestra_detrattori._visible = true;
}
on (rollOver) {
_root.help(_root.HLP_DETRATTORI);
}
on (rollOut) {
_root.nohelp();
}
Symbol 1330 Button
on (release) {
_root.pianofinestre.finestra_stat._visible = true;
_root.disegnaStat();
}
on (rollOver) {
_root.help(_root.HLP_GRAFICO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 1331 Button
on (release) {
_root.nuovaFinestra(_root.STR_ARCHIVIO, _root.bilanci[_root.bilanci.length - 1], "cda");
}
on (rollOver) {
_root.help(_root.HLP_BILANCIO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 1341 MovieClip Frame 1
stop();
Instance of Symbol 1127 MovieClip "pubblicita" in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
_root.brand.tastipubblicita._visible = false;
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.resetbrand();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
_root.menu.gotoAndStop("pubblicita");
this.gotoAndStop("on");
_root.brand.tastipubblicita._visible = true;
} else {
this.gotoAndPlay("roll");
_root.brand.tastipubblicita._visible = false;
}
}
Instance of Symbol 1132 MovieClip "cda" in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.resetbrand();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
_root.brand.tasticda._visible = true;
this.gotoAndStop("on");
_root.menu.gotoAndStop("cda");
} else {
_root.brand.tasticda._visible = false;
this.gotoAndPlay("roll");
}
}
Instance of Symbol 1138 MovieClip "pr" in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
_root.brand.tastipr._visible = false;
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.resetbrand();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
_root.menu.gotoAndStop("pr");
this.gotoAndStop("on");
_root.brand.tastipr._visible = true;
} else {
this.gotoAndPlay("roll");
_root.brand.tastipr._visible = false;
}
}
Instance of Symbol 1258 MovieClip "az4" in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
capelli = 4;
}
Instance of Symbol 1258 MovieClip "az2" in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
capelli = 2;
}
Instance of Symbol 1258 MovieClip "az1" in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
capelli = 1;
}
Instance of Symbol 1258 MovieClip "az3" in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
capelli = 5;
}
Instance of Symbol 1279 MovieClip in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
capelli = 1;
}
Instance of Symbol 1279 MovieClip in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
capelli = 4;
}
Instance of Symbol 1279 MovieClip in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
capelli = 3;
}
Symbol 1351 MovieClip Frame 1
stop();
Instance of Symbol 1358 MovieClip "finestra_detrattori" in Symbol 1368 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
this.barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, 0, 0, _root.ROOT_X - this._parent._width, _root.ROOT_Y - 70);
};
this.barra.onRelease = function () {
stopDrag();
};
this.xbutton.onRelease = function () {
this._parent._visible = false;
};
this.onEnterFrame = function () {
if (this._visible) {
sindacati.gotoAndStop(Math.round(_root.sindacati / 10) + 1);
ecologisti.gotoAndStop(Math.round(_root.ecologisti / 10) + 1);
noglobal.gotoAndStop(Math.round(_root.noglobal / 10) + 1);
consumatori.gotoAndStop(Math.round(_root.consumatori / 10) + 1);
obesi.gotoAndStop(Math.round(_root.obesi / 10) + 1);
}
};
}
Instance of Symbol 1362 MovieClip "finestra_stat" in Symbol 1368 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
this.barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, 0, 0, _root.ROOT_X - (_root.PIANO_X / 2), _root.ROOT_Y - 70);
};
this.barra.onRelease = function () {
stopDrag();
};
this.xbutton.onRelease = function () {
this._parent._visible = false;
};
this.onEnterFrame = function () {
if (this._visible) {
_root.disegnaStat();
}
};
}
Instance of Symbol 1367 MovieClip "finestraMenu" in Symbol 1368 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
this.barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, 0, 0, _root.ROOT_X - (_root.PIANO_X / 2), _root.ROOT_Y - 70);
};
this.barra.onRelease = function () {
stopDrag();
};
this.xbutton.onRelease = function () {
this._parent._visible = false;
};
if (suoni == false) {
this.scrittaSuoni.gotoAndStop("off");
}
}
Symbol 1373 MovieClip Frame 1
stop();
Symbol 1373 MovieClip Frame 2
_root.suonoGameOver.start();