codice:
MovieClip.Prototype.onEnterFrame = function() {
if(this.flag == true){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._alpha<100) {
this._alpha += _root.fade;
}
startDrag("_root.testo", true);
setProperty("_root.testo", _visible, 1);
} else {
if (this._alpha>0) {
this._alpha -= _root.fade;
}
}
}else if(this.flag == false){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._alpha>0) {
this._alpha -= _root.fade;
}
startDrag("_root.testo", true);
setProperty("_root.testo", _visible, 1);
} else {
if (this._alpha<100) {
this._alpha += _root.fade;
}
}
}
}
a 10 metti
onClipEvent(load){
flag = true;
}
alle altre 10
onClipEvent(load){
flag = false;
}