1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| //On masque l'infobulle
infobulle_mc._visible = false;
// ---- > Bouton1
//On l'affiche au survole
survole_mc.onRollOver = function() {
infobulle_mc._visible = true;
infobulle_mc.startDrag(true);
infobulle_mc.swapDepths(infobulle_mc.getNextHighestDepth());
};
//On la masque lorsqu'on ne suvole plus
survole_mc.onRollOut = function() {
infobulle_mc._visible = false;
infobulle_mc.stopDrag(true);
};
//On change le contenu lorsque l'on clique
survole_mc.onPress = function() {
gotoAndPlay("m1");
infobulle_mc._visible = false;
infobulle_mc.stopDrag(true);
}; |