Affermativo, ho scritto così senza virgolette:
codice:
my_mc.btn(apri_home)
PS:
forse il problema dipende dal codice di apri_home
questa è la funzione 'apri_home()':
codice:
MovieClip.prototype.apri_home = function() {
// funzioni
function apri_sfondo() {
bkMenu.alphaTo(100, 1, "easeoutcubic", 0, undefined);
bkMenu.tween("_width", 190, 0.5, "easeoutcubic", 0);
bkMenu.tween("_height", 384, 1, "easeoutbounce);
bkMenu.tween("_width", 800, 1, "easeoutbounce", 1.5);
logo.tween("_y", 309, 1, "easeoutbounce", 2.5);
//
bkMenu.lockTween();
logo.lockTween();
}
// esegui
if (bk._y>0) {
bk.tween("_y", 0, 1, "easeoutquart", 0);
bk.tween("_height", Stage.height, 1, "easeoutbounce", 1);
} else {
bk.tween("_height", Stage.height, 1, "easeoutbounce", 0);
}
//
end_bk = true;
//
this.onEnterFrame = function() {
if (end_bk == true && bk._height>400-1) {
apri_sfondo();
end_bk = false;
}
};
};
:master: :master:
-