Frame 1
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new zigo.tweenManager();
} else {
_global.$tweenManager.cleanUp();
_global.$tweenManager.init();
}
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
var Mp = MovieClip.prototype;
Mp.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("tween not added, this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("tween not added, props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
if (!(pEnd instanceof Array)) {
pEnd = [pEnd];
while (pEnd.length < props.length) {
pEnd.push(pEnd[0]);
}
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
animType = animType.toLowerCase();
if (animType == "linear") {
var eqf = com.robertpenner.easing.Linear.easeNone;
} else if (animType.indexOf("easeoutin") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOutIn;
} else if (animType.indexOf("easeinout") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeInOut;
} else if (animType.indexOf("easein") == 0) {
var t = animType.substr(6);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeIn;
} else if (animType.indexOf("easeout") == 0) {
var t = animType.substr(7);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOut;
}
if (eqf == undefined) {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if ((animType.ease != undefined) && (animType.pts != undefined)) {
var eqf = animType.ease;
extra1 = animType.pts;
} else {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
default :
var eqf = com.robertpenner.easing.Expo.easeOut;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp;
var funcp;
var scope;
var args;
var a;
ilp = callback.indexOf("(");
funcp = callback.slice(0, ilp);
scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
func = eval (funcp);
args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
Mp.stopTween = function (props) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_global.$tweenManager.removeTween(this, props);
};
Mp.isTweening = function (prop) {
return(_global.$tweenManager.isTweening(this, prop));
};
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
Mp.isTweenPaused = function (prop) {
return(_global.$tweenManager.isTweenPaused(this, prop));
};
Mp.pauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.pauseTween(this, _local4);
};
Mp.unpauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.unpauseTween(this, _local4);
};
Mp.pauseAllTweens = function () {
_global.$tweenManager.pauseTween();
};
Mp.unpauseAllTweens = function () {
_global.$tweenManager.unpauseTween();
};
Mp.stopAllTweens = function () {
_global.$tweenManager.stopAll();
};
Mp.ffTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.ffTween(this, _local4);
};
Mp.rewTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.rewTween(this, _local4);
};
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
Mp.sizeTo = function (destSize, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_width", "_height"], [destSize, destSize], seconds, animType, delay, callback, extra1, extra2);
};
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
_global.getColorTransObj = function (type, amt, rgb) {
switch (type) {
case "brightness" :
var _local4 = 100 - Math.abs(amt);
var _local6 = 0;
if (amt > 0) {
_local6 = 256 * (amt / 100);
}
return({ra:_local4, rb:_local6, ga:_local4, gb:_local6, ba:_local4, bb:_local6});
case "brightOffset" :
_local6 = 256 * (amt / 100);
return({ra:100, rb:_local6, ga:100, gb:_local6, ba:100, bb:_local6});
case "contrast" :
var _local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = amt));
_local2.rb = (_local2.gb = (_local2.bb = 128 - (1.28 * amt)));
return(_local2);
case "invertColor" :
_local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = 100 - (2 * amt)));
_local2.rb = (_local2.gb = (_local2.bb = amt * 2.55));
return(_local2);
case "tint" :
if ((rgb == undefined) || (rgb == null)) {
} else {
var _local8 = rgb >> 16;
var _local9 = (rgb >> 8) & 255;
var _local7 = rgb & 255;
var _local5 = amt / 100;
_local2 = {rb:_local8 * _local5, gb:_local9 * _local5, bb:_local7 * _local5};
_local2.ra = (_local2.ga = (_local2.ba = 100 - amt));
return(_local2);
}
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
};
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("brightness", bright)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("brightOffset", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("contrast", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTo = function (rgb, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("tint", 100, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
Mp.invertColorTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("invertColor", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.tintTo = function (rgb, percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [getColorTransObj("tint", percent, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.getFrame = function () {
return(this._currentframe);
};
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
if (endframe == undefined) {
endframe = this._totalframes;
}
this.tween("_frame", endframe, duration, animType, delay, callback, extra1, extra2);
};
var TFP = TextField.prototype;
if (!TFP.origAddListener) {
TFP.origAddListener = TFP.addListener;
ASSetPropFlags(TFP, "origAddListener", 1, 0);
TFP.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.origAddListener.apply(this, arguments);
};
}
var $_$methods = ["tween", "stopTween", "isTweening", "getTweens", "lockTween", "isTweenLocked", "unlockTween", "isTweenPaused", "pauseTween", "unpauseTween", "pauseAllTweens", "unpauseAllTweens", "stopAllTweens", "ffTween", "rewTween", "getFrame", "setFrame", "_frame", "frameTo", "alphaTo", "brightnessTo", "colorTo", "colorTransformTo", "invertColorTo", "tintTo", "scaleTo", "sizeTo", "slideTo", "rotateTo", "brightOffsetTo", "contrastTo"];
for (var $_$i in $_$methods) {
ASSetPropFlags(Mp, $_$methods[$_$i], 1, 0);
if ($_$methods[$_$i].toLowerCase().indexOf("frame") == -1) {
TFP[$_$methods[$_$i]] = Mp[$_$methods[$_$i]];
ASSetPropFlags(TFP, $_$methods[$_$i], 1, 0);
}
}
delete Mp;
delete TFP;
delete $_$methods;
delete $_$i;
FMP.initialize();
var _this = this;
var anim = 0.5;
var delai = 0.5;
function replace() {
_this.MenuPig._x = 0;
_this.Logo._x = 0;
_this.Logo._y = 0;
_this.Mp3Player._y = 0;
_this.FondScene._y = 0;
var _local3 = Math.round((Stage.width - _this.btnCredits._width) - 25);
var _local2 = Math.round(Stage.height - _this.btnCredits._height);
var _local5 = Math.round((Stage.height - _this.Thermo._height) - _this.btnCredits._height);
var _local7 = Math.round((Stage.width - _this.Thermo._width) - 10);
var _local1 = Math.round((Stage.width - _this.Mp3Player._width) + 30);
var _local4 = Math.round((Stage.width / 2) - (_this.FondScene._width / 2));
var _local8 = Math.round((Stage.width / 2) - (_this.BlocLoad._width / 2));
var _local6 = Math.round((Stage.height / 2) - (_this.BlocLoad._height / 2));
var _local12 = Math.round((Stage.width / 2) - (_this.texteLoading._width / 2));
var _local11 = Math.round((Stage.height / 2) - (_this.texteLoading._height / 2));
MenuPig._y = Math.round(Stage.height - 68);
var _local10 = Math.round((Stage.width / 2) - (PositionX / 2));
var _local9 = Math.round((Stage.height / 2) - (PositionY / 2));
_this.Thermo.tween("_x", _local7, anim, "easeOutSine");
_this.Thermo.tween("_y", _local5, anim, "easeOutSine");
_this.Mp3Player.tween("_x", _local1, anim, "easeOutSine");
_this.FondScene.tween("_x", _local4, anim, "easeOutSine");
_this.ClipScene.tween(["_x", "_y"], [_local10, _local9], anim, "easeOutSine");
_this.texteLoading.tween("_x", _local12, 0.2, "easeOutSine");
_this.texteLoading.tween("_y", _local11, 0.2, "easeOutSine");
_this.BlocLoad.tween("_x", _local8, 0.2, "easeOutSine");
_this.BlocLoad.tween("_y", _local6, 0.2, "easeOutSine");
_this.btnCredits.tween("_x", _local3, 0.2, "easeOutSine");
_this.btnCredits.tween("_y", _local2, 0.2, "easeOutSine");
}
Stage.scaleMode = "noScale";
Stage.align = "TL";
var myListener = new Object();
_global.PositionX;
_global.PositionY;
myListener.onResize = function () {
_this.replace();
};
Stage.addListener(myListener);
_this.replace();
this.attachMovie("pointer_id", "pointer_mc", this.getNextHighestDepth());
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
pointer_mc.rotateTo(5, 0.1, "easeOutExpo");
};
mouseListener.onMouseUp = function () {
pointer_mc.rotateTo(0, 0.1, "easeOutExpo");
};
mouseListener.onMouseMove = function () {
pointer_mc._x = _xmouse;
pointer_mc._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
function hereweGo() {
_this.gotoAndStop(2);
}
function chargeAccueil() {
chargeImage("Accueil.swf");
}
function chargeImage(fichier) {
_this.ClipScene.alphaTo(0, 0.5, "easeInSine");
var _local1 = setTimeout(startChargerImage, 500, fichier);
}
function startChargerImage(fichier) {
_this.ClipScene.removeMovieClip();
_this.createEmptyMovieClip("ClipScene", _this.getNextHighestDepth());
_this.Thermo.swapDepths(_this.getNextHighestDepth());
_this.MenuPig.swapDepths(_this.getNextHighestDepth());
_this.Logo.swapDepths(_this.getNextHighestDepth());
_this.Mp3Player.swapDepths(_this.getNextHighestDepth());
_this.pointer_mc.swapDepths(_this.getNextHighestDepth());
_this.PreparationLoader();
_this.texteLoading.text = "0%";
var _local2 = new MovieClipLoader();
var _local1 = new Object();
_local1.onLoadStart = function (target_mc) {
_this.texteLoading.alphaTo(100, 0.5, "easeOutSine");
};
_local1.onLoadProgress = function (target_mc, bytesLoaded, bytesTotal) {
var _local1 = Math.floor((bytesLoaded / bytesTotal) * 100);
_this.texteLoading.text = ("Chargement : " + _local1) + "%";
};
_local1.onLoadInit = function (target_mc) {
_this.texteLoading.stopTween();
_this.BlocLoad.stopTween();
_this.texteLoading.tween("_y", 0, 0.5, "easeOutBack");
_this.texteLoading.alphaTo(0, 0.5, "easeOutSine");
_this.BlocLoad.tween("_y", 0, 0.5, "easeOutBack");
_this.BlocLoad.alphaTo(0, 0.5, "easeOutSine");
target_mc.alphaTo(0, 0, "easeOutSine");
target_mc.alphaTo(100, anim, "easeOutSine");
target_mc._x = Math.round((Stage.width / 2) - (PositionX / 2));
target_mc._y = Math.round((Stage.height / 2) - (PositionY / 2));
};
_local2.addListener(_local1);
_local2.loadClip(fichier, _this.ClipScene);
}
function PreparationLoader() {
_this.BlocLoad._alpha = 0;
_this.BlocLoad._y = 0;
_this.texteLoading._alpha = 0;
_this.texteLoading._y = 0;
_this.texteLoading.stopTween();
_this.BlocLoad.stopTween();
var _local2 = Math.round((Stage.width / 2) - (_this.BlocLoad._width / 2));
var _local1 = Math.round((Stage.height / 2) - (_this.BlocLoad._height / 2));
_this.BlocLoad.alphaTo(100, 0.2, "easeOutSine");
_this.BlocLoad.tween("_x", _local2, 0.2, "easeOutBack");
_this.BlocLoad.tween("_y", _local1, 0.2, "easeOutBack");
var _local4 = Math.round((Stage.width / 2) - (_this.texteLoading._width / 2));
var _local3 = Math.round((Stage.height / 2) - (_this.texteLoading._height / 2));
_this.texteLoading.alphaTo(100, 0.2, "easeOutSine", 0.2);
_this.texteLoading.tween("_x", _local4, 0.2, "easeOutSine", 0.2);
_this.texteLoading.tween("_y", _local3, 0.2, "easeOutSine", 0.2);
}
stop();
PreparationLoader();
this.onEnterFrame = function () {
Total = _this.getBytesTotal();
Lu = _this.getBytesLoaded();
rapport = Math.floor((Lu / Total) * 100);
_this.Bloc;
if (isNaN(rapport)) {
_this.texteLoading.text = "0%";
} else {
_this.texteLoading.text = ("Chargement :" + rapport) + "%";
}
if (rapport == 100) {
delete this.onEnterFrame;
_this.texteLoading.stopTween();
_this.BlocLoad.stopTween();
_this.texteLoading.tween("_y", 0, 0.5, "easeOutBack");
_this.texteLoading.alphaTo(0, 0.5, "easeOutSine");
_this.BlocLoad.tween("_y", 0, 0.5, "easeOutBack");
_this.BlocLoad.alphaTo(0, 0.5, "easeOutSine", 0, hereweGo);
}
};
Frame 2
_this.btnCredits.nom._alpha = 0;
_this.btnCredits.nom._x = 0;
_this.btnCredits.nom.setMask(_this.btnCredits.BigMask);
_this.btnCredits.onRollOver = function () {
_this.btnCredits.texteCredit.stopTween();
_this.btnCredits.patate.stopTween();
_this.btnCredits.nom.stopTween();
_this.btnCredits.patate.tween(["_alpha", "_x"], [100, 18], 0.2, "easeOutSine");
_this.btnCredits.nom.tween(["_alpha", "_x"], [100, -40], 0.3, "easeOutExpo", 0.1);
_this.btnCredits.BigMask.tween("_x", -40, 0.3, "easeOutExpo", 0.1);
};
_this.btnCredits.onRollOut = function () {
_this.btnCredits.texteCredit.stopTween();
_this.btnCredits.patate.stopTween();
_this.btnCredits.nom.stopTween();
_this.btnCredits.patate.tween(["_alpha", "_x"], [100, 15], 0, "easeOutSine");
_this.btnCredits.nom.tween(["_alpha", "_x"], [0, 0], 0.5, "easeOutExpo", 0);
_this.btnCredits.BigMask.tween("_x", 0, 0.3, "easeOutExpo", 0.1);
};
_this.btnCredits.onRelease = function () {
getURL ("http://www.bigyouth.fr", "_blank");
};
function InitMenu() {
var _local1 = 0;
while (_local1 < tabTitre.length) {
var _local2 = _this.MenuPig["Titre" + _local1];
var _local3 = _this.MenuPig["Bloc" + _local1];
_local2._alpha = 0;
_local3._alpha = 0;
_local1++;
}
}
function inTableau(tablo, valeur) {
var _local3 = tablo.length;
var _local2 = false;
var _local1 = 0;
while (_local1 < _local3) {
if (tablo[_local1] == valeur) {
_local2 = true;
}
_local1++;
}
return(_local2);
}
function ActingMenu() {
var _local2 = 0;
while (_local2 < tabTitre.length) {
var _local3 = _this.MenuPig["Titre" + _local2];
var _local4 = _this.MenuPig["Bloc" + _local2];
_local3.alphaTo(100, anim / 2, "easeOutSine", 0.1 * _local2);
_local4.alphaTo(100, anim / 2, "easeOutSine", 0.1 * _local2);
_local3.Indice = _local2;
_local3.Anim = tabSwf[_local2];
_local3.onRollOver = function () {
doOnRoll(this.Indice);
};
_local3.onRollOut = function () {
doOutRoll(this.Indice);
};
_local3.onRelease = function () {
if (!testBool) {
chargeImage(this.Anim);
} else {
trace("pas d'anim");
}
var _local2 = _this.inTableau(_this.tabAnimSon, this.Indice);
if (_local2) {
_this.Mp3Player.CloseBtnSon();
trace("je coupe le son");
} else {
_this.Mp3Player.OpenBtnSon();
trace("je remet le son");
}
};
_local2++;
}
}
function doOnRoll(Indice) {
_this.MenuPig.BlocMenu.removeMovieClip();
var _local1 = _this.MenuPig.attachMovie("BlocMenu", "BlocMenu", 1);
_local1.Neige0._alpha = 0;
_local1.Neige0._y = -100;
_local1.Neige1._alpha = 0;
_local1.Neige1._y = -100;
_local1._x = _this.MenuPig["Bloc" + Indice]._x;
_local1._alpha = 0;
_local1._y = 100;
_local1.Pigloo._alpha = 0;
_local1.Pigloo._y = 0;
clipCourant = _local1.Pigloo.Oeil;
_local1.stopTween();
_local1.Pigloo.stopTween();
_local1.FondColor.stopTween();
_local1.Neige0.stopTween();
_local1.Neige1.stopTween();
_local1.alphaTo(100, anim / 2, "easeOutSine");
_local1.tween("_y", -20, anim / 2, "easeOutBack");
_local1.Pigloo.alphaTo(100, anim / 2, "easeOutSine", delai);
_local1.Pigloo.tween("_y", -60, anim / 2, "easeOutBack", delai, AnimOeil);
_local1.Neige0.alphaTo(100, anim / 2, "easeOutSine", delai * 2);
_local1.Neige0.tween("_y", -70, anim / 2, "easeOutBack", delai * 2);
_local1.Neige1.alphaTo(100, anim / 2, "easeOutSine", delai * 2.5);
_local1.Neige1.tween("_y", -18, anim / 2, "easeOutBack", delai * 2.5);
_local1.FondColor.colorTo(tabCoul[Indice], anim / 2, "easeOutSine");
_local1.Titre.Titre.autoSize = true;
_local1.Titre.Titre.text = tabTitre[Indice];
_local1.Titre._x = (_local1.FondBlanc._width / 2) - (_local1.Titre._width / 2);
var _local3 = _this.inTableau(_this.tabAnimNein, Indice);
if (_local3) {
_local1.Titre.Titre.autoSize = true;
_local1.Titre._xscale = (_local1.Titre._yscale = 70);
_local1.Titre._x = (_local1.FondBlanc._width / 2) - (_local1.Titre._width / 2);
}
}
function doOutRoll(Indice) {
var _local1 = _this.MenuPig.BlocMenu;
_local1.Pigloo.Oeil.gotoAndStop(1);
_local1.alphaTo(0, anim / 2, "easeOutSine");
_local1.tween("_y", 100, anim / 2, "easeOutBack");
_local1.Pigloo._alpha = 0;
_local1.Pigloo._y = 0;
}
function AnimOeil() {
clipCourant.gotoAndPlay(1);
}
stop();
var clipCourant;
var tabTitre = new Array("ACCUEIL", "BIO", "PHOTOS", "ECOUTE", "E-CARD", "VIDEOS", "JEUX", "TELECHARGEMENT");
var tabSwf = new Array("Accueil.swf", "Bio.swf", "Photos.swf", "Ecoute.swf", "Ecard.swf", "Video.swf", "Jeux.swf", "Mobiles.swf");
var tabCoul = new Array("0x00A9EC", "0xB4D900", "0xF7D501", "0xEE9503", "0x00A9EC", "0xE4007B", "0xF7D501", "0xEE9503");
var tabAnimNein = new Array(15, 7);
var tabAnimSon = new Array(3, 5);
function SoleilIn() {
_this.FondScene.Soleil.alphaTo(50, anim * 5, "easeOutSine", 0, SoleilOut);
}
function SoleilOut() {
_this.FondScene.Soleil.alphaTo(100, anim * 2, "easeOutSine", 0, SoleilIn);
}
function TempChiffre() {
_this.Thermo.onEnterFrame = function () {
if ((TempCho == true) && (NbTemp < 35)) {
this.Temp.text = "+" + NbTemp;
this.Thermo.BarreThermo._yscale = (-NbTemp) * 2;
this.Thermo.BarreThermo._y = this.Thermo.RondThermo._y;
NbTemp++;
}
if ((TempCho == false) && (NbTemp > -10)) {
this.Temp.text = NbTemp;
this.Thermo.BarreThermo._yscale = (-NbTemp) * 2;
this.Thermo.BarreThermo._y = this.Thermo.RondThermo._y;
NbTemp--;
}
};
}
function InitCredit() {
_this.btnCredits._alpha = 0;
}
function InitLogo() {
_this.Logo.FondLogo._alpha = 0;
_this.Logo.Logo._alpha = 0;
_this.Logo.Logo._xscale = (_this.Logo.Logo._yscale = 0);
}
function InitMp3Player() {
_this.Mp3Player._y = -100;
_this.Mp3Player.FondMp3Player._alpha = 0;
var _local1 = 0;
while (_local1 < 4) {
_this.Mp3Player["Btn" + _local1]._alpha = 0;
_local1++;
}
}
function InitDecor() {
var _local1 = 0;
while (_local1 < 5) {
_this.FondScene["Ping" + _local1]._alpha = 0;
_local1++;
}
_this.FondScene.Fond._alpha = 0;
_this.FondScene.Fond._y = -50;
_this.FondScene.Soleil._alpha = 0;
_this.FondScene.Igloo._alpha = 0;
_this.FondScene.Igloo._x = -100;
}
function InitTemperature() {
_this.Thermo._alpha = 0;
}
function AnimCredits() {
_this.btnCredits.alphaTo(100, anim, "easeOutSine");
}
function AnimThermo() {
_this.Thermo.alphaTo(100, anim, "easeOutSine");
}
function AnimLogo() {
_this.Logo.FondLogo.alphaTo(100, anim, "easeOutSine");
_this.Logo.Logo.alphaTo(100, anim, "easeOutSine", delai);
_this.Logo.Logo.scaleTo(100, anim, "easeInOutBack", delai);
}
function AnimMp3Player() {
_this.Mp3Player.tween("_y", 0, anim, "easeOutSine");
_this.Mp3Player.FondMp3Player.alphaTo(100, anim, "easeOutSine");
_this.Mp3Player.LancePremSong();
var _local1 = 0;
while (_local1 < 4) {
_this.Mp3Player["Btn" + _local1].alphaTo(100, anim, "easeOutSine", delai * _local1);
_local1++;
}
_this.replace();
}
function TransitionPing(clip, Temps) {
var _local1 = setTimeout(AnimPing, Temps * 1000, clip, Temps);
}
function AnimPing(clip, Temps) {
clip.alphaTo(100, anim, "easeOutSine");
clip.gotoAndPlay(2);
TransitionPing(clip, Temps);
}
function AnimDecor() {
_this.FondScene.Fond.alphaTo(100, anim, "easeOutSine");
_this.FondScene.Fond.tween("_y", 0, anim, "easeInBack");
_this.FondScene.Soleil.alphaTo(100, anim, "easeOutSine", delai);
_this.FondScene.Igloo.alphaTo(100, anim, "easeOutSine", delai * 2);
_this.FondScene.Igloo.tween("_x", 200, anim, "easeInOutBack", delai * 2);
}
function AnimPingintro() {
TransitionPing(_this.FondScene.Ping5, 5);
TransitionPing(_this.FondScene.Ping3, 1);
TransitionPing(_this.FondScene.Ping2, 1);
TransitionPing(_this.FondScene.Ping1, 1);
}
function IntroAnim() {
AnimDecor();
var _local10 = setTimeout(AnimDecor, 2000);
var _local9 = setTimeout(ActingMenu, 2000);
var _local8 = setTimeout(AnimMp3Player, 2500);
var _local7 = setTimeout(AnimLogo, 2500);
var _local6 = setTimeout(AnimAccroche, 3000);
var _local5 = setTimeout(AnimThermo, 3000);
var _local3 = setTimeout(AnimCredits, 3050);
var _local2 = setTimeout(AnimPingintro, 3000);
var _local1 = setTimeout(SoleilIn, 3500);
var _local4 = setTimeout(chargeAccueil, 3500);
}
var TempCho = true;
var NbTemp = 1;
var clipPingCourant;
InitCredit();
InitMenu();
InitTemperature();
InitAccroche();
InitLogo();
InitMp3Player();
InitBlocClips();
InitDecor();
IntroAnim();
var Position;
_this.Thermo.onRollOver = function () {
_this.Thermo.SoleilMeteo.ffTween();
_this.Thermo.TitreMeteo.colorTo(15635715, anim, "easeOutSine");
_this.Thermo.SoleilMeteo.tween("_rotation", 360, anim * 2, "easeOutSine");
TempChiffre();
TempCho = true;
};
_this.Thermo.onRollOut = function () {
_this.Thermo.SoleilMeteo.ffTween();
_this.Thermo.TitreMeteo.colorTo(null, anim, "easeOutSine");
_this.Thermo.SoleilMeteo.tween("_rotation", 0, anim * 2, "easeOutSine");
TempChiffre();
TempCho = false;
};
_this.Credits.onRelease = function () {
getURL ("http://www.bigyouth.fr", "_blank");
};
_this.Credits.onRollOver = function () {
this.colorTo(15635715, anim, "easeOutSine");
};
_this.Credits.onRollOut = function () {
this.colorTo(null, anim, "easeOutSine");
};
Instance of Symbol 112 MovieClip "Mp3Player" in Frame 2
/* no clip actions */
Symbol 28 MovieClip [list] Frame 1
function SingSon(Titre, Mp3) {
mySound.loadSound("Sound/" + Mp3, true);
TitreSing.autoSize = true;
TimeSing.autoSize = true;
TitreSing.text = Titre;
TimeSing._x = (TitreSing._x + TitreSing._width) + 10;
}
var mySound = new Sound();
SingSon("Le Papa Pingouin", "papapingouin.mp3");
var i = 0;
while (i < 4) {
this["Btn" + i].onRollOver = function () {
this.stopTween();
this.Btn.colorTo(15635715, 0.5, "easeOutSine");
this.Fond.tintTo(16777215, 70, 0.5, "easeOutSine");
};
this["Btn" + i].onRollOut = function () {
this.stopTween();
this.Btn.colorTo(null, 0.5, "easeOutSine");
this.Fond.tintTo(null, 0, 0.5, "easeOutSine");
};
i++;
}
Symbol 28 MovieClip [list] Frame 2
function formatTime() {
var _local4 = mySound.position;
var _local2 = Math.floor(_local4 / 60000);
var _local3 = _local4 - (_local2 * 60000);
if (_local2 < 10) {
_local2 = "0" + _local2;
}
var _local1 = Math.floor(_local3 / 1000);
_local3 = _local3 - (_local1 * 1000);
if (_local1 < 10) {
_local1 = "0" + _local1;
}
outputData = (_local2 + ":") + _local1;
return(outputData);
}
formatTime();
TimeSing.text = outputData;
Symbol 28 MovieClip [list] Frame 3
gotoAndPlay (2);
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 40
stop();
Symbol 177 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 178 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
}
Symbol 179 MovieClip [__Packages.com.robertpenner.easing.Quart] Frame 0
class com.robertpenner.easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((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) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
}
Symbol 180 MovieClip [__Packages.com.robertpenner.easing.Sine] Frame 0
class com.robertpenner.easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
}
Symbol 181 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 182 MovieClip [__Packages.FMP] Frame 0
class FMP
{
static var $fclasses, $shortcuts, $gro, $sro;
function FMP () {
}
static function simpleSetup() {
initialize();
}
static function initialize() {
if ($fclasses == undefined) {
$shortcuts = {getFilterIndex:function (f) {
return(FMP.getFilterIndex(this, f));
}, writeFilter:function (f, pObj) {
return(FMP.writeFilter(this, f, pObj));
}, removeFilter:function (f) {
return(FMP.removeFilter(this, f));
}, traceAllFilters:function () {
FMP.traceAllFilters();
}};
$fclasses = {BevelFilter:flash.filters.BevelFilter, BlurFilter:flash.filters.BlurFilter, ColorMatrixFilter:flash.filters.ColorMatrixFilter, ConvolutionFilter:flash.filters.ConvolutionFilter, DisplacementMapFilter:flash.filters.DisplacementMapFilter, DropShadowFilter:flash.filters.DropShadowFilter, GlowFilter:flash.filters.GlowFilter, GradientBevelFilter:flash.filters.GradientBevelFilter, GradientGlowFilter:flash.filters.GradientGlowFilter};
$gro = {__resolve:function (name) {
var _local6 = function () {
var _local2 = name.split("_");
var _local4 = _local2[0] + "Filter";
var _local3 = FMP.getFilterIndex(this, _local4);
if (_local3 == -1) {
var _local5 = new FMP.$fclasses[_local4]();
if (typeof(_local5[_local2[1]]) == "number") {
return(0);
}
return(null);
}
return(this.filters[_local3][_local2[1]]);
};
return(_local6);
}};
$sro = {__resolve:function (name) {
var _local6 = function (wert) {
var _local3 = name.split("_");
var _local5 = _local3[0] + "Filter";
var _local2 = FMP.getFilterIndex(this, _local5);
if (_local2 == -1) {
_local2 = FMP.writeFilter(this, _local5);
}
var _local4 = this.filters;
_local4[_local2][_local3[1]] = wert;
FMP.writeFilter(this, _local4[_local2]);
this.name = wert;
};
return(_local6);
}};
}
if (arguments.length == 0) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
if (arguments[0] == null) {
return(undefined);
}
var _local6 = [MovieClip, Button, TextField];
var _local8 = function (o, p) {
o.addProperty(p, FMP.$gro[p], FMP.$sro[p]);
_global.ASSetPropFlags(o, p, 3);
};
for (var _local14 in arguments) {
var _local7 = false;
for (var _local11 in _local6) {
if ((arguments[_local14] instanceof _local6[_local11]) || (arguments[_local14] == _local6[_local11].prototype)) {
_local7 = true;
break;
}
}
if (!_local7) {
trace(("**** FMP cannot initialize argument " + _local14) + " (BitmapFilters cannot be applied to this object type) ****");
continue;
}
if (arguments[_local14].$fmp_initialized) {
continue;
}
for (var _local12 in $fclasses) {
var _local4 = new $fclasses[_local12]();
for (var _local9 in _local4) {
if (typeof(_local4[_local9]) == "function") {
continue;
}
var _local5 = (_local12.substr(0, -6) + "_") + _local9;
_local8(arguments[_local14], _local5);
}
}
for (var _local10 in $shortcuts) {
arguments[_local14][_local10] = $shortcuts[_local10];
_global.ASSetPropFlags(arguments[_local14], _local10, 7);
}
arguments[_local14].$fmp_initialized = true;
}
_global.FMP = FMP;
for (var _local14 in $fclasses) {
_global[_local14] = $fclasses[_local14];
}
}
static function deinitialize() {
if ($fclasses == undefined) {
return(undefined);
}
if (arguments.length == 0) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
for (var _local8 in arguments) {
for (var _local7 in $fclasses) {
var _local4 = new $fclasses[_local7]();
for (var _local5 in _local4) {
if (typeof(_local4[_local5]) == "function") {
continue;
}
var _local3 = (_local7.substr(0, -6) + "_") + _local5;
_global.ASSetPropFlags(arguments[_local8], _local3, 0, 2);
delete arguments[_local8][_local3];
}
}
for (var _local6 in $shortcuts) {
_global.ASSetPropFlags(arguments[_local8], _local6, 0, 2);
delete arguments[_local8][_local6];
}
delete arguments[_local8].$fmp_initialized;
}
}
static function getFilterIndex($obj, $myFilter) {
if (!$obj.$fmp_initialized) {
return(undefined);
}
$myFilter = $getInstance($myFilter);
if ($myFilter === null) {
return(-1);
}
var _local2 = $obj.filters;
var _local1 = 0;
while (_local1 <= _local2.length) {
if (_local2[_local1].__proto__ == $myFilter.__proto__) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function writeFilter($obj, $myFilter, $propsObj) {
if (!$obj.$fmp_initialized) {
return(undefined);
}
$myFilter = $getInstance($myFilter);
if ($myFilter === null) {
return(-1);
}
var _local1 = $obj.filters;
var _local6 = getFilterIndex($obj, $myFilter);
if (_local6 == -1) {
_local1.push($myFilter);
_local6 = _local1.length - 1;
} else {
_local1[_local6] = $myFilter;
}
if (typeof($propsObj) == "object") {
for (var _local4 in $propsObj) {
if (_local1[_local6][_local4] != undefined) {
_local1[_local6][_local4] = $propsObj[_local4];
}
}
}
$obj.filters = _local1;
_local6 = getFilterIndex($obj, $myFilter);
return(_local6);
}
static function removeFilter($obj, $myFilter) {
if (!$obj.$fmp_initialized) {
return(undefined);
}
$myFilter = $getInstance($myFilter);
var _local3 = $obj.filters;
var _local2 = getFilterIndex($obj, $myFilter);
if (_local2 == -1) {
return(false);
}
_local3.splice(_local2, 1);
$obj.filters = _local3;
return(true);
}
static function traceAllFilters() {
if ($fclasses == undefined) {
initialize(null);
}
trace("------ FMP filter properties ------");
trace(" ");
for (var _local3 in $fclasses) {
trace(_local3);
var _local1 = new $fclasses[_local3]();
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "function") {
continue;
}
trace((((("\t- " + _local3.substr(0, -6)) + "_") + _local2) + ":") + typeof(_local1[_local2]));
}
trace(" ");
}
}
static function $getInstance($myFilter) {
if ($myFilter instanceof flash.filters.BitmapFilter) {
return($myFilter);
}
if (typeof($myFilter) == "function") {
for (var _local2 in $fclasses) {
if ($myFilter == $fclasses[_local2]) {
return(new $fclasses[_local2]());
}
}
}
if (typeof($myFilter) == "string") {
if ($myFilter.substr(-6) != "Filter") {
$myFilter = $myFilter + "Filter";
}
for (var _local2 in $fclasses) {
if (_local2 == $myFilter) {
return(new $fclasses[_local2]());
}
}
}
return(null);
}
}
Symbol 183 MovieClip [__Packages.com.robertpenner.easing.Quint] Frame 0
class com.robertpenner.easing.Quint
{
function Quint () {
}
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 function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
}
Symbol 184 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 185 MovieClip [__Packages.com.robertpenner.easing.Expo] Frame 0
class com.robertpenner.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
}
Symbol 186 MovieClip [__Packages.com.robertpenner.easing.Elastic] Frame 0
class com.robertpenner.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
}
}
Symbol 187 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.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 function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 188 MovieClip [__Packages.zigo.tweenManager] Frame 0
class zigo.tweenManager
{
var playing, isPaused, autoStop, broadcastEvents, autoOverwrite, ints, lockedTweens, tweenList, updateTime, updateIntId, tweenHolder, now, pausedTime;
function tweenManager () {
playing = false;
isPaused = false;
autoStop = false;
broadcastEvents = false;
autoOverwrite = true;
ints = new Array();
lockedTweens = new Object();
tweenList = new Array();
}
function set updateInterval(time) {
if (playing) {
deinit();
updateTime = time;
init();
} else {
updateTime = time;
}
//return(updateInterval);
}
function get updateInterval() {
return(updateTime);
}
function init() {
if (updateTime > 0) {
updateIntId = setInterval(this, "update", updateTime);
} else {
if (tweenHolder._name == undefined) {
tweenHolder = _root.createEmptyMovieClip("_th_", 6789);
}
var tm = this;
tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
playing = true;
now = getTimer();
}
function deinit() {
playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
}
function update() {
var _local2;
var _local7;
var _local3;
_local7 = tweenList.length;
if (broadcastEvents) {
var _local4;
var _local6;
_local4 = {};
_local6 = {};
}
while (_local7--) {
_local2 = tweenList[_local7];
if ((_local2.ts + _local2.d) > now) {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ef(now - _local2.ts, _local2.ps, _local2.ch, _local2.d, _local2.e1, _local2.e2);
} else {
var _local5 = {};
for (_local3 in _local2.ctm) {
_local5[_local3] = _local2.ef(now - _local2.ts, _local2.stm[_local3], _local2.ctm[_local3], _local2.d, _local2.e1, _local2.e2);
}
_local2.c.setTransform(_local5);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
} else {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ps + _local2.ch;
} else {
var _local5 = {};
for (_local3 in _local2.ctm) {
_local5[_local3] = _local2.stm[_local3] + _local2.ctm[_local3];
}
_local2.c.setTransform(_local5);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
if (_local6[targetPath(_local2.mc)] == undefined) {
_local6[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local7);
}
}
for (_local3 in _local4) {
_local4[_local3].broadcastMessage("onTweenUpdate");
}
if (endt != undefined) {
endTweens(endt);
}
for (_local3 in _local6) {
_local6[_local3].broadcastMessage("onTweenEnd");
}
now = getTimer();
if (updateTime > 0) {
updateAfterEvent();
}
}
function endTweens(tid_arr) {
var _local2;
var _local8;
var _local3;
var _local4;
var _local7;
_local2 = [];
_local8 = tid_arr.length;
_local3 = 0;
while (_local3 < _local8) {
_local4 = tweenList[tid_arr[_local3]].cb;
if (_local4 != undefined) {
var _local5 = true;
for (_local7 in _local2) {
if (_local2[_local7] == _local4) {
_local5 = false;
break;
}
}
if (_local5) {
_local2.push(_local4);
}
}
tweenList.splice(tid_arr[_local3], 1);
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3].func.apply(_local2[_local3].scope, _local2[_local3].args);
_local3++;
}
if (tweenList.length == 0) {
deinit();
}
}
function addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var _local4;
var _local12;
var _local6;
var _local3;
var _local2;
if (!playing) {
init();
}
for (_local4 in props) {
_local12 = props[_local4];
_local6 = true;
if (_local12.substr(0, 4) != "_ct_") {
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.pp == _local12)) {
_local2.ps = mc[_local12];
_local2.ch = pEnd[_local4] - mc[_local12];
_local2.ts = now;
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local6 = false;
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, pp:_local12, ps:mc[_local12], ch:pEnd[_local4] - mc[_local12], ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
} else {
var _local16 = new Color(mc);
var _local20 = _local16.getTransform();
var _local19 = {};
for (_local3 in pEnd[_local4]) {
if ((pEnd[_local4][_local3] != _local20[_local3]) && (pEnd[_local4][_local3] != undefined)) {
_local19[_local3] = pEnd[_local4][_local3] - _local20[_local3];
}
}
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.ctm != undefined)) {
_local2.c = _local16;
_local2.stm = _local20;
(_local2.ctm = _local19);
(_local2.ts = now);
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local6 = false;
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, c:_local16, stm:_local20, ctm:_local19, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
}
}
if (broadcastEvents) {
mc.broadcastMessage("onTweenStart", props[_local4]);
}
if (callback.startfunc != undefined) {
callback.startfunc.apply(callback.startscope, callback.startargs);
}
}
function addTweenWithDelay(delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var il = ints.length;
var _local3 = setInterval(function (obj) {
obj.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
clearInterval(obj.ints[il].intid);
obj.ints[il] = undefined;
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:_local3, st:now, delay:delay * 1000, args:arguments.slice(1)};
}
function removeTween(mc, props) {
var _local7;
var _local2;
var _local3;
_local7 = false;
if (props == undefined) {
_local7 = true;
}
_local2 = tweenList.length;
while (_local2--) {
if (tweenList[_local2].mc == mc) {
if (_local7) {
tweenList.splice(_local2, 1);
} else {
for (_local3 in props) {
if ((tweenList[_local2].pp == props[_local3]) && (tweenList[_local2].mc == mc)) {
tweenList.splice(_local2, 1);
} else if (((props[_local3] == "_ct_") && (tweenList[_local2].ctm != undefined)) && (tweenList[_local2].mc == mc)) {
tweenList.splice(_local2, 1);
}
}
}
}
}
_local2 = ints.length;
while (_local2--) {
if (ints[_local2].mc == mc) {
if (_local7) {
clearInterval(ints[_local2].intid);
ints[_local2] = undefined;
} else {
for (_local3 in props) {
for (var _local6 in ints[_local2].props) {
if ((ints[_local2].props[_local6] == props[_local3]) && (tweenList[_local2].mc == mc)) {
ints[_local2].props.splice(_local6, 1);
ints[_local2].pend.splice(_local6, 1);
}
}
if (ints[_local2].props.length == 0) {
clearInterval(ints[_local2].intid);
}
}
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
function isTweening(mc) {
for (var _local3 in tweenList) {
if (tweenList[_local3].mc == mc) {
return(true);
}
}
return(false);
}
function getTweens(mc) {
var _local2 = 0;
for (var _local4 in tweenList) {
if (tweenList[_local4].mc == mc) {
_local2++;
}
}
return(_local2);
}
function lockTween(mc, bool) {
lockedTweens[targetPath(mc)] = bool;
}
function isTweenLocked(mc) {
if (lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(lockedTweens[targetPath(mc)]);
}
function pauseAll() {
if (isPaused) {
return(undefined);
}
isPaused = true;
pausedTime = now;
for (var _local2 in ints) {
clearInterval(ints[_local2].intid);
}
deinit();
}
function unpauseAll() {
if (!isPaused) {
return(undefined);
}
var _local2;
var _local4;
isPaused = false;
init();
for (_local2 in tweenList) {
_local4 = tweenList[_local2];
_local4.ts = now - (pausedTime - _local4.ts);
}
for (_local2 in ints) {
if (ints[_local2] == undefined) {
continue;
}
var _local3 = ints[_local2].delay - (pausedTime - ints[_local2].st);
var _local5 = setInterval(function (obj, id) {
obj.addTween.apply(obj, obj.ints[id].args);
clearInterval(obj.ints[id].intid);
obj.ints[id] = undefined;
}, _local3, this, _local2);
ints[_local2].intid = _local5;
ints[_local2].st = now;
ints[_local2].delay = _local3;
}
}
function stopAll() {
for (var _local2 in ints) {
clearInterval(ints[_local2].intid);
}
tweenList = new Array();
deinit();
}
function toString() {
return("[AS2 tweenManager 1.1.7]");
}
}
Symbol 189 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((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) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 116
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 40
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 40
stop();
Symbol 112 MovieClip Frame 1
function afficherNews() {
var _local4 = actusXML.firstChild.childNodes;
var _local5 = _local4.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = _local4[_local1].attributes.MP3;
var _local2 = _local4[_local1].firstChild.nodeValue;
tabSingle.push(_local2);
tabMp3.push(_local3);
_local1++;
}
}
var tabSingle = new Array();
var tabMp3 = new Array();
actusXML = new XML();
actusXML.ignoreWhite = true;
actusXML.load("ListSinglePlayer.xml");
actusXML.onLoad = function (s) {
if (s && (this.status == 0)) {
afficherNews();
} else if (s) {
trace("Pb" + this.status);
} else {
trace("Pb charg");
}
};
function SingSon(Titre, Mp3) {
delete SingClip.onEnterFrame;
mySound = new Sound(SingClip);
myMusicPosition = 0;
trace(myMusicPosition);
mySound.loadSound("Sound/" + Mp3, true);
TitreSing.TitreSing.autoSize = true;
TimeSing.autoSize = true;
TitreSing.TitreSing.text = Titre;
TimeSing._x = 280;
PosPlay = true;
form();
MoveInTitre();
}
function MoveInTitre() {
TitreSing.TitreSing._x = TitreSing.TitreSing._width;
TitreSing.TitreSing.tween("_x", -TitreSing.TitreSing._width, anim * 15, "linear", 0, MoveInTitre);
}
function LanceListeSingle() {
ListSingle.createEmptyMovieClip("ClipList", ListSingle.getNextHighestDepth());
ListSingle.ClipList._x = 20;
ListSingle.ClipList._y = 70;
var _local3 = 0;
while (_local3 < tabSingle.length) {
var _local2 = ListSingle.ClipList.attachMovie("BtnSingle", "BtnSingle" + _local3, _local3);
_local2._alpha = 0;
_local2.alphaTo(100, anim, "easeOutSine", (delai / 2) * _local3);
var _local4 = _local2._height + 3;
_local2._y = _local4 * _local3;
_local2.Titre.autoSize = true;
_local2.Titre.text = tabSingle[_local3];
_local2.chiffre.text = _local3 - 1;
_local2.Mp3 = tabMp3[_local3];
_local2.onRollOver = function () {
this.Titre.colorTo(15635715, anim, "easeOutSine");
this.Bloc.alphaTo(0, anim, "easeOutSine");
this.Fleche.alphaTo(100, anim, "easeOutSine");
this.Fleche.tween("_x", 5, anim, "easeOutExpo");
};
_local2.onRollOut = function () {
this.Titre.colorTo(null, anim, "easeOutSine");
this.Bloc.alphaTo(100, anim, "easeOutSine");
this.Fleche.alphaTo(0, anim, "easeOutSine");
this.Fleche.tween("_x", 0, anim, "easeOutExpo");
};
_local2.onRelease = function () {
SingSon(this.Titre.text, this.Mp3);
};
_local3++;
}
var _local5 = (ListSingle.ClipList._y + ListSingle.ClipList._height) + 40;
ListSingle.BlocMp3.tween("_height", _local5, anim, "easeOutSine");
}
function form() {
SingClip.onEnterFrame = function () {
var _local4 = mySound.position;
var _local2 = Math.floor(_local4 / 60000);
var _local3 = _local4 - (_local2 * 60000);
if (_local2 < 10) {
_local2 = "0" + _local2;
}
var _local1 = Math.floor(_local3 / 1000);
_local3 = _local3 - (_local1 * 1000);
if (_local1 < 10) {
_local1 = "0" + _local1;
}
outputData = (_local2 + ":") + _local1;
TimeSing.text = outputData;
};
}
function LancePremSong() {
SingSon(tabSingle[0], tabMp3[0]);
MoveInTitre();
}
function CloseBtnSon() {
mySound.stop();
myMusicPosition = mySound.position / 1000;
PosPlay = false;
var _local2 = 0;
while (_local2 < 4) {
this["Btn" + _local2].enabled = false;
_local2++;
}
if (PositionList == true) {
ListSingle.tween("_y", -40, anim, "easeInElastic");
ListSingle.alphaTo(0, anim, "easeOutSine", delai);
this.rotateTo(0, anim, "easeOutSine");
PositionList = false;
}
}
function OpenBtnSon() {
if (PosPlay == false) {
mySound.start(myMusicPosition, 0);
PosPlay = true;
PositionList = false;
var _local2 = 0;
while (_local2 < 4) {
this["Btn" + _local2].enabled = true;
_local2++;
}
}
}
var PositionList = false;
var PosPlay = true;
var myMusicPosition;
var anim = _parent.anim;
var delai = _parent.delai;
ListSingle._alpha = 0;
ListSingle._y = -50;
this.createEmptyMovieClip("SingClip", this.getNextHighestDepth());
var mySound = new Sound(SingClip);
var i = 0;
while (i < 4) {
this["Btn" + i].onRollOver = function () {
this.ffTween();
this.Btn.colorTo(15635715, anim, "easeOutSine");
this.Fond.tintTo(16777215, 70, anim, "easeOutSine");
};
this["Btn" + i].onRollOut = function () {
this.ffTween();
this.Btn.colorTo(null, anim, "easeOutSine");
this.Fond.tintTo(null, 0, anim, "easeOutSine");
};
i++;
}
Btn3.onRelease = function () {
if (PositionList == false) {
ListSingle.ClipList.removeMovieClip();
ListSingle.alphaTo(100, anim, "easeOutSine");
ListSingle.tween("_y", 0, anim, "easeInElastic", 0, LanceListeSingle);
this.rotateTo(180, anim, "easeOutSine");
PositionList = true;
} else {
ListSingle.tween("_y", -40, anim, "easeInElastic");
ListSingle.alphaTo(0, anim, "easeOutSine", delai);
this.rotateTo(0, anim, "easeOutSine");
PositionList = false;
}
};
Btn0.onRelease = function () {
if (PosPlay == false) {
mySound.start(myMusicPosition, 0);
PosPlay = true;
} else {
trace("je suis en play");
}
trace(myMusicPosition);
};
Btn1.onRelease = function () {
if (PosPlay == true) {
mySound.stop();
myMusicPosition = mySound.position / 1000;
PosPlay = false;
} else {
trace("je suis en pause");
}
trace(myMusicPosition);
};
Btn2.onRelease = function () {
if (PosPlay == true) {
mySound.stop();
myMusicPosition = 0;
PosPlay = false;
} else {
trace("je suis en stop");
myMusicPosition = 0;
}
trace(myMusicPosition);
};