après 3 heures bloquer sur cette commande, le forum est le dernier recourt
Je fait une page flash pour mon site web avec des boutons qui ouvre des MC mais les boutons derrière les MC reste actif malgrès la commande:
_parent.bt.onPress = function() {
_parent.bt.enabled = false;
};
voila le code en question:
bt.onPress = function() {
_root.attachMovie("bor", "bor", 2);
_root.bor._x = 311;
_root.bor._y = 562;
_root.attachMovie("dra", "dra", 3);
_root.dra._x = 610;
_root.dra._y = 547;
_root.attachMovie("gri", "gri", 4);
_root.gri._x = 908;
_root.gri._y = 521;
_root.attachMovie("how", "how", 5);
_root.how._x = 986;
_root.how._y = 699;
_root.attachMovie("ice", "ice", 6);
_root.ice._x = 476;
_root.ice._y = 273;
_root.attachMovie("sho", "sho", 7);
_root.sho._x = 297;
_root.sho._y = 386;
_root.attachMovie("sto", "sto", 8);
_root.sto._x = 748;
_root.sto._y = 241;
_root.attachMovie("win", "win", 9);
_root.win._x = 445;
_root.win._y = 452;
_root.attachMovie("zul", "zul", 10);
_root.zul._x = 864;
_root.zul._y = 400;
_root.attachMovie("map", "map", 1);
_root.map._x = 626;
_root.map._y = 463;
};
_parent.bt.onPress = function() {
_parent.bt.enabled = false;
};
la partie en rouge ne s'active pas et le bouton reste cliquable
j'ai essayer avec
bt.onPress = function() {
_root.bt._visible = false;
};
ca ne marche pas
pourtant quand je recreé un nouveau doc flash et que j'essaye le commande elle marche parfaitement.
merci
Partager