Avevo creato questo menù in actionscript 1 per il lettore 6. Non funziona più però se importo per il lettore 9 actionscript 2.0,.
Codice PHP:
#include "mc_tween2.as"
var myButtons = [this.myButton_1, this.myButton_2, this.myButton_3, this.myButton_4, this.myButton_5];
for (var i = 0; i<myButtons.length; i++) {
myButtons[i].originalY = myButtons[i]._y;
myButtons[i].onRollOver = function() {
this.tween("_y",this.originalY+28,1);
};
myButtons[i].onRollout = myButtons[i].onReleaseOutside=function () {
this.tween("_y",this.originalY,0.5);
trace("ciao")
};
myButtons[i].onRelease = function() {
this._parent.activateItem(this);
trace("Hey, button "+this+" was clicked.");
};
}
this.activateItem = function(item) {
if (this.currentItem != false) {
this.deActivateItem();
}
this.currentItem = item;
this.currentItem.alphaTo(90,1);
this.currentItem.enabled = false;
//this.currentItem.alphaTo(100,1)
this.currentItem.swapDepths(1);
};
this.deActivateItem = function() {
this.currentItem.enabled = true;
this.currentItem.alphaTo(100,0.5);
this.currentItem.tween("_y",this.currentItem.originalY,0.5);
this.currentItem = undefined;
};
this.stop();*/
Mi date una mano?