STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229101
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2571 · P5141

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/25067357?noj=FRM25067357-7DC" width="1" height="1"></div>

McDonalds.swf

This is the info page for
Flash #256598

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 2 { } movieClip 4 punto { } movieClip 9 { } movieClip 10 { frame 1 { stop(); } } movieClip 26 { } movieClip 32 { } movieClip 43 { } movieClip 47 { } movieClip 48 { } movieClip 64 { } movieClip 76 { } movieClip 90 { } movieClip 92 { frame 1 { stop(); } } movieClip 93 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); } } 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); } frame 17 { stop(); } } movieClip 95 { frame 1 { _root.suonoBeep.start(); } } movieClip 99 { frame 1 { _root.suonoBeep.start(); } } button 100 { on (press) { _root.assumi(); } on (rollOver) { _root.help(_root.HLP_ASSUMI, _root.COSTO_CREW, 'mese'); } on (rollOut) { _root.nohelp(); } } button 102 { on (press) { _root.licenzia(); } on (rollOver) { _root.help(_root.HLP_LICENZIA); } on (rollOut) { _root.nohelp(); } } movieClip 104 { } button 105 { on (press) { _root.mobbizza(); } on (rollOver) { _root.help(_root.HLP_MOBBIZZA); } on (rollOut) { _root.nohelp(); } } movieClip 107 { } button 108 { on (press) { _root.premia(); } on (rollOver) { _root.help(_root.HLP_PREMIA); } on (rollOut) { _root.nohelp(); } } movieClip 110 { } movieClip 111 menulavoratore { frame 1 { stop(); } } movieClip 113 freccia_y { } movieClip 115 freccia_x { } // unknown tag 88 length 68 movieClip 143 { } movieClip 150 { frame 1 { _root.suonoClick.start(); } } movieClip 160 finestra { frame 1 { su_btn.onPress = function () { _root.onEnterFrame = function () { --testo.scroll; }; }; giu_btn.onReleaseOutside = function () { _root.onEnterFrame = undefined; }; su_btn.onRelease = giu_btn.onReleaseOutside; giu_btn.onPress = function () { _root.onEnterFrame = function () { ++testo.scroll; }; }; giu_btn.onReleaseOutside = function () { _root.onEnterFrame = undefined; }; giu_btn.onRelease = giu_btn.onReleaseOutside; t = new Object(); t.onKeyDown = function () { if (Key.isDown(38)) { --testo.scroll; } else { if (Key.isDown(40)) { ++testo.scroll; } } }; Key.addListener(t); stop(); } frame 2 { su_btn.onPress = function () { _root.onEnterFrame = function () { --testo.scroll; }; }; giu_btn.onReleaseOutside = function () { _root.onEnterFrame = undefined; }; su_btn.onRelease = giu_btn.onReleaseOutside; giu_btn.onPress = function () { _root.onEnterFrame = function () { ++testo.scroll; }; }; giu_btn.onReleaseOutside = function () { _root.onEnterFrame = undefined; }; giu_btn.onRelease = giu_btn.onReleaseOutside; t = new Object(); t.onKeyDown = function () { if (Key.isDown(38)) { --testo.scroll; } else { if (Key.isDown(40)) { ++testo.scroll; } } }; Key.addListener(t); stop(); } frame 3 { su_btn.onPress = function () { _root.onEnterFrame = function () { --testo.scroll; }; }; giu_btn.onReleaseOutside = function () { _root.onEnterFrame = undefined; }; su_btn.onRelease = giu_btn.onReleaseOutside; giu_btn.onPress = function () { _root.onEnterFrame = function () { ++testo.scroll; }; }; giu_btn.onReleaseOutside = function () { _root.onEnterFrame = undefined; }; giu_btn.onRelease = giu_btn.onReleaseOutside; t = new Object(); t.onKeyDown = function () { if (Key.isDown(38)) { --testo.scroll; } else { if (Key.isDown(40)) { ++testo.scroll; } } }; Key.addListener(t); stop(); } } movieClip 161 piano { } button 163 { on (press) { _root.creaallevamento(); } on (rollOver) { _root.help(_root.HLP_ALLEVAMENTO, _root.COSTO_PASCOLO); } on (rollOut) { _root.nohelp(); } } movieClip 165 { } button 166 { on (press) { _root.creasoia(); } on (rollOver) { _root.help(_root.HLP_SOIA, _root.COSTO_SOIA); } on (rollOut) { _root.nohelp(); } } movieClip 168 { } button 169 { on (press) { _root.creasoia(); } on (rollOver) { _root.help(_root.HLP_SOIA, _root.COSTO_SOIA); } on (rollOut) { _root.nohelp(); } } button 170 { on (press) { _root.creaallevamento(); } on (rollOver) { _root.help(_root.HLP_FORESTAALLEVAMENTO, _root.COSTO_PASCOLOFORESTA); } on (rollOut) { _root.nohelp(); } } button 171 { on (press) { _root.creasoia(); } on (rollOver) { _root.help(_root.HLP_FORESTASOIA, _root.COSTO_SOIAFORESTA); } on (rollOut) { _root.nohelp(); } } button 172 { on (press) { _root.creaallevamento(); } on (rollOver) { _root.help(_root.HLP_VILLAGGIOALLEVAMENTO, _root.COSTO_PASCOLOFORESTA); } on (rollOut) { _root.nohelp(); } } button 173 { on (press) { _root.creasoia(); } on (rollOver) { _root.help(_root.HLP_VILLAGGIOSOIA, _root.COSTO_PASCOLOFORESTA); } on (rollOut) { _root.nohelp(); } } button 174 { on (press) { _root.vendi(); } on (rollOver) { _root.help(_root.HLP_VENDITERRENO); } on (rollOut) { _root.nohelp(); } } movieClip 176 { } button 177 { on (press) { _root.creaallevamento(); } on (rollOver) { _root.help(_root.HLP_TRASFORMAALLEVAMENTO, _root.COSTO_PASCOLO); } on (rollOut) { _root.nohelp(); } } movieClip 183 { frame 1 { stop(); } } movieClip 185 { } button 186 { on (press) { _root.creasoia(); } on (rollOver) { _root.help(_root.HLP_TRASFORMASOIA, _root.COSTO_SOIA); } on (rollOut) { _root.nohelp(); } } button 188 { on (press) { _root.aumentavacche(); } on (rollOver) { _root.help(_root.HLP_ALLEVAMENTOPIU); } on (rollOut) { _root.nohelp(); } } button 189 { on (press) { _root.diminuiscivacche(); } on (rollOver) { _root.help(_root.HLP_ALLEVAMENTOMENO); } on (rollOut) { _root.nohelp(); } } movieClip 191 { } movieClip 192 menucontestuale { frame 1 { stop(); } instance tastoogm of movieClip 183 { onClipEvent (load) { if (_root.piano[_root.tilecorrente].ogm == true) { gotoAndStop('on'); } else { gotoAndStop('off'); } } onClipEvent (rollOver) { _root.help(_root.HLP_OGM, _root.COSTO_OGM, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 tastoogm of movieClip 183 { onClipEvent (load) { if (_root.piano[_root.tilecorrente].ogm == true) { gotoAndStop('on'); } else { gotoAndStop('off'); } } onClipEvent (rollOver) { _root.help(_root.HLP_OGM, _root.COSTO_OGM, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 tastoogm of movieClip 183 { onClipEvent (load) { if (_root.piano[_root.tilecorrente].ogm == true) { gotoAndStop('on'); } else { gotoAndStop('off'); } } onClipEvent (rollOver) { _root.help(_root.HLP_OGM, _root.COSTO_OGM, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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'); } } } } frame 1 { stop(); fscommand('fullscreen', true); fscommand('showmenu', false); loader.onEnterFrame = function () { if (_root._framesloaded >= 2) { b_continue.gotoAndStop(2); } }; _global.suoni = true; } frame 1 { STR_WINTER = 'Winter'; STR_SPRING = 'Spring'; STR_SUMMER = 'Summer'; STR_FALL = 'Fall'; STR_BOVINO = 'Cattle'; STR_BOVINOINGRASSATO = 'Grain-fed cattle'; STR_CREW = 'Crew'; STR_PANINO = 'Hamburger'; STR_CLIENTE = 'Customer'; STR_PASTO = 'Meal'; STR_SOLDI = 'Money'; STR_BRAND_AW = 'Brand awareness'; STR_HAM = 'Beef patty'; STR_FINE_TUTORIAL = 'End tutorial'; MESI = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', '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 Jose\''; STR_ALLEVAMENTO = 'Pasture'; STR_AGRICOLTURA = 'Agricultural section'; STR_FERTILITA = 'Fertility:'; STR_FORESTADESCRIZIONE = 'Rainforest'; STR_VILLAGGIODESCRIZIONE = 'A native tribe lives here'; STR_VILLAGGIODEMOLIZIONE = 'Demolition in progress, please wait...'; STR_FORESTAABBATTIMENTO = 'Demolition in progress, please wait...'; STR_DESERTODESCRIZIONE = 'You can no longer profit from this land'; STR_CORRUZIONE = 'You have to corrupt the major to use this land'; STR_CORROTTO = 'The major will grant you use of this land'; STR_ATTESASOIA = 'Cropland will be seeded'; STR_CALOTTEPOLARI = 'Polar ice melting:'; STR_PROVVISTE = 'Food supply:'; STR_VACCHE = 'Beef cows'; FORESTA_DESCRIZIONE = 'A millennia-old rainforest'; VILLAGGIO_DESCRIZIONE = 'A native tribe lives 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\'s 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 = 'Beef patties:'; STR_PANINI = 'Hamburgers:'; STR_LINEAVUOTA = 'Assembly line'; STR_CASSAVUOTA = 'Desk'; DESCRIZIONE_LINEA = 'We create the hamburgers here'; DESCRIZIONE_CASSA = 'We sell the meals here'; STR_MOTIVAZIONE = 'Motivation:'; STR_MOT1 = 'Angry'; 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 density'; HLP_ALLEVAMENTOMENO = 'Decrease pasture density'; HLP_VILLAGGIOSOIA = 'Demolish the village and grow soy'; HLP_VILLAGGIOALLEVAMENTO = 'Demolish the village and create a pasture'; HLP_TRASFORMASOIA = 'Convert to soybean monoculture'; HLP_TRASFORMAALLEVAMENTO = 'Convert to pasture'; HLP_VENDITERRENO = 'Sell the land'; HLP_CORROMPISINDACO = 'Corrupt Sao Josè 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’s 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’ wages'; VOCE_OGM = 'GMO 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 = 'Sales'; STR_USCITE = 'Costs'; STR_GUADAGNO = 'Profit'; STR_SALDO = 'Balance'; STR_DETTAGLI = 'Details'; ALLARME_CDA_TITOLO = 'Board of directors alarm'; STR_CONTO = 'We’re losing too much money. We’ll soon go bankrupt!\n'; STR_CRESCITA = 'We are not growing fast enough!\n'; GRAFICO_TITOLO = 'Profit trend'; STR_ARCHIVIO = 'Budget archive'; ALLARME_ALLEVAMENTO_TITOLO = 'Feedlot'; ALLARME_RETAIL_TITOLO = 'Fast food'; ALIMENTARISTA_TITOLO = 'Bribe a nutritionist'; ALIMENTARISTA_TESTO = 'We\'ll never know the secrets of human metabolism and there is no consensus about carcirogenic food. Yesterday pork was bad for you, today it\'s tobacco, and tomorrow… who knows? It all depends on how many nutritionists are on the corporations’ payrolls. Convince one of them to disprove the correlation between obesity and fast food.'; POLITICO_TITOLO = 'Bribe 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 = 'Bribe a climatologist'; CLIMATOLOGO_TESTO = 'If we could avoid clearing rainforests, polluting water supplies with bovine excrement and contributing to greenhouse gasses, we would. But we can’t do it if we want to keep our profits high. Corrupting a climatologist is the best way to reassure the public opinion and thwart the enviromentalists movements.'; ISPETTORE_TITOLO = 'Bribe a health officer'; ISPETTORE_TESTO = 'Public institutions have the bad habit of placing restrictions on the Freedom of Enterprise. They are particular obsessed with safety standards for meat production. Is in our interest to provide our customers with safe and healthy food. We really don’t need the bureaucrats\' arbitrary opinions. You can "improve" our relations with health inspector and make it more difficult for consumer associations to sue us for food poisoning cases.'; TOPOLINO_TITOLO = 'McDisney\'s'; TOPOLINO_TESTO = 'Integrated marketing is the key to success. Creating partnerships with entertainment industry leaders can maximize brand awareness. Commission some product placement in children\'s cartoons and reinforce it with co-branded happy meal gifts. It\'s a win-win formula, but the operation will have high cost. Make sure you can fulfill the increased demand before activating it.'; BAMBINI_TITOLO = 'Children want McDonald\'s'; BAMBINI_TESTO = 'Children are a primary target for us. Their fresh minds are free from critical thinking and prone to early indoctrination. Children also drive their parents’ consumption habits with artful emotional manipulation. Our ads are designed to bend young minds to our will.'; ALIMENTAZIONE_TITOLO = 'The food pyramid'; ALIMENTAZIONE_TESTO = 'A balanced diet is the secret to a healthy life. This campaign will explain how McDonald’s meals are rich with fats and proteins, the crucial 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 expect to increase demand and weaken the obesity associations’ claims.'; TERZOMONDO_TITOLO = 'McDonald\'s for the third world'; TERZOMONDO_TESTO = 'Collective Western guilt can be leveraged to generate profit. If we donate an absimal sum to underdeveloped countries, we can win compassion from the middle class and undermine the anti-globalization movement. The ads will Ronald McDonald fighting poverty (represented as a monster from outer space) and saving starving African children.'; CALOTTE_TITOLO = 'Sea level'; CALOTTE_TESTO = 'Scientists claims that if we destroy too many rainforests, we\'ll worsen global warming and accellera polar ice caps melting. If polar ice melts, the story goes, sea level rises along with the chance for climate disasters. Unfortunately many people believe in these superstitions and want to stop Western progress in order to save a couple of icebergs. Keep an eye on the sea level and, if needed, bribe a climatologist.'; CITTA_TITOLO = 'Sao Jose\''; CITTA_TESTO = 'The city of Sao Jose\' uses a lot of land to sustain itself. Often underdeveloped countries believe that growing crops for human consumption is more important than pastures or soybean cultures for animal consumption. Luckily, with a small small sum of money we can obtain a permit to take this land and bring wealth 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 rainforests, some think pastures are a waste of soil. At the moment the environmentalists seem harmless but they are gaining followers, and they could start a campaign against us.'; ECOLOGISTI_PROTESTA = 'Radical environmentalist groups launched a subtle campaign against us. Our logo appears horribly subverted on their flyers and they also made a parody videogame with slanderous contents. It’s likely that this 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 we are seeing activist organizations that viscerally hate our golden arches. Some of them blame us for world’s hunger, others say we displaced native people or corrupt children with our ads. We must prevent them from gaining enough momentum to start a boycott campaign against us.'; NOGLOBAL_PROTESTA = 'Anti-globalization movements have announced a boycott of our chain. They’re using independent media channels to spread their delirious theories, and they are convincing many people. We are expecting a drop in customer traffic for some months.'; CONSUMATORI = 'Consumers’ associations'; CONSUMATORI_ALLARME = 'More and more people are feeling sick after a meal at our restaurants. Some believe this is due to the lack of quality controls: they claim that we slaughter diseased cows. Some believe a combination of genetically modified corn, pesticides, and hormones are to blam. Whatever the reason we must avoid any lawsuits and fines for food poisoning.'; VOCE_CONSUMATORI_MULTA = 'Lawsuit Settlement'; CONSUMATORI_PROTESTA = 'Consumers’ associations have declared war on McDonald’s. They obtained sufficient evidence to charge us for food poisoning. We have to pay a settlement and be more careful in the future.'; SINDACATI = 'Organized workers'; SINDACATI_ALLARME = 'Our employees have organized and they are complaining about the indiscriminate firings and mistreatments in our restaurants. The absolute control of our human resources is a pillar of our business. If they decide to go on strike, they could cause serious monetary losses.'; SINDACATI_PROTESTA = 'Our precarious employees organized pickets in front of our restaurants. Our lawyers will do everything they can to fire them or sue them into silence, but meanwhile we have to endure a disruption of the normal customer flow.'; OBESI = 'Obesity association'; OBESI_ALLARME = 'The number of obese people grows day by day, along with hearth attacks and cardiovascular diseases. A group of fat gold-diggers is thinking about blaming us for their problems and seeking to obtain a huge settlement. It’s a good idea to stop these chubbies before they collect enough money to hire an army of lawyers.'; VOCE_OBESI_MULTA = 'Reparation payment'; OBESI_PROTESTA = 'The national obesity association organized a class action against McDonald’s. The court ruled us guilty of warning customers about the fattening effect of our meals. Is this justice? Now we have to pay reparations to all the chubbies that mobilized against us.\n'; 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. It\\s probably caused by animal flour, stop it!'; ALLARME_MACELLAZIONE = 'There are no hamburger patties, 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 hamburgers. Hire more grill cooks.'; ALLARME_CASSE = 'we aren\'t selling enough hamburgers. Hire more cashiers.'; ALLARME_MOTIVAZIONE = 'Some employees are disaffected. Reward them with a badge or fire them!'; TUT_TITOLO = 'Tutorial'; TUT1 = 'Making money in a big corporation is not simple at all. Behind every hamburger there is a complex process you must learn to manage…\n Use the arrows on the lower left to continue'; TUT2 = 'Like all modern corporations, McDonald\'s supply chain is spread around the world. You have to supervise all the four sectors, switch between them with the lower left panel.\n Remember: events keep happening in a sector even if it\'s not currently shown.'; TUT3 = 'Agricultural sector:\nIf we had to raise all the cattle we need in the 1st World, our countries would be covered with grass and cow shit. Pastures and soybean cultivation need a lot of land and South America is one of the best places for them. Obviously you\'ll have to conquer your land as our forefathers did. Remember the old saying: \\under every forest there is a pasture".'; TUT4 = 'Free land:\nYou can buy it to create pasture or soybean cultivations.'; TUT5 = 'Pasture:\nEvery cow spends the first years of their life here. You can increase land productivity by allocating more cows to the same area.'; TUT6 = 'Soy culture:\nYou can increase terrain productivity by using genetically modified plants. GMOs allow us to use more aggressive pesticides to minimize pest damage.'; TUT7 = 'Corn culture:\nUsed by the city of Sao Jose\' for human consumption.'; TUT8 = 'Rainforest:\nYou can clear it to establish pastures and soy cultivations.'; TUT9 = 'Feed lot:\nEvery good American wants a fat and greasy burger. Unfortunately, the cows coming from the pastures are rather lean and don\'t yield a properly fat meat. We must keep the cattle here for some months and overfeed them with hyperchaloric soy-based fodder. Make sure there is sufficient fodder for all the cows and avoid 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 byproducts aren\'t very good for the cows’ health but they are rather convenient.'; TUT13 = 'Hormones:\nYou can pump cattle with hormones to fatten them more quickly. This could have some risks to consumers\' health, but make no mistake: in love and war everything is allowed.'; TUT14 = 'Slaught-o-matic:\nFor each cow slaughtered, there is a lot of organic matter we can’t use. It\'s convenient to turn these leftovers into animal flour and mix it in the fodder'; TUT15 = 'Diseased cow:\nIf the fodder is too unhealthy the risk of epidemic increases. To avoid food poisonings you have to destroy diseased cows before they are slaughtered'; TUT16 = 'Mad cow:\nBSE is a disease caused by feeding cattle with fodder mixed with animal remains. To avoid scandals it\'s better to destroy the infected cows'; TUT17 = 'Cattleman:\nHe oversees the feedlot. He will alert you if anything is wrong'; TUT18 = 'Fast Food:\nPeople live fast and want to eat quickly. Fast food restaurants are the cathedrals of our age. Everything must be efficient and optimized: avoid customer queues by stocking enough hamburger and by keeping out employees motivated.\nManaging a 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 ones the best solution is firing. Eliminate the weak links!'; TUT19 = 'Fridge:\nMake sure to have the enough meat coming from the slaughterhouse.'; TUT20 = 'Grillman:\nThis crew member assembles hamburgers like T-model Fords'; TUT21 = 'Cashier:\nThis crew member sells the meals. If there are no active registers, customers won’t enter the restaurant.'; TUT22 = 'Customer:\nTheir flow depends on advertising and on the effectiveness of our detractors.'; TUT23 = 'Manager:\nHe’s the the restaurant\'s manager. He will alert you when something is wrong'; TUT24 = 'Headquarters:\nMcDonald’s 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 our corporate image.'; TUT25 = 'Marketing:\nThese weirdos are the best creatives on the market. They will set up the most sophisticated and pervasive advertising campaigns. More ads means more 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 oversees our activities. These men invested their capital in this businness and hired you to make it grow. 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 cultivation maintenance'; STR_MENU = 'Main menu'; STR_GAMEOVER = 'Game over'; STR_GAMEOVERTXT = 'Shame on you, you bankrupted our glorious company! Generations 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 information about the selected operation...'; STR_INT5 = '... and the operation\'s cost'; STR_INT6 = 'Play and pause the game'; } // unknown tag 88 length 63 movieClip 201 { } button 205 { on (release) { _root.nextFrame(); } } movieClip 206 { frame 1 { stop(); } } movieClip 207 { } frame 2 { 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'); } 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 += 3; obj.ombra._y += 3; } 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'); } }; } movieClip 216 { frame 1 { stop(); } frame 2 { stop(); } } instance scrittaSuoni of movieClip 216 { onClipEvent (load) { trace(suoni); if (suoni) { gotoAndStop('on'); } else { gotoAndStop('off'); } } } movieClip 222 { } button 226 { on (release) { _root.gotoAndPlay('start'); } } movieClip 228 { frame 4 { gotoAndPlay(1); } } movieClip 237 { } movieClip 255 { } movieClip 256 { } button 261 { on (release) { _root.suonoBeep.start(); nPage.text = _currentframe + 1; nTotal.text = _totalframes; nextFrame(); } } button 266 { on (release) { _root.suonoBop.start(); if (suoni) { _root.suonoBeep.setVolume(100); } _root.riprendi(); _root.tutorial._visible = false; } } button 267 { on (release) { _root.suonoBeep.start(); nPage.text = _currentframe - 1; nTotal.text = _totalframes; prevFrame(); } } movieClip 287 { } movieClip 288 { frame 1 { stop(); } frame 4 { gotoAndPlay('on'); } } movieClip 291 { } movieClip 320 { frame 1 { stop(); nPage.text = 1; nTotal.text = _totalframes; STR_SOIA.text = _root.STR_SOIA; STR_BOVINO.text = _root.STR_BOVINO; STR_BOVINOINGRASSATO2.text = _root.STR_BOVINOINGRASSATO; STR_CREW.text = _root.STR_CREW; STR_CREW2.text = _root.STR_CREW; STR_HAM.text = _root.STR_HAM; STR_PANINO.text = _root.STR_PANINO; STR_BRAND_AW.text = _root.STR_BRAND_AW; STR_PASTO.text = _root.STR_PASTO; STR_CLIENTE.text = _root.STR_CLIENTE; STR_SOLDI.text = _root.STR_SOLDI; } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT1); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.STR_INT1); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.STR_INT2); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.STR_INT3); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.STR_INT4); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.STR_INT6); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.STR_INT5); } } frame 3 { STR_AGRICOLTURA.text = _root.STR_AGRICOLTURA; STR_ALLEVAMENTO.text = _root.STR_ALLEVAMENTO; STR_RETAIL.text = _root.STR_RETAIL; STR_BRAND.text = _root.STR_BRAND; } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT2); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT3); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT4); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT5); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT6); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT7); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT8); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT9); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT10); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT11); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT12); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT13); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT14); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT15); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT16); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT17); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT18); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT19); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT20); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT21); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT22); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT23); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT24); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT25); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT26); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT27); } } instance of movieClip 256 { onClipEvent (load) { _root.createBox(this, _root.TUT28); } } frame 30 { _root.suonoBop.start(); if (suoni) { _root.suonoBeep.setVolume(100); } _root.riprendi(); _root.tutorial._visible = false; } } instance tutorial of movieClip 320 { onClipEvent (load) { this._visible = false; } } movieClip 325 { frame 1 { stop(); } } movieClip 363 { frame 1 { stop(); } } 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'); } frame 3 { stopAllSounds(); SOLDI_INIZIALI = 50000; soldi = SOLDI_INIZIALI; soia = 2000; 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 = 500; vacche = 0; soia = 0; RENDITA_SOIA = 200; FERTILITA_MAX = 180; DIVISORE_FERTILITA = 2; FERTILITA_ALLARME = 50; MOLTIPLICATORE_OGM = 1.4; MOLTIPLICATORE_SCARTI = 1.2; 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 = 3; MAX_VACCHE = 20; PESO_INIZIALE = 500; PESO_FINALE = 1000; INGRASSO_MENSILE1 = 40; INGRASSO_MENSILE2 = 50; INGRASSO_MENSILE3 = 60; BONUS_ORMONI = 60; PESO_MINIMO = 300; BONUS_FARINE = 30; 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; CONSUMATORI_MULTA = 6000; OBESI_MULTA = 9000; IDfinestra = 99999; 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; 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 = 150; COSTO_PASCOLO_MESE = 150; COSTO_OGM = 20; COSTO_ORMONI = 10; 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 = 6; ALIMENTARISTA_EFFICACIA = 6; 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; } movieClip 364 { } movieClip 376 { } movieClip 378 { frame 1 { this.onEnterFrame = function () { testocosto.text = _root.testocosto; testohelp.text = _root.testohelp; }; } } movieClip 443 { frame 1 { stop(); } frame 1 { help._visible = false; } frame 1 { this.onEnterFrame = function () { soiafutura.text = _root.soiafutura; vacchefuture.text = _root.vacchefuture; }; STR_AGRICOLTURA.text = _root.STR_AGRICOLTURA; STR_VACCHE.text = _root.STR_VACCHE; STR_SOIA.text = _root.STR_SOIA; } frame 2 { help._visible = false; } frame 3 { help._visible = false; } frame 3 { STR_GRANO.text = _root.STR_GRANO; STR_CORRUZIONE.text = _root.STR_CORRUZIONE; } frame 4 { help._visible = false; } frame 5 { help._visible = false; } frame 5 { STR_FORESTA.text = _root.STR_FORESTA; FORESTA_DESCRIZIONE.text = _root.FORESTA_DESCRIZIONE; } frame 6 { help._visible = false; } frame 7 { help._visible = false; } frame 7 { STR_VILLAGGIO.text = _root.STR_VILLAGGIO; VILLAGGIO_DESCRIZIONE.text = _root.VILLAGGIO_DESCRIZIONE; } frame 8 { help._visible = false; } frame 9 { help._visible = false; } frame 9 { STR_SOIA.text = _root.STR_SOIA; STR_FERTILITA.text = _root.STR_FERTILITA; this.onEnterFrame = function () { fertilita.text = _root.fertilita; }; } frame 10 { help._visible = false; } frame 10 { STR_SOIA.text = _root.STR_SOIA; STR_FERTILITA.text = _root.STR_FERTILITA; this.onEnterFrame = function () { fertilita.text = _root.fertilita; }; } frame 11 { help._visible = false; } frame 11 { STR_ALLEVAMENTO.text = _root.STR_ALLEVAMENTO; STR_FERTILITA.text = _root.STR_FERTILITA; this.onEnterFrame = function () { fertilita.text = _root.fertilita; }; } frame 12 { help._visible = false; } frame 12 { STR_MARE.text = _root.STR_MARE; STR_CALOTTEPOLARI.text = _root.STR_CALOTTEPOLARI; this.onEnterFrame = function () { calottepolari.text = _root.calottepolari; }; } frame 13 { help._visible = false; } frame 13 { STR_CITTA.text = _root.STR_CITTA; STR_PROVVISTE.text = _root.STR_PROVVISTE; this.onEnterFrame = function () { statocitta.text = _root.statocitta; }; } frame 14 { help._visible = false; } frame 14 { STR_DESERTO.text = _root.STR_DESERTO; STR_DESERTODESCRIZIONE.text = _root.STR_DESERTODESCRIZIONE; this.onEnterFrame = function () { statocitta.text = _root.statocitta; }; } frame 15 { help._visible = false; } frame 15 { STR_PESO.text = _root.STR_PESO; STR_SALUTE.text = _root.STR_SALUTE; this.onEnterFrame = function () { nomecorrente.text = _root.nomecorrente; pesocorrente.text = _root.pesocorrente; salutecorrente.text = _root.salutecorrente; }; } frame 16 { help._visible = false; } frame 17 { help._visible = false; } frame 17 { STR_CISTERNA.text = _root.STR_CISTERNA; STR_MANGIME.text = _root.STR_MANGIME; STR_CAPIENZA.text = _root.STR_CAPIENZA; MAX_MANGIME.text = _root.STR_CAPIENZA; this.onEnterFrame = function () { mangime.text = _root.mangime; }; } frame 18 { help._visible = false; } frame 18 { STR_MACELLO.text = _root.STR_MACELLO; STR_HAMBURGERFATTI.text = _root.STR_HAMBURGERFATTI; this.onEnterFrame = function () { hamburgerfatti.text = _root.hamburgerfatti; }; } frame 19 { help._visible = false; } frame 20 { help._visible = false; } frame 20 { STR_DIPENDENTE.text = _root.STR_DIPENDENTE; STR_MOTIVAZIONE.text = _root.STR_MOTIVAZIONE; this.onEnterFrame = function () { str_motivazione.text = _root.str_motivazione; }; } frame 21 { help._visible = false; } frame 21 { DESCRIZIONE_LINEA.text = _root.DESCRIZIONE_LINEA; STR_LINEAVUOTA.text = _root.STR_LINEAVUOTA; } frame 22 { help._visible = false; } frame 22 { DESCRIZIONE_CASSA.text = _root.DESCRIZIONE_CASSA; STR_CASSAVUOTA.text = _root.STR_CASSAVUOTA; } frame 23 { help._visible = false; } frame 24 { help._visible = false; } frame 24 { STR_CDA.text = _root.STR_CDA; DESCRIZIONE_CDA.text = _root.DESCRIZIONE_CDA; } frame 25 { help._visible = false; } frame 25 { STR_PUBBLICITA.text = _root.STR_PUBBLICITA; DESCRIZIONE_PUBBLICITA.text = _root.DESCRIZIONE_PUBBLICITA; } frame 26 { help._visible = false; } frame 26 { STR_PR.text = _root.STR_PR; DESCRIZIONE_PR.text = _root.DESCRIZIONE_PR; } frame 27 { help._visible = false; } frame 27 { STR_VUOTO.text = _root.STR_VUOTO; STR_FERTILITA.text = _root.STR_FERTILITA; this.onEnterFrame = function () { fertilita.text = _root.fertilita; }; } frame 28 { help._visible = false; } frame 28 { STR_MANGIME.text = _root.STR_MANGIME; STR_VACCHE.text = _root.STR_VACCHE; STR_ALLEVAMENTO.text = _root.STR_ALLEVAMENTO; this.onEnterFrame = function () { vacche.text = _root.vacche; mangime.text = _root.mangime; }; } frame 29 { help._visible = false; } frame 29 { STR_PANINI.text = _root.STR_PANINI; STR_HAMBURGER.text = _root.STR_HAMBURGER; STR_RETAIL.text = _root.STR_RETAIL; this.onEnterFrame = function () { panini.text = _root.panini; hamburger.text = _root.hamburger; }; } frame 30 { help._visible = false; } frame 30 { STR_BRAND.text = _root.STR_BRAND; DESCRIZIONE_BRAND.text = _root.DESCRIZIONE_BRAND; } } button 449 { 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(); } } button 451 { 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(); } } button 452 { 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(); } } button 453 { 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(); } } movieClip 462 { } movieClip 464 { } movieClip 465 { frame 4 { gotoAndPlay('roll'); } } instance normal of movieClip 465 { onClipEvent (rollOver) { _root.help(_root.HLP_NORMALE); } onClipEvent (rollOut) { _root.nohelp(); } } movieClip 475 { frame 1 { stop(); } frame 3 { gotoAndStop('verde'); } frame 6 { gotoAndPlay('rosso'); } } movieClip 478 { } movieClip 480 { } movieClip 481 { frame 1 { stop(); } } frame 4 { function everyweek() { if (timeabs == 1) { i = 0; while (i < _root.VACCHE_INIZIALI) { nuovavacca(); ++i; } } ++timeabs; if (timeabs > 3) { 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); yearField.text = year; monthField.text = str_month; soldiField.text = soldi; } function everymonth() { if (month >= 12) { month = 0; ++year; ++absyear; if (_root.MIN_GUADAGNO < _root.MAX_GUADAGNO) { _root.MIN_GUADAGNO += _root.ASPETTATIVA; } if (absyear != 0 && absyear % _root.MAX_YEAR == 0) { 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 += STR_ENTRATE + ': '; bilancio += entrate + '\n'; bilancio += STR_USCITE + ': '; bilancio += uscite + '\n'; guadagno = entrate - uscite; bilancio += STR_GUADAGNO + ': ' + guadagno + '\n'; allarme_output = ''; if (guadagno < MIN_GUADAGNO) { allarme_cda += ALLARMISMO_CDA; } else { if (guadagno < 0) { allarme_cda += ALLARMISMO_CDA * 2; } else { if (allarme_cda > 0) { allarme_cda -= ALLARMISMO_CDA; } } } if (allarme_cda >= MAX_ALLARME) { allarme_cda = MAX_ALLARME; allarme_output = STR_CRESCITA; } if (soldi < BANCAROTTA / 2) { 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 += STR_SALDO + ': ' + soldi + '$\n\n'; entrate = 0; uscite = 0; 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) { --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 *= MOLTIPLICATORE_OGM; } if (scarti == true) { m *= MOLTIPLICATORE_SCARTI; } m = Math.round(m); 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 += 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 += 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 contMenu(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 += 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 += '%'; } } function desertificazione() { i = 1; while (i < TOT_TILES) { if (piano['tile' + i].tipo == 'allevamento') { 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 += 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) { contMenu('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); contMenu(_root.tilecorrente, 'forestaattesa'); spendi(COSTO_PASCOLOFORESTA, VOCE_PASCOLOFORESTA); _root.ecologisti += ECOLOGISTI_FORESTE; _root.noglobal += NOGLOBAL_FORESTE; } else { if (piano[_root.tilecorrente].tipo == 'villaggio') { piano[_root.tilecorrente].nuovoutilizzo = 'allevamento'; piano[_root.tilecorrente].gotoAndPlay('incendio'); contMenu(_root.tilecorrente, 'villaggioattesa'); spendi(COSTO_PASCOLOFORESTA, VOCE_PASCOLOVILLAGGIO); 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'); contMenu(_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'); contMenu(_root.tilecorrente, 'forestaattesa'); spendi(COSTO_SOIAFORESTA, VOCE_SOIAFORESTA); ecologisti += ECOLOGISTI_FORESTE; noglobal += NOGLOBAL_FORESTE; } else { if (piano[_root.tilecorrente].tipo == 'villaggio') { startLoop('abbattimento', _root.tilecorrente); piano[_root.tilecorrente].nuovoutilizzo = 'attesasoia'; piano[_root.tilecorrente].gotoAndPlay('incendio'); contMenu(_root.tilecorrente, 'villaggioattesa'); spendi(COSTO_SOIAFORESTA, VOCE_SOIAVILLAGGIO); 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); } contMenu(_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() { piano[_root.tilecorrente].tipo = 'allevamento'; if ('allevamento') { guadagna(COSTO_PASCOLO / 2); } else { guadagna(COSTO_SOIA / 2); } piano[_root.tilecorrente].gotoAndStop('vuoto'); contMenu(_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 += '%'; } 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].appetito + BONUS_ORMONI; } else { allevamento['vacca' + i].peso += allevamento['vacca' + i].appetito; } } if (mangime <= 0) { 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 -= 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 -= RISCHIOSCARTI; } if (ormoni == true) { sicurezza -= RISCHIOORMONI; } ogm = 0; t = 1; while (t < TOT_TILES) { if (piano['tile' + t].ogm == true) { ++ogm; } ++t; } 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 += ALLARME_TROPPEVACCHE; } if (vacche <= 0) { allarmeallevamento += ALLARME_NOVACCHE; } if (mangime < 200) { allarmeallevamento += ALLARME_MANGIMESCARSO; } if (mangime >= MAX_MANGIME) { 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 += ALLARME_MALATTIA; } if (allarmebse) { 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) { fila3 = 0; fila2 = 0; fila1 = 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] += 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 += fila1; } else { retail.fila1.clienti = MAXCLIENTI; } if (retail.fila2.clienti + fila2 <= MAXCLIENTI) { retail.fila2.clienti += fila2; } else { retail.fila2.clienti = MAXCLIENTI; } if (retail.fila3.clienti + fila3 <= MAXCLIENTI) { 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_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 += retail.linea1.motivazione; } if (retail.linea2.attiva == true) { ++num; som += retail.linea2.motivazione; } if (retail.linea3.attiva == true) { ++num; som += retail.linea3.motivazione; } if (retail.cassa1.attiva == true) { ++num; som += retail.cassa1.motivazione; } if (retail.cassa2.attiva == true) { ++num; som += retail.cassa2.motivazione; } if (retail.cassa3.attiva == true) { ++num; som += retail.cassa3.motivazione; } if (num > 2 && som / num < 2.5) { allarmeretail = ALLARME_MOTIVAZIONE; } if (hamburger < 3) { allarmeretail += ALLARME_MACELLAZIONE; } else { if (hamburger > MAX_HAMBURGER - 10) { allarmeretail += ALLARME_FRIGO; } } if (attive.length < 3 && (retail.fila1.clienti >= MAXCLIENTI - 1 || retail.fila2.clienti >= MAXCLIENTI - 1 || retail.fila3.clienti >= MAXCLIENTI - 1)) { allarmeretail += ALLARME_FILA; if (panini <= 2) { allarmeretail += ALLARME_GRILLMEN; return 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_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; for (;;) { if (!(i <= IDfinestra && aperta == false)) break; 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 -= somma; _root.uscite += somma; if (voce != undefined) { _root.bilancio += voce + ': ' + somma + '$\n'; } } function guadagna(somma) { _root.soldi += somma; _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_DESERTIFICAZIONE; } if (piano['tile' + i].ogm == true) { consumatori += CONSUMATORI_OGM; } ++i; } if (statocitta == STR_DISABITATA) { noglobal += NOGLOBAL_CITTA * 3; } else { if (statocitta == STR_ALLARMANTE) { noglobal += NOGLOBAL_CITTA * 2; } else { if (statocitta == STR_SCARSO) { noglobal += NOGLOBAL_CITTA; } } } if (brand.bambini) { noglobal += NOGLOBAL_PUBBLICITA; } if (affluenza >= 2) { obesi += OBESI_CRESCITA; } if (affluenza < 2) { obesi -= OBESI_DECRESCITA; } if (brand.climatologo) { ecologisti -= CLIMATOLOGO_EFFICACIA; } if (brand.politico) { noglobal -= POLITICO_EFFICACIA; sindacati -= POLITICO_EFFICACIA; } if (brand.ispettore) { consumatori -= ISPETTORE_EFFICACIA; } if (brand.terzomondo) { noglobal -= TERZOMONDO_EFFICACIA; } if (brand.alimentazione) { obesi -= ALIMENTAZIONE_EFFICACIA; } 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 + '\n' + 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 + '\n' + 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 += 2; } if (brand.bambini) { affluenza += 1; } if (brand.alimentazione) { affluenza += 1; } if (brand.terzomondo) { 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.piano2) { 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.piano2.attachMovie('piano', 'grafico', 1, {'_x': 0, '_y': 0}); _root.pianofinestre.finestra_stat.piano2.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 + '\n', '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 + '\n'; 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) { contMenu(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 () { trace(this._currentframe + ' ' + _root.hamburgerdafare); if (this._currentframe == 2 && _root.hamburgerdafare > 0) { trace('Hamb da fare ' + _root.hamburgerdafare); ++_root.hamburgerfatti; _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; } movieClip 486 { } movieClip 487 { } movieClip 488 { } movieClip 489 { } movieClip 490 { frame 1 { stop(); } } movieClip 492 { } movieClip 493 { frame 1 { stop(); } frame 14 { gotoAndPlay('roll'); } frame 28 { gotoAndPlay('on'); } } movieClip 494 { } movieClip 498 { } movieClip 499 { } movieClip 500 { frame 13 { gotoAndPlay(1); } frame 14 { _root.suonoClick.start(); } frame 26 { stop(); } } movieClip 503 { } movieClip 504 { frame 1 { stop(); } frame 5 { stop(); } frame 8 { gotoAndStop(1); } } movieClip 512 { frame 1 { stop(); } } movieClip 514 { } movieClip 526 { } movieClip 537 { } movieClip 551 { } movieClip 565 { } movieClip 578 { } movieClip 593 { } movieClip 595 { } movieClip 620 { } movieClip 629 { } movieClip 639 { } movieClip 650 { } movieClip 656 { } movieClip 664 { } movieClip 690 { frame 28 { gotoAndPlay('azione' + (random(3) + 1)); } frame 36 { gotoAndPlay('azione1'); } frame 94 { gotoAndPlay('azione1'); } } movieClip 722 { frame 12 { azione = random(5) + 1; gotoAndPlay('azione' + azione); } frame 29 { gotoAndPlay('azione1'); } frame 59 { gotoAndPlay('azione1'); } frame 82 { gotoAndPlay('azione1'); } frame 84 { if (zona == 'agricoltura') { _root['suonoMucca' + (random(3) + 1)].start(); } } frame 98 { gotoAndPlay('azione1'); } } movieClip 723 { } movieClip 725 { } movieClip 734 { } movieClip 735 { frame 10 { stop(); } } movieClip 737 { } movieClip 739 { } movieClip 740 { frame 5 { stop(); } frame 27 { if (zona == 'agricoltura') { _root.suonoBraccio.stop('braccio'); _root.suonoBraccio.start(); } } frame 32 { if (zona == 'agricoltura') { _root.suonoBraccioSu.stop('bracciosu'); _root.suonoBraccioSu.start(); } } frame 40 { _root.nuovavacca(); gotoAndPlay(1); } } movieClip 754 { } movieClip 755 { frame 1 { stop(); } instance menu of movieClip 192 menucontestuale { onClipEvent (load) { this._visible = false; } } frame 5 { nuovoutilizzo = 'soia'; } frame 42 { _root.stopLoop('aratura', this._name); } frame 45 { nuovoutilizzo = undefined; stop(); } frame 53 { stop(); } frame 62 { stop(); } frame 93 { _root.suonoMietitura.stop('mietitura'); } frame 97 { stop(); } frame 109 { stop(); } frame 157 { stop(); } frame 165 { stop(); } frame 196 { _root.suonoMietitura.stop('mietitura'); } frame 202 { stop(); } frame 211 { stop(); } frame 212 { } frame 241 { _root.stopLoop('abbattimento', this._name); } 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'); } } frame 252 { intensita = 2; if (random(3) == 0) { gotoAndStop('allevamento1'); } else { if (random(3) == 1) { gotoAndStop('allevamento2'); } else { gotoAndStop('allevamento3'); } } } instance vacca3 of movieClip 740 { onClipEvent (load) { this._visible = false; } } frame 288 { _root.stopLoop('abbattimento', this._name); } 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'); } } } movieClip 758 { } movieClip 759 { frame 1 { stop(); } frame 5 { stop(); } frame 9 { gotoAndStop(1); } } movieClip 761 { } movieClip 762 { } button 763 { on (press) { _root.corrompisindaco(); this._visible = false; _root.nohelp(); } on (rollOver) { _root.help(_root.HLP_CORROMPISINDACO, _root.COSTO_SINDACO); } on (rollOut) { _root.nohelp(); } } movieClip 765 { } movieClip 768 { } movieClip 769 { instance mare of movieClip 494 { onClipEvent (rollOver) { _root.interfaccia = 1; if (_root.piano.tastomare._visible == false) { _root.resetSelections(); } if (selezione._currentframe < 14) { selezione.gotoAndPlay('roll'); } } onClipEvent (rollOut) { _root.interfaccia = 0; if (selezione._currentframe < 14) { selezione.gotoAndPlay('off'); } } onClipEvent (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 citta2 of movieClip 504 { } instance tile20 of movieClip 755 { onClipEvent (load) { this.tipo = 'foresta'; gotoAndStop('foresta'); } } instance tile19 of movieClip 755 { onClipEvent (load) { this.tipo = 'foresta'; gotoAndStop('foresta'); } } instance tile18 of movieClip 755 { onClipEvent (load) { this.tipo = 'attesagrano'; gotoAndStop('granovuoto'); } } instance tile17 of movieClip 755 { onClipEvent (load) { this.tipo = 'foresta'; gotoAndStop('foresta'); } } instance tile16 of movieClip 755 { onClipEvent (load) { this.tipo = 'foresta'; gotoAndStop('foresta'); } } instance citta1 of movieClip 759 { } instance tile15 of movieClip 755 { onClipEvent (load) { this.tipo = 'attesagrano'; gotoAndStop('granovuoto'); } } instance tile14 of movieClip 755 { onClipEvent (load) { this.tipo = 'foresta'; gotoAndStop('foresta'); } } instance tile13 of movieClip 755 { onClipEvent (load) { this.tipo = 'foresta'; gotoAndStop('foresta'); } } instance tile9 of movieClip 755 { onClipEvent (load) { this.tipo = 'attesagrano'; gotoAndStop('granovuoto'); } } instance tile12 of movieClip 755 { onClipEvent (load) { this.tipo = 'attesagrano'; gotoAndStop('granovuoto'); } } instance tile11 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance tile8 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance tile10 of movieClip 755 { onClipEvent (load) { this.tipo = 'villaggio'; this.gotoAndStop('villaggio'); } } instance tile7 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance tile6 of movieClip 755 { onClipEvent (load) { this.tipo = 'foresta'; gotoAndStop('foresta'); } } instance tile5 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance tile4 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance tile3 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance tile2 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance tile1 of movieClip 755 { onClipEvent (load) { this.tipo = 'vuoto'; } } instance of movieClip 762 { onClipEvent (load) { _root.piano.tastocorrompi._visible = false; _root.piano.tastoinfo._visible = false; } onClipEvent (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'); } } onClipEvent (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 tastocorrompi of movieClip 765 { } instance tastoinfo of movieClip 768 { onClipEvent (load) { this.tasto.onRelease = function () { _root.nuovaFinestra(_root.CITTA_TITOLO, _root.CITTA_TESTO, 'citta'); }; } } instance tastomare of movieClip 768 { onClipEvent (load) { this.tasto.onRelease = function () { _root.nuovaFinestra(_root.CALOTTE_TITOLO, _root.CALOTTE_TESTO, 'calotte'); }; } } } movieClip 776 { frame 4 { stop(); } } movieClip 779 { } movieClip 780 { } movieClip 781 { frame 13 { gotoAndPlay(1); } frame 14 { _root.suonoClick.start(); } } movieClip 783 { } movieClip 784 { } movieClip 787 { } movieClip 795 { frame 1 { if (zona == 'allevamento') { _root.loopMacchina.start(); } } frame 17 { stop(); } } movieClip 798 { } movieClip 799 { } movieClip 803 { frame 28 { if (_root.hamburgerdafare > 0 && _root.hamburger < _root.MAX_HAMBURGER) { _root.hamburger += 3; } } frame 29 { stop(); } } movieClip 807 { frame 1 { stop(); } } movieClip 809 { } movieClip 812 { } movieClip 813 { } movieClip 814 { frame 13 { gotoAndPlay(1); } frame 14 { _root.suonoClick.start(); } frame 26 { stop(); } } movieClip 815 { } movieClip 827 { frame 1 { stop(); } } movieClip 837 { } movieClip 839 { } movieClip 845 { } movieClip 847 { } movieClip 848 { } movieClip 851 { } movieClip 852 { frame 1 { stop(); } frame 10 { gotoAndPlay('on'); } } movieClip 856 { } movieClip 864 { } movieClip 865 { frame 1 { stop(); } frame 2 { if (zona == 'allevamento') { _root.suonoBraccio.start(); } } frame 7 { if (zona == 'allevamento') { _root.suonoFiamma.start(); } } frame 7 { lancia.fiamma.play(); } frame 10 { _parent.gotoAndPlay('bruciato'); _parent.presente = 0; } } movieClip 867 { } movieClip 871 { frame 10 { stop(); } } movieClip 872 { frame 28 { gotoAndPlay('azione' + (random(3) + 1)); } frame 36 { gotoAndPlay('azione1'); } frame 94 { gotoAndPlay('azione1'); } } movieClip 873 { } movieClip 886 { } movieClip 887 { frame 1 { if (_root.mangime <= 0) { gotoAndPlay('randomizza'); } } frame 23 { azione = random(5) + 1; gotoAndPlay('azione' + azione); } frame 40 { gotoAndPlay('azione1'); } frame 70 { gotoAndPlay('azione1'); } frame 93 { gotoAndPlay('azione1'); } frame 95 { if (zona == 'allevamento') { _root['suonoMucca' + (random(3) + 1)].start(); } } frame 109 { gotoAndPlay('azione1'); } frame 130 { gotoAndPlay('muccapazza'); } frame 140 { if (_root.mangime <= 0) { gotoAndPlay('malata'); } } frame 152 { gotoAndPlay('malata'); } } movieClip 891 { } movieClip 892 { } button 894 { on (press) { _root.abbatti(); } on (rollOver) { _root.help(_root.HLP_ABBATTI); } on (rollOut) { _root.nohelp(); } } movieClip 896 { frame 13 { gotoAndPlay(1); } frame 14 { _root.suonoClick.start(); } frame 27 { stop(); } } movieClip 899 { } movieClip 908 { } movieClip 910 { frame 10 { stop(); } } movieClip 929 { } movieClip 930 { frame 1 { stop(); } frame 2 { if (zona == 'allevamento') { _root.suonoBraccio.stop('braccio'); _root.suonoBraccio.start(); } } frame 11 { gotoAndStop(13); } instance of movieClip 899 { onClipEvent (load) { _parent.selezione.gotoAndStop('off'); } onClipEvent (rollOver) { _root.interfaccia = 1; if (_parent.selezione._currentframe == 28) { _root.deselezionaall(); _parent.selezione.gotoAndPlay('roll'); } } onClipEvent (rollOut, dragOut) { _root.interfaccia = 0; if (_parent.selezione._currentframe <= 14) { _parent.selezione.gotoAndStop('off'); } } onClipEvent (release) { if (_parent.selezione._currentframe < 14) { _root.deselezionaall(); _parent.selezione.gotoAndPlay('on'); _root.vaccacorrente = _parent._name; _root.selezionavacca(); } else { _parent.selezione.gotoAndPlay('roll'); } } } frame 13 { stop(); } frame 28 { if (zona == 'allevamento') { _root.suonoBraccioSu.stop('bracciosu'); _root.suonoBraccioSu.start(); } } frame 45 { if (zona == 'allevamento') { _root.suonoMacello.stop('muccamacellata'); _root.suonoMacello.start(); } } frame 46 { trace('ERROR HAPPENS HERE ' + _root.hamburgerdafare + ' ' + _root.HAMBURGER_VACCA); _root.hamburgerdafare += _root.HAMBURGER_VACCA; trace('SUM ' + _root.hamburgerdafare); if (malata == true) { _root.consumatori += _root.CONSUMATORI_MALATA; } if (bse == true) { _root.consumatori += _root.CONSUMATORI_BSE; } presente = 0; peso = 0; bse = false; malata = false; if (this._name == _root.vaccacorrente) { _root.menu.gotoAndStop('nullaall'); } if (_root.farineanimali == true) { _root.mangime += _root.BONUS_FARINE; } gotoAndStop(1); } frame 57 { presente = 0; peso = 0; bse = false; malata = false; if (this._name == _root.vaccacorrente) { _root.menu.gotoAndStop('nullaall'); } gotoAndStop(1); } frame 58 { if (zona == 'allevamento') { _root.suonoMuccaMorta.stop('muccamorta'); _root.suonoMuccaMorta.start(); } } frame 62 { presente = 0; if (this._name == _root.vaccacorrente) { _root.menu.gotoAndStop('nullaall'); } } frame 102 { presente = 0; peso = 0; bse = false; malata = false; gotoAndStop(1); } } movieClip 941 { } movieClip 942 { } movieClip 943 { } button 944 { on (rollOver) { _root.resetretail(); } on (press) { _root.nuovaFinestra(_root.ALLARME_ALLEVAMENTO_TITOLO, _root.allarmeallevamento, 'ingrasso'); } } movieClip 960 { frame 4 { gotoAndPlay('giu'); } frame 8 { gotoAndPlay('su'); } frame 9 { if (_root.allarmiallevamento()) { this._parent.stop(); _root.alm_allevamento.gotoAndPlay('on'); } else { this._parent.play(); gotoAndPlay('giu'); _root.alm_allevamento.gotoAndStop('off'); } } frame 11 { if (zona == 'allevamento') { _root.suonoHey.start(); } } frame 22 { if (zona == 'allevamento') { _root.suonoHey.start(); } } frame 64 { gotoAndPlay('allarme'); } frame 84 { gotoAndPlay('giu'); this._parent.play(); } frame 106 { gotoAndPlay('su'); this._parent.play(); } } movieClip 961 { frame 1 { stop(); direzione.gotoAndPlay('controllogiu'); } frame 17 { direzione.gotoAndPlay('allarme'); } frame 40 { stop(); direzione.gotoAndPlay('controllosu'); } } movieClip 965 { instance tastofarineanimali of movieClip 183 { onClipEvent (load) { if (_root.farineanimali == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root.HLP_FARINEANIMALI, 0); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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'); } } } } movieClip 967 { instance tastoormoni of movieClip 183 { onClipEvent (load) { if (_root.ormoni == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root.HLP_ORMONI, _root.COSTO_ORMONI, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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'); } } } } movieClip 969 { instance tastoscarti of movieClip 183 { onClipEvent (load) { if (_root.scarti == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root.HLP_SCARTI, 0); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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'); } } } } movieClip 970 { instance macina of movieClip 784 { onClipEvent (load) { this.selezione.gotoAndStop('off'); } onClipEvent (rollOver) { if (this.selezione._currentframe == 27) { _root.deselezionaall(); this.selezione.gotoAndPlay('roll'); } _root.interfaccia = 1; } onClipEvent (rollOut, dragOut) { _root.interfaccia = 0; if (this.selezione._currentframe < 13) { this.selezione.gotoAndStop('off'); } } onClipEvent (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 cisterna of movieClip 815 { onClipEvent (load) { this.selezione.gotoAndStop('off'); } onClipEvent (rollOver) { if (this.selezione._currentframe == 27) { _root.deselezionaall(); this.selezione.gotoAndPlay('roll'); } _root.interfaccia = 1; } onClipEvent (rollOut, dragOut) { _root.interfaccia = 0; if (this.selezione._currentframe < 13) { this.selezione.gotoAndStop('off'); } } onClipEvent (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 ormoni of movieClip 837 { onClipEvent (enterFrame) { if (_root.ormoni == true) { play(); } else { gotoAndStop(10); } } } instance cist of movieClip 848 { onClipEvent (load) { _root.gestionecisterna(); } } instance tastofarine of movieClip 965 { onClipEvent (load) { this._visible = false; } } instance tastoormoni of movieClip 967 { onClipEvent (load) { this._visible = false; } } instance tastoscarti of movieClip 969 { onClipEvent (load) { this._visible = false; } } } instance allevamento of movieClip 970 { onClipEvent (load) { this._visible = false; } } movieClip 973 { } movieClip 976 { } movieClip 979 { } movieClip 980 { } movieClip 981 { frame 20 { gotoAndPlay('roll'); } } movieClip 989 { } movieClip 996 { } movieClip 1008 { frame 1 { stop(); } frame 7 { gotoAndStop(1); } } movieClip 1019 { frame 4 { stop(); } frame 18 { stop(); } } movieClip 1024 { } movieClip 1040 { frame 7 { gotoAndPlay(1); } } movieClip 1042 { frame 1 { stop(); } instance faccia of movieClip 1024 { onClipEvent (load) { etnia = random(this._totalframes) + 1; gotoAndStop(etnia); this._parent.braccia.bsx.gotoAndStop(etnia); this._parent.braccia.bdx.gotoAndStop(etnia); } } } movieClip 1050 { } movieClip 1051 { frame 7 { stop(); } } movieClip 1063 { frame 1 { omino.braccia.gotoAndStop(1); } frame 1 { omino.gotoAndStop(2); omino.faccia.bocca.gotoAndStop(this.motivazione); } instance selezione of movieClip 981 { onClipEvent (load) { this.gotoAndStop('off'); } onClipEvent (rollOut) { _root.interfaccia = 0; if (this._currentframe < 21) { this.gotoAndStop('off'); } } onClipEvent (rollOver) { if (this._currentframe == 22) { _root.postazione = this._parent._name; _root.resetretail(); this.gotoAndPlay('roll'); } } onClipEvent (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'); } } } frame 2 { omino.braccia.gotoAndPlay(1); if (_root.hamburger > 0) { cottura._visible = true; } else { cottura._visible = false; } } frame 3 { if (zona == 'retail') { _root.suonoLinea.start(); } } frame 12 { gotoAndStop(1); } } movieClip 1076 { } movieClip 1078 { } movieClip 1085 { } movieClip 1086 { frame 4 { stop(); } } movieClip 1087 { frame 1 { stop(); } } movieClip 1091 { } movieClip 1092 { } movieClip 1093 { frame 20 { gotoAndPlay('roll'); } } movieClip 1101 { frame 1 { omino.faccia.bocca.gotoAndStop(motivazione); } instance selezione of movieClip 1093 { onClipEvent (load) { this.gotoAndStop('off'); } onClipEvent (rollOver) { if (this._currentframe == 22) { _root.postazione = this._parent._name; _root.resetretail(); this.gotoAndPlay('roll'); } } onClipEvent (rollOut) { _root.interfaccia = 0; if (this._currentframe < 21) { this.gotoAndStop('off'); } } onClipEvent (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'); } } } frame 5 { if (zona == 'retail') { _root.suonoCassa.start(); } } frame 9 { stop(); } } movieClip 1103 { 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(); } frame 2 { cliente.gambe.passi.play(); } frame 5 { cliente.gambe.passi.gotoAndStop(1); } } movieClip 1104 { } button 1107 { on (rollOver) { _root.resetretail(); } on (press) { _root.nuovaFinestra(_root.ALLARME_RETAIL_TITOLO, _root.allarmeretail, 'retail'); } } movieClip 1120 { frame 34 { if (!_root.controllaretail()) { gotoAndPlay('normale'); _root.alm_retail.gotoAndStop('off'); } else { _root.alm_retail.gotoAndPlay('on'); } } frame 44 { if (zona == 'retail') { _root.suonoHey.start(); } } frame 56 { if (zona == 'retail') { _root.suonoHey.start(); } } frame 107 { gotoAndPlay('allarme'); } } movieClip 1121 { instance fila3 of movieClip 1104 { onClipEvent (load) { function __f_load(eventObj) { r = 0; num = 3; clienti = 8; } this.addEventListener('load', __f_load); } } instance fila2 of movieClip 1104 { onClipEvent (load) { function __f_load(eventObj) { r = 0; num = 2; clienti = 8; } this.addEventListener('load', __f_load); } } instance fila1 of movieClip 1104 { onClipEvent (load) { function __f_load(eventObj) { r = 0; num = 1; } this.addEventListener('load', __f_load); } } } instance retail of movieClip 1121 { onClipEvent (load) { this._visible = false; } } movieClip 1124 { 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); } } movieClip 1128 { } movieClip 1129 { } movieClip 1130 { frame 20 { gotoAndPlay('roll'); } } movieClip 1133 { } movieClip 1134 { } movieClip 1135 { frame 20 { gotoAndPlay('roll'); } } movieClip 1139 { } movieClip 1140 { } movieClip 1141 { frame 20 { gotoAndPlay('roll'); } } movieClip 1158 { } movieClip 1180 { } movieClip 1198 { } button 1219 { on (rollOver) { _root.resetbrand(); } on (press) { _root.nuovaFinestra(_root.ALLARME_CDA_TITOLO, _root.allarme_output, 'cda'); } } movieClip 1228 { frame 26 { if (zona == 'brand') { r = random(6); _root['suonoVoci' + (r + 1)].start(); } } frame 65 { if (zona == 'brand') { r = random(6); _root['suonoVoci' + (r + 1)].start(); } } frame 82 { gotoAndPlay(1); } frame 93 { if (zona == 'brand') { _root.suonoHey.start(); } } frame 106 { if (zona == 'brand') { _root.suonoHey.start(); } } frame 143 { gotoAndPlay('allarme'); } } movieClip 1238 { } movieClip 1247 { instance of movieClip 1238 { onClipEvent (load) { this.gotoAndStop(this._parent._parent.capelli); } } 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(); } } } frame 11 { gotoAndStop('felice'); } 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(); } } } frame 21 { gotoAndStop('incazzato'); } } movieClip 1261 { frame 1 { f = random(7); gotoAndPlay('f' + f); } frame 34 { gotoAndPlay(1); } frame 35 { testa.play(); } frame 39 { gotoAndPlay(1); } frame 40 { testa.play(); } frame 45 { gotoAndPlay(1); } frame 46 { testa.play(); } frame 50 { gotoAndPlay(1); } frame 51 { testa.play(); } frame 55 { gotoAndPlay(1); } } movieClip 1272 { } movieClip 1273 { instance of movieClip 1272 { onClipEvent (load) { this.gotoAndStop(this._parent._parent.capelli); } } } movieClip 1282 { frame 1 { gotoAndPlay('f' + random(5)); } frame 41 { gotoAndPlay(1); } frame 48 { gotoAndPlay(1); } } movieClip 1305 { 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'); } } } } frame 19 { if (zona == 'brand') { _root.suonoTastiera.start(); } } frame 27 { gotoAndPlay('ferma'); } frame 32 { gotoAndPlay('ferma'); } frame 52 { gotoAndPlay('ferma'); } } movieClip 1321 { } movieClip 1327 { instance alimentazione of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_ALIMENTAZIONE, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 bambini of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_BAMBINI, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 terzomondo of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_TERZOMONDO, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 topolino of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_TOPOLINO, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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); } } } } movieClip 1331 { instance politico of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_POLITICO, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 climatologo of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_CLIMATOLOGO, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 alimentarista of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_ALIMENTARISTA, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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 ispettore of movieClip 183 { onClipEvent (load) { nome = this._name; NOME = nome.toUpperCase(); if (_root[nome] == true) { gotoAndStop('on'); } } onClipEvent (rollOver) { _root.help(_root[NOME + '_TITOLO'].toLowerCase(), _root.COSTO_ISPETTORE, 'mese'); if (this._currentframe == 1) { gotoAndStop('roll'); } } onClipEvent (rollOut, dragOut) { _root.nohelp(); if (this._currentframe != 3) { gotoAndStop('off'); } } onClipEvent (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); } } } } button 1332 { on (release) { _root.pianofinestre.finestra_detrattori._visible = true; } on (rollOver) { _root.help(_root.HLP_DETRATTORI); } on (rollOut) { _root.nohelp(); } } button 1333 { on (release) { _root.pianofinestre.finestra_stat._visible = true; _root.disegnaStat(); } on (rollOver) { _root.help(_root.HLP_GRAFICO); } on (rollOut) { _root.nohelp(); } } button 1334 { 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(); } } movieClip 1336 { } movieClip 1341 { } movieClip 1345 { } movieClip 1346 { frame 1 { stop(); } } movieClip 1347 { instance pubblicita of movieClip 1130 { onClipEvent (load) { this.gotoAndStop('off'); _root.brand.tastipubblicita._visible = false; } onClipEvent (rollOut) { _root.interfaccia = 0; if (this._currentframe < 21) { this.gotoAndStop('off'); } } onClipEvent (rollOver) { if (this._currentframe == 22) { _root.resetbrand(); this.gotoAndPlay('roll'); } } onClipEvent (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 cda of movieClip 1135 { onClipEvent (load) { this.gotoAndStop('off'); } onClipEvent (rollOut) { _root.interfaccia = 0; if (this._currentframe < 21) { this.gotoAndStop('off'); } } onClipEvent (rollOver) { if (this._currentframe == 22) { _root.resetbrand(); this.gotoAndPlay('roll'); } } onClipEvent (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 pr of movieClip 1141 { onClipEvent (load) { this.gotoAndStop('off'); _root.brand.tastipr._visible = false; } onClipEvent (rollOut) { _root.interfaccia = 0; if (this._currentframe < 21) { this.gotoAndStop('off'); } } onClipEvent (rollOver) { if (this._currentframe == 22) { _root.resetbrand(); this.gotoAndPlay('roll'); } } onClipEvent (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 az4 of movieClip 1261 { onClipEvent (load) { capelli = 4; } } instance az2 of movieClip 1261 { onClipEvent (load) { capelli = 2; } } instance az1 of movieClip 1261 { onClipEvent (load) { capelli = 1; } } instance az3 of movieClip 1261 { onClipEvent (load) { capelli = 5; } } instance of movieClip 1282 { onClipEvent (load) { capelli = 1; } } instance of movieClip 1282 { onClipEvent (load) { capelli = 4; } } instance of movieClip 1282 { onClipEvent (load) { capelli = 3; } } } instance brand of movieClip 1347 { onClipEvent (load) { this._visible = false; } } movieClip 1356 { frame 1 { stop(); } } movieClip 1363 { frame 1 { STR_DETRATTORI.text = _root.STR_DETRATTORI; CONSUMATORI.text = _root.CONSUMATORI; ECOLOGISTI.text = _root.ECOLOGISTI; SINDACATI.text = _root.SINDACATI; OBESI.text = _root.OBESI; NOGLOBAL.text = _root.NOGLOBAL; } } movieClip 1366 { frame 1 { titolo.text = _root.GRAFICO_TITOLO; } } movieClip 1371 { frame 1 { STR_MENU.text = _root.STR_MENU; } } movieClip 1372 { instance finestra_detrattori of movieClip 1363 { 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 finestra_stat of movieClip 1366 { 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 finestraMenu of movieClip 1371 { 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'); } } } } movieClip 1377 { frame 1 { stop(); STR_GAMEOVER.text = _root.STR_GAMEOVER; STR_GAMEOVERTXT.text = _root.STR_GAMEOVERTXT; } frame 2 { _root.suonoGameOver.start(); } } instance finestraGameOver of movieClip 1377 { onClipEvent (load) { this._visible = false; } }




http://swfchan.com/52/256598/info.shtml
Created: 20/7 -2024 08:38:17 Last modified: 20/7 -2024 08:38:29 Server time: 07/09 -2024 23:23:32