1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
//
//Déclaration de variables
//
var eddieInterUp:Number;
var eddieInterDown:Number;
var julInterUp:Number;
var julInterDown:Number;
var alexInterUp:Number;
var alexInterDown:Number;
var tomInterUp:Number;
var tomInterDown:Number;
//
//Déclaration de fonctions
//
function UpAlpha(clip:MovieClip) {
clip._alpha += 1;
}
function DownAlpha(clip:MovieClip) {
if (clip._alpha>20) {
clip._alpha -= 1;
}
}
//
//Code source
//
_root.eddie_mc.onRollOver = function() {
clearInterval(eddieInterDown);
interUp = setInterval(UpAlpha, 5, this);
};
_root.eddie_mc.onRollOut = function() {
clearInterval(eddieInterUp);
interDown = setInterval(DownAlpha, 5, this);
};
_root.jul_mc.onRollOver = function() {
clearInterval(julInterDown);
interUp = setInterval(UpAlpha, 5, this);
};
_root.jul_mc.onRollOut = function() {
clearInterval(julInterUp);
interDown = setInterval(DownAlpha, 5, this);
};
_root.alex_mc.onRollOver = function() {
clearInterval(alexInterDown);
interUp = setInterval(UpAlpha, 5, this);
};
_root.alex_mc.onRollOut = function() {
clearInterval(alexInterUp);
interDown = setInterval(DownAlpha, 5, this);
};
_root.tom_mc.onRollOver = function() {
clearInterval(tomInterDown);
interUp = setInterval(UpAlpha, 5, this);
};
_root.tom_mc.onRollOut = function() {
clearInterval(tomInterUp);
interDown = setInterval(DownAlpha, 5, this);
}; |
Partager