Frame 1
function afficher_tiret() {
var _local4 = ["instruments", "percussions", "effects", "chorus", "voices", "bonus", "shuffle mode", "contact", "share", "help"];
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = this["tiret" + _local2];
_local3.texte.text = _local4[_local2];
_local3.gotoAndPlay(2);
_local2++;
}
}
function afficher_bonus() {
var _local2 = 1;
while (_local2 <= 3) {
var _local3 = this["mc_bonus" + _local2];
_local3.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 20) {
delete this.onEnterFrame;
this._alpha = 30;
}
};
_local2++;
}
bt_aide.onEnterFrame = function () {
this._alpha = this._alpha + 10;
this._parent.bt_envoyer._alpha = this._parent.bt_envoyer._alpha + 10;
this._parent.bt_contact._alpha = this._parent.bt_contact._alpha + 10;
this._parent.bt_blog._alpha = this._parent.bt_blog._alpha + 10;
if (this._alpha >= 90) {
delete this.onEnterFrame;
this._alpha = 100;
this._parent.bt_contact._alpha = 100;
this._parent.bt_envoyer._alpha = 100;
this._parent.bt_blog._alpha = 100;
}
};
bt_facebook._visible = true;
bt_facebook.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
delete this.onEnterFrame;
this._alpha = 100;
}
};
}
function afficher_automatique() {
mc_automatique.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 90) {
delete this.onEnterFrame;
this._alpha = 100;
}
};
}
function place_polo() {
entrer++;
var _local2 = this.zone["polo" + entrer];
if (entrer == 7) {
_local2.septieme = true;
}
place_libre = place_libre + ecart_polo;
_local2.attachMovie("oeil_normal", "oeil_normal", 1, {_x:28, _y:76});
_local2.onEnterFrame = function () {
this.posX = place_libre;
polo_bouge = true;
this._x = this._x + ((this.posX - this._x) * 0.7);
if (Math.abs(this.posX - this._x) < 2) {
delete this.onEnterFrame;
polo_bouge = false;
this._x = this.posX;
this.sur_scene = true;
}
};
}
function enleve_polo(target) {
entrer--;
place_libre = place_libre - ecart_polo;
compteur_occuper--;
var _local5 = target._name.substr(4) - -1;
var _local3 = _local5;
while (_local3 <= nombre_polo) {
var _local2 = this.zone["polo" + _local3];
var _local4 = _local2._name.substr(4) - 1;
_local2.new_posX = _local2._x - ecart_polo;
if (_local2.sur_scene) {
decale_polo(_local2);
}
_local2._name = "polo" + _local4;
_local3++;
}
reinit_polo(target);
target._name = "polo7";
}
function reinit_polo(num) {
var ton_ico = this.ico_box["ico" + num.utilise_ico];
ton_ico.en_attente = false;
ton_ico.son.stop();
num.tshirt.gotoAndStop(1);
num.logo_tshirt._alpha = 0;
num.son_anime.removeMovieClip();
num.occuper = false;
num.onEnterFrame = function () {
polo_bouge = true;
this._x = this._x + ((-150 - this._x) * 0.4);
if (Math.abs(-150 - this._x) < 4) {
delete this.onEnterFrame;
polo_bouge = false;
this.oeil_normal.removeMovieClip();
this._x = 1100;
this._y = 220 + random(80);
this.sur_scene = false;
ton_ico.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 90) {
delete this.onEnterFrame;
this._alpha = 100;
this.enabled = true;
}
};
this.utilise_ico = undefined;
if (compteur_occuper == 6) {
place_polo();
}
}
};
}
function decale_polo(cible) {
cible.onEnterFrame = function () {
polo_bouge = true;
this._x = this._x + ((this.new_posX - this._x) * 0.4);
if (Math.abs(this.new_posX - this._x) < 1) {
delete this.onEnterFrame;
polo_bouge = false;
this._x = this.new_posX;
}
};
}
function enleve_ico(num) {
if (toucher) {
delete main.onEnterFrame;
main.removeMovieClip();
Mouse.show();
num.enabled = false;
num.onEnterFrame = function () {
this._alpha = this._alpha - 20;
if (this._alpha <= 20) {
delete this.onEnterFrame;
toucher = false;
this._alpha = 0;
this._x = this.pos_x;
this._y = this.pos_y;
this.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 20) {
delete this.onEnterFrame;
this._alpha = 30;
if (compteur_occuper < 7) {
place_polo();
}
if (compteur_occuper == 7) {
activer_polo();
}
}
};
}
};
}
if (!toucher) {
main.gotoAndPlay(1);
num.onEnterFrame = function () {
this._x = this._x + ((this.pos_x - this._x) * speed_ico);
this._y = this._y + ((this.pos_y - this._y) * speed_ico);
if ((Math.abs(this.pos_x - this._x) < 2) && (Math.abs(this.pos_y - this._y) < 2)) {
delete this.onEnterFrame;
this._x = this.pos_x;
this._y = this.pos_y;
}
};
}
}
function placer_ico() {
ex++;
if (ex >= (nombre_son - 1)) {
clearInterval(lancer_ico);
masque.gotoAndPlay(2);
}
ico_box["ico" + ex].fond_ico._alpha = 50;
ico_box["ico" + ex].fond_ico._visible = false;
ico_box["ico" + ex].onEnterFrame = function () {
this._x = this._x + ((this.pos_x - this._x) * speed_ico);
this._y = this._y + ((this.pos_y - this._y) * speed_ico);
if ((Math.abs(this.pos_x - this._x) < 2) && (Math.abs(this.pos_y - this._y) < 2)) {
delete this.onEnterFrame;
this._x = this.pos_x;
this._y = this.pos_y;
load_son(this);
}
};
}
function attach_window() {
switch (this._name) {
case "bt_aide" :
bt_stop.gotoAndStop(3);
attachMovie("what", "what", 2);
alpha_up(what);
break;
case "bt_envoyer" :
bt_stop.gotoAndStop(3);
attachMovie("mailto", "mailto", 2);
alpha_up(mailto);
break;
case "bt_contact" :
bt_stop.gotoAndStop(3);
attachMovie("contact", "contact", 2);
alpha_up(contact);
}
}
function alpha_up(cible) {
cible._alpha = 0;
cible.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
delete this.onEnterFrame;
this.effet();
this._alpha = 100;
this.logo_tshirt.onRelease = function () {
delete this.onRelease;
this._parent.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 10) {
delete this.onEnterFrame;
this._alpha = 0;
active_tout();
this.removeMovieClip();
}
};
};
}
};
}
function check_son() {
if (bonus_en_cours) {
_volume = 0;
bonus_jouer = (compter_bonus = (compter_secure = true));
descendre_polo();
bonus_en_cours = false;
mc_bonus_cible.loader_rond.removeMovieClip();
bonus_a_jouer.gotoAndPlay(2);
}
if (compter_bonus) {
compteur_boucle++;
if (compteur_boucle == 3) {
compteur_boucle = 0;
compter_bonus = false;
_volume = 100;
bonus_jouer = false;
monter_polo();
bt_stop.gotoAndStop(1);
}
}
if (compter_secure) {
compteur_auto++;
if (compteur_auto == 4) {
compter_secure = false;
compteur_auto = 0;
}
}
var _local3 = 0;
while (_local3 < nombre_son) {
var _local2 = ico_box["ico" + _local3];
if (_local2.en_attente) {
_local2.son.setVolume(_volume);
_local2.son.start();
if (!bonus_jouer) {
_local2.son_polo.son_anime.gotoAndPlay(2);
_local2.son_polo.oeil.gotoAndStop(1);
}
if (_local2.son_polo.en_attente) {
_local2.son_polo.en_attente = false;
_local2.son_polo.tshirt.enabled = true;
_local2.son_polo.loader_rond.onEnterFrame = function () {
this._alpha = this._alpha - 20;
if (this._alpha <= 40) {
this._alpha = 0;
this._parent.logo_tshirt._alpha = this._parent.logo_tshirt._alpha + 20;
if (this._parent.logo_tshirt._alpha >= 80) {
delete this.onEnterFrame;
this._parent.logo_tshirt._alpha = 100;
this.removeMovieClip();
}
}
};
}
}
_local3++;
}
}
function descendre_polo() {
zone.onEnterFrame = function () {
this._y = this._y + ((550 - this._y) * 0.2);
if (Math.abs(550 - this._y) < 3) {
delete this.onEnterFrame;
this._y = 550;
}
};
}
function monter_polo() {
zone.onEnterFrame = function () {
this._y = this._y + ((-this._y) * 0.2);
if (Math.abs(-this._y) < 1) {
delete this.onEnterFrame;
this._y = 0;
}
};
}
function load_son(cible) {
cible.txt._x = 15;
cible.txt.text = "0";
cible.son.loadSound(("son/" + cible.num) + ".mp3", false);
cible.onEnterFrame = function () {
var _local2 = Math.round((this.son.getBytesLoaded() / this.son.getBytesTotal()) * 100);
if (_local2 > 1) {
if (_local2 > 9) {
this.txt._x = 12;
}
this.txt.text = _local2;
if (_local2 >= 100) {
delete this.onEnterFrame;
this.txt.text = "";
this.attachMovie("picto" + this.num, "picto", 1);
this.picto._alpha = 0;
this.enabled = true;
if (this.num == 10) {
animation.play();
}
this.loader_rond.onEnterFrame = function () {
this._parent.picto._alpha = this._parent.picto._alpha + 20;
this._alpha = this._alpha - 20;
if (this._alpha <= 20) {
delete this.onEnterFrame;
this._alpha = 0;
this._parent.picto._alpha = 100;
this.removeMovieClip();
}
};
}
}
};
}
function effet_texte(texte, cible) {
var phrase = cible.texte.text;
var t = cible.texte.length;
var new_phrase = texte;
var longueur = texte.length;
cible.onEnterFrame = function () {
if (t > 0) {
t--;
this.texte.text = phrase.substr(0, t);
} else {
this.onEnterFrame = function () {
if (t < longueur) {
t++;
this.texte.text = new_phrase.substr(0, t);
} else {
delete this.onEnterFrame;
}
};
}
};
}
function loader_metronome() {
metronome = new Sound();
metronome.onSoundComplete = function () {
this.start();
check_son();
if ((automatique && (!bonus_en_cours)) && (zone._y == 0)) {
check_automatique();
}
};
metronome.loadSound("son/metronome.mp3", false);
ico_box.ico9.txt.text = "0";
metronome.setVolume(0);
metronome.onLoad = function (succes) {
if (succes) {
lancer_ico = setInterval(placer_ico, 50);
}
};
}
function charger_bonus() {
var _local2 = ("bonus/bonus" + _b) + ".swf";
var _local3 = this["zone_bonus" + _b];
ecouteur = new Object();
ecouteur.onLoadProgress = function (mc, bl, bt) {
pourcent = last_value + Math.round((33 * bl) / bt);
if (pourcent >= (33 * _b)) {
pourcent = 33 * _b;
}
if (pourcent > 9) {
ico_box.ico13.txt._x = 12;
}
ico_box.ico13.txt.text = pourcent;
};
bonus_mcl = new MovieClipLoader();
bonus_mcl.addListener(ecouteur);
bonus_mcl.loadClip(_local2, _local3);
ecouteur.onLoadInit = function () {
if (_b == 3) {
loader_metronome();
} else {
_b++;
last_value = last_value + 33;
charger_bonus();
}
};
}
function sur_bt() {
var _local2 = new Color(this);
var _local3 = {ra:153, rb:0, ga:153, gb:0, ba:153, bb:0, aa:100, ab:0};
_local2.setTransform(_local3);
}
function dehors_bt() {
var _local2 = new Color(this);
var _local3 = {ra:102, rb:0, ga:102, gb:0, ba:102, bb:0, aa:100, ab:0};
_local2.setTransform(_local3);
}
function check_automatique() {
if (entrer == 1) {
ordi_entrer_polo();
} else {
var _local1 = random(2);
if (_local1 == 0) {
ordi_entrer_polo();
}
if (_local1 == 1) {
ordi_sortir_polo();
}
if (_local1 == 2) {
ordi_lancer_bonus();
}
}
}
function ordi_entrer_polo() {
if (entrer == 7) {
ordi_lancer_bonus();
} else {
var _local1 = random(nombre_son);
var _local2 = ico_box["ico" + _local1];
if (_local2.enabled) {
_local2.onRelease(true);
} else {
_local1++;
if (_local1 > nombre_son) {
_local1 = 1;
}
if (ico_box["ico" + _local1].enabled) {
ico_box["ico" + _local1].onRelease(true);
}
}
}
}
function ordi_sortir_polo() {
var _local1 = random(compteur_occuper) + 1;
var _local2 = zone["polo" + _local1];
if (_local1 < compteur_occuper) {
_local2.tshirt.onRelease();
} else {
ordi_entrer_polo();
}
}
function ordi_lancer_bonus() {
var _local3 = random(3);
if (_local3 == 0) {
var _local2 = random(3) + 1;
if (((this["mc_bonus" + _local2].enabled && (!bonus_en_cours)) && (zone._y == 0)) && (!compter_secure)) {
this["mc_bonus" + _local2].onRelease();
}
}
}
var nombre_polo = 7;
var place_libre = -80;
var entrer = 0;
var compteur_occuper = 0;
var ecart_polo = 130;
var num_ico = -1;
var nombre_son = 14;
var _volume = 100;
var ecart_ico = 45;
var speed_ico = 0.4;
var toucher = false;
var polo_bouge = false;
var nombre_total = 0;
var coup_bonus = 7;
var nb_mc_bonus = 0;
var bonus_en_cours = false;
var bonus_a_jouer;
var mc_bonus_cible;
var lancer_ico;
var automatique = false;
var debut_fini = false;
var lienFacebook = "http://www.facebook.com/incredibox.official";
this.bt_facebook._visible = false;
this.bt_facebook._alpha = 0;
this.bt_facebook.onRelease = function () {
getURL (lienFacebook, "_blank");
};
bt_facebook.onRollOver = function () {
this.gotoAndStop(2);
};
bt_facebook.onRollOut = function () {
this.gotoAndStop(1);
};
pastille._visible = false;
pastille.texte._alpha = 0;
pastille.fd._alpha = 0;
pastille.fd._xscale = 10;
pastille.fd._yscale = 10;
this.bt_stop.onRelease = function () {
};
this.bt_stop.useHandCursor = false;
this.bt_stop.gotoAndStop(2);
big_fond._width = largeur_scene + 50;
big_fond._height = hauteur_scene + 50;
big_fond._x = (-(largeur_scene - 950)) / 2;
big_fond._y = (-(hauteur_scene - 650)) / 2;
mc_bonus1.couleur = "0xFFCC00";
mc_bonus2.couleur = "0x3399FF";
mc_bonus3.couleur = "0xFF0000";
bt_aide._alpha = 0;
bt_envoyer._alpha = 0;
bt_contact._alpha = 0;
bt_blog._alpha = 0;
mc_automatique._alpha = 0;
var k = 1;
while (k <= 3) {
var mc_bonus = this["mc_bonus" + k];
mc_bonus.bonus = this["zone_bonus" + k];
mc_bonus._alpha = 0;
mc_bonus.enabled = false;
mc_bonus.stop();
mc_bonus.onRelease = function () {
bt_stop.gotoAndStop(2);
this.attachMovie("loader_rond", "loader_rond", 0, {_x:20, _y:20});
var _local2 = new Color(this.loader_rond);
_local2.setRGB(this.couleur);
this.gotoAndStop(1);
bonus_en_cours = !bonus_en_cours;
bonus_a_jouer = this.bonus;
mc_bonus_cible = this;
};
k++;
}
var a = 1;
while (a <= nombre_polo) {
this.zone.attachMovie("polo", "polo" + a, a, {_x:1100});
var polo = this.zone["polo" + a];
if (polo == zone.polo1) {
polo._y = 250;
} else {
polo._y = 220 + random(80);
}
polo.sur_scene = false;
polo.occuper = false;
polo.logo_tshirt._alpha = 0;
polo.croix._visible = false;
polo.tshirt.onRelease = function () {
if (((this._parent.sur_scene && (this._parent.occuper)) && (!this._parent.en_attente)) && (!polo_bouge)) {
enleve_polo(this._parent);
polo_bouge = true;
}
};
polo.tshirt.onRollOver = function () {
if (this._parent.en_attente) {
this.useHandCursor = false;
} else {
this.useHandCursor = true;
}
};
a++;
}
var premier_son = true;
var a = 0;
while (a < nombre_son) {
this.ico_box.attachMovie("ico", "ico" + a, a, {_x:480, _y:330});
var ico = this.ico_box["ico" + a];
ico.attachMovie("loader_rond", "loader_rond", 0, {_x:20, _y:20});
ico.enabled = false;
ico.ombre._visible = false;
ico.pos_y = 555;
ico.pos_x = 0 + (ecart_ico * a);
ico.num = a;
ico.txt.text = "0";
ico.en_attente = false;
ico.son = new Sound();
ico.onPress = function () {
this.swapDepths(a);
startDrag (this);
main.gotoAndStop(2);
this.ombre._visible = true;
this.fond_ico._visible = true;
};
ico.onRollOver = function () {
this.useHandCursor = false;
Mouse.hide();
attachMovie("main", "main", 1);
main._x = _xmouse - 3;
main._y = _ymouse - 3;
main.onEnterFrame = function () {
this._x = _xmouse - 3;
this._y = _ymouse - 3;
};
};
ico.onRollOut = function () {
delete main.onEnterFrame;
main.removeMovieClip();
Mouse.show();
};
ico.onRelease = function (bollean_auto) {
this.ombre._visible = false;
stopDrag();
this.fond_ico._visible = false;
var _local3 = 1;
while (_local3 <= nombre_polo) {
var _local2 = this._parent._parent.zone["polo" + _local3];
if ((((this.hitTest(_local2) || (bollean_auto)) && (!_local2.occuper)) && (_local2.sur_scene)) && ((this._y <= 510) || (bollean_auto))) {
if (nombre_total <= (coup_bonus * 3)) {
nombre_total++;
if (nombre_total == coup_bonus) {
nb_mc_bonus++;
this._parent._parent["mc_bonus" + nb_mc_bonus].enabled = true;
this._parent._parent["mc_bonus" + nb_mc_bonus]._alpha = 100;
this._parent._parent["mc_bonus" + nb_mc_bonus].play();
coup_bonus = coup_bonus + 4;
}
} else {
delete nombre_total;
delete coup_bonus;
delete nb_mc_bonus;
}
desactiver_polo();
_local2.en_attente = true;
this.son_polo = _local2;
this.en_attente = true;
_local2.tshirt.gotoAndPlay(2);
_local2.oeil.gotoAndStop(2);
toucher = true;
_local2.occuper = true;
compteur_occuper++;
_local2.utilise_ico = this.num;
_local2.attachMovie("loader_rond", "loader_rond", 0, {_x:65, _y:220});
_local2.attachMovie("anime" + _local2.utilise_ico, "son_anime", 2);
_local2.logo_tshirt.attachMovie("picto" + this.num, "logo", 1);
var _local4 = new Color(_local2.logo_tshirt);
_local4.setRGB(16777215);
}
_local3++;
}
enleve_ico(this);
};
a++;
}
var ex = -1;
var compter_bonus = false;
var compteur_boucle = 0;
var bonus_jouer = false;
var compter_secure = false;
var compteur_auto = 0;
var _b = 1;
var last_value = 0;
charger_bonus();
bt_aide.onRelease = attach_window;
bt_envoyer.onRelease = attach_window;
bt_contact.onRelease = attach_window;
bt_blog.onRelease = attach_window;
bt_aide.onRollOver = sur_bt;
bt_envoyer.onRollOver = sur_bt;
bt_contact.onRollOver = sur_bt;
bt_blog.onRollOver = sur_bt;
bt_aide.onRollOut = dehors_bt;
bt_envoyer.onRollOut = dehors_bt;
bt_contact.onRollOut = dehors_bt;
bt_blog.onRollOut = dehors_bt;
var _switch = false;
mc_automatique.onRelease = function () {
this.enabled = false;
_switch = !_switch;
if (_switch) {
astuce_automatique._visible = true;
finte.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
mc_automatique.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe == 20) {
delete this.onEnterFrame;
}
};
effet_texte("manual mode", tiret6);
big_fond.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe == 50) {
delete this.onEnterFrame;
check_automatique();
automatique = true;
mc_automatique.onRollOut();
mc_automatique.enabled = true;
}
};
} else {
automatique = false;
mc_automatique.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe == 1) {
delete this.onEnterFrame;
}
};
effet_texte("shuffle mode", tiret6);
big_fond.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe == 1) {
delete this.onEnterFrame;
astuce_automatique._visible = false;
finte.onEnterFrame = function () {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
delete this.onEnterFrame;
mc_automatique.onRollOut();
mc_automatique.enabled = true;
}
};
}
};
}
};
mc_automatique.onRollOver = sur_bt;
mc_automatique.onRollOut = dehors_bt;
astuce_automatique.onRelease = function () {
};
astuce_automatique.useHandCursor = false;
astuce_automatique._visible = false;
Symbol 8 MovieClip Frame 1
stop();
Symbol 8 MovieClip Frame 16
stop();
Symbol 14 MovieClip [mini_loader] Frame 1
function attach_mc() {
var _local2 = 0;
while (_local2 < nombre_mc) {
var _local3 = this.attachMovie("mc", "mc" + _local2, _local2);
var _local4 = new Color(_local3);
_local4.setRGB(16777215);
_local3._rotation = (360 / nombre_mc) * _local2;
_local3._alpha = 100 - (4.5 * _local2);
_local2++;
}
}
var nombre_mc = 15;
attach_mc();
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
};
Symbol 17 MovieClip [loader_rond] Frame 1
function attach_mc() {
var _local2 = 0;
while (_local2 < nombre_mc) {
var _local3 = this.attachMovie("mc", "mc" + _local2, _local2);
_local3._rotation = 15 * _local2;
_local3._alpha = 100 - (4.5 * _local2);
_local2++;
}
}
var nombre_mc = 25;
attach_mc();
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
};
Symbol 30 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 57 MovieClip [mailto] Frame 1
function envoyerMail() {
bt_envoyer.attachMovie("mini_loader", "loader_rond", 0, {_x:85, _y:10, _xscale:50, _yscale:50});
reception = new LoadVars();
envoi = new LoadVars();
reception.onLoad = function (succes) {
if (succes) {
loader_rond.removeMovieClip();
if (this.retour == "OK") {
adresse_ami.text = "Invitation sent!";
}
if (this.retour == "ERREUR") {
adresse_ami.text = "Error we are sorry, please try again.";
}
bt_envoyer.loader_rond.removeMovieClip();
bt_envoyer.enabled = true;
bt_envoyer.gotoAndStop(1);
Key.addListener(myListener);
}
};
envoi.expediteur = nom_expediteur.text;
envoi.destinataire = adresse_ami.text;
envoi.sendAndLoad("http://www.incredibox.fr/fichier_mail/envoyer_mail_en.php", reception, POST);
}
this.fermer.onRelease = function () {
this.enabled = false;
this._parent.onEnterFrame = function () {
this._alpha = this._alpha - 20;
if (this._alpha <= 10) {
delete this.onEnterFrame;
if (_parent.debut_fini && (!_parent.bonus_jouer)) {
this._parent.bt_stop.gotoAndStop(1);
} else {
this._parent.bt_stop.gotoAndStop(2);
}
this.removeMovieClip();
}
};
};
this.fermer.onRollOver = function () {
this._xscale = (this._yscale = 140);
};
this.fermer.onRollOut = function () {
this._xscale = (this._yscale = 100);
};
nom_expediteur.onSetFocus = function () {
if (this.text == "Then your first name") {
this.text = "";
}
};
nom_expediteur.onChanged = function () {
caractere = this.text.substr(0, 1).toUpperCase();
text_coupe = this.text.substr(1, this.text.length);
this.text = caractere + text_coupe;
rapport.text = "";
};
adresse_ami.onSetFocus = function () {
if (((this.text == "Enter your e-mail friend") || (this.text == "Error we are sorry, please try again.")) || (this.text == "Invitation sent!")) {
this.text = "";
}
};
adresse_ami.restrict = "[a-z][A-Z]0123456789._@-,, ";
var myListener = new Object();
myListener.onKeyUp = function () {
if (Key.getCode() == 13) {
bt_envoyer.onRelease();
}
};
Key.addListener(myListener);
bt_envoyer.onRelease = function () {
Key.removeListener(myListener);
this.enabled = false;
this.gotoAndStop(2);
var _local2 = ami.indexOf("@");
var _local3 = ami.indexOf(".");
if ((((_local2 > -1) && (_local3 > -1)) && (nom_expediteur.text != "")) && (nom_expediteur.text != "Then your first name")) {
envoyerMail();
} else {
if (((_local2 > -1) && (_local3 > -1)) && ((nom_expediteur.text == "") || (nom_expediteur.text == "Then your first name"))) {
bloc2.gotoAndPlay(2);
}
if (((_local2 <= -1) || (_local3 <= -1)) && ((!(nom_expediteur.text === "")) || (!(nom_expediteur.text === "Then your first name")))) {
bloc1.gotoAndPlay(2);
}
if (((_local2 <= -1) || (_local3 <= -1)) && ((nom_expediteur.text == "") || (nom_expediteur.text == "Then your first name"))) {
bloc1.gotoAndPlay(2);
bloc2.gotoAndPlay(2);
}
this.gotoAndStop(1);
Key.addListener(myListener);
this.enabled = true;
}
};
bt_envoyer.onRollOver = function () {
this.gotoAndStop(2);
};
bt_envoyer.onRollOut = function () {
this.gotoAndStop(1);
};
bt_facebook.onRelease = function () {
getURL ("http://www.facebook.com/pages/The-Incredible-Polo/121708529900", "_blank");
};
bt_mac.onRelease = function () {
getURL ("http://www.incredibox.fr/fichier_hitcounter.php?file=incredibox", "_self");
};
bt_pc.onRelease = function () {
getURL ("http://www.incredibox.fr/fichier_hitcounter.php?file=incredibox_pc", "_self");
};
Symbol 68 MovieClip Frame 1
gotoAndPlay(random(this._totalframes));
Symbol 74 MovieClip Frame 1
gotoAndPlay(random(this._totalframes));
Symbol 101 MovieClip [contact] Frame 1
this.fermer.onRelease = function () {
this.enabled = false;
this._parent.onEnterFrame = function () {
this._alpha = this._alpha - 20;
if (this._alpha <= 10) {
delete this.onEnterFrame;
if (_parent.debut_fini && (!_parent.bonus_jouer)) {
this._parent.bt_stop.gotoAndStop(1);
} else {
this._parent.bt_stop.gotoAndStop(2);
}
this.removeMovieClip();
}
};
};
this.fermer.onRollOver = function () {
this._xscale = (this._yscale = 140);
};
this.fermer.onRollOut = function () {
this._xscale = (this._yscale = 100);
};
contact_allan.onRelease = function () {
getURL ("mailto:allan@incredibox.fr", "_blank");
};
site_allan.onRelease = function () {
getURL ("http://www.allandurand.fr", "_blank");
};
site_paul.onRelease = function () {
getURL ("http://www.myspace.com/incrediblepolo", "_blank");
};
contact_paul.onRelease = function () {
getURL ("mailto:paul@incredibox.fr", "_blank");
};
contact_romain.onRelease = function () {
getURL ("mailto:romain@incredibox.fr", "_blank");
};
Symbol 109 MovieClip [what] Frame 1
this.fermer.onRelease = function () {
this.enabled = false;
this._parent.onEnterFrame = function () {
this._alpha = this._alpha - 20;
if (this._alpha <= 10) {
delete this.onEnterFrame;
if (_parent.debut_fini && (!_parent.bonus_jouer)) {
this._parent.bt_stop.gotoAndStop(1);
} else {
this._parent.bt_stop.gotoAndStop(2);
}
this.removeMovieClip();
}
};
};
this.fermer.onRollOver = function () {
this._xscale = (this._yscale = 140);
};
this.fermer.onRollOut = function () {
this._xscale = (this._yscale = 100);
};
Symbol 147 MovieClip [anime13] Frame 1
stop();
Symbol 164 MovieClip [anime12] Frame 1
stop();
Symbol 168 MovieClip [anime11] Frame 1
stop();
Symbol 168 MovieClip [anime11] Frame 98
gotoAndPlay (2);
Symbol 171 MovieClip [anime10] Frame 1
stop();
Symbol 171 MovieClip [anime10] Frame 98
gotoAndPlay (2);
Symbol 173 MovieClip [anime9] Frame 1
stop();
Symbol 173 MovieClip [anime9] Frame 98
gotoAndPlay (2);
Symbol 179 MovieClip [anime8] Frame 1
stop();
Symbol 192 MovieClip [anime7] Frame 1
stop();
Symbol 198 MovieClip [anime6] Frame 1
stop();
Symbol 204 MovieClip [anime5] Frame 1
stop();
Symbol 204 MovieClip [anime5] Frame 98
gotoAndPlay (2);
Symbol 214 MovieClip [anime4] Frame 1
stop();
Symbol 225 MovieClip [anime3] Frame 1
stop();
Symbol 225 MovieClip [anime3] Frame 98
gotoAndPlay (2);
Symbol 232 MovieClip [anime2] Frame 1
stop();
Symbol 239 MovieClip [anime1] Frame 1
stop();
Symbol 239 MovieClip [anime1] Frame 98
gotoAndPlay (2);
Symbol 243 MovieClip [anime0] Frame 1
stop();
Symbol 243 MovieClip [anime0] Frame 98
gotoAndPlay (2);
Symbol 246 MovieClip [main] Frame 1
stop();
Symbol 246 MovieClip [main] Frame 2
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 16
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 17
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 25
stop();
_parent.place_polo();
_parent.afficher_tiret();
_parent.afficher_bonus();
_parent.afficher_automatique();
_parent.pastille._visible = true;
_parent.pastille.apparition();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 114
_parent.ico_box.ico10.onRelease(true);
Symbol 317 MovieClip Frame 127
_parent.check_son();
Symbol 317 MovieClip Frame 227
_parent.zone.polo1.tshirt.onRelease();
_parent.bt_stop.gotoAndStop(1);
Symbol 317 MovieClip Frame 247
_parent.metronome.start();
_parent.debut_fini = true;
Symbol 319 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
function apparition() {
this.fd.onEnterFrame = function () {
this._rotation = this._rotation + 2;
masque._rotation = this._rotation;
this._alpha = this._alpha + 10;
this._xscale = this._xscale + ((100 - this._xscale) * 0.4);
masque._xscale = (masque._yscale = (this._yscale = this._xscale));
if ((Math.abs(100 - this._xscale) < 1) && (this._alpha >= 100)) {
delete this.onEnterFrame;
masque._xscale = (masque._yscale = (this._xscale = (this._yscale = 100)));
this._alpha = 100;
this._parent.texte.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
this.onRollOver = function () {
this._parent.gotoAndPlay(2);
this.onEnterFrame = function () {
this._rotation = this._rotation + 0.5;
masque._rotation = this._rotation;
this._xscale = this._xscale + ((120 - this._xscale) * 0.5);
masque._xscale = (masque._yscale = (this._yscale = this._xscale));
if (Math.abs(120 - this._xscale) < 1) {
delete this.onEnterFrame;
masque._xscale = (masque._yscale = (this._yscale = (this._xscale = 120)));
this.onEnterFrame = function () {
this._rotation = this._rotation + 0.5;
masque._rotation = this._rotation;
};
}
};
};
this.onRollOut = (this.onReleaseOutside = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((100 - this._xscale) * 0.4);
masque._xscale = (masque._yscale = (this._yscale = this._xscale));
if (Math.abs(100 - this._xscale) < 1) {
delete this.onEnterFrame;
masque._xscale = (masque._yscale = (this._yscale = (this._xscale = 100)));
}
};
});
this.onRelease = function () {
getURL ("http://www.incredibox.fr/newsletter/en/", "_blank");
};
}
};
}
function disparition() {
fd.enabled = false;
texte.onEnterFrame = function () {
this._alpha = this._alpha - 20;
this.parent.fd._rotation = this.parent.fd._rotation + 2;
masque._rotation = this.parent.fd._rotation;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._parent.fd.onEnterFrame = function () {
this._rotation = this._rotation + 2;
masque._rotation = this._rotation;
this._alpha = this._alpha - 10;
this._xscale = this._xscale + ((-this._xscale) * 0.3);
masque._xscale = (masque._yscale = (this._yscale = this._xscale));
if ((Math.abs(-this._xscale) < 1) && (this._alpha <= 0)) {
delete this.onEnterFrame;
this._visible = false;
}
};
}
};
}
stop();