Muchas gracias erny_2004 voy a hacer los cambios pertinentes para ver si funciona mejor que el que modifique.
Este codigo lo saque del tema de banners extensibles.
Código :
banner.onRollOver = function() {
this.onEnterFrame = function() {
this._xscale = this._yscale += 100 * 0.01;
if (this._xscale >= 125) {
this._xscale = 125;
delete this.onEnterFrame;
}
};
};
banner.onRollOut = function() {
this.onEnterFrame = function() {
this._xscale = this._yscale -= 100 * 0.01;
if (this._xscale <= 100) {
this._xscale = 100;
delete this.onEnterFrame;
}
};
};Las modificaciones que le hice para que hiciera lo que queria furon las siguientes:
Código :
rect.onRollOver = function() {
this.onEnterFrame = function() {
this._y=this._y += 100 * 0.01;
if (this._y >= 10) {
this._y = 10;
delete this.onEnterFrame;
}
};
};
rect.onRollOut = function() {
this.onEnterFrame = function() {
this._y=this._y -= 100 * 0.01;
if (this._y <= 0) {
this._y = 0;
delete this.onEnterFrame;
}
};
};Muchas. Gracias.