Frame 1
percentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
setProperty(_root.barre, _xscale , (_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_framesloaded >= _totalframes) {
_root.loading = "end";
}
if (_root.endsaut == "fini") {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
gotoAndPlay (5);
Frame 5
stop();
Frame 6
setProperty("_root.burger", _visible , false);
setProperty("_root.coke", _visible , false);
setProperty("_root.frites", _visible , false);
setProperty("_root.salade", _visible , false);
setProperty("_root.sundae", _visible , false);
_root.speed = -5;
_root.score = 0;
_root.randombonus = 0;
_root.oldrandombonus = 0;
stop();
Instance of Symbol 89 MovieClip "gourmand" in Frame 6
onClipEvent (load) {
tellTarget (_root.gourmand) {
gotoAndStop (6);
};
call("random");
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
tellTarget (_root.gourmand) {
prevFrame();
};
} else if (Key.isDown(39)) {
tellTarget (_root.gourmand) {
nextFrame();
};
}
}
Instance of Symbol 102 MovieClip "burger" in Frame 6
onClipEvent (load) {
function reset() {
this._visible = true;
this._x = 250;
this._y = 60;
speed = _root.speed;
}
function arret() {
this._visible = false;
this._x = 250;
this._y = 60;
}
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if ((280 < this._y) and (this._visible == true)) {
arret();
_root.sons.sonburger();
_root.controlepositioncuistot.newpositioncuistot();
tellTarget (_root.vies) {
nextFrame();
};
}
}
Instance of Symbol 104 MovieClip "coke" in Frame 6
onClipEvent (load) {
function reset() {
this._visible = true;
this._x = 100;
this._y = 117;
speed = _root.speed;
}
function arret() {
this._visible = false;
this._x = 100;
this._y = 117;
}
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if ((280 < this._y) and (this._visible == true)) {
arret();
_root.sons.soncoke();
_root.controlepositioncuistot.newpositioncuistot();
tellTarget (_root.vies) {
nextFrame();
};
}
}
Instance of Symbol 106 MovieClip "frites" in Frame 6
onClipEvent (load) {
function reset() {
this._visible = true;
this._x = 325;
this._y = 95;
speed = _root.speed;
}
function arret() {
this._visible = false;
this._x = 325;
this._y = 95;
}
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if ((280 < this._y) and (this._visible == true)) {
arret();
_root.sons.sonburger();
_root.controlepositioncuistot.newpositioncuistot();
tellTarget (_root.vies) {
nextFrame();
};
}
}
Instance of Symbol 108 MovieClip "salade" in Frame 6
onClipEvent (load) {
function reset() {
this._visible = true;
this._x = 175;
this._y = 108;
speed = _root.speed;
}
function arret() {
this._visible = false;
this._x = 175;
this._y = 108;
}
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if ((280 < this._y) and (this._visible == true)) {
arret();
_root.sons.sonfrites();
_root.controlepositioncuistot.newpositioncuistot();
tellTarget (_root.vies) {
nextFrame();
};
}
}
Instance of Symbol 110 MovieClip "sundae" in Frame 6
onClipEvent (load) {
function reset() {
this._visible = true;
this._x = 400;
this._y = 117;
speed = _root.speed;
}
function arret() {
this._visible = false;
this._x = 400;
this._y = 117;
}
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if ((280 < this._y) and (this._visible == true)) {
arret();
_root.sons.sonfrites();
_root.controlepositioncuistot.newpositioncuistot();
tellTarget (_root.vies) {
nextFrame();
};
}
}
Instance of Symbol 64 MovieClip "bonus" in Frame 6
onClipEvent (load) {
function reset() {
this._visible = true;
speed = _root.speed;
}
function arret() {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if ((280 < this._y) and (this._visible == true)) {
arret();
_root.controlepositioncuistot.newpositioncuistot();
}
}
Instance of Symbol 66 MovieClip "vies" in Frame 6
onClipEvent (load) {
tellTarget (_root.vies) {
gotoAndStop (2);
};
}
Instance of Symbol 122 MovieClip "controlepositioncuistot" in Frame 6
onClipEvent (load) {
function positioncuistot() {
function newpositioncuistot() {
do {
_root.positioncuistot = random(5) + 1;
} while (_root.positioncuistot == _root.oldpositioncuistot);
_root.oldpositioncuistot = _root.positioncuistot;
tellTarget (_root.cuistot) {
gotoAndStop("position" add _root.positioncuistot);
};
}
_root.positioncuistot = random(5) + 1;
_root.oldpositioncuistot = _root.positioncuistot;
tellTarget (_root.cuistot) {
gotoAndStop("position" add _root.positioncuistot);
};
}
function newpositioncuistot() {
do {
_root.positioncuistot = random(5) + 1;
} while (_root.positioncuistot == _root.oldpositioncuistot);
_root.oldpositioncuistot = _root.positioncuistot;
tellTarget (_root.cuistot) {
gotoAndStop("position" add _root.positioncuistot);
};
}
positioncuistot();
}
Instance of Symbol 123 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.score >= 50) {
_root.speed = -7;
}
if (_root.score >= 100) {
_root.speed = -9;
}
if (_root.score >= 150) {
_root.speed = -11;
}
if (_root.score >= 200) {
_root.speed = -13;
}
if (_root.score >= 250) {
_root.speed = -15;
}
if (_root.score >= 300) {
_root.speed = -17;
}
if (_root.score >= 350) {
_root.speed = -19;
}
if (_root.score >= 400) {
_root.speed = -21;
}
}
Instance of Symbol 124 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.score >= 25) {
_root.randombonus = 1;
}
if (_root.score >= 50) {
_root.randombonus = 2;
}
if (_root.score >= 100) {
_root.randombonus = 3;
}
if (_root.score >= 150) {
_root.randombonus = 4;
}
if (_root.score >= 200) {
_root.randombonus = 5;
}
if (_root.score >= 250) {
_root.randombonus = 6;
}
if (_root.score >= 300) {
_root.randombonus = 7;
}
if (_root.score >= 325) {
_root.randombonus = 8;
}
if (_root.score >= 350) {
_root.randombonus = 9;
}
if (_root.score >= 375) {
_root.randombonus = 10;
}
if (_root.score >= 400) {
_root.randombonus = 11;
}
}
Instance of Symbol 125 MovieClip "sons" in Frame 6
onClipEvent (enterFrame) {
function sonburger() {
sonburger = new Sound();
sonburger.attachSound("burger");
sonburger.start();
}
function soncoke() {
soncoke = new Sound();
soncoke.attachSound("coke");
soncoke.start();
}
function sonfrites() {
sonfrites = new Sound();
sonfrites.attachSound("frites");
sonfrites.start();
}
function sonbonus() {
sonbonus = new Sound();
sonbonus.attachSound("bonus");
sonbonus.start();
}
function soncatch1() {
soncatch1 = new Sound();
soncatch1.attachSound("catch1");
soncatch1.start();
}
function soncatch2() {
soncatch2 = new Sound();
soncatch2.attachSound("catch2");
soncatch2.start();
}
function soncatch3() {
soncatch3 = new Sound();
soncatch3.attachSound("catch3");
soncatch3.start();
}
function soncatch4() {
soncatch4 = new Sound();
soncatch4.attachSound("catch4");
soncatch4.start();
}
function soncatch5() {
soncatch5 = new Sound();
soncatch5.attachSound("catch5");
soncatch5.start();
}
}
Frame 7
stop();
Symbol 22 MovieClip Frame 30
if (_root.loading == "end") {
_root.endsaut = "fini";
stop();
}
Symbol 29 MovieClip Frame 4
stop();
Symbol 39 Button
on (press, release) {
getURL ("http://www.smurf.com", "_blank");
}
Symbol 41 Button
on (press, release) {
getURL ("http://www.smurf.com", "_blank");
}
Symbol 45 MovieClip Frame 5
stop();
Symbol 54 Button
on (release) {
tellTarget ("_root") {
nextFrame();
};
}
Symbol 55 MovieClip Frame 133
stop();
Symbol 58 Button
on (release) {
gotoAndPlay (6);
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 66 MovieClip Frame 4
stop();
Symbol 66 MovieClip Frame 5
stop();
Symbol 66 MovieClip Frame 6
tellTarget (_root) {
nextFrame();
};
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Instance of Symbol 63 MovieClip in Symbol 89 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.coke.collision) and (_root.coke._visible == true)) {
_root.score = _root.score + 5;
tellTarget (_root.cinqgauche) {
gotoAndPlay (2);
};
_root.coke.arret();
_root.sons.soncatch1();
_root.controlepositioncuistot.newpositioncuistot();
}
if (this.hitTest(_root.bonus.collision) and (_root.bonus._visible == true)) {
tellTarget (_root.vies) {
prevFrame();
};
_root.bonus.arret();
_root.sons.sonbonus();
_root.controlepositioncuistot.newpositioncuistot();
}
}
Symbol 89 MovieClip Frame 3
stop();
Symbol 89 MovieClip Frame 4
stop();
Instance of Symbol 63 MovieClip in Symbol 89 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.salade.collision) and (_root.salade._visible == true)) {
_root.score = _root.score + 3;
tellTarget (_root.troisgauche) {
gotoAndPlay (2);
};
_root.salade.arret();
_root.sons.soncatch2();
_root.controlepositioncuistot.newpositioncuistot();
}
if (this.hitTest(_root.bonus.collision) and (_root.bonus._visible == true)) {
tellTarget (_root.vies) {
prevFrame();
};
_root.bonus.arret();
_root.sons.sonbonus();
_root.controlepositioncuistot.newpositioncuistot();
}
}
Symbol 89 MovieClip Frame 5
stop();
Symbol 89 MovieClip Frame 6
stop();
Instance of Symbol 63 MovieClip in Symbol 89 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.burger.collision) and (_root.burger._visible == true)) {
_root.score = _root.score + 1;
tellTarget (_root.un) {
gotoAndPlay (2);
};
_root.burger.arret();
_root.sons.soncatch3();
_root.controlepositioncuistot.newpositioncuistot();
}
if (this.hitTest(_root.bonus.collision) and (_root.bonus._visible == true)) {
tellTarget (_root.vies) {
prevFrame();
};
_root.bonus.arret();
_root.sons.sonbonus();
_root.controlepositioncuistot.newpositioncuistot();
}
}
Symbol 89 MovieClip Frame 7
stop();
Symbol 89 MovieClip Frame 8
stop();
Instance of Symbol 63 MovieClip in Symbol 89 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.frites.collision) and (_root.frites._visible == true)) {
_root.score = _root.score + 3;
tellTarget (_root.troisdroite) {
gotoAndPlay (2);
};
_root.frites.arret();
_root.sons.soncatch4();
_root.controlepositioncuistot.newpositioncuistot();
}
if (this.hitTest(_root.bonus.collision) and (_root.bonus._visible == true)) {
tellTarget (_root.vies) {
prevFrame();
};
_root.bonus.arret();
_root.sons.sonbonus();
_root.controlepositioncuistot.newpositioncuistot();
}
}
Symbol 89 MovieClip Frame 9
stop();
Symbol 89 MovieClip Frame 10
stop();
Instance of Symbol 63 MovieClip in Symbol 89 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.sundae.collision) and (_root.sundae._visible == true)) {
_root.score = _root.score + 5;
tellTarget (_root.cinqdroite) {
gotoAndPlay (2);
};
_root.sundae.arret();
_root.sons.soncatch5();
_root.controlepositioncuistot.newpositioncuistot();
}
if (this.hitTest(_root.bonus.collision) and (_root.bonus._visible == true)) {
tellTarget (_root.vies) {
prevFrame();
};
_root.bonus.arret();
_root.sons.sonbonus();
_root.controlepositioncuistot.newpositioncuistot();
}
}
Symbol 89 MovieClip Frame 11
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
if (_root.oldrandombonus == (_root.randombonus - 1)) {
setProperty(_root.bonus, _x , 100);
setProperty(_root.bonus, _y , 117);
_root.bonus.reset();
_root.oldrandombonus = _root.randombonus;
} else {
_root.coke.reset();
}
stop();
Instance of Symbol 91 MovieClip in Symbol 100 MovieClip Frame 2
onClipEvent (load) {
}
Symbol 100 MovieClip Frame 3
if (_root.oldrandombonus == (_root.randombonus - 1)) {
setProperty(_root.bonus, _x , 175);
setProperty(_root.bonus, _y , 108);
_root.bonus.reset();
_root.oldrandombonus = _root.randombonus;
} else {
_root.salade.reset();
}
stop();
Symbol 100 MovieClip Frame 4
if (_root.oldrandombonus == (_root.randombonus - 1)) {
setProperty(_root.bonus, _x , 250);
setProperty(_root.bonus, _y , 60);
_root.bonus.reset();
_root.oldrandombonus = _root.randombonus;
} else {
_root.burger.reset();
}
stop();
Symbol 100 MovieClip Frame 5
if (_root.oldrandombonus == (_root.randombonus - 1)) {
setProperty(_root.bonus, _x , 325);
setProperty(_root.bonus, _y , 95);
_root.bonus.reset();
_root.oldrandombonus = _root.randombonus;
} else {
_root.frites.reset();
}
stop();
Symbol 100 MovieClip Frame 6
if (_root.oldrandombonus == (_root.randombonus - 1)) {
setProperty(_root.bonus, _x , 400);
setProperty(_root.bonus, _y , 117);
_root.bonus.reset();
_root.oldrandombonus = _root.randombonus;
} else {
_root.sundae.reset();
}
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 130 Button
on (release) {
gotoAndPlay (6);
}
Symbol 132 Button
on (press, release) {
getURL ("http://www.smurf.com", "_blank");
}