Frame 1
fscommand ("fullscreen", true);
fscommand ("showmenu", false);
loader.onEnterFrame = function () {
if ((_root._framesloaded >= 2) && (teaserOff == true)) {
_root.nextFrame();
}
};
_global.suoni = true;
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 = "Hamburger";
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 Jos\u00E8";
STR_ALLEVAMENTO = "Pasture";
STR_AGRICOLTURA = "Agricultural section";
STR_FERTILITA = "Fertility:";
STR_FORESTADESCRIZIONE = "Rainforest";
STR_VILLAGGIODESCRIZIONE = "A wild tribe has settled here";
STR_VILLAGGIODEMOLIZIONE = "Demolition in progress, please wait...";
STR_FORESTAABBATTIMENTO = "Demolition in progress, please wait...";
STR_DESERTODESCRIZIONE = "You can no longer do something profitable here";
STR_CORRUZIONE = "You have to corrupt the major to use this terrain";
STR_CORROTTO = "The major will grant you use of this field";
STR_ATTESASOIA = "Cropland will be seeded";
STR_CALOTTEPOLARI = "Polar ice is melting:";
STR_PROVVISTE = "Food supply:";
STR_VACCHE = "Beef cows";
FORESTA_DESCRIZIONE = "A millennia-old rainforest";
VILLAGGIO_DESCRIZIONE = "A wild tribe has settled here";
STR_BRAND = "Headquarters";
STR_CDA = "Board of directors";
STR_PUBBLICITA = "Marketing division";
STR_PR = "Public relations office";
STR_DETRATTORI = "Our detractors";
STR_PUNTO = "View this month budget";
DESCRIZIONE_BRAND = "This is the Burger Tycoon's decision center";
DESCRIZIONE_PUBBLICITA = "Set up advertising campaigns here";
DESCRIZIONE_CDA = "They are the bosses";
DESCRIZIONE_PR = "We like to call these kinds of activities PR";
STR_VAIRETAIL = "Go to fast food";
STR_VAIALLEVAMENTO = "Go to the feedlot";
STR_VAIAGRICOLTURA = "Go to the agricultural section";
STR_VAIBRAND = "Go to the headquarters";
STR_ALLEVAMENTO = "Feedlot";
STR_SALUTE = "Health:";
STR_SALUTE_OK = "Good";
STR_PESO = "Weight:";
STR_VACCA = "Cow";
STR_MANGIME = "Breed";
STR_CISTERNA = "Breed-o-matic";
STR_MACELLO = "Slaught-o-matic";
STR_HAMBURGERFATTI = "Hamburgers made";
STR_CAPIENZA = "Capacity:";
STR_MALATA = "Diseased";
STR_BSE = "Infected by mad cow disease";
STR_RETAIL = "Fast food";
STR_AFFLUENZA = "Customer flow:";
STR_HAMBURGER = "Hamburger 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 utilization";
HLP_ALLEVAMENTOMENO = "Decrease pasture utilization";
HLP_VILLAGGIOSOIA = "Demolish the village and grow soy";
HLP_VILLAGGIOALLEVAMENTO = "Demolish the village and create a pasture";
HLP_TRASFORMASOIA = "Convert to soy cropland";
HLP_TRASFORMAALLEVAMENTO = "Convert to pasture";
HLP_VENDITERRENO = "Sell the land";
HLP_CORROMPISINDACO = "Corrupt Sao Jos\u00E8 major";
HLP_ABBATTI = "Destroy the cow before slaughter";
HLP_SCARTI = "Add industrial waste to the fodder";
HLP_ORMONI = "Add hormones to the fodder";
HLP_FARINEANIMALI = "Use animal flour for the fodder";
HLP_OGM = "Use genetically modified soy";
HLP_ASSUMI = "Hire a crew member";
HLP_LICENZIA = "Fire this crew member";
HLP_PREMIA = "Reward the employee with a badge";
HLP_MOBBIZZA = "Discipline the employee";
HLP_MANAGER = "He will alert you when something is wrong";
HLP_BILANCIO = "View last month\u2019s budget";
HLP_DETRATTORI = "View the ire of our detractors";
HLP_GRAFICO = "View the profit trend";
HLP_NORMALE = "Normal speed";
HLP_FFWD = "Double speed";
STR_COSTO = "Cost: ";
STR_ALMESE = "per month";
STR_BILANCIO = "Budget in the month of ";
VOCE_STIPENDI = "Employees\u2019 wages";
VOCE_OGM = "OGM seed";
VOCE_ORMONI = "Hormones";
VOCE_PASCOLO = "Pasture land";
VOCE_PASCOLOFORESTA = "Forest-pasture conversion";
VOCE_PASCOLOVILLAGGIO = "Village-pasture conversion";
VOCE_SOIAFORESTA = "Forest-soy field conversion";
VOCE_SOIAVILLAGGIO = "Village-soy field conversion";
VOCE_SOIA = "Pasture land";
STR_INIZIO_ATTIVITA = "Budget not available";
STR_ENTRATE = "Receipts";
STR_USCITE = "Expenditure";
STR_GUADAGNO = "Profit";
STR_SALDO = "Balance";
STR_DETTAGLI = "Details";
ALLARME_CDA_TITOLO = "Board of directors alarm";
STR_CONTO = "We\u2019re losing too much money. We\u2019ll soon go bankrupt!\n";
STR_CRESCITA = "The growth is not sufficient!\n";
GRAFICO_TITOLO = "Profit trend";
STR_ARCHIVIO = "Budget archive";
ALLARME_ALLEVAMENTO_TITOLO = "Feedlot";
ALLARME_RETAIL_TITOLO = "Fast food";
ALIMENTARISTA_TITOLO = "Corrupt a nutritionist";
ALIMENTARISTA_TESTO = "The secrets of metabolism will probably never be known. And there is total uncertainty about cancerous food. Yesterday pork was unhealty, today it's tobacco and tomorrow\u2026 who knows! It all depends on the relations between the nutritionists on the many corporations\u2019 payrolls. Convince one of them you can disprove the general belief that the obesity trend is related to our business.";
POLITICO_TITOLO = "Corrupt a politician ";
POLITICO_TESTO = "It's useful to have powerful friends. Especially when our employees start to organize and ask for those obsolete \"working rights\" or when the anti-globalization movements rail against our brand. An influential politician can repress demonstrations and neutralize workers who instigate uprisings and revolts.";
CLIMATOLOGO_TITOLO = "Corrupt a climatologist";
CLIMATOLOGO_TESTO = "If we could avoid clearing rainforests, polluting water supplies with bovine excrement and contributing to global warming, we would. But we can\u2019t do it if we want to keep our profits high. Corrupting a climatologist is the best way to reassure the public opinion and assure the ecologists don't prevail.";
ISPETTORE_TITOLO = "Corrupt a health officer";
ISPETTORE_TESTO = "Public institutions have the bad habit of placing restrictions on freedom of enterprise. One of these restrictions is the health standards for meat production. Is in our interest to provide genuine food to our customers. We really don\u2019t need the bureaucrats' arbitrary opinions. You can \"facilitate\" the relations with health commissioners to make it more difficult for consumer associations to charge us for food poisoning cases.";
TOPOLINO_TITOLO = "Pack-in prizes";
TOPOLINO_TESTO = "Integrated marketing is the key to success. Creating partnerships with enterteinment industry leaders can maximize brand awareness. The campaign is founded in stealth advertising in children cartoons and co-branded happy meal gifts. It's a win-win formula but the operation will have high cost. It would be best to use it only if you can guarantee appropriate service for you customers.";
BAMBINI_TITOLO = "Children want Burgers";
BAMBINI_TESTO = "Children are a primary target for us. Their young minds are free from critical barriers and perfect for early adoption. Children also drive their parents\u2019 consumption habits with artful emotional extortions. Our ads will culture these responses.";
ALIMENTAZIONE_TITOLO = "The food pyramid";
ALIMENTAZIONE_TESTO = "A balanced diet is the secret to healthfulness. This campaign will explain how Burger Tycoon\u2019s meals are rich with fats and proteins, foundational substances for the production of antibodies. They strengthen bones and memory without damaging the organism. We will also use well-known testimonials such as anorexic top-models. With this campaign we also expect to weaken the obesity associations\u2019 claims.";
TERZOMONDO_TITOLO = "Burger Tycoon for the third world";
TERZOMONDO_TESTO = "Collective western guilt can be leveraged to generate profit. If we invest a ridiculous sum in third world peoples, we can win compassion from the middle class and erode the anti-globalization movement. The ads will show children with sad staring eyes and Ronald McBurger fighting poverty, represented as a monster from the outer space.";
CALOTTE_TITOLO = "Sea level";
CALOTTE_TESTO = "Scientists say if we destroy too many rainforests, we increase the CO2 in the atmosphere. This greenhouse gas causes global warming and melts polar ice caps. If polar ice caps melt, the sea level rises and there are climatic disasters. Unfortunately many people believe these superstitions and want to halt western progress to save the stupid icebergs. Let's make people take a look at the sea level and make the climatologists fall in line with us.";
CITTA_TITOLO = "Sao Jos\u00E8";
CITTA_TESTO = "The city of Sao Jos\u00E8 uses a lot of land to sustain itself. Often underdeveloped countries believe that grain for human consumption is more important than bovine pastures or soy cropland for fodder. Luckily, with a small small sum of money we can obtain permission to use common lands and bring richness to this corner of the world.";
ECOLOGISTI = "Environmentalists";
ECOLOGISTI_ALLARME = "Ecology has been a growing trend in recent years. According to this pseudo-religion every economic activity leads to the planet's destruction. Some fools are angry because we destroy forests, or they think pastures cause drought. At the moment they seem harmless but they are gaining followers and could start a defamation campaign against us.";
ECOLOGISTI_PROTESTA = "Radical environmentalist groups launched a subtle campaign against us. Our logo appears horribly subverted on their flyers and there is also a videogame with slanderous contents. It\u2019s conceivable that this mess will cause a drop of customer traffic for some months.";
NOGLOBAL = "Anti-globalization movements";
NOGLOBAL_ALLARME = "Sometimes a generation of bored youth comes along, displeased with everything. All around the world, activist groups that hate our golden arches are springing up. Some of them blame us for the third world\u2019s hunger, others say we destroy native tribes or lead children astray with our ads. We must prevent them from gaining enough momentum to start a boycott against us.";
NOGLOBAL_PROTESTA = "Anti-globalization movements have announced a boycott of our fast food. They\u2019re using independent media channels to spread their delirious theories -- and they have convinced many people. We are expecting a drop in customer traffic for some months.";
CONSUMATORI = "Consumers\u2019 associations";
CONSUMATORI_ALLARME = "More and more people are feeling sick after a meal of our fast food. Many people believe this is due to the lack of meat quality controls -- they claim that we slaughter diseased cows. Some even believe it is caused by a combination of genetically modified cattle and aggressive pesticides. Anyway we must avoid any charges of food poisoning to avoid a sanction.";
VOCE_CONSUMATORI_MULTA = "Sanction payment";
CONSUMATORI_PROTESTA = "Consumers\u2019 associations have declared war on Burger Tycoon. They obtained sufficient evidence to charge us for food poisoning. We have to pay a sanction and pay more attention in the future.";
SINDACATI = "Organized workers";
SINDACATI_ALLARME = "Groups of employees have organized and are complaining about the many firings and mistreatments on the job. The absolute control of human resources is a centerpiece of our business and we can\u2019t do without it. If they decide to organize a protest, they could cause serious monetary losses.";
SINDACATI_PROTESTA = "Precarious workers organized a protest outside the fast-food. Our lawyers will do everything they can to send them to prison, but meanwhile we have to endure a disruption in business.";
OBESI = "Obesity association";
OBESI_ALLARME = "The number of obese grows day by day, along with hearth attacks and cardiovascular diseases. A group of corpulent gold-diggers is thinking about blaming us for this mess and seeking huge settlements. It\u2019s best to stop these balls of fat before they gather enough money to hire an army of lawyers.";
VOCE_OBESI_MULTA = "Reparation payment";
OBESI_PROTESTA = "The national obesity association organized a mass suit against Burger Tycoon. The court faulted us because we didn't warn customers that our hamburgers could fatten them up. This is called justice! Now we have to pay reparation to all the fatties 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 grillmen.";
ALLARME_CASSE = "we are'nt selling enough hamburgers. Hire someone at the register.";
ALLARME_MOTIVAZIONE = "Some crew members are not motivated enough. Make them smile 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\u2026\n Use the arrows on the lower left to continue";
TUT2 = "As do all modern corporations, Burger Tycoon manages production in different parts of the world. You have to supervise all the four sectors. You can switch between the sectors using the panel on the lower left.\n Remember: even if a sector is not show, the events in it continue to run.";
TUT3 = "Agricultural sector:\nIf we had to rear all the cattle we need in our part of the world, our cities would drown in an ocean of cow shit. Pastures and soy culture need a lot of land and South America is one of the best places for it. Obviously you have to conquer your land as our forefathers did. Remember the old saying: \\under every forest there is a lawn\".";
TUT4 = "Free land:\nYou can buy it to create pasture or soy cultures.";
TUT5 = "Pasture:\nHere every cow spends the first years of his life. You can increase terrain productivity by rearing more cows in the same area.";
TUT6 = "Soy culture:\nYou can increase terrain productivity using genetically modified plants. GMOs allow us to use more aggressive pesticides to minimize insect damage.";
TUT7 = "Grain culture:\nUsed by the city of Sao Jos\u00E8 for people nutrition.";
TUT8 = "Rainforest:\nYou can clear it to establish pastures and soy cropland.";
TUT9 = "Feed lot:\nEvery good American wants a fat and greasy burger. Unfortunately, the cows coming from the pastures are slim and won't yield fat meat. So we must keep them here for some months and overindulge them with hyperchaloric soy-based fodder. Make sure there is sufficient fodder for all the cows and avoid the epidemics.";
TUT10 = "Cow:\nwhen it is fat enough, it will be automatically slaughted.";
TUT11 = "Cistern:\nhere we store the soy-based fodder";
TUT12 = "Industrial waste:\nYou can save time and money by adding industrial waste in the fodder. Oils, sewage and other shit are not very good for the cows\u2019 health but they are so convenient.";
TUT13 = "Hormones:\nYou can fill the cows with hormones to make them fatten more quickly. This could have some risks to consumer health, but make no mistake: in love and war everything is licit.";
TUT14 = "Tritamatic:\nFor each cow slaughtered, there is a lot of organic matter we can\u2019t use. It would be convenient make animal flour from this stuff and mix it in the fodder";
TUT15 = "Diseased cow:\nIf the fodder is too unhealthy the risk of epidemic grows. To avoid food poisoning you have to destroy diseased cows before the slaughter";
TUT16 = "Mad cow:\nBSE is a disease caused by the use of animal flours in the animals\u2019 feeding. To avoid scandal it is better to destroy the infected cows";
TUT17 = "Cattleman:\nHe\u2019s the overseer of the feedlot. He will alert you when something is going wrong";
TUT18 = "Fast Food:\nPeople live fast and want to eat quickly. Fast food restaurants are the cathedrals of our age and everything must be efficient and optimized. Avoid customer queues by supplying hamburger for the kitchen and making human resources prompt and motivated.\nManaging the crew is an art: to keep your employees motivated you can reward them with an \"employee of the week\" badge or reproach them. For the most ungrateful the best solution is firing. Eliminate the weak links!";
TUT19 = "Fridge:\nMake sure to have the enough meat coming from the feed lot.";
TUT20 = "Grillman:\nThis crew member prepares hamburgers like T-model Fords";
TUT21 = "Cashier:\nThis crew member sells the meals. If there are no active registers, customers won\u2019t enter the restaurant.";
TUT22 = "Costumer:\nTheir number depends on advertising and the activities of our detractors.";
TUT23 = "Manager:\nHe\u2019s the the restaurant's manager. He will alert you when something is going wrong";
TUT24 = "Headquarters:\nBurger Tycoon is not a fast food chain but a brand, a lifestyle, a symbol of western culture's superiority. Here you can make strategic decisions about the corporate image.";
TUT25 = "Marketing:\nThese weird guys are the best creatives on the market. They will set up the most sophisticated and pervasive advertising campaigns. Few ads means few customers.";
TUT26 = "PR office:\nThe public relations office develops countermeasures against our detractors (environmentalists, consumer associations and other bands of radicals).";
TUT27 = "Board of directors\nThe board of directors constantly oversees our profits. These men invested their capital in the enterprise and hired you to bear a dividend. If you disappoint them you're out!.";
TUT28 = "Vice director:\nHe will alert you when the board of directors is not satisfied with your work";
VOCE_PASCOLO_MANUTENZIONE = "Pasture maintenance";
VOCE_SOIA_MANUTENZIONE = "Soy cropland maintenance";
STR_MENU = "Main menu";
STR_GAMEOVER = "Game over";
STR_GAMEOVERTXT = "Shame on you, you bankrupted our company! Years and years of corporate culture has been destroyed!";
STR_INT1 = "The interface";
STR_INT2 = "Use these buttons to switch from a section to another";
STR_INT3 = "Always keep an eye here, this is your cash!";
STR_INT4 = "Additional informations about the selected operation...";
STR_INT5 = "... and there's its cost";
STR_INT6 = "Switch the game velocity between normal and fast";
Frame 2
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");
function createBox(obj, txt) {
obj.createTextField("testo", 4, 4, 4, ((obj._width / obj._xscale) * 100) - 8, 10);
with (obj.testo) {
multiline = true;
wordWrap = true;
autoSize = true;
text = txt;
setTextFormat(_root.tutFormato);
}
obj.sfondo._height = obj.testo._height + 4;
d = obj.sfondo.getDepth() - 1;
duplicateMovieClip (obj.sfondo, "ombra", d);
my_color = new Color(obj.ombra);
my_color.setRGB(3355443);
obj.ombra._x = obj.ombra._x + 3;
obj.ombra._y = obj.ombra._y + 3;
}
stop();
_root.loopAmbiente.stop();
clearInterval(weekInterval);
suonoTema.start(0, 4);
tutFormato = new TextFormat("arial", 12, 0);
tutFormato.bold = true;
loader.onEnterFrame = function () {
tot = _root.getBytesTotal();
car = _root.getBytesLoaded();
pulsantone.percentuale.text = Math.round((car / tot) * 100);
if (car >= tot) {
pulsantone.gotoAndStop("newGame");
}
};
buttTutorial.onRelease = function () {
_root.suonoBop.start();
tutorial.gotoAndStop(1);
tutorial._visible = true;
};
sound.onRelease = function () {
if (suoni) {
_root.suonoBeep.setVolume(0);
_global.suoni = false;
scrittaSuoni.gotoAndStop("off");
} else {
_root.suonoBop.start();
_root.suonoBeep.setVolume(100);
_global.suoni = true;
scrittaSuoni.gotoAndStop("on");
}
};
Instance of Symbol 236 MovieClip "scrittaSuoni" in Frame 2
onClipEvent (load) {
trace(suoni);
if (suoni) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
Instance of Symbol 354 MovieClip "tutorial" in Frame 2
onClipEvent (load) {
this._visible = false;
}
Frame 3
suonoCitta = new Sound();
suonoCitta.attachSound("citta");
suonoOceano = new Sound();
suonoOceano.attachSound("oceano");
suonoForesta = new Sound();
suonoForesta.attachSound("foresta");
suonoVillaggio = new Sound();
suonoVillaggio.attachSound("villaggio");
loopAmbiente = new Sound();
loopAmbiente.attachSound("agricoltura");
suonoMucca1 = new Sound();
suonoMucca1.attachSound("mucca1");
suonoMucca2 = new Sound();
suonoMucca2.attachSound("mucca2");
suonoMucca3 = new Sound();
suonoMucca3.attachSound("mucca3");
suonoMuccaMorta = new Sound();
suonoMuccaMorta.attachSound("muccamorta");
suonoCassa = new Sound();
suonoCassa.attachSound("cassa");
suonoLinea = new Sound();
suonoLinea.attachSound("linea");
suonoDeserto = new Sound();
suonoDeserto.attachSound("deserto");
suonoBraccio = new Sound();
suonoBraccio.attachSound("braccio");
suonoBraccioSu = new Sound();
suonoBraccioSu.attachSound("bracciosu");
suonoMacello = new Sound();
suonoMacello.attachSound("muccamacellata");
loopMacchina = new Sound();
loopMacchina.attachSound("allevamento");
suonoFiamma = new Sound();
suonoFiamma.attachSound("muccaabbattuta");
suonoAratura = new Sound();
suonoAratura.attachSound("aratura");
suonoMietitura = new Sound();
suonoMietitura.attachSound("mietitura");
suonoAbbattimento = new Sound();
suonoAbbattimento.attachSound("abbattimento");
suonoTelefono1 = new Sound();
suonoTelefono1.attachSound("telefono1");
suonoTelefono2 = new Sound();
suonoTelefono2.attachSound("telefono2");
suonoStampante = new Sound();
suonoStampante.attachSound("stampante");
suonoTastiera = new Sound();
suonoTastiera.attachSound("tastiera");
suonoVoci1 = new Sound();
suonoVoci1.attachSound("voci1");
suonoVoci2 = new Sound();
suonoVoci2.attachSound("voci2");
suonoVoci3 = new Sound();
suonoVoci3.attachSound("voci3");
suonoVoci4 = new Sound();
suonoVoci4.attachSound("voci4");
suonoVoci5 = new Sound();
suonoVoci5.attachSound("voci5");
suonoVoci6 = new Sound();
suonoVoci6.attachSound("voci6");
suonoHey = new Sound();
suonoHey.attachSound("hey");
suonoGameOver = new Sound();
suonoGameOver.attachSound("temagameover");
stopAllSounds();
SOLDI_INIZIALI = 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 /* 0x01869F */;
ROOT_X = 660;
ROOT_Y = 410;
ASSE_X = 400;
ASSE_Y = 200;
COL_ASSI = "0xBB674A";
COL_LINEA = "0x6F0000";
COL_RIGHE = "0xE3C2B7";
PIANO_X = 400;
PIANO_Y = 170;
CORNICE = 20;
MAX_YEAR = 5;
periodo = 0;
absyear = 0;
myformat = new TextFormat();
myformat.color = 16711680 /* 0xFF0000 */;
myformat.font = "Arial";
myformat.size = 10;
tile = "tile1";
COSTO_SOIA = 10000;
COSTO_PASCOLO = 5000;
COSTO_SINDACO = 10000;
COSTO_SOIAFORESTA = 8000;
COSTO_PASCOLOFORESTA = 3000;
COSTO_SOIA_MESE = 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;
Instance of Symbol 499 MovieClip "normal" in Frame 3
on (rollOver) {
_root.help(_root.HLP_NORMALE);
}
on (rollOut) {
_root.nohelp();
}
Instance of Symbol 201 MovieClip [fps_meter] "fps" in Frame 3
//component parameters
onClipEvent (construct) {
component = true;
}
Frame 4
function everyweek() {
if (timeabs == 1) {
i = 0;
while (i < _root.VACCHE_INIZIALI) {
nuovavacca();
i++;
}
}
timeabs++;
if (timeabs > 3) {
if (fps.dp.text != undefined) {
velocitaMax = (5 / fps.dp.text) * 1000;
}
clearInterval(weekInterval);
weekInterval = setInterval(everyweek, time);
}
if ((time < velocitaMax) && (velocitaMax != undefined)) {
time = velocitaMax + 100;
clearInterval(weekInterval);
weekInterval = setInterval(everyweek, time);
}
aggiornafrigo();
aggiornapanini();
muovipostazioni();
if (_root.affluenza > 0) {
nuoviclienti(_root.affluenza);
}
if (((retail.fila1.clienti > 0) && (panini > 0)) && (retail.cassa1.attiva == true)) {
if (random(retail.cassa1.motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
scorrifila.call(retail.fila1);
} else {
retail.cassa1.omino.braccia.gotoAndPlay("fermo");
retail.cassa1.omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
if (((retail.fila2.clienti > 0) && (panini > 0)) && (retail.cassa2.attiva == true)) {
if (random(retail.cassa2.motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
scorrifila.call(retail.fila2);
} else {
retail.cassa2.omino.braccia.gotoAndPlay("fermo");
retail.cassa2.omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
if (((retail.fila3.clienti > 0) && (panini > 0)) && (retail.cassa3.attiva == true)) {
if (random(retail.cassa3.motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
scorrifila.call(retail.fila3);
} else {
retail.cassa3.omino.braccia.gotoAndPlay("fermo");
retail.cassa3.omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
week++;
if (week >= 4) {
month++;
week = 0;
everymonth();
}
if ((month == 2) && (week == 3)) {
spring();
} else if ((month == 5) && (week == 3)) {
summer();
} else if ((month == 8) && (week == 3)) {
fall();
} else if ((month == 11) && (week == 3)) {
winter();
}
contavacche();
salutevacche();
allevamento.tritacarne.gotoAndPlay(1);
}
function everymonth() {
if (month >= 12) {
month = 0;
year++;
absyear++;
if (_root.MIN_GUADAGNO < _root.MAX_GUADAGNO) {
_root.MIN_GUADAGNO = _root.MIN_GUADAGNO + _root.ASPETTATIVA;
}
if ((absyear != 0) && ((absyear % _root.MAX_YEAR) == 0)) {
periodo = periodo + _root.MAX_YEAR;
i = 0;
while (i < (_root.MAX_YEAR * 12)) {
_root.bilanci.shift();
_root.stat.shift();
i++;
}
}
}
vacchefuture = _root.calcolavacche();
soiafutura = _root.calcolasoia();
str_month = MESI[month];
bilanci.push(bilancio);
bilancio = (((STR_BILANCIO + str_month) + " ") + year) + "\n\n";
bilancio = bilancio + (STR_ENTRATE + ": ");
bilancio = bilancio + (entrate + newline);
bilancio = bilancio + (STR_USCITE + ": ");
bilancio = bilancio + (uscite + newline);
guadagno = entrate - uscite;
bilancio = bilancio + (((STR_GUADAGNO + ": ") + guadagno) + newline);
allarme_output = "";
if (guadagno < MIN_GUADAGNO) {
allarme_cda = allarme_cda + ALLARMISMO_CDA;
} else if (guadagno < 0) {
allarme_cda = allarme_cda + (ALLARMISMO_CDA * 2);
} else if (allarme_cda > 0) {
allarme_cda = allarme_cda - ALLARMISMO_CDA;
}
if (allarme_cda >= MAX_ALLARME) {
allarme_cda = MAX_ALLARME;
allarme_output = STR_CRESCITA;
}
if (soldi < (BANCAROTTA / 2)) {
allarme_output = allarme_output + STR_CONTO;
}
if (soldi <= BANCAROTTA) {
gameOver();
}
if (guadagno >= 0) {
_root.brand.schermo.gotoAndStop("su");
} else {
_root.brand.schermo.gotoAndStop("giu");
}
if (allarme_output != "") {
_root.brand.relatore.gotoAndPlay("allarme");
_root.alm_brand.gotoAndPlay("on");
_root.brand.az1.testa.gotoAndStop("incazzato");
_root.brand.az2.testa.gotoAndStop("incazzato");
_root.brand.az3.testa.gotoAndStop("incazzato");
_root.brand.az4.testa.gotoAndStop("incazzato");
} else {
_root.brand.relatore.gotoAndPlay(1);
_root.alm_brand.gotoAndStop("off");
_root.brand.az1.testa.gotoAndStop("felice");
_root.brand.az2.testa.gotoAndStop("felice");
_root.brand.az3.testa.gotoAndStop("felice");
_root.brand.az4.testa.gotoAndStop("felice");
}
bilancio = bilancio + (((STR_SALDO + ": ") + soldi) + "$\n\n");
entrate = 0;
uscite = 0;
bilancio = bilancio + (STR_DETTAGLI + ":\n");
speseMensili();
stat.push(soldi);
if (sindacatiPicchetto > 0) {
sindacatiPicchetto--;
}
if (noglobalBoicott > 0) {
noglobalBoicott--;
}
if (ecologistiBoicott > 0) {
ecologistiBoicott--;
}
calcolaDissenso();
calcolaAffluenza();
desertificazione();
calcolafertilita();
surriscaldamento();
famecitta();
ingrassovacche();
rnd = random(SFIDUCIA);
switch (rnd) {
case 1 :
if ((retail.linea1.attiva == true) && (retail.linea1.motivazione > 1)) {
retail.linea1.motivazione--;
}
break;
case 2 :
if ((retail.linea2.attiva == true) && (retail.linea2.motivazione > 1)) {
retail.linea2.motivazione--;
}
break;
case 3 :
if ((retail.linea3.attiva == true) && (retail.linea3.motivazione > 1)) {
retail.linea3.motivazione--;
}
break;
case 4 :
if ((retail.cassa1.attiva == true) && (retail.cassa1.motivazione > 1)) {
retail.cassa1.motivazione--;
}
break;
case 5 :
if ((retail.cassa2.attiva == true) && (retail.cassa2.motivazione > 1)) {
retail.cassa2.motivazione--;
}
break;
case 6 :
if (!((retail.cassa3.attiva == true) && (retail.cassa3.motivazione > 1))) {
break;
}
retail.cassa3.motivazione--;
}
j = 1;
while (j < TOT_TILES) {
if (piano["tile" + j].tipo == "allevamento") {
if ((piano["tile" + j].vacca1._currentframe >= 25) || (piano["tile" + j].vacca1._currentframe < 5)) {
piano["tile" + j].vacca1.play();
} else if (piano["tile" + j].vacca1._visible == true) {
piano["tile" + j].vacca1.nextFrame();
}
if ((piano["tile" + j].vacca2._currentframe >= 25) || (piano["tile" + j].vacca2._currentframe < 5)) {
piano["tile" + j].vacca2.play();
} else if (piano["tile" + j].vacca2._visible == true) {
piano["tile" + j].vacca2.nextFrame();
}
if ((piano["tile" + j].vacca3._currentframe >= 25) || (piano["tile" + j].vacca3._currentframe < 5)) {
piano["tile" + j].vacca3.play();
} else if (piano["tile" + j].vacca3._visible == true) {
piano["tile" + j].vacca3.nextFrame();
}
}
j++;
}
}
function spring() {
stagioni.gotoAndStop(1);
season = STR_SPRING;
flagm = false;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "soia") {
piano["tile" + i].gotoAndPlay("soiamietitura");
if (zona == "agricoltura") {
flagm = true;
}
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granomietitura");
if (zona == "agricoltura") {
flagm = true;
}
}
i++;
}
if (flagm) {
_root.suonoMietitura.start(0, 5);
}
}
function summer() {
stagioni.gotoAndStop(2);
season = STR_SUMMER;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "soia") {
piano["tile" + i].gotoAndPlay("soiariposo");
m = RENDITA_SOIA + (piano["tile" + i].fertilita / DIVISORE_FERTILITA);
if (piano["tile" + i].ogm == true) {
m = m * MOLTIPLICATORE_OGM;
}
if (scarti == true) {
m = m * MOLTIPLICATORE_SCARTI;
}
m = Math.round(m);
mangime = mangime + m;
gestionecisterna();
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granoriposo");
}
i++;
}
}
function fall() {
stagioni.gotoAndStop(3);
season = STR_FALL;
ar = false;
i = 1;
while (i < TOT_TILES) {
if ((piano["tile" + i]._currentframe > 45) && (piano["tile" + i].tipo == "soia")) {
piano["tile" + i].gotoAndPlay("soiaaratura");
}
if (piano["tile" + i].tipo == "attesagrano") {
piano["tile" + i].tipo = "grano";
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granoaratura");
}
i++;
}
}
function winter() {
stagioni.gotoAndStop(4);
season = STR_WINTER;
i = 1;
while (i < TOT_TILES) {
if ((piano["tile" + i].tipo == "attesasoia") && (piano["tile" + i].nuovoutilizzo == undefined)) {
piano["tile" + i].tipo = "soia";
}
if (piano["tile" + i].tipo == "soia") {
piano["tile" + i].gotoAndPlay("soiacrescita");
}
if (piano["tile" + i].tipo == "grano") {
piano["tile" + i].gotoAndPlay("granocrescita");
}
i++;
}
}
function help(testo, costo, tipo) {
_root.interfaccia = 1;
_root.testohelp = testo;
_root.menu.help._visible = true;
if (costo == undefined) {
_root.testocosto = "";
_root.menu.help.mascheraCosto._visible = false;
} else {
if (tipo == "mese") {
_root.menu.help.mascheraCosto.gotoAndStop("mese");
} else {
_root.menu.help.mascheraCosto.gotoAndStop("tantum");
}
_root.testocosto = "$ " + costo;
_root.menu.help.mascheraCosto._visible = true;
}
}
function nohelp() {
_root.interfaccia = 0;
_root.menu.help._visible = false;
}
function calcolavacche() {
v = 0;
i = 1;
while (i < _root.TOT_TILES) {
if (piano["tile" + i].tipo == "allevamento") {
v = v + piano["tile" + i].intensita;
}
i++;
}
return(v);
}
function calcolasoia() {
s = 0;
i = 1;
while (i < _root.TOT_TILES) {
if ((piano["tile" + i].tipo == "soia") || (piano["tile" + i].tipo == "attesasoia")) {
s = s + 1;
}
i++;
}
return(s);
}
function pausa() {
if (running) {
clearInterval(weekInterval);
_global.running = false;
}
}
function riprendi() {
if (!running) {
weekInterval = setInterval(everyweek, time);
_global.running = true;
}
}
function resetSelections() {
_root.pianomenu.menucontestuale._visible = false;
_root.piano.tastoinfo._visible = false;
_root.piano.tastomare._visible = false;
_root.piano.tastocorrompi._visible = false;
_root.piano.citta2.selezione.gotoAndStop("off");
_root.piano.citta1.selezione.gotoAndStop("off");
if (piano._visible == true) {
_root.menu.gotoAndStop("nulla");
}
i = 1;
while (i < TOT_TILES) {
piano["tile" + i].selezione.gotoAndStop("off");
i++;
}
piano.citta1.selezione.gotoAndStop("off");
piano.citta2.selezione.gotoAndStop("off");
piano.mare.selezione.gotoAndStop("off");
piano.tilecorrente = "nessuno";
}
function contextMenu(tile, tipo) {
_root.pianomenu.menucontestuale._visible = true;
_root.pianomenu.menucontestuale.gotoAndStop(tipo);
if ((tipo == "foresta") && ((_root.suonoForesta.position == _root.suonoForesta.duration) || (_root.suonoForesta.position == 0))) {
_root.suonoForesta.start();
} else if ((tipo == "villaggio") && ((_root.suonoVillaggio.position == _root.suonoVillaggio.duration) || (_root.suonoVillaggio.position == 0))) {
_root.suonoVillaggio.start();
} else if ((tipo == "deserto") && ((_root.suonoDeserto.position == _root.suonoDeserto.duration) || (_root.suonoDeserto.position == 0))) {
_root.suonoDeserto.start();
}
if (_root.piano[tile].ogm == true) {
_root.pianomenu.menucontestuale.tastoogm.gotoAndStop("on");
} else {
_root.pianomenu.menucontestuale.tastoogm.gotoAndStop("off");
}
if ((tile == "tile20") || (tile == "tile19")) {
_root.pianomenu.menucontestuale._x = piano[tile]._x + piano[tile]._width;
_root.pianomenu.menucontestuale._y = (-piano[tile]._y) - 30;
if (tipo == "allevamento") {
_root.pianomenu.menucontestuale.gotoAndStop("allevamento2");
}
if ((tipo == "soia") || (tipo == "attesasoia")) {
_root.pianomenu.menucontestuale.gotoAndStop("soia2");
}
} else if (tile == "tile9") {
_root.pianomenu.menucontestuale._x = 2;
_root.pianomenu.menucontestuale._y = piano[tile]._y + 80;
if (tipo == "allevamento") {
_root.pianomenu.menucontestuale.gotoAndStop("allevamento3");
}
if ((tipo == "soia") || (tipo == "attesasoia")) {
_root.pianomenu.menucontestuale.gotoAndStop("soia3");
}
} else {
_root.pianomenu.menucontestuale._x = (piano[tile]._x + (piano[tile]._width / 2)) + 2;
_root.pianomenu.menucontestuale._y = piano[tile]._y + 22;
}
if ((tipo == "allevamento") && ((tile == "tile13") || (tile == "tile6"))) {
_root.pianomenu.menucontestuale.gotoAndStop("allevamento4");
}
if (((tipo == "soia") || (tipo == "attesasoia")) && ((tile == "tile13") || (tile == "tile6"))) {
_root.pianomenu.menucontestuale.gotoAndStop("soia4");
}
}
function creagrano(tile) {
if (tile.tipo == "vuoto") {
tile.tipo = "attesagrano";
tile.gotoAndStop("granovuoto");
_root.campidigrano++;
}
}
function famecitta() {
creagrano(_root.piano.tile9);
creagrano(_root.piano.tile12);
creagrano(_root.piano.tile15);
creagrano(_root.piano.tile18);
if ((_root.campidigrano > 0) && (_root.piano.citta1._currentframe != 1)) {
_root.piano.citta1.play();
_root.piano.citta2.play();
}
if (_root.campidigrano > 2) {
_root.statocitta = _root.STR_FELICE;
} else if (_root.campidigrano == 2) {
_root.statocitta = _root.STR_SCARSO;
} else if (_root.campidigrano == 1) {
_root.statocitta = _root.STR_ALLARMANTE;
} else if ((_root.campidigrano == 0) && (_root.piano.citta1._currentframe == 1)) {
_root.statocitta = _root.STR_DISABITATA;
_root.piano.citta1.gotoAndPlay(2);
_root.piano.citta2.gotoAndPlay(2);
}
}
function surriscaldamento() {
f = 0;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "foresta") {
f++;
}
i++;
}
if (f >= _root.FORESTE_MAX) {
riscaldamento = 0;
} else if (f >= _root.FORESTE_MEDIE) {
riscaldamento = 2;
} else if (f >= _root.FORESTE_POCHE) {
riscaldamento = 3;
} else if (f < _root.FORESTE_POCHE) {
riscaldamento = 4;
}
_root.livello = _root.livello + riscaldamento;
if ((_root.livello > 0) && (_root.livello <= 1000)) {
frameoceano = Math.round(_root.livello / 100);
piano.mare.oceano.gotoAndStop(frameoceano);
_root.calottepolari = 100 - (frameoceano * 10);
_root.calottepolari = _root.calottepolari + "%";
}
}
function desertificazione() {
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "allevamento") {
piano["tile" + i].fertilita = piano["tile" + i].fertilita - (piano["tile" + i].intensita - 1);
} else if (piano["tile" + i].tipo == "soia") {
} else if (piano["tile" + i].tipo == "vuoto") {
if (piano["tile" + i].fertilita < _root.FERTILITA_MAX) {
piano["tile" + i].fertilita = piano["tile" + i].fertilita + 2;
}
}
f = piano["tile" + i].fertilita;
if (f > 120) {
piano["tile" + i].terreno.gotoAndStop(1);
} else if ((f > 100) && (f < 120)) {
piano["tile" + i].terreno.gotoAndStop(2);
} else if ((f > 80) && (f < 100)) {
piano["tile" + i].terreno.gotoAndStop(3);
} else if ((f > 60) && (f < 80)) {
piano["tile" + i].terreno.gotoAndStop(4);
} else if ((f > 40) && (f < 60)) {
piano["tile" + i].terreno.gotoAndStop(5);
} else if ((f > 20) && (f < 40)) {
piano["tile" + i].terreno.gotoAndStop(6);
} else if ((f > 0) && (f < 20)) {
piano["tile" + i].terreno.gotoAndStop(7);
} else if (f <= 0) {
if (piano["tile" + i].tipo != "deserto") {
if (piano["tile" + i].tipo != "allevamento") {
piano["tile" + i].gotoAndStop("vuoto");
}
if (tilecorrente == ("tile" + i)) {
contextMenu("tile" + i, "deserto");
}
piano["tile" + i].tipo = "deserto";
piano["tile" + i].terreno.gotoAndStop(8);
if (piano["tile" + i].vacca1._visible == true) {
piano["tile" + i].vacca1.gotoAndStop("morta");
}
if (piano["tile" + i].vacca2._visible == true) {
piano["tile" + i].vacca2.gotoAndStop("morta");
}
if (piano["tile" + i].vacca3._visible == true) {
piano["tile" + i].vacca3.gotoAndStop("morta");
}
}
}
i++;
}
}
function corrompisindaco() {
_root.STR_CORRUZIONE = _root.STR_CORROTTO;
_root.sindacocorrotto = true;
spendi(COSTO_SINDACO, HLP_CORROMPISINDACO);
}
function creaallevamento() {
if (piano[_root.tilecorrente].tipo == "foresta") {
piano[_root.tilecorrente].nuovoutilizzo = "allevamento";
piano[_root.tilecorrente].gotoAndPlay("abbattimento");
startLoop("abbattimento", _root.tilecorrente);
contextMenu(_root.tilecorrente, "forestaattesa");
spendi(COSTO_PASCOLOFORESTA, VOCE_PASCOLOFORESTA);
_root.ecologisti = _root.ecologisti + ECOLOGISTI_FORESTE;
_root.noglobal = _root.noglobal + NOGLOBAL_FORESTE;
} else if (piano[_root.tilecorrente].tipo == "villaggio") {
piano[_root.tilecorrente].nuovoutilizzo = "allevamento";
piano[_root.tilecorrente].gotoAndPlay("incendio");
contextMenu(_root.tilecorrente, "villaggioattesa");
spendi(COSTO_PASCOLOFORESTA, VOCE_PASCOLOVILLAGGIO);
noglobal = noglobal + NOGLOBAL_VILLAGGIO;
startLoop("abbattimento", _root.tilecorrente);
} else {
if ((piano[_root.tilecorrente].tipo == "grano") || (piano[_root.tilecorrente].tipo == "attesagrano")) {
_root.campidigrano--;
}
piano[_root.tilecorrente].tipo = "allevamento";
piano[_root.tilecorrente].gotoAndStop("allevamento");
_root.fertilita = piano[_root.tilecorrente].fertilita - 80;
calcolafertilita();
_root.menu.gotoAndStop("allevamento");
contextMenu(_root.tilecorrente, "nulla");
piano[_root.tilecorrente].selezione.gotoAndPlay("roll");
spendi(COSTO_PASCOLO, VOCE_PASCOLO);
}
}
function creasoia() {
if (piano[_root.tilecorrente].tipo == "foresta") {
startLoop("abbattimento", _root.tilecorrente);
piano[_root.tilecorrente].nuovoutilizzo = "attesasoia";
piano[_root.tilecorrente].gotoAndPlay("abbattimento");
contextMenu(_root.tilecorrente, "forestaattesa");
spendi(COSTO_SOIAFORESTA, VOCE_SOIAFORESTA);
ecologisti = ecologisti + ECOLOGISTI_FORESTE;
noglobal = noglobal + NOGLOBAL_FORESTE;
} else if (piano[_root.tilecorrente].tipo == "villaggio") {
startLoop("abbattimento", _root.tilecorrente);
piano[_root.tilecorrente].nuovoutilizzo = "attesasoia";
piano[_root.tilecorrente].gotoAndPlay("incendio");
contextMenu(_root.tilecorrente, "villaggioattesa");
spendi(COSTO_SOIAFORESTA, VOCE_SOIAVILLAGGIO);
noglobal = noglobal + NOGLOBAL_VILLAGGIO;
} else {
if ((piano[_root.tilecorrente].tipo == "grano") || (piano[_root.tilecorrente].tipo == "attesagrano")) {
_root.campidigrano--;
}
piano[_root.tilecorrente].tipo = "attesasoia";
_root.menu.gotoAndStop("attesasoia");
piano[_root.tilecorrente].gotoAndPlay("soiasemina");
if (zona == "agricoltura") {
startLoop("aratura", _root.tilecorrente);
}
contextMenu(_root.tilecorrente, "nulla");
piano[_root.tilecorrente].selezione.gotoAndPlay("roll");
spendi(COSTO_SOIA, VOCE_SOIA);
}
}
function aumentavacche() {
if (piano[_root.tilecorrente].intensita < 3) {
piano[_root.tilecorrente].intensita++;
}
nascitavacche(piano[_root.tilecorrente].intensita);
}
function diminuiscivacche() {
if (piano[_root.tilecorrente].intensita > 0) {
piano[_root.tilecorrente].intensita--;
}
nascitavacche(piano[_root.tilecorrente].intensita);
}
function nascitavacche(numero) {
if (numero == 0) {
piano[_root.tilecorrente].vacca1._visible = false;
piano[_root.tilecorrente].vacca2._visible = false;
piano[_root.tilecorrente].vacca3._visible = false;
}
if (numero == 1) {
if (piano[_root.tilecorrente].vacca1._visible == false) {
piano[_root.tilecorrente].vacca1._visible = true;
piano[_root.tilecorrente].vacca1.gotoAndPlay(1);
}
piano[_root.tilecorrente].vacca2._visible = false;
piano[_root.tilecorrente].vacca3._visible = false;
}
if (numero == 2) {
if (piano[_root.tilecorrente].vacca2._visible == false) {
piano[_root.tilecorrente].vacca2._visible = true;
piano[_root.tilecorrente].vacca2.gotoAndPlay(1);
}
piano[_root.tilecorrente].vacca3._visible = false;
}
if (numero == 3) {
if (piano[_root.tilecorrente].vacca3._visible == false) {
piano[_root.tilecorrente].vacca3._visible = true;
piano[_root.tilecorrente].vacca3.gotoAndPlay(1);
}
}
}
function vendi() {
if ((piano[_root.tilecorrente].tipo = "allevamento")) {
guadagna(COSTO_PASCOLO / 2);
} else {
guadagna(COSTO_SOIA / 2);
}
piano[_root.tilecorrente].gotoAndStop("vuoto");
contextMenu(_root.tilecorrente, "nulla");
piano[_root.tilecorrente].tipo = "vuoto";
}
function calcolafertilita() {
if (piano[_root.tilecorrente].fertilita > 100) {
_root.fertilita = 100;
} else {
_root.fertilita = piano[_root.tilecorrente].fertilita;
}
_root.fertilita = _root.fertilita + "%";
}
function nuovavacca() {
if (vacche >= MAX_VACCHE) {
trace("errore troppe vacche");
} else {
vacche++;
collocata = false;
while (collocata == false) {
temp = random(MAX_VACCHE) + 1;
if (allevamento["vacca" + temp].presente == 0) {
allevamento["vacca" + temp].play();
allevamento["vacca" + temp].presente = 1;
allevamento["vacca" + temp].peso = PESO_INIZIALE;
allevamento["vacca" + temp].bse = false;
allevamento["vacca" + temp].malata = false;
collocata = true;
}
}
l = NOMI_VACCHE.length;
allevamento["vacca" + temp].nome = NOMI_VACCHE[random(l)];
allevamento["vacca" + temp].salute = STR_SALUTE_OK;
rand = random(3);
if (rand == 0) {
allevamento["vacca" + temp].appetito = INGRASSO_MENSILE1;
} else if (rand == 1) {
allevamento["vacca" + temp].appetito = INGRASSO_MENSILE2;
} else if (rand == 2) {
allevamento["vacca" + temp].appetito = INGRASSO_MENSILE3;
}
}
}
function ingrassovacche() {
i = 1;
while (i < (MAX_VACCHE + 1)) {
if (allevamento["vacca" + i].presente == 1) {
if (mangime > 0) {
if (ormoni == true) {
allevamento["vacca" + i].peso = allevamento["vacca" + i].peso + (allevamento["vacca" + i].appetito + BONUS_ORMONI);
} else {
allevamento["vacca" + i].peso = allevamento["vacca" + i].peso + allevamento["vacca" + i].appetito;
}
}
if (mangime <= 0) {
allevamento["vacca" + i].peso = allevamento["vacca" + i].peso - allevamento["vacca" + i].appetito;
if (allevamento["vacca" + i].peso < PESO_MINIMO) {
allevamento["vacca" + i].gotoAndPlay("morto");
}
}
curr = allevamento["vacca" + i]._currentframe;
if ((curr >= 12) && (curr <= 27)) {
f = Math.round(((allevamento["vacca" + i].peso - PESO_INIZIALE) * 14) / (PESO_FINALE - PESO_INIZIALE));
if (allevamento["vacca" + i].peso > PESO_INIZIALE) {
allevamento["vacca" + i].gotoAndStop(f + 12);
} else {
allevamento["vacca" + i].gotoAndStop(12);
}
if (mangime > 0) {
mangime = mangime - CIBO_MENSILE;
} else {
mangime = 0;
}
gestionecisterna();
}
if (allevamento["vacca" + i].peso >= PESO_FINALE) {
allevamento["vacca" + i].play();
}
}
i++;
}
pesocorrente = allevamento[vaccacorrente].peso;
}
function gestionecisterna() {
if (scarti == true) {
allevamento.scarti.play();
}
f = Math.round((mangime * 30) / MAX_MANGIME);
allevamento.cist.gotoAndStop(f + 1);
if (f <= 3) {
allevamento.mangiatoia1.gotoAndStop(f + 1);
allevamento.mangiatoia2.gotoAndStop(f + 1);
allevamento.sirenacisterna.gotoAndPlay("on");
} else {
allevamento.sirenacisterna.gotoAndStop("off");
}
}
function selezionavacca() {
nomecorrente = (STR_VACCA + " ") + allevamento[vaccacorrente].nome;
pesocorrente = allevamento[vaccacorrente].peso;
salutecorrente = allevamento[vaccacorrente].salute;
menu.gotoAndStop("vacca");
}
function abbatti() {
f = allevamento[vaccacorrente]._currentframe;
if ((f >= 12) && (f <= 27)) {
allevamento[vaccacorrente].lanciafiamme.play();
allevamento[vaccacorrente].presente = 0;
allevamento[vaccacorrente].peso = 0;
allevamento[vaccacorrente].bse = false;
allevamento[vaccacorrente].malata = false;
}
}
function deselezionaall() {
_root.allevamento.tastoscarti._visible = false;
_root.allevamento.tastoormoni._visible = false;
_root.allevamento.tastofarine._visible = false;
i = 1;
while (i < (MAX_VACCHE + 1)) {
allevamento["vacca" + i].selezione.gotoAndStop("off");
i++;
}
allevamento.cisterna.selezione.gotoAndStop("off");
allevamento.macina.selezione.gotoAndStop("off");
if (allevamento._visible == true) {
_root.menu.gotoAndStop("nullaall");
}
}
function salutevacche() {
sicurezza = RISCHIOMALATTIA - vacche;
if (scarti == true) {
sicurezza = sicurezza - RISCHIOSCARTI;
}
if (ormoni == true) {
sicurezza = sicurezza - RISCHIOORMONI;
}
ogm = 0;
t = 1;
while (t < TOT_TILES) {
if (piano["tile" + t].ogm == true) {
ogm++;
}
t++;
}
sicurezza = sicurezza - (ogm * RISCHIOOGM);
if ((farineanimali == true) && (mangime > 0)) {
sicurezzabse = RISCHIOBSE - (epidemia * MOLTIPLICATOREEPIDEMIA);
} else {
sicurezzabse = undefined;
}
epidemia = 0;
if (sicurezzabse < 10) {
sicurezzabse = 10;
}
if (sicurezza < 10) {
sicurezza = 10;
}
i = 1;
while (i < (MAX_VACCHE + 1)) {
if ((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].bse == true)) {
epidemia++;
}
if (((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].malata != true)) && (allevamento["vacca" + i].bse != true)) {
destino = random(sicurezza);
if (destino == 0) {
allevamento["vacca" + i].malata = true;
allevamento["vacca" + i].salute = STR_MALATA;
allevamento["vacca" + i].testa.gotoAndPlay("malata");
} else if (sicurezzabse != undefined) {
destino = random(sicurezzabse);
if (destino == 0) {
allevamento["vacca" + i].bse = true;
allevamento["vacca" + i].salute = STR_BSE;
allevamento["vacca" + i].testa.gotoAndPlay("muccapazza");
}
}
}
i++;
}
}
function contavacche() {
_root.vacche = 0;
i = 1;
while (i < (MAX_VACCHE + 1)) {
if (allevamento["vacca" + i].presente == 1) {
_root.vacche++;
}
i++;
}
}
function allarmiallevamento() {
allarmeallevamento = "";
allarmemalattia = false;
allarmebse = false;
if (vacche >= (MAX_VACCHE - 3)) {
allarmeallevamento = allarmeallevamento + ALLARME_TROPPEVACCHE;
}
if (vacche <= 0) {
allarmeallevamento = allarmeallevamento + ALLARME_NOVACCHE;
}
if (mangime < 200) {
allarmeallevamento = allarmeallevamento + ALLARME_MANGIMESCARSO;
}
if (mangime >= MAX_MANGIME) {
allarmeallevamento = allarmeallevamento + ALLARME_TROPPOMANGIME;
}
i = 1;
while (i < (MAX_VACCHE + 1)) {
if ((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].bse == true)) {
allarmebse = true;
}
if ((allevamento["vacca" + i].presente == 1) && (allevamento["vacca" + i].malata == true)) {
allarmemalattia = true;
}
i++;
}
if (allarmemalattia) {
allarmeallevamento = allarmeallevamento + ALLARME_MALATTIA;
}
if (allarmebse) {
allarmeallevamento = allarmeallevamento + ALLARME_BSE;
}
return(allarmeallevamento);
}
function inizializzalavoratori() {
retail.linea1.attiva = false;
retail.linea1.gotoAndStop("vuota");
retail.linea2.attiva = false;
retail.linea2.gotoAndStop("vuota");
retail.linea3.attiva = false;
retail.linea3.gotoAndStop("vuota");
retail.cassa1.attiva = false;
retail.cassa1.gotoAndStop("vuota");
retail.cassa2.attiva = false;
retail.cassa2.gotoAndStop("vuota");
retail.cassa3.attiva = false;
retail.cassa3.gotoAndStop("vuota");
}
function inizializzafile() {
retail.fila1.clienti = -1;
retail.fila2.clienti = -1;
retail.fila3.clienti = -1;
i = 0;
while (i < MAXCLIENTI) {
retail.fila1["c" + i]._visible = false;
retail.fila2["c" + i]._visible = false;
retail.fila3["c" + i]._visible = false;
i++;
}
}
function nuoviclienti(nuovi) {
fila1 = (fila2 = (fila3 = 0));
attive = new Array();
if (retail.cassa1.attiva == true) {
attive.push("fila1");
}
if (retail.cassa2.attiva == true) {
attive.push("fila2");
}
if (retail.cassa3.attiva == true) {
attive.push("fila3");
}
if ((nuovi > 0) && (attive.length > 0)) {
meglio = attive[0];
if ((_root[attive[1]] != undefined) && (_root.retail[attive[1]].clienti < _root.retail[meglio].clienti)) {
meglio = attive[1];
}
if ((_root[attive[2]] != undefined) && (_root.retail[attive[2]].clienti < _root.retail[meglio].clienti)) {
meglio = attive[2];
}
_root[meglio] = _root[meglio] + nuovi;
}
i = 1;
while (i <= MAXCLIENTI) {
if ((i > retail.fila1.clienti) && (i <= (retail.fila1.clienti + fila1))) {
retail.fila1["c" + i].cliente.capelli.gotoAndStop(random(retail.fila1["c" + i].cliente.capelli._totalframes) + 1);
retail.fila1["c" + i].cliente.pelle.gotoAndStop(random(retail.fila1["c" + i].cliente.pelle._totalframes) + 1);
retail.fila1["c" + i].cliente.gambe.gotoAndStop(random(retail.fila1["c" + i].cliente.gambe._totalframes) + 1);
retail.fila1["c" + i].cliente.gambe.passi.gotoAndStop(1);
retail.fila1["c" + i].cliente.corpo.gotoAndStop(random(retail.fila1["c" + i].cliente.corpo._totalframes) + 1);
retail.fila1["c" + i]._visible = true;
}
if (i > (retail.fila1.clienti + fila1)) {
retail.fila1["c" + i]._visible = false;
}
i++;
}
i = 1;
while (i <= MAXCLIENTI) {
if ((i > retail.fila2.clienti) && (i <= (retail.fila2.clienti + fila2))) {
retail.fila2["c" + i].cliente.capelli.gotoAndStop(random(retail.fila2["c" + i].cliente.capelli._totalframes) + 1);
retail.fila2["c" + i].cliente.pelle.gotoAndStop(random(retail.fila2["c" + i].cliente.pelle._totalframes) + 1);
retail.fila2["c" + i].cliente.gambe.gotoAndStop(random(retail.fila2["c" + i].cliente.gambe._totalframes) + 1);
retail.fila2["c" + i].cliente.gambe.passi.gotoAndStop(1);
retail.fila2["c" + i].cliente.corpo.gotoAndStop(random(retail.fila2["c" + i].cliente.corpo._totalframes) + 1);
retail.fila2["c" + i]._visible = true;
}
if (i > (retail.fila2.clienti + fila2)) {
retail.fila2["c" + i]._visible = false;
}
i++;
}
i = 1;
while (i <= MAXCLIENTI) {
if ((i > retail.fila3.clienti) && (i <= (retail.fila3.clienti + fila3))) {
retail.fila3["c" + i].cliente.capelli.gotoAndStop(random(retail.fila3["c" + i].cliente.capelli._totalframes) + 1);
retail.fila3["c" + i].cliente.pelle.gotoAndStop(random(retail.fila3["c" + i].cliente.pelle._totalframes) + 1);
retail.fila3["c" + i].cliente.gambe.gotoAndStop(random(retail.fila3["c" + i].cliente.gambe._totalframes) + 1);
retail.fila3["c" + i].cliente.gambe.passi.gotoAndStop(1);
retail.fila3["c" + i].cliente.corpo.gotoAndStop(random(retail.fila3["c" + i].cliente.corpo._totalframes) + 1);
retail.fila3["c" + i]._visible = true;
}
if (i > (retail.fila3.clienti + fila3)) {
retail.fila3["c" + i]._visible = false;
}
i++;
}
if ((retail.fila1.clienti + fila1) <= MAXCLIENTI) {
retail.fila1.clienti = retail.fila1.clienti + fila1;
} else {
retail.fila1.clienti = MAXCLIENTI;
}
if ((retail.fila2.clienti + fila2) <= MAXCLIENTI) {
retail.fila2.clienti = retail.fila2.clienti + fila2;
} else {
retail.fila2.clienti = MAXCLIENTI;
}
if ((retail.fila3.clienti + fila3) <= MAXCLIENTI) {
retail.fila3.clienti = retail.fila3.clienti + fila3;
} else {
retail.fila3.clienti = MAXCLIENTI;
}
}
function scorrifila() {
panini--;
this["ominoservito" + r].play();
i = 1;
while (i <= this.clienti) {
if (this["c" + i]._visible == true) {
this["c" + i].gotoAndPlay(1);
} else {
this["c" + i].gotoAndStop(1);
}
i++;
}
if (this.clienti > 0) {
this.clienti--;
}
}
function creacliente() {
this.r++;
if (this.r >= _root.CLIENTISERVITI) {
this.r = 0;
this["ominoservito" + _root.CLIENTISERVITI].removeMovieClip();
}
this.attachMovie("ominoservito", "ominoservito" + this.r, (-_root.CLIENTISERVITI) - this.r);
this["ominoservito" + this.r]._x = this.c1._x - 30;
this["ominoservito" + this.r]._y = this.c1._y - 15;
this["ominoservito" + this.r].cliente.capelli.gotoAndStop(this.c1.cliente.capelli._currentframe);
this["ominoservito" + this.r].cliente.pelle.gotoAndStop(this.c1.cliente.pelle._currentframe);
this["ominoservito" + this.r].cliente.gambe.gotoAndStop(this.c1.cliente.gambe._currentframe);
this["ominoservito" + this.r].cliente.corpo.gotoAndStop(this.c1.cliente.corpo._currentframe);
this["ominoservito" + r].cliente.gambe.passi.gotoAndStop(1);
guadagna(PREZZO_HAMBURGER);
i = 1;
while (i <= this.clienti) {
this["c" + i].cliente.capelli.gotoAndStop(this["c" + (i + 1)].cliente.capelli._currentframe);
this["c" + i].cliente.pelle.gotoAndStop(this["c" + (i + 1)].cliente.pelle._currentframe);
this["c" + i].cliente.gambe.gotoAndStop(this["c" + (i + 1)].cliente.gambe._currentframe);
this["c" + i].cliente.corpo.gotoAndStop(this["c" + (i + 1)].cliente.corpo._currentframe);
i++;
}
}
function muovipostazioni() {
l = 1;
while (l <= 3) {
if (_root.hamburger > 0) {
if (retail["linea" + l].attiva == true) {
if (random(_root.retail["linea" + l].motivazione * _root.MOLTIPLICATORE_MOTIVAZIONE) != 0) {
retail["linea" + l].gotoAndPlay(1);
_root.hamburger--;
_root.panini++;
} else {
retail["linea" + l].omino.braccia.gotoAndStop("fermo");
retail["linea" + l].omino.faccia.bocca.gotoAndPlay("sbadiglio");
}
}
}
l++;
}
}
function aggiornafrigo() {
decine = Math.floor(_root.hamburger / 10);
unita = _root.hamburger - (decine * 10);
i = 1;
while (i <= 4) {
if (decine == (i - 1)) {
retail.frigo["ham" + i].gotoAndStop(unita + 1);
} else if (decine >= i) {
retail.frigo["ham" + i].gotoAndStop(11);
} else if (decine < i) {
retail.frigo["ham" + i].gotoAndStop(1);
}
i++;
}
}
function aggiornapanini() {
if (panini <= 9) {
retail.scivolopanini.gotoAndStop(panini - 1);
}
}
function resetretail() {
retail.linea1.selezione.gotoAndStop("off");
retail.linea2.selezione.gotoAndStop("off");
retail.linea3.selezione.gotoAndStop("off");
retail.cassa1.selezione.gotoAndStop("off");
retail.cassa2.selezione.gotoAndStop("off");
retail.cassa3.selezione.gotoAndStop("off");
retail.manager.selezione.gotoAndStop("off");
retail.manager.tastoinfo._visible = false;
pianomenu.menulavoratore._visible = false;
_root.menu.gotoAndStop("nullaretail");
}
function assumi() {
resetretail();
_root.menu.gotoAndStop("dipendente");
_root.str_motivazione = eval ("_root.STR_MOT" + MAX_MOTIVAZIONE);
_root.retail[postazione].spilla = false;
_root.retail[postazione].mobbing = false;
_root.retail[postazione].attiva = true;
_root.retail[postazione].gotoAndStop("inizio");
_root.nohelp();
_root.retail[postazione].motivazione = MAX_MOTIVAZIONE;
}
function licenzia() {
resetretail();
sindacati = sindacati + SINDACATI_LICENZIAMENTO;
_root.retail["fila" + postazione.charAt(5)].clienti = -1;
_root.retail[postazione].attiva = false;
_root.retail[postazione].gotoAndStop("vuota");
_root.nohelp();
}
function controllaretail() {
allarmeretail = "";
num = 0;
som = 0;
if (retail.linea1.attiva == true) {
num++;
som = som + retail.linea1.motivazione;
}
if (retail.linea2.attiva == true) {
num++;
som = som + retail.linea2.motivazione;
}
if (retail.linea3.attiva == true) {
num++;
som = som + retail.linea3.motivazione;
}
if (retail.cassa1.attiva == true) {
num++;
som = som + retail.cassa1.motivazione;
}
if (retail.cassa2.attiva == true) {
num++;
som = som + retail.cassa2.motivazione;
}
if (retail.cassa3.attiva == true) {
num++;
som = som + retail.cassa3.motivazione;
}
if ((num > 2) && ((som / num) < 2.5)) {
allarmeretail = ALLARME_MOTIVAZIONE;
}
if (hamburger < 3) {
allarmeretail = allarmeretail + ALLARME_MACELLAZIONE;
} else if (hamburger > (MAX_HAMBURGER - 10)) {
allarmeretail = allarmeretail + ALLARME_FRIGO;
}
if ((attive.length < 3) && (((retail.fila1.clienti >= (MAXCLIENTI - 1)) || (retail.fila2.clienti >= (MAXCLIENTI - 1))) || (retail.fila3.clienti >= (MAXCLIENTI - 1)))) {
allarmeretail = allarmeretail + ALLARME_FILA;
if (panini <= 2) {
allarmeretail = allarmeretail + ALLARME_GRILLMEN;
} else {
allarmeretail = allarmeretail + ALLARME_CASSE;
}
}
return(allarmeretail);
}
function premia() {
_root.retail[postazione].spilla = true;
_root.pianomenu.menulavoratore.spilla._visible = false;
if (random(RANDOM_SPILLA) == 0) {
_root.retail[postazione].motivazione = MAX_MOTIVAZIONE;
}
}
function mobbizza() {
sindacati = sindacati + SINDACATI_MOBBING;
_root.retail[postazione].mobbing = true;
_root.pianomenu.menulavoratore.mobbing._visible = false;
if (random(RANDOM_MOBBING) == 0) {
_root.retail[postazione].motivazione = MAX_MOTIVAZIONE;
}
}
function resetbrand() {
brand.pubblicita.gotoAndStop("off");
brand.pr.gotoAndStop("off");
brand.cda.gotoAndStop("off");
brand.tastipubblicita._visible = false;
brand.tasticda._visible = false;
brand.tastipr._visible = false;
_root.menu.gotoAndStop("nullabrand");
}
function nuovaFinestra(titolo, txt, img, tipo) {
aperta = false;
i = 1;
while ((i <= IDfinestra) && (aperta == false)) {
if (_root.pianofinestre[i].titolo.text != titolo) {
aperta = false;
} else {
aperta = i;
}
i++;
}
if (aperta == false) {
IDfinestra++;
_root.pianofinestre.attachMovie("finestra", IDfinestra, IDfinestra, {_x:ROOT_X / 2, _y:ROOT_Y / 2});
_root.pianofinestre[IDfinestra].corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
_root.pianofinestre[IDfinestra].barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, this._parent._width / 2, this._parent._height / 2, 665 - (this._parent._width / 2), (380 + (this._parent._height / 2)) - 30);
};
_root.pianofinestre[IDfinestra].barra.onRelease = function () {
stopDrag();
};
_root.pianofinestre[IDfinestra].xbutton.onRelease = function () {
removeMovieClip(this._parent);
};
_root.pianofinestre[IDfinestra].titolo.text = titolo;
_root.pianofinestre[IDfinestra].testo.text = txt;
_root.pianofinestre[IDfinestra].img.gotoAndStop(img);
if ((tipo == undefined) || (tipo == 1)) {
_root.pianofinestre[IDfinestra].gotoAndStop("statica");
} else {
if ((tipo == 2) || (tipo == 4)) {
_root.pianofinestre[IDfinestra].gotoAndStop("conferma");
}
if ((tipo == 3) || (tipo == 5)) {
_root.pianofinestre[IDfinestra].gotoAndStop("annulla");
}
_root.pianofinestre[IDfinestra].tasto.onRelease = function () {
if (tipo == 2) {
_root.brand.tastipr[img].gotoAndStop("on");
_root.brand[img] = true;
removeMovieClip(this._parent);
}
if (tipo == 3) {
_root.brand.tastipr[img].gotoAndStop("off");
_root.brand[img] = false;
removeMovieClip(this._parent);
}
if (tipo == 4) {
_root.brand.tastipubblicita[img].gotoAndStop("on");
_root.brand[img] = true;
removeMovieClip(this._parent);
}
if (tipo == 5) {
_root.brand.tastipubblicita[img].gotoAndStop("off");
_root.brand[img] = false;
removeMovieClip(this._parent);
}
};
}
} else {
_root.pianofinestre[aperta].testo.text = txt;
}
}
function spendi(somma, voce) {
if (_root.soldi >= somma) {
spiaSoldi.gotoAndPlay("verde");
} else {
spiaSoldi.gotoAndPlay("rosso");
}
_root.soldi = _root.soldi - somma;
_root.uscite = _root.uscite + somma;
if (voce != undefined) {
_root.bilancio = _root.bilancio + (((voce + ": ") + somma) + "$\n");
}
}
function guadagna(somma) {
_root.soldi = _root.soldi + somma;
_root.entrate = _root.entrate + somma;
}
function speseMensili() {
q = 0;
p = 0;
s = 0;
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].tipo == "allevamento") {
p++;
}
if (piano["tile" + i].tipo == "soia") {
s++;
}
if (piano["tile" + i].ogm == true) {
q++;
}
i++;
}
if (q > 0) {
spendi(COSTO_OGM * q, VOCE_OGM);
}
if (p > 0) {
spendi(COSTO_PASCOLO_MESE * p, VOCE_PASCOLO_MANUTENZIONE);
}
if (s > 0) {
spendi(COSTO_SOIA_MESE * s, VOCE_SOIA_MANUTENZIONE);
}
if (brand.alimentarista) {
spendi(COSTO_ALIMENTARISTA, ALIMENTARISTA_TITOLO);
}
if (brand.politico) {
spendi(COSTO_POLITICO, POLITICO_TITOLO);
}
if (brand.climatologo) {
spendi(COSTO_CLIMATOLOGO, CLIMATOLOGO_TITOLO);
}
if (brand.ispettore) {
spendi(COSTO_ISPETTORE, ISPETTORE_TITOLO);
}
if (brand.topolino) {
spendi(COSTO_TOPOLINO, TOPOLINO_TITOLO);
}
if (brand.bambini) {
spendi(COSTO_BAMBINI, BAMBINI_TITOLO);
}
if (brand.alimentazione) {
spendi(COSTO_ALIMENTAZIONE, ALIMENTAZIONE_TITOLO);
}
if (brand.terzomondo) {
spendi(COSTO_TERZOMONDO, TERZOMONDO_TITOLO);
}
q = 0;
if (retail.cassa1.attiva) {
q++;
}
if (retail.cassa2.attiva) {
q++;
}
if (retail.cassa3.attiva) {
q++;
}
if (retail.linea1.attiva) {
q++;
}
if (retail.linea2.attiva) {
q++;
}
if (retail.linea3.attiva) {
q++;
}
spendi(COSTO_CREW * q, VOCE_STIPENDI);
if (ormoni == true) {
spendi(COSTO_ORMONI, VOCE_ORMONI);
}
}
function calcolaDissenso() {
i = 1;
while (i < TOT_TILES) {
if (piano["tile" + i].fertilita < _root.FERTILITA_ALLARME) {
ecologisti = ecologisti + ECOLOGISTI_DESERTIFICAZIONE;
}
if (piano["tile" + i].ogm == true) {
consumatori = consumatori + CONSUMATORI_OGM;
}
i++;
}
if (statocitta == STR_DISABITATA) {
noglobal = noglobal + (NOGLOBAL_CITTA * 3);
} else if (statocitta == STR_ALLARMANTE) {
noglobal = noglobal + (NOGLOBAL_CITTA * 2);
} else if (statocitta == STR_SCARSO) {
noglobal = noglobal + NOGLOBAL_CITTA;
}
if (brand.bambini) {
noglobal = noglobal + NOGLOBAL_PUBBLICITA;
}
if (affluenza >= 2) {
obesi = obesi + OBESI_CRESCITA;
}
if (affluenza < 2) {
obesi = obesi - OBESI_DECRESCITA;
}
if (brand.climatologo) {
ecologisti = ecologisti - CLIMATOLOGO_EFFICACIA;
}
if (brand.politico) {
noglobal = noglobal - POLITICO_EFFICACIA;
sindacati = sindacati - POLITICO_EFFICACIA;
}
if (brand.ispettore) {
consumatori = consumatori - ISPETTORE_EFFICACIA;
}
if (brand.terzomondo) {
noglobal = noglobal - TERZOMONDO_EFFICACIA;
}
if (brand.alimentazione) {
obesi = obesi - ALIMENTAZIONE_EFFICACIA;
}
sindacati = sindacati - SINDACATI_DECRESCITA;
if (sindacati < 0) {
sindacati = 0;
} else if (sindacati < 20) {
sindacatiProtesta = false;
} else if ((sindacati > 50) && (sindacati < 100)) {
if (!sindacatiProtesta) {
nuovaFinestra(SINDACATI, SINDACATI_ALLARME, "sindacati");
_root.suonoAllarme.start();
}
sindacatiProtesta = true;
} else if (sindacati >= 100) {
sindacati = 19;
nuovaFinestra(SINDACATI, SINDACATI_PROTESTA, "sindacati");
_root.suonoAllarme.start();
sindacatiPicchetto = SINDACATI_PICCHETTO;
}
if (obesi < 0) {
obesi = 0;
} else if (obesi < 20) {
obesiProtesta = false;
} else if ((obesi > 50) && (obesi < 100)) {
if (!obesiProtesta) {
nuovaFinestra(OBESI, OBESI_ALLARME, "obesi");
_root.suonoAllarme.start();
}
obesiProtesta = true;
} else if (obesi >= 100) {
obesi = 0;
nuovaFinestra(OBESI, (((OBESI_PROTESTA + newline) + VOCE_OBESI_MULTA) + ": ") + OBESI_MULTA, "obesi");
_root.suonoAllarme.start();
spendi(OBESI_MULTA, VOCE_OBESI_MULTA);
}
if (ecologisti < 0) {
ecologisti = 0;
} else if (ecologisti < 20) {
ecologistiProtesta = false;
} else if ((ecologisti > 50) && (ecologisti < 100)) {
if (!ecologistiProtesta) {
nuovaFinestra(ECOLOGISTI, ECOLOGISTI_ALLARME, "ecologisti");
_root.suonoAllarme.start();
}
ecologistiProtesta = true;
} else if (ecologisti >= 100) {
ecologisti = 19;
nuovaFinestra(ECOLOGISTI, ECOLOGISTI_PROTESTA, "ecologisti");
_root.suonoAllarme.start();
ecologistiBoicott = ECOLOGISTI_BOICOTT;
}
if (noglobal < 0) {
noglobal = 0;
} else if (noglobal < 20) {
noglobalProtesta = false;
} else if ((noglobal > 50) && (noglobal < 100)) {
if (!noglobalProtesta) {
nuovaFinestra(NOGLOBAL, NOGLOBAL_ALLARME, "noglobal");
_root.suonoAllarme.start();
}
noglobalProtesta = true;
} else if (noglobal >= 100) {
noglobal = 10;
nuovaFinestra(NOGLOBAL, NOGLOBAL_PROTESTA, "noglobal");
_root.suonoAllarme.start();
noglobalBoicott = NOGLOBAL_BOICOTT;
}
if (consumatori < 0) {
consumatori = 0;
} else if (consumatori < 20) {
consumatoriProtesta = false;
} else if ((consumatori > 50) && (consumatori < 100)) {
if (!consumatoriProtesta) {
nuovaFinestra(CONSUMATORI, CONSUMATORI_ALLARME, "consumatori");
_root.suonoAllarme.start();
}
consumatoriProtesta = true;
} else if (consumatori >= 100) {
consumatori = 0;
nuovaFinestra(CONSUMATORI, (((CONSUMATORI_PROTESTA + newline) + VOCE_CONSUMATORI_MULTA) + ": ") + CONSUMATORI_MULTA, "consumatori");
_root.suonoAllarme.start();
spendi(CONSUMATORI_MULTA, VOCE_CONSUMATORI_MULTA);
}
if (consumatori < 0) {
consumatori = 0;
}
}
function calcolaAffluenza() {
affluenza = 1;
if (brand.topolino) {
affluenza = affluenza + 2;
}
if (brand.bambini) {
affluenza = affluenza + 1;
}
if (brand.alimentazione) {
affluenza = affluenza + 1;
}
if (brand.terzomondo) {
affluenza = affluenza + 1;
}
if (sindacatiPicchetto > 0) {
affluenza = 0;
}
if ((noglobalBoicott > 0) && (affluenza > 0)) {
affluenza--;
}
if ((ecologistiBoicott > 0) && (affluenza > 0)) {
affluenza--;
}
}
function disegnaStat() {
(i = 0);
(maxy = 0);
(miny = 0);
while (i < stat.length) {
if (stat[i] > maxy) {
maxy = stat[i];
}
if (stat[i] < miny) {
miny = stat[i];
}
i++;
}
with (_root.pianofinestre.finestra_stat.piano) {
ux = (_root.PIANO_X - _root.CORNICE) / _root.stat.length;
uy = _root.PIANO_Y / (_root.maxy + Math.abs(_root.miny));
zero = _root.miny * uy;
_root.pianofinestre.finestra_stat.piano.attachMovie("piano", "grafico", 1, {_x:0, _y:0});
_root.pianofinestre.finestra_stat.piano.createEmptyMovieClip("grafico", -10);
grafico.lineStyle(3, _root.COL_ASSI, 100);
grafico.moveTo(0, zero);
grafico.lineTo(_root.ASSE_X - _root.CORNICE, zero);
grafico.attachMovie("freccia_y", "freccia_y", 200, {_x:_root.ASSE_X - _root.CORNICE, _y:zero});
grafico.moveTo(0, 0);
grafico.lineTo(0, (-_root.ASSE_Y) + _root.CORNICE);
grafico.attachMovie("freccia_x", "freccia_x", 201, {_x:0, _y:(-_root.ASSE_Y) + _root.CORNICE});
if (_root.periodo == 0) {
grafico.moveTo(0, (-(_root.SOLDI_INIZIALI * uy)) + zero);
}
i = 0;
while (i < stat.length) {
x = i * ux;
y = (-(stat[i] * uy)) + zero;
grafico.lineStyle(5, _root.COL_LINEA, 100);
grafico.lineTo(x, y);
grafico.attachMovie("punto", "punto" + i, i + 1000, {_x:x, _y:y});
grafico["punto" + i].i = i;
grafico["punto" + i].onRollOver = function () {
this.gotoAndStop("roll");
_root.help(_root.STR_PUNTO);
};
grafico["punto" + i].onRollOut = function () {
this.gotoAndStop(1);
_root.nohelp();
};
if (i > 1) {
grafico["punto" + i].onPress = function () {
_root.nuovaFinestra(_root.STR_ARCHIVIO, _root.bilanci[this.i], "cda");
};
} else {
grafico["punto" + i].onPress = function () {
_root.nuovaFinestra(_root.STR_ARCHIVIO, _root.STR_INIZIO_ATTIVITA + newline, "cda");
};
}
if ((i % 12) == 0) {
grafico.createTextField("mytext" + i, i + 10000, x, zero - 15, 30, 20);
grafico["mytext" + i].text = (_root.periodo + _root.YEAR) + (i / 12);
grafico["mytext" + i].setTextFormat(_root.myformat);
}
if (i != 0) {
grafico.lineStyle(1, _root.COL_RIGHE, 100);
grafico.moveTo(x, y);
grafico.lineTo(x, zero);
grafico.moveTo(x, y);
}
i++;
}
}
}
function startLoop(linkage, id) {
loop.stop(linkage);
loop = new Sound();
loop.attachSound(linkage);
loop.start(0, 10);
_root["ultimo" + linkage] = id;
}
function stopLoop(linkage, id) {
if (_root["ultimo" + linkage] == id) {
loop.stop(linkage);
}
}
function gameOver() {
if (!finestraGameOver._visible) {
stopAllSounds();
pausa();
finestraGameOver._visible = true;
finestraGameOver.play();
_global.zona = "gameover";
_root.loopAmbiente.stop();
}
}
stop();
_global.zona = "agricoltura";
_global.running = true;
with (brand) {
alimentarista = false;
politico = false;
climatologo = false;
ispettore = false;
topolino = false;
bambini = false;
alimentazione = false;
terzomondo = false;
}
ormoni = false;
farineanimali = false;
scarti = false;
stagioni.gotoAndStop(4);
timeabs = 0;
_root.loopAmbiente.start(0, 999);
_root.prova = 0;
_root.pianomenu.attachMovie("menucontestuale", "menucontestuale", 1000);
_root.pianomenu.attachMovie("menulavoratore", "menulavoratore", 10);
_root.pianomenu.menulavoratore._visible = false;
bilancio = _root.STR_INIZIO_ATTIVITA + newline;
stat = new Array();
stat.push(soldi);
bilanci = new Array();
bilanci.push(_root.STR_INIZIO_ATTIVITA);
clearInterval(weekInterval);
time = TIME;
weekInterval = setInterval(everyweek, time);
interfaccia = 0;
Listener = new Object();
Listener.onMouseUp = function () {
if (_root.interfaccia == 0) {
deselezionaall();
}
};
Mouse.addListener(Listener);
bott_pausa.onRelease = function () {
if (_root.velocita != "PAUSA") {
_root.suonoDit.start();
_root.velocita = "PAUSA";
_root.bott_pausa.gotoAndStop("pausa");
_root.normal.gotoAndStop("spento");
_root.suonoBeep.setVolume(0);
pausa();
}
};
normal.onRelease = function () {
if (_root.velocita != "NORMAL") {
_root.suonoDit.start();
_root.velocita = "NORMAL";
_root.normal.gotoAndPlay("roll");
_root.bott_pausa.gotoAndStop("play");
riprendi();
if (suoni) {
_root.suonoBeep.setVolume(100);
}
}
};
bottMenu.onRelease = function () {
pianofinestre.finestraMenu._visible = true;
};
pianofinestre.finestraMenu.tutorial.onRelease = function () {
_root.tutorial.gotoAndStop(1);
_root.tutorial._visible = true;
_root.pianofinestre.finestraMenu._visible = false;
_root.suonoBeep.setVolume(0);
pausa();
};
pianofinestre.finestraMenu.continueGame.onRelease = function () {
_root.pianofinestre.finestraMenu._visible = false;
};
pianofinestre.finestraMenu.quit.onRelease = function () {
_root.gotoAndStop("menu");
};
finestraGameOver.quit.onRelease = function () {
_root.gotoAndStop("menu");
};
pianofinestre.finestraMenu.sound.onLoad = function () {
if (suoni) {
this.scrittaSuoni.gotoAndStop("on");
} else {
this.scrittaSuoni.gotoAndStop("off");
}
};
pianofinestre.finestraMenu.sound.onRelease = function () {
if (suoni) {
_root.suonoBeep.setVolume(0);
_global.suoni = false;
pianofinestre.finestraMenu.scrittaSuoni.gotoAndStop("off");
} else {
_root.suonoBeep.setVolume(100);
_global.suoni = true;
_root.pianofinestre.finestraMenu.scrittaSuoni.gotoAndStop("on");
}
};
bottMenu.onRelease = function () {
pianofinestre.finestraMenu._visible = true;
};
resetSelections();
i = 1;
while (i < TOT_TILES) {
piano["tile" + i].fertilita = FERTILITA_MAX;
piano["tile" + i].areaattiva.onPress = function () {
if (this._parent.selezione._currentframe <= 13) {
this._parent.selezione.gotoAndPlay("on");
nometile = this._parent._name;
tipotile = this._parent.tipo;
_root.tilecorrente = nometile;
_root.tipotilecorrente = tipotile;
calcolafertilita();
if (piano[nometile].nuovoutilizzo == undefined) {
if (((tipotile != "grano") && (tipotile != "attesagrano")) || (_root.sindacocorrotto == true)) {
contextMenu(nometile, tipotile);
}
}
_root.menu.gotoAndStop(tipotile);
} else if (this._parent.selezione._currentframe > 13) {
_root.pianomenu.menucontestuale._visible = false;
this._parent.selezione.gotoAndPlay("roll");
_root.tilecorrente = "nessuno";
_root.menu.gotoAndStop("nulla");
}
};
piano["tile" + i].areaattiva.onRollOver = function () {
if (_root.tilecorrente == this._parent._name) {
this._parent.selezione.gotoAndPlay("roll");
} else {
_root.resetSelections();
_root.tilecorrente = "nessuno";
}
if (this._parent.selezione._currentframe == 27) {
this._parent.selezione.gotoAndPlay("roll");
}
};
i++;
}
inizializzavacche();
inizializzavacche();
i = 1;
while (i < (MAX_VACCHE + 1)) {
allevamento["vacca" + i].presente = 0;
i++;
}
allevamento.tritacarne.onEnterFrame = function () {
if ((this._currentframe == 1) && (_root.hamburgerdafare > 0)) {
_root.hamburgerfatti++;
_root.hamburgerdafare = _root.hamburgerdafare - 3;
if (_root.hamburgerdafare < 0) {
_root.hamburgerdafare = 0;
}
if (_root.allevamento.hamburger1._currentframe == _root.allevamento.hamburger1._totalframes) {
_root.allevamento.hamburger1.play();
} else if (_root.allevamento.hamburger2._currentframe == _root.allevamento.hamburger2._totalframes) {
_root.allevamento.hamburger2.play();
} else if (_root.allevamento.hamburger3._currentframe == _root.allevamento.hamburger3._totalframes) {
_root.allevamento.hamburger3.play();
} else if (_root.allevamento.hamburger4._currentframe == _root.allevamento.hamburger4._totalframes) {
_root.allevamento.hamburger4.play();
} else if (_root.allevamento.hamburger5._currentframe == _root.allevamento.hamburger5._totalframes) {
_root.allevamento.hamburger5.play();
} else if (_root.allevamento.hamburger6._currentframe == _root.allevamento.hamburger6._totalframes) {
_root.allevamento.hamburger6.play();
} else if (_root.allevamento.hamburger7._currentframe == _root.allevamento.hamburger7._totalframes) {
_root.allevamento.hamburger7.play();
} else if (_root.allevamento.hamburger8._currentframe == _root.allevamento.hamburger8._totalframes) {
_root.allevamento.hamburger8.play();
}
}
};
inizializzafile();
inizializzalavoratori();
IDfinestra = 0;
Instance of Symbol 1077 MovieClip "allevamento" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1246 MovieClip "retail" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1513 MovieClip "brand" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1543 MovieClip "finestraGameOver" in Frame 4
onClipEvent (load) {
this._visible = false;
}
Symbol 7 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 91 MovieClip [ominoservito] Frame 1
cliente.gambe.passi.play();
num = this._parent._name.charAt(4);
if (_root.retail["cassa" + num].attiva == true) {
_root.retail["cassa" + num].gotoAndPlay(1);
}
Symbol 91 MovieClip [ominoservito] Frame 4
cap = cliente.capelli._currentframe;
pel = cliente.pelle._currentframe;
gam = cliente.gambe._currentframe;
cor = cliente.corpo._currentframe;
cliente.gotoAndStop(2);
cliente.gambe.passi.play();
cliente.capelli.gotoAndStop(cap);
cliente.pelle.gotoAndStop(pel);
cliente.gambe.gotoAndStop(gam);
cliente.corpo.gotoAndStop(cor);
Symbol 91 MovieClip [ominoservito] Frame 17
stop();
Symbol 93 MovieClip Frame 1
_root.suonoBeep.start();
Symbol 97 MovieClip Frame 1
_root.suonoBeep.start();
Symbol 98 Button
on (press) {
_root.assumi();
}
on (rollOver) {
_root.help(_root.HLP_ASSUMI, _root.COSTO_CREW, "mese");
}
on (rollOut) {
_root.nohelp();
}
Symbol 100 Button
on (press) {
_root.licenzia();
}
on (rollOver) {
_root.help(_root.HLP_LICENZIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 103 Button
on (press) {
_root.mobbizza();
}
on (rollOver) {
_root.help(_root.HLP_MOBBIZZA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 106 Button
on (press) {
_root.premia();
}
on (rollOver) {
_root.help(_root.HLP_PREMIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 109 MovieClip [menulavoratore] Frame 1
stop();
Symbol 145 MovieClip Frame 1
_root.suonoClick.start();
Symbol 155 MovieClip [finestra] Frame 1
su_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll--;
};
};
su_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
giu_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll++;
};
};
giu_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
t = new Object();
t.onKeyDown = function () {
if (Key.isDown(38)) {
testo.scroll--;
} else if (Key.isDown(40)) {
testo.scroll++;
}
};
Key.addListener(t);
stop();
Symbol 155 MovieClip [finestra] Frame 2
su_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll--;
};
};
su_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
giu_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll++;
};
};
giu_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
t = new Object();
t.onKeyDown = function () {
if (Key.isDown(38)) {
testo.scroll--;
} else if (Key.isDown(40)) {
testo.scroll++;
}
};
Key.addListener(t);
stop();
Symbol 155 MovieClip [finestra] Frame 3
su_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll--;
};
};
su_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
giu_btn.onPress = function () {
_root.onEnterFrame = function () {
testo.scroll++;
};
};
giu_btn.onRelease = (giu_btn.onReleaseOutside = function () {
_root.onEnterFrame = undefined;
});
t = new Object();
t.onKeyDown = function () {
if (Key.isDown(38)) {
testo.scroll--;
} else if (Key.isDown(40)) {
testo.scroll++;
}
};
Key.addListener(t);
stop();
Symbol 166 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_ALLEVAMENTO, _root.COSTO_PASCOLO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 169 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_SOIA, _root.COSTO_SOIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 172 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_SOIA, _root.COSTO_SOIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 173 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_FORESTAALLEVAMENTO, _root.COSTO_PASCOLOFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 174 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_FORESTASOIA, _root.COSTO_SOIAFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 175 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_VILLAGGIOALLEVAMENTO, _root.COSTO_PASCOLOFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 176 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_VILLAGGIOSOIA, _root.COSTO_PASCOLOFORESTA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 177 Button
on (press) {
_root.vendi();
}
on (rollOver) {
_root.help(_root.HLP_VENDITERRENO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 180 Button
on (press) {
_root.creaallevamento();
}
on (rollOver) {
_root.help(_root.HLP_TRASFORMAALLEVAMENTO, _root.COSTO_PASCOLO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 189 Button
on (press) {
_root.creasoia();
}
on (rollOver) {
_root.help(_root.HLP_TRASFORMASOIA, _root.COSTO_SOIA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 191 Button
on (press) {
_root.aumentavacche();
}
on (rollOver) {
_root.help(_root.HLP_ALLEVAMENTOPIU);
}
on (rollOut) {
_root.nohelp();
}
Symbol 192 Button
on (press) {
_root.diminuiscivacche();
}
on (rollOver) {
_root.help(_root.HLP_ALLEVAMENTOMENO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 198 MovieClip [menucontestuale] Frame 1
stop();
Instance of Symbol 186 MovieClip "tastoogm" in Symbol 198 MovieClip [menucontestuale] Frame 7
onClipEvent (load) {
if (_root.piano[_root.tilecorrente].ogm == true) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
on (rollOver) {
_root.help(_root.HLP_OGM, _root.COSTO_OGM, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (_root.piano[_root.tilecorrente].ogm == true) {
_root.piano[_root.tilecorrente].ogm = false;
gotoAndStop ("roll");
} else {
_root.piano[_root.tilecorrente].ogm = true;
gotoAndStop ("on");
}
}
Instance of Symbol 186 MovieClip "tastoogm" in Symbol 198 MovieClip [menucontestuale] Frame 13
onClipEvent (load) {
if (_root.piano[_root.tilecorrente].ogm == true) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
on (rollOver) {
_root.help(_root.HLP_OGM, _root.COSTO_OGM, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (_root.piano[_root.tilecorrente].ogm == true) {
_root.piano[_root.tilecorrente].ogm = false;
gotoAndStop ("roll");
} else {
_root.piano[_root.tilecorrente].ogm = true;
gotoAndStop ("on");
}
}
Instance of Symbol 186 MovieClip "tastoogm" in Symbol 198 MovieClip [menucontestuale] Frame 15
onClipEvent (load) {
if (_root.piano[_root.tilecorrente].ogm == true) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
}
on (rollOver) {
_root.help(_root.HLP_OGM, _root.COSTO_OGM, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (_root.piano[_root.tilecorrente].ogm == true) {
_root.piano[_root.tilecorrente].ogm = false;
gotoAndStop ("roll");
} else {
_root.piano[_root.tilecorrente].ogm = true;
gotoAndStop ("on");
}
}
Symbol 201 MovieClip [fps_meter] Frame 1
#initclip 6
FPS = function () {
this.onEnterFrame = function () {
this.fc++;
};
setInterval(this, "calc", 1000);
};
var p = ((FPS.prototype = new MovieClip()));
p.calc = function () {
this.dp.text = this.fc;
this.fc = 0;
};
Object.registerClass("fps_meter", FPS);
#endinitclip
Symbol 208 Button
on (release) {
_root.nextFrame();
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
_root.teaserOff = true;
this.unloadMovie();
} else {
AG_COUNT++;
}
}
_parent.stop();
_root.teaserOff = false;
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 1544 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1545 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1546 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1547 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1548 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 243 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 245 MovieClip Frame 4
gotoAndPlay (1);
Symbol 250 Button
on (release) {
getURL ("http://www.molleindustria.it", "_blank");
}
Symbol 264 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 295 Button
on (release) {
_root.suonoBeep.start();
nPage.text = _currentframe + 1;
nTotal.text = _totalframes;
nextFrame();
}
Symbol 300 Button
on (release) {
_root.suonoBop.start();
if (suoni) {
_root.suonoBeep.setVolume(100);
}
_root.riprendi();
_root.tutorial._visible = false;
}
Symbol 301 Button
on (release) {
_root.suonoBeep.start();
nPage.text = _currentframe - 1;
nTotal.text = _totalframes;
prevFrame();
}
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 4
gotoAndPlay ("on");
Symbol 354 MovieClip Frame 1
stop();
nPage.text = 1;
nTotal.text = _totalframes;
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 1
onClipEvent (load) {
_root.createBox(this, _root.TUT1);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT1);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT2);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT3);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT4);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT6);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 2
onClipEvent (load) {
_root.createBox(this, _root.STR_INT5);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 3
onClipEvent (load) {
_root.createBox(this, _root.TUT2);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 4
onClipEvent (load) {
_root.createBox(this, _root.TUT3);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 5
onClipEvent (load) {
_root.createBox(this, _root.TUT4);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 6
onClipEvent (load) {
_root.createBox(this, _root.TUT5);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 7
onClipEvent (load) {
_root.createBox(this, _root.TUT6);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 8
onClipEvent (load) {
_root.createBox(this, _root.TUT7);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 9
onClipEvent (load) {
_root.createBox(this, _root.TUT8);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 10
onClipEvent (load) {
_root.createBox(this, _root.TUT9);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 11
onClipEvent (load) {
_root.createBox(this, _root.TUT10);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 12
onClipEvent (load) {
_root.createBox(this, _root.TUT11);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 13
onClipEvent (load) {
_root.createBox(this, _root.TUT12);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 14
onClipEvent (load) {
_root.createBox(this, _root.TUT13);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 15
onClipEvent (load) {
_root.createBox(this, _root.TUT14);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 16
onClipEvent (load) {
_root.createBox(this, _root.TUT15);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 17
onClipEvent (load) {
_root.createBox(this, _root.TUT16);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 18
onClipEvent (load) {
_root.createBox(this, _root.TUT17);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 19
onClipEvent (load) {
_root.createBox(this, _root.TUT18);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 20
onClipEvent (load) {
_root.createBox(this, _root.TUT19);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 21
onClipEvent (load) {
_root.createBox(this, _root.TUT20);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 22
onClipEvent (load) {
_root.createBox(this, _root.TUT21);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 23
onClipEvent (load) {
_root.createBox(this, _root.TUT22);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 24
onClipEvent (load) {
_root.createBox(this, _root.TUT23);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 25
onClipEvent (load) {
_root.createBox(this, _root.TUT24);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 26
onClipEvent (load) {
_root.createBox(this, _root.TUT25);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 27
onClipEvent (load) {
_root.createBox(this, _root.TUT26);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 28
onClipEvent (load) {
_root.createBox(this, _root.TUT27);
}
Instance of Symbol 290 MovieClip in Symbol 354 MovieClip Frame 29
onClipEvent (load) {
_root.createBox(this, _root.TUT28);
}
Symbol 354 MovieClip Frame 30
_root.suonoBop.start();
if (suoni) {
_root.suonoBeep.setVolume(100);
}
_root.riprendi();
_root.tutorial._visible = false;
Symbol 359 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
stop();
help._visible = false;
Symbol 477 MovieClip Frame 2
help._visible = false;
Symbol 477 MovieClip Frame 3
help._visible = false;
Symbol 477 MovieClip Frame 4
help._visible = false;
Symbol 477 MovieClip Frame 5
help._visible = false;
Symbol 477 MovieClip Frame 6
help._visible = false;
Symbol 477 MovieClip Frame 7
help._visible = false;
Symbol 477 MovieClip Frame 8
help._visible = false;
Symbol 477 MovieClip Frame 9
help._visible = false;
Symbol 477 MovieClip Frame 10
help._visible = false;
Symbol 477 MovieClip Frame 11
help._visible = false;
Symbol 477 MovieClip Frame 12
help._visible = false;
Symbol 477 MovieClip Frame 13
help._visible = false;
Symbol 477 MovieClip Frame 14
help._visible = false;
Symbol 477 MovieClip Frame 15
help._visible = false;
Symbol 477 MovieClip Frame 16
help._visible = false;
Symbol 477 MovieClip Frame 17
help._visible = false;
Symbol 477 MovieClip Frame 18
help._visible = false;
Symbol 477 MovieClip Frame 19
help._visible = false;
Symbol 477 MovieClip Frame 20
help._visible = false;
Symbol 477 MovieClip Frame 21
help._visible = false;
Symbol 477 MovieClip Frame 22
help._visible = false;
Symbol 477 MovieClip Frame 23
help._visible = false;
Symbol 477 MovieClip Frame 24
help._visible = false;
Symbol 477 MovieClip Frame 25
help._visible = false;
Symbol 477 MovieClip Frame 26
help._visible = false;
Symbol 477 MovieClip Frame 27
help._visible = false;
Symbol 477 MovieClip Frame 28
help._visible = false;
Symbol 477 MovieClip Frame 29
help._visible = false;
Symbol 477 MovieClip Frame 30
help._visible = false;
Symbol 483 Button
on (release) {
if (zona != "agricoltura") {
_global.zona = "agricoltura";
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("agricoltura");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_root.piano._visible = true;
_root.allevamento._visible = false;
_root.retail._visible = false;
_root.brand._visible = false;
_root.menu.gotoAndStop("nulla");
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
}
}
on (rollOver) {
_root.help(_root.STR_VAIAGRICOLTURA);
}
on (rollOut) {
_root.nohelp();
}
Symbol 485 Button
on (release) {
if (zona != "allevamento") {
_global.zona = "allevamento";
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("loopallevamento2");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_root.piano._visible = false;
_root.allevamento._visible = true;
_root.retail._visible = false;
_root.brand._visible = false;
_root.menu.gotoAndStop("nullaall");
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
}
}
on (rollOver) {
_root.help(_root.STR_VAIALLEVAMENTO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 486 Button
on (release) {
if (zona != "retail") {
_global.zona = "retail";
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("fastfood");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_root.piano._visible = false;
_root.allevamento._visible = false;
_root.retail._visible = true;
_root.brand._visible = false;
_root.menu.gotoAndStop("nullaretail");
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
}
}
on (rollOver) {
_root.help(_root.STR_VAIRETAIL);
}
on (rollOut) {
_root.nohelp();
}
Symbol 487 Button
on (release) {
if (zona != "brand") {
_root.loopAmbiente.stop();
_root.loopAmbiente.attachSound("retail");
_root.loopAmbiente.start(0, 999);
_root.suonoBop.start();
_global.zona = "brand";
_root.piano._visible = false;
_root.allevamento._visible = false;
_root.retail._visible = false;
_root.brand._visible = true;
_root.resetbrand();
_root.resetretail();
_root.deselezionaall();
_root.resetSelections();
_root.menu.gotoAndStop("nullabrand");
}
}
on (rollOver) {
_root.help(_root.STR_VAIBRAND);
}
on (rollOut) {
_root.nohelp();
}
Symbol 499 MovieClip Frame 4
gotoAndPlay ("roll");
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 3
gotoAndStop ("verde");
Symbol 509 MovieClip Frame 6
gotoAndPlay ("rosso");
Symbol 515 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 14
gotoAndPlay ("roll");
Symbol 527 MovieClip Frame 28
gotoAndPlay ("on");
Symbol 534 MovieClip Frame 13
gotoAndPlay (1);
Symbol 534 MovieClip Frame 14
_root.suonoClick.start();
Symbol 534 MovieClip Frame 26
stop();
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 5
stop();
Symbol 538 MovieClip Frame 8
gotoAndStop (1);
Symbol 546 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 28
gotoAndPlay("azione" + (random(3) + 1));
Symbol 727 MovieClip Frame 36
gotoAndPlay ("azione1");
Symbol 727 MovieClip Frame 94
gotoAndPlay ("azione1");
Symbol 766 MovieClip Frame 12
azione = random(5) + 1;
gotoAndPlay("azione" + azione);
Symbol 766 MovieClip Frame 29
gotoAndPlay ("azione1");
Symbol 766 MovieClip Frame 59
gotoAndPlay ("azione1");
Symbol 766 MovieClip Frame 82
gotoAndPlay ("azione1");
Symbol 766 MovieClip Frame 84
if (zona == "agricoltura") {
_root["suonoMucca" + (random(3) + 1)].start();
}
Symbol 766 MovieClip Frame 98
gotoAndPlay ("azione1");
Symbol 779 MovieClip Frame 10
stop();
Symbol 784 MovieClip Frame 5
stop();
Symbol 784 MovieClip Frame 27
if (zona == "agricoltura") {
_root.suonoBraccio.stop("braccio");
_root.suonoBraccio.start();
}
Symbol 784 MovieClip Frame 32
if (zona == "agricoltura") {
_root.suonoBraccioSu.stop("bracciosu");
_root.suonoBraccioSu.start();
}
Symbol 784 MovieClip Frame 40
_root.nuovavacca();
gotoAndPlay (1);
Symbol 799 MovieClip Frame 1
stop();
Instance of Symbol 198 MovieClip [menucontestuale] "menu" in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 799 MovieClip Frame 5
nuovoutilizzo = "soia";
Symbol 799 MovieClip Frame 42
_root.stopLoop("aratura", this._name);
Symbol 799 MovieClip Frame 45
nuovoutilizzo = undefined;
stop();
Symbol 799 MovieClip Frame 53
stop();
Symbol 799 MovieClip Frame 62
stop();
Symbol 799 MovieClip Frame 93
_root.suonoMietitura.stop("mietitura");
Symbol 799 MovieClip Frame 97
stop();
Symbol 799 MovieClip Frame 109
stop();
Symbol 799 MovieClip Frame 157
stop();
Symbol 799 MovieClip Frame 165
stop();
Symbol 799 MovieClip Frame 196
_root.suonoMietitura.stop("mietitura");
Symbol 799 MovieClip Frame 202
stop();
Symbol 799 MovieClip Frame 211
stop();
Symbol 799 MovieClip Frame 212
Symbol 799 MovieClip Frame 241
_root.stopLoop("abbattimento", this._name);
Symbol 799 MovieClip Frame 251
tipo = nuovoutilizzo;
if (nuovoutilizzo == "allevamento") {
gotoAndStop ("allevamento");
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("allevamento");
} else {
gotoAndPlay ("soiasemina");
_root.suonoAratura.start(0, 5);
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("attesasoia");
}
Symbol 799 MovieClip Frame 252
intensita = 2;
if (random(3) == 0) {
gotoAndStop ("allevamento1");
} else if (random(3) == 1) {
gotoAndStop ("allevamento2");
} else {
gotoAndStop ("allevamento3");
}
Instance of Symbol 784 MovieClip "vacca3" in Symbol 799 MovieClip Frame 253
onClipEvent (load) {
this._visible = false;
}
Symbol 799 MovieClip Frame 288
_root.stopLoop("abbattimento", this._name);
Symbol 799 MovieClip Frame 299
tipo = nuovoutilizzo;
if (nuovoutilizzo == "allevamento") {
gotoAndStop ("allevamento");
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("allevamento");
} else {
gotoAndPlay ("soiasemina");
_root.suonoAratura.start(0, 5);
nuovoutilizzo = undefined;
_root.menu.gotoAndStop("attesasoia");
}
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 5
stop();
Symbol 803 MovieClip Frame 9
gotoAndStop (1);
Symbol 807 Button
on (press) {
_root.corrompisindaco();
this._visible = false;
_root.nohelp();
}
on (rollOver) {
_root.help(_root.HLP_CORROMPISINDACO, _root.COSTO_SINDACO);
}
on (rollOut) {
_root.nohelp();
}
Instance of Symbol 528 MovieClip "mare" in Symbol 813 MovieClip Frame 1
on (rollOver) {
_root.interfaccia = 1;
if (_root.piano.tastomare._visible == false) {
_root.resetSelections();
}
if (selezione._currentframe < 14) {
selezione.gotoAndPlay("roll");
}
}
on (rollOut) {
_root.interfaccia = 0;
if (selezione._currentframe < 14) {
selezione.gotoAndPlay("off");
}
}
on (press) {
if ((_root.suonoOceano.position == _root.suonoOceano.duration) || (_root.suonoOceano.position == 0)) {
_root.suonoOceano.start();
}
if (selezione._currentframe < 14) {
_root.resetSelections();
_root.menu.gotoAndStop("mare");
selezione.gotoAndPlay("on");
_root.tilecorrente = "nessuno";
_root.piano.tastomare._visible = true;
} else {
_root.resetSelections();
selezione.gotoAndPlay("roll");
_root.menu.gotoAndStop("nulla");
}
}
Instance of Symbol 538 MovieClip "citta2" in Symbol 813 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 799 MovieClip "tile20" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 799 MovieClip "tile19" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 799 MovieClip "tile18" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 799 MovieClip "tile17" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 799 MovieClip "tile16" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 803 MovieClip "citta1" in Symbol 813 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 799 MovieClip "tile15" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 799 MovieClip "tile14" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 799 MovieClip "tile13" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 799 MovieClip "tile9" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 799 MovieClip "tile12" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "attesagrano";
gotoAndStop ("granovuoto");
}
Instance of Symbol 799 MovieClip "tile11" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 799 MovieClip "tile8" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 799 MovieClip "tile10" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "villaggio";
this.gotoAndStop("villaggio");
}
Instance of Symbol 799 MovieClip "tile7" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 799 MovieClip "tile6" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "foresta";
gotoAndStop ("foresta");
}
Instance of Symbol 799 MovieClip "tile5" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 799 MovieClip "tile4" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 799 MovieClip "tile3" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 799 MovieClip "tile2" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 799 MovieClip "tile1" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tipo = "vuoto";
}
Instance of Symbol 806 MovieClip in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
_root.piano.tastocorrompi._visible = false;
_root.piano.tastoinfo._visible = false;
}
on (rollOver) {
if (_root.piano.tastoinfo._visible == true) {
_root.resetSelections();
_root.piano.citta1.selezione.gotoAndPlay("on");
_root.piano.citta2.selezione.gotoAndPlay("on");
_root.piano.tastoinfo._visible = true;
if (_root.sindacocorrotto == false) {
_root.piano.tastocorrompi._visible = true;
}
} else {
_root.resetSelections();
_root.piano.citta1.selezione.gotoAndPlay("roll");
_root.piano.citta2.selezione.gotoAndPlay("roll");
}
}
on (press) {
if ((_root.suonoCitta.position == _root.suonoCitta.duration) || (_root.suonoCitta.position == 0)) {
_root.suonoCitta.start();
}
if (_root.piano.citta2.selezione._currentframe < 14) {
if (_root.sindacocorrotto == false) {
_root.piano.tastocorrompi._visible = true;
}
_root.piano.tastoinfo._visible = true;
_root.piano.citta1.selezione.gotoAndPlay("on");
_root.piano.citta2.selezione.gotoAndPlay("on");
_root.menu.gotoAndStop("citta");
_root.tilecorrente = "nessuno";
} else {
_root.resetSelections();
_root.piano.tastoinfo._visible = false;
_root.piano.citta1.selezione.gotoAndPlay("roll");
_root.piano.citta2.selezione.gotoAndPlay("roll");
}
}
Instance of Symbol 809 MovieClip "tastocorrompi" in Symbol 813 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 812 MovieClip "tastoinfo" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tasto.onRelease = function () {
_root.nuovaFinestra(_root.CITTA_TITOLO, _root.CITTA_TESTO, "citta");
};
}
Instance of Symbol 812 MovieClip "tastomare" in Symbol 813 MovieClip Frame 1
onClipEvent (load) {
this.tasto.onRelease = function () {
_root.nuovaFinestra(_root.CALOTTE_TITOLO, _root.CALOTTE_TESTO, "calotte");
};
}
Symbol 820 MovieClip Frame 4
stop();
Symbol 825 MovieClip Frame 13
gotoAndPlay (1);
Symbol 825 MovieClip Frame 14
_root.suonoClick.start();
Symbol 839 MovieClip Frame 1
if (zona == "allevamento") {
_root.loopMacchina.start();
}
Symbol 839 MovieClip Frame 17
stop();
Symbol 847 MovieClip Frame 29
if ((_root.hamburgerdafare > 0) && (_root.hamburger < _root.MAX_HAMBURGER)) {
_root.hamburger = _root.hamburger + 3;
}
stop();
Symbol 851 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 13
gotoAndPlay (1);
Symbol 858 MovieClip Frame 14
_root.suonoClick.start();
Symbol 858 MovieClip Frame 26
stop();
Symbol 871 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 10
gotoAndPlay ("on");
Symbol 909 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 2
if (zona == "allevamento") {
_root.suonoBraccio.start();
}
Symbol 909 MovieClip Frame 7
if (zona == "allevamento") {
_root.suonoFiamma.start();
}
lancia.fiamma.play();
Symbol 909 MovieClip Frame 10
_parent.gotoAndPlay("bruciato");
_parent.presente = 0;
Symbol 912 MovieClip Frame 10
stop();
Symbol 941 MovieClip Frame 28
gotoAndPlay("azione" + (random(3) + 1));
Symbol 941 MovieClip Frame 36
gotoAndPlay ("azione1");
Symbol 941 MovieClip Frame 94
gotoAndPlay ("azione1");
Symbol 982 MovieClip Frame 1
if (_root.mangime <= 0) {
gotoAndPlay ("randomizza");
}
Symbol 982 MovieClip Frame 23
azione = random(5) + 1;
gotoAndPlay("azione" + azione);
Symbol 982 MovieClip Frame 40
gotoAndPlay ("azione1");
Symbol 982 MovieClip Frame 70
gotoAndPlay ("azione1");
Symbol 982 MovieClip Frame 93
gotoAndPlay ("azione1");
Symbol 982 MovieClip Frame 95
if (zona == "allevamento") {
_root["suonoMucca" + (random(3) + 1)].start();
}
Symbol 982 MovieClip Frame 109
gotoAndPlay ("azione1");
Symbol 982 MovieClip Frame 130
gotoAndPlay ("muccapazza");
Symbol 982 MovieClip Frame 140
if (_root.mangime <= 0) {
gotoAndPlay ("malata");
}
Symbol 982 MovieClip Frame 152
gotoAndPlay ("malata");
Symbol 989 Button
on (press) {
_root.abbatti();
}
on (rollOver) {
_root.help(_root.HLP_ABBATTI);
}
on (rollOut) {
_root.nohelp();
}
Symbol 991 MovieClip Frame 13
gotoAndPlay (1);
Symbol 991 MovieClip Frame 14
_root.suonoClick.start();
Symbol 991 MovieClip Frame 27
stop();
Symbol 1000 MovieClip Frame 10
stop();
Symbol 1020 MovieClip Frame 1
stop();
Symbol 1020 MovieClip Frame 2
if (zona == "allevamento") {
_root.suonoBraccio.stop("braccio");
_root.suonoBraccio.start();
}
Symbol 1020 MovieClip Frame 11
gotoAndStop (13);
Instance of Symbol 994 MovieClip in Symbol 1020 MovieClip Frame 12
onClipEvent (load) {
_parent.selezione.gotoAndStop("off");
}
on (rollOver) {
_root.interfaccia = 1;
if (_parent.selezione._currentframe == 28) {
_root.deselezionaall();
_parent.selezione.gotoAndPlay("roll");
}
}
on (rollOut, dragOut) {
_root.interfaccia = 0;
if (_parent.selezione._currentframe <= 14) {
_parent.selezione.gotoAndStop("off");
}
}
on (release) {
if (_parent.selezione._currentframe < 14) {
_root.deselezionaall();
_parent.selezione.gotoAndPlay("on");
_root.vaccacorrente = _parent._name;
_root.selezionavacca();
} else {
_parent.selezione.gotoAndPlay("roll");
}
}
Symbol 1020 MovieClip Frame 13
stop();
Symbol 1020 MovieClip Frame 28
if (zona == "allevamento") {
_root.suonoBraccioSu.stop("bracciosu");
_root.suonoBraccioSu.start();
}
Symbol 1020 MovieClip Frame 45
if (zona == "allevamento") {
_root.suonoMacello.stop("muccamacellata");
_root.suonoMacello.start();
}
Symbol 1020 MovieClip Frame 46
if (malata == true) {
_root.consumatori = _root.consumatori + _root.CONSUMATORI_MALATA;
}
if (bse == true) {
_root.consumatori = _root.consumatori + _root.CONSUMATORI_BSE;
}
presente = 0;
peso = 0;
bse = false;
malata = false;
if (this._name == _root.vaccacorrente) {
_root.menu.gotoAndStop("nullaall");
}
_root.hamburgerdafare = _root.hamburgerdafare + _root.HAMBURGER_VACCA;
if (_root.farineanimali == true) {
_root.mangime = _root.mangime + _root.BONUS_FARINE;
}
gotoAndStop (1);
Symbol 1020 MovieClip Frame 57
presente = 0;
peso = 0;
bse = false;
malata = false;
if (this._name == _root.vaccacorrente) {
_root.menu.gotoAndStop("nullaall");
}
gotoAndStop (1);
Symbol 1020 MovieClip Frame 58
if (zona == "allevamento") {
_root.suonoMuccaMorta.stop("muccamorta");
_root.suonoMuccaMorta.start();
}
Symbol 1020 MovieClip Frame 62
presente = 0;
if (this._name == _root.vaccacorrente) {
_root.menu.gotoAndStop("nullaall");
}
Symbol 1020 MovieClip Frame 102
presente = 0;
peso = 0;
bse = false;
malata = false;
gotoAndStop (1);
Symbol 1034 Button
on (rollOver) {
_root.resetretail();
}
on (press) {
_root.nuovaFinestra(_root.ALLARME_ALLEVAMENTO_TITOLO, _root.allarmeallevamento, "ingrasso");
}
Symbol 1067 MovieClip Frame 4
gotoAndPlay ("giu");
Symbol 1067 MovieClip Frame 8
gotoAndPlay ("su");
Symbol 1067 MovieClip Frame 9
if (_root.allarmiallevamento()) {
this._parent.stop();
_root.alm_allevamento.gotoAndPlay("on");
} else {
this._parent.play();
gotoAndPlay ("giu");
_root.alm_allevamento.gotoAndStop("off");
}
Symbol 1067 MovieClip Frame 11
if (zona == "allevamento") {
_root.suonoHey.start();
}
Symbol 1067 MovieClip Frame 22
if (zona == "allevamento") {
_root.suonoHey.start();
}
Symbol 1067 MovieClip Frame 64
gotoAndPlay ("allarme");
Symbol 1067 MovieClip Frame 84
gotoAndPlay ("giu");
this._parent.play();
Symbol 1067 MovieClip Frame 106
gotoAndPlay ("su");
this._parent.play();
Symbol 1068 MovieClip Frame 1
stop();
direzione.gotoAndPlay("controllogiu");
Symbol 1068 MovieClip Frame 17
direzione.gotoAndPlay("allarme");
Symbol 1068 MovieClip Frame 40
stop();
direzione.gotoAndPlay("controllosu");
Instance of Symbol 186 MovieClip "tastofarineanimali" in Symbol 1072 MovieClip Frame 1
onClipEvent (load) {
if (_root.farineanimali == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root.HLP_FARINEANIMALI, 0);
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.farineanimali = true;
gotoAndStop ("on");
_root.allevamento.lucefarineanimali.gotoAndStop("on");
} else {
_root.farineanimali = false;
gotoAndStop ("roll");
_root.allevamento.lucefarineanimali.gotoAndStop("off");
}
}
Instance of Symbol 186 MovieClip "tastoormoni" in Symbol 1074 MovieClip Frame 1
onClipEvent (load) {
if (_root.ormoni == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root.HLP_ORMONI, _root.COSTO_ORMONI, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.ormoni = true;
_root.allevamento.luceormoni.gotoAndStop("on");
gotoAndStop ("on");
} else {
_root.ormoni = false;
_root.allevamento.luceormoni.gotoAndStop("off");
gotoAndStop ("roll");
}
}
Instance of Symbol 186 MovieClip "tastoscarti" in Symbol 1076 MovieClip Frame 1
onClipEvent (load) {
if (_root.scarti == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root.HLP_SCARTI, 0);
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.scarti = true;
_root.allevamento.lucescarti.gotoAndStop("on");
gotoAndStop ("on");
} else {
_root.scarti = false;
_root.allevamento.lucescarti.gotoAndStop("off");
gotoAndStop ("roll");
}
}
Instance of Symbol 828 MovieClip "macina" in Symbol 1077 MovieClip Frame 1
onClipEvent (load) {
this.selezione.gotoAndStop("off");
}
on (rollOver) {
if (this.selezione._currentframe == 27) {
_root.deselezionaall();
this.selezione.gotoAndPlay("roll");
}
_root.interfaccia = 1;
}
on (rollOut, dragOut) {
_root.interfaccia = 0;
if (this.selezione._currentframe < 13) {
this.selezione.gotoAndStop("off");
}
}
on (release) {
if (this.selezione._currentframe < 13) {
_root.deselezionaall();
_root.allevamento.tastofarine._visible = true;
_root.menu.gotoAndStop("macello");
this.selezione.gotoAndPlay("on");
} else {
_root.deselezionaall();
_root.allevamento.tastofarine._visible = false;
this.selezione.gotoAndPlay("roll");
}
}
Instance of Symbol 859 MovieClip "cisterna" in Symbol 1077 MovieClip Frame 1
onClipEvent (load) {
this.selezione.gotoAndStop("off");
}
on (rollOver) {
if (this.selezione._currentframe == 27) {
_root.deselezionaall();
this.selezione.gotoAndPlay("roll");
}
_root.interfaccia = 1;
}
on (rollOut, dragOut) {
_root.interfaccia = 0;
if (this.selezione._currentframe < 13) {
this.selezione.gotoAndStop("off");
}
}
on (release) {
if (this.selezione._currentframe < 13) {
_root.deselezionaall();
_root.allevamento.tastoscarti._visible = true;
_root.allevamento.tastoormoni._visible = true;
_root.menu.gotoAndStop("mangime");
this.selezione.gotoAndPlay("on");
} else {
_root.deselezionaall();
_root.allevamento.tastoscarti._visible = false;
_root.allevamento.tastoormoni._visible = false;
this.selezione.gotoAndPlay("roll");
}
}
Instance of Symbol 881 MovieClip "ormoni" in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ormoni == true) {
play();
} else {
gotoAndStop (10);
}
}
Instance of Symbol 892 MovieClip "cist" in Symbol 1077 MovieClip Frame 1
onClipEvent (load) {
_root.gestionecisterna();
}
Instance of Symbol 1072 MovieClip "tastofarine" in Symbol 1077 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1074 MovieClip "tastoormoni" in Symbol 1077 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1076 MovieClip "tastoscarti" in Symbol 1077 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1088 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1119 MovieClip Frame 1
stop();
Symbol 1119 MovieClip Frame 7
gotoAndStop (1);
Symbol 1133 MovieClip Frame 4
stop();
Symbol 1133 MovieClip Frame 18
stop();
Symbol 1154 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1156 MovieClip Frame 1
stop();
Instance of Symbol 1138 MovieClip "faccia" in Symbol 1156 MovieClip Frame 1
onClipEvent (load) {
etnia = random(this._totalframes) + 1;
gotoAndStop(etnia);
this._parent.braccia.bsx.gotoAndStop(etnia);
this._parent.braccia.bdx.gotoAndStop(etnia);
}
Symbol 1165 MovieClip Frame 7
stop();
Symbol 1177 MovieClip Frame 1
omino.braccia.gotoAndStop(1);
omino.gotoAndStop(2);
omino.faccia.bocca.gotoAndStop(this.motivazione);
Instance of Symbol 1088 MovieClip "selezione" in Symbol 1177 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.postazione = this._parent._name;
_root.resetretail();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
if (this._parent.attiva == false) {
_root.pianomenu.menulavoratore.gotoAndStop("filavuota");
_root.menu.gotoAndStop("filavuota");
} else if (this._parent.attiva == true) {
_root.pianomenu.menulavoratore.gotoAndStop("filapiena");
_root.menu.gotoAndStop("dipendente");
_root.str_motivazione = eval ("_root.STR_MOT" + this._parent.motivazione);
if (this._parent.mobbing) {
_root.pianomenu.menulavoratore.mobbing._visible = false;
} else {
_root.pianomenu.menulavoratore.mobbing._visible = true;
}
if (this._parent.spilla) {
_root.pianomenu.menulavoratore.spilla._visible = false;
} else {
_root.pianomenu.menulavoratore.spilla._visible = true;
}
}
_root.pianomenu.menulavoratore._visible = true;
_root.pianomenu.menulavoratore._x = this._parent._x + 360;
_root.pianomenu.menulavoratore._y = this._parent._y + 280;
this.gotoAndStop("on");
_root.postazione = this._parent._name;
} else {
_root.postazione = undefined;
_root.pianomenu.menulavoratore._visible = false;
this.gotoAndPlay("roll");
}
}
Symbol 1177 MovieClip Frame 2
omino.braccia.gotoAndPlay(1);
if (_root.hamburger > 0) {
cottura._visible = true;
} else {
cottura._visible = false;
}
Symbol 1177 MovieClip Frame 3
if (zona == "retail") {
_root.suonoLinea.start();
}
Symbol 1177 MovieClip Frame 12
gotoAndStop (1);
Symbol 1199 MovieClip Frame 4
stop();
Symbol 1200 MovieClip Frame 1
stop();
Symbol 1206 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1214 MovieClip Frame 1
omino.faccia.bocca.gotoAndStop(motivazione);
Instance of Symbol 1206 MovieClip "selezione" in Symbol 1214 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
on (rollOver) {
if (this._currentframe == 22) {
_root.postazione = this._parent._name;
_root.resetretail();
this.gotoAndPlay("roll");
}
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (release) {
if (this._currentframe < 21) {
if (this._parent.attiva == false) {
_root.pianomenu.menulavoratore.gotoAndStop("cassavuota");
_root.menu.gotoAndStop("cassavuota");
} else if (this._parent.attiva == true) {
_root.pianomenu.menulavoratore.gotoAndStop("cassapiena");
_root.menu.gotoAndStop("dipendente");
_root.str_motivazione = eval ("_root.STR_MOT" + this._parent.motivazione);
}
if (this._parent.mobbing) {
_root.pianomenu.menulavoratore.mobbing._visible = false;
} else {
_root.pianomenu.menulavoratore.mobbing._visible = true;
}
if (this._parent.spilla) {
_root.pianomenu.menulavoratore.spilla._visible = false;
} else {
_root.pianomenu.menulavoratore.spilla._visible = true;
}
_root.pianomenu.menulavoratore._visible = true;
_root.pianomenu.menulavoratore._x = this._parent._x + 360;
_root.pianomenu.menulavoratore._y = this._parent._y + 280;
this.gotoAndStop("on");
_root.postazione = this._parent._name;
} else {
_root.postazione = undefined;
_root.pianomenu.menulavoratore._visible = false;
this.gotoAndPlay("roll");
}
}
Symbol 1214 MovieClip Frame 5
if (zona == "retail") {
_root.suonoCassa.start();
}
Symbol 1214 MovieClip Frame 9
stop();
Symbol 1216 MovieClip Frame 1
if ((this._name == "c1") && (this._parent.clienti >= 0)) {
_root.creacliente.call(this._parent);
}
if (this._name == ("c" + (this._parent.clienti + 1))) {
this._visible = false;
}
stop();
Symbol 1216 MovieClip Frame 2
cliente.gambe.passi.play();
Symbol 1216 MovieClip Frame 5
cliente.gambe.passi.gotoAndStop(1);
Symbol 1220 Button
on (rollOver) {
_root.resetretail();
}
on (press) {
_root.nuovaFinestra(_root.ALLARME_RETAIL_TITOLO, _root.allarmeretail, "retail");
}
Symbol 1245 MovieClip Frame 34
if (!_root.controllaretail()) {
gotoAndPlay ("normale");
_root.alm_retail.gotoAndStop("off");
} else {
_root.alm_retail.gotoAndPlay("on");
}
Symbol 1245 MovieClip Frame 44
if (zona == "retail") {
_root.suonoHey.start();
}
Symbol 1245 MovieClip Frame 56
if (zona == "retail") {
_root.suonoHey.start();
}
Symbol 1245 MovieClip Frame 107
gotoAndPlay ("allarme");
Instance of Symbol 1217 MovieClip "fila3" in Symbol 1246 MovieClip Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
r = 0;
num = 3;
clienti = 8;
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 1217 MovieClip "fila2" in Symbol 1246 MovieClip Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
r = 0;
num = 2;
clienti = 8;
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 1217 MovieClip "fila1" in Symbol 1246 MovieClip Frame 1
onClipEvent (load) {
function __f_load(eventObj) {
r = 0;
num = 1;
}
this.addEventListener("load", __f_load);
}
Symbol 1249 MovieClip Frame 31
if (zona == "brand") {
s = random(9);
if (s == 1) {
_root.suonoTelefono1.start();
} else if (s == 2) {
_root.suonoTelefono2.start();
} else if (s == 3) {
_root.suonoStampante.start();
}
}
gotoAndPlay (2);
Symbol 1255 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1260 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1266 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 1368 Button
on (rollOver) {
_root.resetbrand();
}
on (press) {
_root.nuovaFinestra(_root.ALLARME_CDA_TITOLO, _root.allarme_output, "cda");
}
Symbol 1388 MovieClip Frame 26
if (zona == "brand") {
r = random(6);
_root["suonoVoci" + (r + 1)].start();
}
Symbol 1388 MovieClip Frame 65
if (zona == "brand") {
r = random(6);
_root["suonoVoci" + (r + 1)].start();
}
Symbol 1388 MovieClip Frame 82
gotoAndPlay (1);
Symbol 1388 MovieClip Frame 93
if (zona == "brand") {
_root.suonoHey.start();
}
Symbol 1388 MovieClip Frame 106
if (zona == "brand") {
_root.suonoHey.start();
}
Symbol 1388 MovieClip Frame 143
gotoAndPlay ("allarme");
Instance of Symbol 1398 MovieClip in Symbol 1410 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent.capelli);
}
Symbol 1410 MovieClip Frame 3
if (zona == "brand") {
r = random(6);
if ((_root["suonoVoci" + (r + 1)].position == 0) || (_root["suonoVoci" + (r + 1)].position == _root["suonoVoci" + (r + 1)].duration)) {
_root["suonoVoci" + (r + 1)].start();
}
}
Symbol 1410 MovieClip Frame 11
gotoAndStop ("felice");
Symbol 1410 MovieClip Frame 13
if (zona == "brand") {
r = random(6);
if ((_root["suonoVoci" + (r + 1)].position == 0) || (_root["suonoVoci" + (r + 1)].position == _root["suonoVoci" + (r + 1)].duration)) {
_root["suonoVoci" + (r + 1)].start();
}
}
Symbol 1410 MovieClip Frame 21
gotoAndStop ("incazzato");
Symbol 1424 MovieClip Frame 1
f = random(7);
gotoAndPlay("f" + f);
Symbol 1424 MovieClip Frame 34
gotoAndPlay (1);
Symbol 1424 MovieClip Frame 35
testa.play();
Symbol 1424 MovieClip Frame 39
gotoAndPlay (1);
Symbol 1424 MovieClip Frame 40
testa.play();
Symbol 1424 MovieClip Frame 45
gotoAndPlay (1);
Symbol 1424 MovieClip Frame 46
testa.play();
Symbol 1424 MovieClip Frame 50
gotoAndPlay (1);
Symbol 1424 MovieClip Frame 51
testa.play();
Symbol 1424 MovieClip Frame 55
gotoAndPlay (1);
Instance of Symbol 1436 MovieClip in Symbol 1437 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent.capelli);
}
Symbol 1446 MovieClip Frame 1
gotoAndPlay("f" + random(5));
Symbol 1446 MovieClip Frame 41
gotoAndPlay (1);
Symbol 1446 MovieClip Frame 48
gotoAndPlay (1);
Symbol 1472 MovieClip Frame 18
an = random(4);
if (an == 1) {
gotoAndPlay ("tastiera");
} else if (an == 2) {
gotoAndPlay ("capelli");
} else if (an == 3) {
gotoAndPlay ("schermo");
} else {
gotoAndPlay ("ferma");
}
Symbol 1472 MovieClip Frame 19
if (zona == "brand") {
_root.suonoTastiera.start();
}
Symbol 1472 MovieClip Frame 27
gotoAndPlay ("ferma");
Symbol 1472 MovieClip Frame 32
gotoAndPlay ("ferma");
Symbol 1472 MovieClip Frame 52
gotoAndPlay ("ferma");
Instance of Symbol 186 MovieClip "alimentazione" in Symbol 1494 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_ALIMENTAZIONE, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root[nome] = true;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root[nome] = false;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 186 MovieClip "bambini" in Symbol 1494 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_BAMBINI, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root[nome] = true;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root[nome] = false;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 186 MovieClip "terzomondo" in Symbol 1494 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_TERZOMONDO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root[nome] = true;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root[nome] = false;
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 186 MovieClip "topolino" in Symbol 1494 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_TOPOLINO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 4);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 5);
}
}
Instance of Symbol 186 MovieClip "politico" in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_POLITICO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Instance of Symbol 186 MovieClip "climatologo" in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_CLIMATOLOGO, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Instance of Symbol 186 MovieClip "alimentarista" in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_ALIMENTARISTA, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Instance of Symbol 186 MovieClip "ispettore" in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
nome = this._name;
NOME = nome.toUpperCase();
if (_root[nome] == true) {
gotoAndStop ("on");
}
}
on (rollOver) {
_root.help(_root[NOME + "_TITOLO"].toLowerCase(), _root.COSTO_ISPETTORE, "mese");
if (this._currentframe == 1) {
gotoAndStop ("roll");
}
}
on (rollOut, dragOut) {
_root.nohelp();
if (this._currentframe != 3) {
gotoAndStop ("off");
}
}
on (release) {
if (this._currentframe != 3) {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 2);
} else {
_root.nuovaFinestra(_root[NOME + "_TITOLO"], _root[NOME + "_TESTO"], nome, 3);
}
}
Symbol 1499 Button
on (release) {
_root.pianofinestre.finestra_detrattori._visible = true;
}
on (rollOver) {
_root.help(_root.HLP_DETRATTORI);
}
on (rollOut) {
_root.nohelp();
}
Symbol 1500 Button
on (release) {
_root.pianofinestre.finestra_stat._visible = true;
_root.disegnaStat();
}
on (rollOver) {
_root.help(_root.HLP_GRAFICO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 1501 Button
on (release) {
_root.nuovaFinestra(_root.STR_ARCHIVIO, _root.bilanci[_root.bilanci.length - 1], "cda");
}
on (rollOver) {
_root.help(_root.HLP_BILANCIO);
}
on (rollOut) {
_root.nohelp();
}
Symbol 1512 MovieClip Frame 1
stop();
Instance of Symbol 1255 MovieClip "pubblicita" in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
_root.brand.tastipubblicita._visible = false;
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.resetbrand();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
_root.menu.gotoAndStop("pubblicita");
this.gotoAndStop("on");
_root.brand.tastipubblicita._visible = true;
} else {
this.gotoAndPlay("roll");
_root.brand.tastipubblicita._visible = false;
}
}
Instance of Symbol 1260 MovieClip "cda" in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.resetbrand();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
_root.brand.tasticda._visible = true;
this.gotoAndStop("on");
_root.menu.gotoAndStop("cda");
} else {
_root.brand.tasticda._visible = false;
this.gotoAndPlay("roll");
}
}
Instance of Symbol 1266 MovieClip "pr" in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
_root.brand.tastipr._visible = false;
}
on (rollOut) {
_root.interfaccia = 0;
if (this._currentframe < 21) {
this.gotoAndStop("off");
}
}
on (rollOver) {
if (this._currentframe == 22) {
_root.resetbrand();
this.gotoAndPlay("roll");
}
}
on (release) {
if (this._currentframe < 21) {
_root.menu.gotoAndStop("pr");
this.gotoAndStop("on");
_root.brand.tastipr._visible = true;
} else {
this.gotoAndPlay("roll");
_root.brand.tastipr._visible = false;
}
}
Instance of Symbol 1424 MovieClip "az4" in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
capelli = 4;
}
Instance of Symbol 1424 MovieClip "az2" in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
capelli = 2;
}
Instance of Symbol 1424 MovieClip "az1" in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
capelli = 1;
}
Instance of Symbol 1424 MovieClip "az3" in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
capelli = 5;
}
Instance of Symbol 1446 MovieClip in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
capelli = 1;
}
Instance of Symbol 1446 MovieClip in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
capelli = 4;
}
Instance of Symbol 1446 MovieClip in Symbol 1513 MovieClip Frame 1
onClipEvent (load) {
capelli = 3;
}
Symbol 1522 MovieClip Frame 1
stop();
Instance of Symbol 1529 MovieClip "finestra_detrattori" in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
this.barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, 0, 0, _root.ROOT_X - this._parent._width, _root.ROOT_Y - 70);
};
this.barra.onRelease = function () {
stopDrag();
};
this.xbutton.onRelease = function () {
this._parent._visible = false;
};
this.onEnterFrame = function () {
if (this._visible) {
sindacati.gotoAndStop(Math.round(_root.sindacati / 10) + 1);
ecologisti.gotoAndStop(Math.round(_root.ecologisti / 10) + 1);
noglobal.gotoAndStop(Math.round(_root.noglobal / 10) + 1);
consumatori.gotoAndStop(Math.round(_root.consumatori / 10) + 1);
obesi.gotoAndStop(Math.round(_root.obesi / 10) + 1);
}
};
}
Instance of Symbol 1532 MovieClip "finestra_stat" in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
this.barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, 0, 0, _root.ROOT_X - (_root.PIANO_X / 2), _root.ROOT_Y - 70);
};
this.barra.onRelease = function () {
stopDrag();
};
this.xbutton.onRelease = function () {
this._parent._visible = false;
};
this.onEnterFrame = function () {
if (this._visible) {
_root.disegnaStat();
}
};
}
Instance of Symbol 1537 MovieClip "finestraMenu" in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
this.corpo.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
};
this.barra.onPress = function () {
this._parent.swapDepths(_root.pianofinestre.getNextHighestDepth() - 1);
startDrag (this._parent, false, 0, 0, _root.ROOT_X - (_root.PIANO_X / 2), _root.ROOT_Y - 70);
};
this.barra.onRelease = function () {
stopDrag();
};
this.xbutton.onRelease = function () {
this._parent._visible = false;
};
if (suoni == false) {
this.scrittaSuoni.gotoAndStop("off");
}
}
Symbol 1543 MovieClip Frame 1
stop();
Symbol 1543 MovieClip Frame 2
_root.suonoGameOver.start();