Arkadaşlar bir ödev için acil yardımınıza ihtiyacım var. Aşağıdaki kodların açıklamasını yazabilirmisiniz.
İlgilenen arkdaşlara şimdiden teşekkür ederim.
MovieClip.prototype.playTo = function(destino) {
this.onEnterFrame = function() {
if (this._currentframe < destino) {
this.nextFrame();
} else if (this._currentframe > destino) {
this.prevFrame();
} else if (this._currentframe == destino) {
delete this.onEnterFrame;
}
};
};
boton_less.onRollOver = function() {
this.playTo(10);
};
boton_less.onRollOut = function() {
this.playTo(1);
};
boton_more.onRollOver = function() {
this.playTo(10);
};
boton_more.onRollOut = function() {
this.playTo(1);
};//function of efect buttons
//============== Class tweener in http://code.google.com/p/tweener/ ===========
import caurina.transitions.Tweener;
//============== Class tweener in http://code.google.com/p/tweener/ ===========
boton_less.onPress = function() {
if ((MC_content._height <= 100) || (MC_content._width <= 100)) {
Tweener.addTween(MC_content,{_width:50, time:1, transition:"easeOutBounce"});
Tweener.addTween(MC_content,{_height:50, time:1, delay:0.5, transition:"easeOutBounce"});
boton_less._visible = false;
} else {
Tweener.addTween(MC_content,{_width:MC_content._wi dth - 50, time:1, transition:"easeOutBounce"});
Tweener.addTween(MC_content,{_height:MC_content._h eight - 50, time:1, delay:0.5, transition:"easeOutBounce"});
boton_more._visible = true;
}
};
boton_more.onPress = function() {
if ((MC_content._height >= 250) || (MC_content._width >= 250)) {
Tweener.addTween(MC_content,{_width:300, time:1, transition:"easeOutBounce"});
Tweener.addTween(MC_content,{_height:300, time:1, delay:0.5, transition:"easeOutBounce"});
boton_more._visible = false;
} else {
Tweener.addTween(MC_content,{_width:MC_content._wi dth + 50, time:1, transition:"easeOutBounce"});
Tweener.addTween(MC_content,{_height:MC_content._h eight + 50, time:1, delay:0.5, transition:"easeOutBounce"});
boton_less._visible = true;
}
};


Alıntı ile Cevapla
Bu Konuyu Paylaşın !